/* Cookie consent banner — fixed overlay; does not alter page layout until visible */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-consent-banner.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--footer-bg, #24052F);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent-banner__title {
    margin: 0 0 8px;
    font-size: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 600;
    color: #fff;
}

.cookie-consent-banner__desc {
    margin: 0;
    font-size: calc(13px + (15 - 13) * ((100vw - 320px) / (1920 - 320)));
    line-height: 1.5;
    color: #d8d3dc;
    max-width: 720px;
}

.cookie-consent-banner__desc a {
    color: var(--pri-color, #F9A822);
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.cookie-consent-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn--primary {
    background: var(--pri-color, #F9A822);
    color: #24052F;
    border-color: var(--pri-color, #F9A822);
}

.cookie-consent-btn--primary:hover {
    background: #e09818;
    border-color: #e09818;
}

.cookie-consent-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cookie-consent-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.cookie-consent-btn--muted {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: transparent;
}

.cookie-consent-btn--muted:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-consent-preferences {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cookie-consent-preferences.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent-preferences__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: min(90vh, 640px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: 14px;
    background: #fff;
    color: #24052F;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.cookie-consent-preferences__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #24052F;
}

.cookie-consent-preferences__title {
    font-size: 22px;
    margin: 0 0 12px;
}

.cookie-consent-preferences__intro {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.cookie-consent-pref-row {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.cookie-consent-pref-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cookie-consent-domain {
    color: #dc3545;
}

.cookie-consent-pref-row__badge {
    font-size: 12px;
    font-weight: 600;
    color: #24052F;
    background: #f3eef5;
    padding: 4px 10px;
    border-radius: 999px;
}

.cookie-consent-preferences__panel .cookie-consent-btn--outline {
    background: #fff;
    color: #24052F;
    border-color: #cfc6d6;
}

.cookie-consent-preferences__panel .cookie-consent-btn--muted {
    background: #f3eef5;
    color: #24052F;
}

.cookie-consent-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

@media (max-width: 991px) {
    .cookie-consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-consent-banner__actions {
        justify-content: stretch;
        width: 100%;
    }

    .cookie-consent-banner__actions .cookie-consent-btn {
        flex: 1 1 calc(50% - 5px);
        white-space: normal;
        text-align: center;
    }

    .cookie-consent-banner__actions .cookie-consent-btn--primary {
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .cookie-consent-banner {
        padding: 10px;
    }

    .cookie-consent-banner__inner {
        padding: 16px;
    }

    .cookie-consent-banner__actions .cookie-consent-btn {
        flex: 1 1 100%;
    }

    .cookie-consent-preferences__actions {
        flex-direction: column;
    }

    .cookie-consent-preferences__actions .cookie-consent-btn {
        width: 100%;
    }
}
