body.cookie-notice-open {
    overflow: hidden;
}

#cookie-consent-backdrop {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    background: #000;
    opacity: 0.5;
}

.cookie-consent-banner,
.cookie-consent-settings {
    position: fixed;
    z-index: 2147483647;
}

.cookie-consent-banner {
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(27rem, 33rem);
    align-items: center;
    min-height: 148px;
    padding: 0.75rem clamp(1.75rem, 4vw, 4.25rem);
    color: #fff;
    background: linear-gradient(120deg, #04172f, #0b4272);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -0.8rem 2.5rem rgba(0, 0, 0, 0.25);
}

.cookie-consent-banner-copy {
    min-width: 0;
    padding-right: 2rem;
}

.cookie-consent-banner h2,
.cookie-consent-settings h2,
.cookie-consent-settings h3,
.cookie-consent-settings h4 {
    margin: 0;
}

.cookie-consent-banner h2 {
    color: #fff !important;
    font-size: 1.2rem;
    line-height: 1.15;
}

.cookie-consent-banner p {
    max-width: 48rem;
    margin: 0.25rem 0;
    font-size: 0.86rem;
    line-height: 1.32;
}

.cookie-consent-banner a {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.cookie-consent-banner-actions,
.cookie-settings-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.cookie-consent-primary,
.cookie-consent-secondary {
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: 0.5rem;
}

.cookie-consent-primary {
    color: #061d3c;
    background: #fff;
    border-color: #fff;
}

.cookie-consent-secondary {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
}

.cookie-consent-settings {
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(0.8rem, 3vw, 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cookie-consent-settings-panel {
    position: relative;
    width: min(100%, 41rem);
    max-height: min(38rem, calc(100vh - 2rem));
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    color: #132238;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.35);
}

.cookie-consent-settings h2 {
    padding-right: 2.25rem;
    color: #061d3c;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cookie-settings-intro {
    margin: 0.65rem 0 1.15rem;
    line-height: 1.5;
}

.cookie-settings-back {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: #061d3c;
    font-size: 1.5rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.cookie-category-list {
    display: grid;
    gap: 0.7rem;
}

.cookie-category {
    padding: 0.9rem;
    border: 1px solid #d8e0e8;
    border-radius: 0.65rem;
}

.cookie-category-unused {
    color: #526170;
    background: #f5f7f9;
}

.cookie-category-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-category h3 {
    color: #061d3c;
    font-size: 1.04rem;
}

.cookie-category p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-category-state {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.cookie-category-state input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #0759a2;
}

.cookie-category-unused-state {
    padding: 0.28rem 0.45rem;
    color: #526170;
    background: #e8edf2;
    border-radius: 999px;
}

.cookie-definition-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.cookie-definition {
    padding-top: 0.65rem;
    border-top: 1px solid #e1e7ed;
}

.cookie-definition h4 {
    font-family: monospace;
    font-size: 0.82rem;
}

.cookie-definition dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.8rem;
    margin: 0.5rem 0 0;
}

.cookie-definition dt {
    color: #526170;
    font-size: 0.72rem;
    font-weight: 700;
}

.cookie-definition dd {
    margin: 0.08rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.cookie-settings-actions {
    margin-top: 1rem;
}

.cookie-consent-banner a:focus-visible,
.cookie-consent-primary:focus-visible,
.cookie-consent-secondary:focus-visible,
.cookie-settings-back:focus-visible,
.cookie-settings-footer button:focus-visible {
    outline: 3px solid #f0b429;
    outline-offset: 3px;
}

.cookie-settings-footer {
    padding: 0 0 1rem;
}

.cookie-settings-footer button {
    padding: 0;
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    background: transparent;
    border: 0;
}

@media (max-width: 991.98px) {
    .cookie-consent-banner {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
    }

    .cookie-consent-banner-copy {
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent-banner {
        padding: 1rem;
        border-radius: 0.8rem 0.8rem 0 0;
    }

    .cookie-consent-banner-actions,
    .cookie-settings-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent-primary,
    .cookie-consent-secondary {
        width: 100%;
    }

    .cookie-consent-settings {
        align-items: end;
        padding: 0.65rem;
    }

    .cookie-consent-settings-panel {
        max-height: calc(100vh - 1.3rem);
        border-radius: 0.8rem;
    }

    .cookie-category-heading {
        flex-direction: column;
    }

    .cookie-definition dl {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-settings,
    .cookie-consent-banner *,
    .cookie-consent-settings * {
        scroll-behavior: auto;
    }
}
