.cookie-banner,
.cookie-modal {
    color: #17243a;
    background: #fff;
    border: 1px solid #d9e3f0;
    box-shadow: 0 24px 70px rgba(4, 14, 30, .28);
}

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

.cookie-banner {
    position: fixed;
    z-index: 10000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px;
    margin: auto;
    padding: 22px;
    border-radius: 18px;
}

.cookie-banner h2,
.cookie-modal h2 {
    margin: 0 0 6px;
    color: #0d1b30;
    font-size: 1.35rem;
}

.cookie-banner p,
.cookie-modal p {
    margin: 0;
    color: #52647e;
    font-size: .94rem;
}

.cookie-banner a {
    display: inline-block;
    margin-top: 7px;
    color: #084fc4;
    font-size: .88rem;
}

.cookie-banner-actions,
.cookie-modal-actions {
    display: flex;
    flex-shrink: 0;
    gap: 9px;
}

.cookie-button,
.cookie-link-button,
.cookie-close {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.cookie-button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.cookie-button-primary {
    color: #fff;
    background: #0b5fff;
}

.cookie-button-secondary {
    color: #20324c;
    background: #eef3f9;
}

.cookie-button:focus-visible,
.cookie-link-button:focus-visible,
.cookie-close:focus-visible {
    outline: 3px solid #77a7ff;
    outline-offset: 2px;
}

.cookie-modal-backdrop {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(4, 12, 25, .68);
}

.cookie-modal {
    width: min(640px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 25px;
    border-radius: 18px;
}

.cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #0b5fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cookie-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #263951;
    background: #eef3f9;
    font-size: 1.7rem;
    line-height: 1;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #f9fbfe;
}

.cookie-category strong {
    display: block;
    margin-bottom: 3px;
}

.cookie-category input[role="switch"] {
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
    accent-color: #0b5fff;
    cursor: pointer;
}

.cookie-always-on {
    flex: 0 0 auto;
    color: #147044;
    font-size: .78rem;
    font-weight: 800;
}

.cookie-modal-actions {
    justify-content: flex-end;
    margin-top: 20px;
}

.cookie-modal-open {
    overflow: hidden;
}

.cookie-settings-link {
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    text-decoration: underline;
}

.footer-grid .cookie-settings-link {
    display: block;
    margin: 0 0 8px;
    color: #c0d0e7;
    font-size: inherit;
}

.footer-grid .cookie-settings-link:hover {
    color: #fff;
}

iframe[data-cookie-src]:not([src]) {
    display: none;
}

.cookie-embed-placeholder {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 22px;
    color: #435671;
    background: #f3f6fa;
    text-align: center;
}

.cookie-embed-placeholder {
    position: absolute;
    inset: 0;
}

.cookie-embed-placeholder p {
    max-width: 440px;
    margin: 0;
}

.cookie-link-button {
    padding: 0;
    color: #084fc4;
    background: transparent;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-banner-actions,
    .cookie-modal-actions {
        flex-direction: column-reverse;
    }

    .cookie-button {
        width: 100%;
    }

    .cookie-category {
        align-items: flex-start;
    }
}
