/* ── Cookie consent dialog (see cookieConsent.js) ── */

.cookie-consent {
    position: fixed;
    z-index: 9500; /* above platform modals (9000) */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 1em;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__card {
    pointer-events: auto;
    max-width: 480px;
    width: 100%;
    padding: 1.6em 1.8em 1.8em;
    border-radius: 1em;
    background-color: hsla(0, 0%, 0%, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.233);
    border-right: 1px solid rgba(255, 255, 255, 0.233);
    box-shadow: inset 0 0 2.5em rgba(0, 0, 0, 0.6), 0 2em 5em rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: cookie-consent-in 0.35s ease-out;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(1.5em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent__kicker {
    margin: 0 0 0.35em;
    font-family: "BOLD", sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.cookie-consent__card h3 {
    margin: 0 0 0.6em;
    font-family: "BOLD", sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

.cookie-consent__text {
    margin: 0 0 1.4em;
    font-size: 0.88em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__text a {
    color: var(--color-primary);
}

.cookie-consent__buttons {
    display: flex;
    gap: 0.7em;
}

.cookie-consent__button {
    cursor: pointer;
    padding: 0.5em 1.6em;
    border-radius: 0.3em;
    font-family: "BOLD", sans-serif;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease-in-out;
}

.cookie-consent__button--accept {
    border: none;
    color: #fff;
    background-color: var(--color-primary);
    text-shadow: 0 0.3em 0.5em rgba(0, 0, 0, 0.5);
    border-bottom: 0.2em solid rgba(255, 255, 255, 0.0);
}

.cookie-consent__button--accept:hover {
    background-color: color-mix(in oklab, var(--color-primary), white 10%);
    border-bottom: 0.2em solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0.8em rgba(51, 182, 56, 0.4);
}

.cookie-consent__button--decline {
    background-color: hsla(0, 0%, 0%, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.cookie-consent__button--decline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 0.6em;
    }

    .cookie-consent__card {
        padding: 1.3em 1.3em 1.4em;
    }

    .cookie-consent__buttons {
        flex-direction: column;
    }

    .cookie-consent__button {
        width: 100%;
    }
}
