/* ==================== Do Not Sell 页面样式（参考 Quora/OneTrust 风格） ==================== */

.sg-dns-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* 页面头部 */
.sg-dns-header {
    margin-bottom: 24px;
}

.sg-dns-header h1 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

.sg-dns-header__desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

.sg-dns-header__more {
    display: inline-block;
    font-size: 14px;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sg-dns-header__more:hover {
    color: #1d4ed8;
}

/* Allow All 按钮（绿色，全宽，参考 Quora） */
.sg-dns-allow-all-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-bottom: 32px;
    background: #1a7f37;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sg-dns-allow-all-btn:hover {
    background: #15652c;
}

/* 偏好管理区域 */
.sg-dns-preferences {
    margin-bottom: 24px;
}

.sg-dns-preferences h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

/* 单个 Cookie 类别 */
.sg-dns-category {
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
}

.sg-dns-category:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.sg-dns-category__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-dns-category__icon {
    width: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
    text-align: center;
}

.sg-dns-category__info {
    flex: 1;
}

.sg-dns-category__info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.sg-dns-category__always-active {
    font-size: 13px;
    font-weight: 600;
    color: #1a7f37;
    white-space: nowrap;
}

.sg-dns-category__body {
    margin-top: 12px;
    padding-left: 32px;
}

.sg-dns-category__body p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

/* Toggle 开关 */
.sg-dns-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.sg-dns-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sg-dns-toggle__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 0.2s ease;
}

.sg-dns-toggle__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.sg-dns-toggle input:checked + .sg-dns-toggle__slider {
    background: #1a7f37;
}

.sg-dns-toggle input:checked + .sg-dns-toggle__slider::after {
    transform: translateX(22px);
}

/* Confirm My Choices 按钮（绿色，全宽） */
.sg-dns-confirm-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #1a7f37;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sg-dns-confirm-btn:hover {
    background: #15652c;
}

/* 保存成功提示 */
.sg-dns-save-toast {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 10px 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sg-dns-save-toast.is-visible {
    opacity: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .sg-dns-page {
        padding: 20px 16px 40px;
    }

    .sg-dns-header h1 {
        font-size: 19px;
    }

    .sg-dns-category__body {
        padding-left: 0;
    }
}
