﻿.consent-banner,
.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

    .consent-banner[hidden],
    .consent-modal[hidden] {
        display: none !important;
    }

.consent-banner {
    display: grid;
    align-items: end;
    padding: 1rem;
    pointer-events: none;
}

.consent-panel {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    pointer-events: auto;
}

.consent-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #667085;
}

.consent-copy h2,
.consent-modal-card h2 {
    margin: .2rem 0 .5rem;
}

.consent-copy p {
    margin: 0;
    line-height: 1.55;
}

.consent-small {
    margin-top: .55rem !important;
    font-size: .88rem;
    color: #667085;
}

.consent-actions,
.consent-modal-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.consent-btn {
    min-height: 42px;
    padding: .65rem .95rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.consent-btn-primary {
    color: #fff;
    background: #14181f;
}

.consent-btn-secondary {
    color: #14181f;
    background: #fff;
    border-color: #cfd4dc;
}

.consent-btn-link {
    color: #3d4654;
    background: transparent;
    text-decoration: underline;
}

.consent-modal {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.consent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12,16,22,.58);
}

.consent-modal-card {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.consent-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.consent-close {
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.consent-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e6e8ec;
}

    .consent-category p {
        margin: .25rem 0 0;
        color: #667085;
    }

.consent-switch {
    display: flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
}

.consent-modal-actions {
    padding-top: 1rem;
    border-top: 1px solid #e6e8ec;
}

.consent-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 760px) {
    .consent-panel,
    .consent-category {
        grid-template-columns: 1fr;
    }

    .consent-actions .consent-btn {
        width: 100%;
    }
}
