.site-cookie-banner,
.site-cookie-dialog {
    --cookie-navy: #082744;
    --cookie-blue: #087fbd;
    --cookie-border: #c9dde8;
    font-family: var(--site-font-body, Inter, sans-serif);
}

.site-cookie-banner[hidden] {
    display: none !important;
}

.site-cookie-banner {
    position: fixed;
    z-index: 2147482000;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    display: flex;
    width: min(76rem, calc(100% - clamp(2rem, 6vw, 4rem)));
    margin-inline: auto;
    padding: 1.15rem;
    border: 1px solid rgb(8 127 189 / .28);
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 4rem rgb(8 39 68 / .22);
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    color: var(--cookie-navy);
    background: rgb(255 255 255 / .98);
    backdrop-filter: blur(18px);
}

.site-cookie-banner__content {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .9rem;
}

.site-cookie-banner__icon {
    display: grid;
    width: 2.75rem;
    flex: 0 0 2.75rem;
    aspect-ratio: 1;
    border-radius: .85rem;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--cookie-blue), #0757a6);
}

.site-cookie-banner__icon svg {
    width: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-cookie-banner h2,
.site-cookie-dialog h2 {
    margin: 0;
    color: var(--cookie-navy);
    font-family: var(--site-font-display, Manrope, sans-serif);
    letter-spacing: -.025em;
}

.site-cookie-banner h2 {
    font-size: 1.05rem;
}

.site-cookie-banner p {
    max-width: 49rem;
    margin: .3rem 0 .25rem;
    color: #4b6474;
    font-size: .88rem;
    line-height: 1.55;
}

.site-cookie-banner a,
.site-cookie-dialog a {
    color: #066fa9;
    font-size: .82rem;
    font-weight: 700;
    text-underline-offset: .18em;
}

.site-cookie-banner__actions,
.site-cookie-dialog__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .55rem;
}

.site-cookie-button {
    min-height: 2.7rem;
    padding: .65rem .95rem;
    border: 1px solid transparent;
    border-radius: .72rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}

.site-cookie-button:focus-visible,
.site-cookie-dialog__close:focus-visible,
.site-footer__bottom-links button:focus-visible,
.site-cookie-switch input:focus-visible + span {
    outline: 3px solid rgb(32 211 194 / .55);
    outline-offset: 2px;
}

.site-cookie-button--primary {
    color: #fff;
    background: var(--cookie-blue);
}

.site-cookie-button--primary:hover {
    background: #066ca2;
}

.site-cookie-button--outline {
    border-color: #9cc6da;
    color: #075f91;
    background: #f3fafd;
}

.site-cookie-button--ghost {
    border-color: #d5e2e9;
    color: #345363;
    background: #fff;
}

.site-cookie-dialog {
    width: min(36rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--cookie-border);
    border-radius: 1.35rem;
    box-shadow: 0 1.5rem 5rem rgb(8 39 68 / .3);
    color: #496271;
    background: #fff;
}

.site-cookie-dialog::backdrop {
    background: rgb(4 24 39 / .58);
    backdrop-filter: blur(3px);
}

.site-cookie-dialog__header {
    display: flex;
    padding: 1.3rem 1.3rem .55rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.site-cookie-dialog__eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--cookie-blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-cookie-dialog h2 {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.site-cookie-dialog__close {
    display: grid;
    width: 2.45rem;
    flex: 0 0 2.45rem;
    aspect-ratio: 1;
    border: 1px solid #d7e4ea;
    border-radius: 50%;
    place-items: center;
    color: #365565;
    background: #f7fbfc;
    cursor: pointer;
}

.site-cookie-dialog__close svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.site-cookie-dialog > p {
    margin: 0;
    padding: 0 1.3rem 1rem;
    font-size: .9rem;
    line-height: 1.55;
}

.site-cookie-option {
    display: flex;
    margin: 0 1.3rem .7rem;
    padding: 1rem;
    border: 1px solid #dbe7ec;
    border-radius: .9rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f8fbfc;
}

.site-cookie-option strong {
    display: block;
    margin-bottom: .2rem;
    color: #17384a;
    font-size: .92rem;
}

.site-cookie-option p,
.site-cookie-option > span > span {
    display: block;
    margin: 0;
    color: #637b88;
    font-size: .8rem;
    line-height: 1.45;
}

.site-cookie-option__fixed {
    flex: 0 0 auto;
    padding: .35rem .55rem;
    border-radius: 999px;
    color: #14704b;
    background: #e4f6ed;
    font-size: .7rem;
    font-weight: 800;
}

.site-cookie-option--selectable {
    cursor: pointer;
}

.site-cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.site-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.site-cookie-switch span {
    position: relative;
    display: block;
    width: 2.85rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #aebfc8;
    transition: background-color .18s ease;
}

.site-cookie-switch span::after {
    position: absolute;
    top: .2rem;
    left: .2rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    content: '';
    background: #fff;
    box-shadow: 0 .1rem .3rem rgb(8 39 68 / .24);
    transition: transform .18s ease;
}

.site-cookie-switch input:checked + span {
    background: #0784bf;
}

.site-cookie-switch input:checked + span::after {
    transform: translateX(1.3rem);
}

.site-cookie-dialog__policy {
    margin: .95rem 1.3rem 0;
    padding: .85rem;
    border-left: 3px solid #27a9c7;
    color: #526d7b;
    background: #eef8fb;
    font-size: .78rem;
    line-height: 1.5;
}

.site-cookie-dialog__policy a {
    font-size: inherit;
}

.site-cookie-dialog__actions {
    padding: 1rem 1.3rem 1.3rem;
    justify-content: flex-end;
}

.site-cookie-status {
    position: fixed;
    z-index: 2147482100;
    right: 1rem;
    bottom: 1rem;
    max-width: min(24rem, calc(100% - 2rem));
    padding: 0;
    color: transparent;
    pointer-events: none;
}

.site-cookie-status:not(:empty) {
    padding: .75rem 1rem;
    border-radius: .7rem;
    box-shadow: 0 .75rem 2rem rgb(8 39 68 / .2);
    color: #fff;
    background: #0b4f72;
}

.site-footer__bottom-links button {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    color: inherit;
    background: transparent;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.site-footer__bottom-links button:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 64rem) {
    .site-cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .site-cookie-banner__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 40rem) {
    .site-cookie-banner {
        right: .65rem;
        bottom: .65rem;
        left: .65rem;
        width: auto;
        max-height: calc(100dvh - 1.3rem);
        padding: .95rem;
        overflow-y: auto;
        border-radius: 1rem;
    }

    .site-cookie-banner__icon {
        display: none;
    }

    .site-cookie-banner__actions,
    .site-cookie-dialog__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .site-cookie-button {
        width: 100%;
    }

    .site-cookie-option {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-cookie-switch span,
    .site-cookie-switch span::after {
        transition: none;
    }
}
