:root {
    --consent-bg: rgba(8, 10, 18, 0.94);
    --consent-border: rgba(45, 212, 191, 0.18);
    --consent-text: #eef2ff;
    --consent-muted: rgba(148, 163, 184, 0.82);
    --consent-accent: #6ee7d8;
    --consent-accent-dark: #061420;
    --consent-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.privacy-consent-root {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 140;
    pointer-events: none;
}

.privacy-consent-banner {
    max-width: 40rem;
    margin-left: auto;
    background: linear-gradient(180deg, rgba(8, 14, 34, 0.98), rgba(6, 10, 24, 0.98));
    border: 1px solid var(--consent-border);
    border-radius: 1.5rem;
    box-shadow: var(--consent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--consent-text);
    padding: 1.2rem;
    pointer-events: auto;
}

.privacy-consent-banner[hidden],
.privacy-consent-manage[hidden] {
    display: none;
}

.privacy-consent-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--consent-accent);
    margin-bottom: 0.75rem;
}

.privacy-consent-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--consent-muted);
    margin-bottom: 1rem;
}

.privacy-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.privacy-consent-button {
    border: 1px solid transparent;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-height: 2.8rem;
    padding: 0 1.15rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
}

.privacy-consent-button:hover {
    transform: translateY(-1px);
}

.privacy-consent-button-primary {
    background: linear-gradient(135deg, #2dd4bf, #3b82f6);
    color: #f8fafc;
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.18);
}

.privacy-consent-button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(45, 212, 191, 0.18);
    color: var(--consent-text);
}

.privacy-consent-link {
    color: var(--consent-accent);
    font-weight: 700;
    text-decoration: none;
}

.privacy-consent-manage {
    margin-left: auto;
    margin-top: 0.75rem;
    background: rgba(8, 14, 34, 0.96);
    border: 1px solid var(--consent-border);
    border-radius: 9999px;
    color: var(--consent-text);
    pointer-events: auto;
}

.privacy-gate {
    border: 1px solid rgba(45, 212, 191, 0.14);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(8, 14, 34, 0.92), rgba(6, 10, 24, 0.98));
    box-shadow: var(--consent-shadow);
    color: var(--consent-text);
    padding: 1.4rem;
    text-align: center;
}

.privacy-gate-title {
    color: var(--consent-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.privacy-gate-text {
    color: var(--consent-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

html.light-mode .privacy-consent-banner,
html.light-mode .privacy-gate,
html.light-mode .privacy-consent-manage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    border-color: rgba(13, 148, 136, 0.14);
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html.light-mode .privacy-consent-text,
html.light-mode .privacy-gate-text {
    color: #475569;
}

html.light-mode .privacy-consent-title,
html.light-mode .privacy-gate-title,
html.light-mode .privacy-consent-link {
    color: #0d9488;
}

html.light-mode .privacy-consent-button-secondary {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(13, 148, 136, 0.16);
    color: #0f172a;
}

@media (max-width: 767px) {
    .privacy-consent-root {
        inset: auto 0.75rem 0.75rem 0.75rem;
    }

    .privacy-consent-actions {
        flex-direction: column;
    }

    .privacy-consent-button {
        width: 100%;
    }
}
