.cookie-consent-banner {
    position: fixed;
    z-index: 2000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #172033;
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .22);
    font-family: Inter, system-ui, sans-serif;
}

.cookie-consent-banner[hidden],
.cookie-consent-overlay[hidden],
.cookie-consent-shortcut[hidden] {
    display: none !important;
}

.cookie-consent-copy {
    min-width: 0;
    flex: 1;
}

.cookie-consent-eyebrow {
    color: #3655c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.cookie-consent-banner h2,
.cookie-consent-modal h2 {
    margin: 4px 0 6px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.cookie-consent-banner p,
.cookie-consent-modal p {
    margin: 0;
    color: #536176;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent-banner a,
.cookie-consent-modal a {
    color: #2947aa;
    font-weight: 700;
    text-underline-offset: 2px;
}

.cookie-consent-actions,
.cookie-consent-modal-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #3655c7;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.cookie-consent-button-primary {
    color: #fff;
    background: #3655c7;
}

.cookie-consent-button-outline {
    color: #2947aa;
    background: #fff;
}

.cookie-consent-button:focus-visible,
.cookie-consent-close:focus-visible,
.cookie-consent-shortcut:focus-visible,
.cookie-consent-category input:focus-visible {
    outline: 3px solid rgba(54, 85, 199, .28);
    outline-offset: 2px;
}

.cookie-consent-shortcut {
    position: fixed;
    z-index: 1900;
    left: 16px;
    bottom: 16px;
    min-height: 38px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: #172d4d;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    font: 750 12px Inter, system-ui, sans-serif;
    cursor: pointer;
}

.cookie-consent-overlay {
    position: fixed;
    z-index: 2100;
    inset: 0;
    padding: 18px;
    display: grid;
    place-items: center;
    background: rgba(10, 20, 36, .62);
    backdrop-filter: blur(4px);
}

.cookie-consent-modal {
    width: min(620px, 100%);
    max-height: min(760px, calc(100dvh - 36px));
    padding: 24px;
    overflow-y: auto;
    color: #172033;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    font-family: Inter, system-ui, sans-serif;
}

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

.cookie-consent-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #405069;
    background: #eef2f7;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-intro {
    margin: 4px 0 16px !important;
}

.cookie-consent-category {
    margin-top: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #e0e7f1;
    border-radius: 13px;
    background: #f9fbfd;
}

.cookie-consent-category strong {
    display: block;
    margin-bottom: 3px;
    color: #19263a;
    font-size: 14px;
}

.cookie-consent-category input {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    accent-color: #3655c7;
    cursor: pointer;
}

.cookie-consent-always-on {
    flex: 0 0 auto;
    color: #08745b;
    font-size: 11px;
    font-weight: 800;
}

.cookie-consent-policy-link {
    margin: 16px 2px !important;
}

.cookie-consent-modal-actions {
    justify-content: flex-end;
}

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

@media (max-width: 820px) {
    .cookie-consent-shortcut {
        display: none;
    }

    .cookie-consent-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent-actions .cookie-consent-button-primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 520px) {
    .cookie-consent-banner {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        padding: 16px;
        border-radius: 15px;
    }

    .cookie-consent-actions,
    .cookie-consent-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions .cookie-consent-button-primary {
        grid-column: auto;
    }

    .cookie-consent-overlay {
        padding: 8px;
        align-items: end;
    }

    .cookie-consent-modal {
        max-height: calc(100dvh - 16px);
        padding: 18px;
        border-radius: 18px 18px 10px 10px;
    }

    .cookie-consent-modal-actions .cookie-consent-button {
        width: 100%;
    }

}
