.cso-privacy-banner[hidden],
.cso-privacy-modal[hidden] {
    display: none !important;
}

.cso-privacy-banner {
    position: fixed;
    z-index: 9998;
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: 980px;
    margin: 0 auto;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #d9edf5;
    background: rgba(1, 21, 33, .97);
    border: 1px solid rgba(32, 216, 235, .35);
    border-radius: 14px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .42);
    backdrop-filter: blur(14px);
}

.cso-privacy-banner__copy {
    min-width: 0;
}

.cso-privacy-banner__copy strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
}

.cso-privacy-banner__copy p {
    margin: 0;
    color: #9fb8c5;
    font-size: 12px;
    line-height: 1.5;
}

.cso-privacy-banner a,
.cso-privacy-panel a {
    color: #20d8eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cso-privacy-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cso-privacy-button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.cso-privacy-button:hover {
    transform: translateY(-1px);
}

.cso-privacy-button:focus-visible,
.cso-privacy-panel__close:focus-visible,
.cso-privacy-toggle:focus-visible {
    outline: 3px solid rgba(32, 216, 235, .4);
    outline-offset: 2px;
}

.cso-privacy-button--primary {
    color: #00151d;
    background: #20d8eb;
    border-color: #20d8eb;
}

.cso-privacy-button--secondary {
    color: #d8f7fb;
    background: #0b3448;
    border-color: rgba(32, 216, 235, .32);
}

.cso-privacy-button--ghost {
    color: #a9c1cc;
    background: transparent;
    border-color: rgba(151, 185, 199, .24);
}

.cso-privacy-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cso-privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 10, 18, .72);
    backdrop-filter: blur(4px);
}

.cso-privacy-panel {
    position: relative;
    width: min(100%, 590px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    color: #d8edf5;
    background: #061f2e;
    border: 1px solid rgba(32, 216, 235, .3);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.cso-privacy-panel__close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #a9c1cc;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 26px;
    cursor: pointer;
}

.cso-privacy-panel__eyebrow {
    margin: 0 0 4px;
    color: #20d8eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cso-privacy-panel h2 {
    margin: 0 36px 8px 0;
    color: #fff;
    font-size: 23px;
}

.cso-privacy-panel__intro {
    margin: 0 0 18px;
    color: #9cb6c3;
    font-size: 13px;
    line-height: 1.55;
}

.cso-privacy-option {
    margin-top: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(4, 41, 59, .72);
    border: 1px solid rgba(126, 174, 194, .15);
    border-radius: 12px;
}

.cso-privacy-option strong,
.cso-privacy-option span,
.cso-privacy-option small {
    display: block;
}

.cso-privacy-option strong {
    color: #f3fbff;
    font-size: 13px;
}

.cso-privacy-option span {
    margin-top: 3px;
    color: #93adba;
    font-size: 12px;
    line-height: 1.45;
}

.cso-privacy-option small {
    margin-top: 5px;
    color: #f8ce72;
    font-size: 11px;
}

.cso-privacy-required {
    flex: 0 0 auto;
    color: #20d8eb !important;
    font-size: 11px !important;
    font-weight: 700;
}

.cso-privacy-toggle {
    width: 42px;
    height: 23px;
    flex: 0 0 auto;
    accent-color: #20d8eb;
    cursor: pointer;
}

.cso-privacy-toggle:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.cso-privacy-panel__footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
}

body.cso-privacy-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cso-privacy-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .cso-privacy-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cso-privacy-banner__actions .cso-privacy-button--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .cso-privacy-panel {
        padding: 22px 16px 18px;
    }

    .cso-privacy-option {
        padding: 12px;
    }

    .cso-privacy-panel__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cso-privacy-panel__footer .cso-privacy-button {
        width: 100%;
    }
}
