/* Cookie consent banner */
.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: none;
    background: rgba(38, 38, 38, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cookie-consent-backdrop.is-visible {
    display: block;
    animation: cookie-consent-fade 0.28s ease both;
}

.cookie-consent {
    --cc-ink: var(--lumina-black, #262626);
    --cc-muted: var(--lumina-darkergrey, #616161);
    --cc-paper: var(--lumina-white, #fcfafa);
    --cc-line: #e8e8e6;
    --cc-blue: var(--lumina-blue, #6464ff);

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px 28px;
    padding: 22px 28px;
    background: var(--cc-paper);
    border-top: 2px solid var(--cc-blue);
    box-shadow: 0 -18px 48px rgba(38, 38, 38, 0.18);
    box-sizing: border-box;
    font-family: "Bagoss", sans-serif;
}

.cookie-consent.is-visible {
    display: flex;
    animation: cookie-consent-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-consent__inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
}

@keyframes cookie-consent-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cookie-consent-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-consent__copy {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--cc-muted);
    text-align: left;
}

.cookie-consent__copy strong {
    color: var(--cc-ink);
    font-weight: 520;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.cookie-consent__btn {
    appearance: none;
    border: 0;
    border-radius: 2px;
    min-height: 46px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 520;
    cursor: pointer;
    line-height: 1;
}

.cookie-consent__btn--reject {
    background: #fff;
    color: var(--cc-ink);
    border: 1px solid #d4d4d2;
}

.cookie-consent__btn--reject:hover {
    border-color: #b7b7b7;
}

.cookie-consent__btn--accept {
    background: var(--cc-blue);
    color: #fff;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(100, 100, 255, 0.28);
}

.cookie-consent__btn--accept:hover {
    background: #5252e6;
}

@media (max-width: 720px) {
    .cookie-consent {
        padding: 18px 16px 20px;
    }

    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: 10px;
    }

    .cookie-consent__btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent__btn--accept {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent.is-visible,
    .cookie-consent-backdrop.is-visible {
        animation: none;
    }
}
