.cookieConsent[hidden],
.cookieModal[hidden] {
    display: none !important;
}

.cookieConsent {
    position: fixed;
    z-index: 100000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    max-width: 760px;
    margin-left: auto;
    padding: 22px;
    color: #0b1428;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 35, 70, .22);
}

.cookieConsent__eyebrow,
.cookieModal__eyebrow {
    margin: 0 0 7px;
    color: #1e57d8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cookieConsent h2,
.cookieModal h2 {
    margin: 0 0 8px;
    color: #0b1428;
    font-size: 24px;
    line-height: 1.2;
}

.cookieConsent p,
.cookieModal p {
    margin: 0;
    color: #5c6f8d;
    line-height: 1.55;
}

.cookieConsent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cookieConsent button,
.cookieModal button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    color: #0b1428;
    background: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.cookieConsent button[data-cookie-accept],
.cookieModal button[data-cookie-save] {
    color: #fff;
    border-color: #245eea;
    background: #245eea;
}

.cookieConsent button:hover,
.cookieModal button:hover {
    border-color: #77a8f8;
    transform: translateY(-1px);
}

.cookieConsent button:focus-visible,
.cookieModal button:focus-visible,
.footerCookieSettings:focus-visible {
    outline: 3px solid rgba(36, 94, 234, .3);
    outline-offset: 2px;
}

.cookieModal {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 18, 40, .62);
}

.cookieModal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default;
}

.cookieModal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px;
    color: #0b1428;
    background: #fff;
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(3, 13, 35, .3);
    isolation: isolate;
}

.cookieModal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookieModal__intro {
    margin-bottom: 20px;
}

.cookieModal__close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    padding: 0 !important;
    font-size: 24px !important;
}

.cookieChoice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: center;
    margin-top: 12px;
    padding: 16px 18px;
    background: #f6f9fd;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    cursor: pointer;
}

.cookieChoice > div {
    min-width: 0;
}

.cookieChoice strong {
    display: block;
    color: #0b1428;
}

.cookieChoice p {
    margin-top: 4px;
    font-size: 14px;
}

.cookieChoice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cookieSwitch {
    position: relative;
    display: block;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #a8b6c9;
    box-shadow: inset 0 0 0 1px rgba(11, 20, 40, .08);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.cookieSwitch::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    content: "";
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 20, 40, .24);
    transition: transform .2s ease;
}

.cookieChoice input:checked + .cookieSwitch {
    background: #245eea;
}

.cookieChoice input:checked + .cookieSwitch::after {
    transform: translateX(22px);
}

.cookieChoice input:focus-visible + .cookieSwitch {
    outline: 3px solid rgba(36, 94, 234, .3);
    outline-offset: 3px;
}

.cookieChoice__required {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #34506f;
    background: #e8f0fa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cookieModal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.footerCookieSettings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .cookieConsent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 18px;
    }

    .cookieConsent h2,
    .cookieModal h2 {
        font-size: 20px;
    }

    .cookieConsent__actions,
    .cookieModal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookieConsent button,
    .cookieModal__actions button {
        width: 100%;
    }

    .cookieModal {
        place-items: end center;
        padding: 10px;
    }

    .cookieModal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 20px 16px;
        border-radius: 8px;
    }

    .cookieChoice {
        padding: 14px;
    }
}
