/* Cookie consent banner + settings dialog. Compact, never a fullscreen popup. */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(100% - 2rem, 62rem);
    background: var(--brand-card, #fff);
    border: 1px solid var(--brand-border, #f0eae2);
    border-radius: var(--brand-radius, 18px);
    box-shadow: var(--brand-shadow-lg, 0 24px 60px rgba(32, 32, 32, .12));
    z-index: 1080;
}

.cookie-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.3rem;
}

.cookie-banner__text {
    flex: 1 1 22rem;
    min-width: 0;
}

.cookie-banner__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 .25rem;
}

.cookie-banner__desc {
    margin: 0;
    font-size: .9rem;
    color: var(--brand-muted, #6e737b);
}

.cookie-banner__actions {
    display: flex;
    gap: .6rem;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .cookie-banner {
        bottom: .75rem;
        width: calc(100% - 1.5rem);
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__actions > * {
        flex: 1 1 0;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------- */

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 32, 32, .45);
}

.cookie-modal__dialog {
    position: relative;
    background: var(--brand-card, #fff);
    border-radius: var(--brand-radius, 18px);
    box-shadow: var(--brand-shadow-lg, 0 24px 60px rgba(32, 32, 32, .12));
    width: min(100%, 34rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem .5rem;
}

.cookie-modal__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand-muted, #6e737b);
    cursor: pointer;
    padding: 0 .25rem;
}

.cookie-modal__body {
    padding: .5rem 1.4rem;
}

.cookie-modal__footer {
    padding: .75rem 1.4rem 1.4rem;
}

.cookie-option {
    padding: .9rem 0;
    border-bottom: 1px solid var(--brand-border, #f0eae2);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-option__name {
    font-size: .98rem;
    font-weight: 700;
    margin: 0;
}

.cookie-option__always {
    font-size: .82rem;
    font-weight: 700;
    color: var(--brand-muted, #6e737b);
}

.cookie-option__desc {
    margin: .35rem 0 0;
    font-size: .88rem;
    color: var(--brand-muted, #6e737b);
}
