/* Sun Tropez – Consent Manager (Banner + Modal) */

.st-consent-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    padding: 0.8rem 0.75rem;
    background:
        radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.15), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 0, 255, 0.2), transparent 55%),
        rgba(3, 6, 24, 0.97);
    border-top: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 -10px 30px rgba(15, 23, 42, 0.9),
        0 0 26px rgba(0, 255, 255, 0.4);
}

.st-consent-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0.3rem;
    color: #e5ecff;
    font-size: 0.9rem;
}

.st-consent-banner__text strong {
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: #f9f9ff;
}

.st-consent-banner__text p {
    margin: 0;
    line-height: 1.6;
}

.st-consent-banner__text a {
    color: #7ee0ff;
    text-decoration: underline;
}

.st-consent-banner__actions {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.st-consent-btn {
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.45rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    transition: transform 140ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out, color 140ms ease-out;
}

.st-consent-btn--primary {
    background:
        radial-gradient(circle at 10% 0, rgba(0, 255, 255, 0.25), transparent 60%),
        radial-gradient(circle at 90% 100, rgba(255, 0, 204, 0.3), transparent 60%),
        rgba(15, 23, 42, 0.98);
    box-shadow:
        0 0 16px rgba(0, 255, 255, 0.4),
        0 0 26px rgba(255, 0, 255, 0.4);
}

.st-consent-btn--secondary {
    border-color: rgba(148, 163, 184, 0.8);
    background: transparent;
    color: #e5ecff;
}

.st-consent-btn:hover,
.st-consent-btn:focus-visible {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
        0 0 24px rgba(0, 255, 255, 0.7),
        0 0 38px rgba(255, 0, 255, 0.65);
}

.st-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.st-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.st-consent-modal__dialog {
    position: relative;
    max-width: 640px;
    margin: 4rem auto;
    background: radial-gradient(circle at top left, rgba(0,0,0,0.85), rgba(15,23,42,0.98));
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.85),
        0 0 26px rgba(0, 255, 255, 0.35);
    color: #e5ecff;
    padding: 1.5rem 1.6rem 1.4rem;
}

.st-consent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.st-consent-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.st-consent-modal__close {
    border: none;
    background: transparent;
    color: #e5ecff;
    font-size: 1.4rem;
    cursor: pointer;
}

.st-consent-modal__body {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.st-consent-group {
    border-radius: 0.9rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    padding: 0.8rem 0.9rem;
    margin-top: 0.7rem;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
}

.st-consent-group__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.st-consent-group__header p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.st-consent-badge {
    font-size: 0.75rem;
    padding: 0.1rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    white-space: nowrap;
}

.st-consent-badge--locked {
    background: rgba(15,23,42,0.95);
}

.st-consent-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.st-consent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.st-consent-toggle__track {
    width: 40px;
    height: 20px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.9);
    transition: background 140ms ease-out, border-color 140ms ease-out;
}

.st-consent-toggle__thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5ecff;
    transform: translateX(2px);
    transition: transform 140ms ease-out, background 140ms ease-out, box-shadow 140ms ease-out;
    box-shadow: 0 0 6px rgba(15,23,42,0.8);
}

.st-consent-toggle input:checked + .st-consent-toggle__track {
    background: linear-gradient(120deg, #00f5ff, #ff00ff);
    border-color: transparent;
}

.st-consent-toggle input:checked ~ .st-consent-toggle__thumb {
    transform: translateX(22px);
    background: #0b1120;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.7),
        0 0 18px rgba(255, 0, 255, 0.6);
}

.st-consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.st-consent-reopen {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 9000;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.92);
    color: #e5ecff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15,23,42,0.8);
}

@media (max-width: 768px) {
    .st-consent-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .st-consent-banner__actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .st-consent-btn {
        padding-inline: 1.05rem;
    }

    .st-consent-modal__dialog {
        margin: 3.5rem 1rem;
        padding: 1.2rem 1.1rem 1.1rem;
    }

    .st-consent-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .st-consent-btn {
        width: 100%;
        text-align: center;
    }

    .st-consent-reopen {
        right: 0.9rem;
        bottom: 0.9rem;
    }
}
