.cookie-notice {
    background: #eff6fa;
    border-bottom: 1px solid #c1d8e5;
    color: #153246;
}

.cookie-notice[hidden],
.cookie-settings-link[hidden],
.cookie-preferences:not([open]) {
    display: none;
}

.cookie-notice-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.cookie-notice-inner > div:first-child {
    flex: 1 1 28rem;
}

.cookie-notice h2,
.cookie-preferences h2 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.cookie-notice p,
.cookie-preferences p {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

.cookie-notice a,
.cookie-preferences a {
    color: #0b527a;
    text-decoration: underline;
}

.cookie-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.cookie-choices button,
.cookie-close {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    color: #0b4261;
    background: #fff;
    border: 1px solid #276583;
    border-radius: 0.25rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    cursor: pointer;
}

.cookie-choices button:hover,
.cookie-close:hover {
    background: #deedf5;
}

.cookie-notice :focus-visible,
.cookie-preferences :focus-visible,
.cookie-settings-link:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 3px;
}

.cookie-preferences {
    box-sizing: border-box;
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: 1.5rem;
    color: #153246;
    background: #fff;
    border: 1px solid #c1d8e5;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem #15324633;
    overflow: auto;
}

.cookie-preferences::backdrop {
    background: #10283a99;
}

.cookie-preferences p + p,
.cookie-preferences .cookie-choices,
.cookie-preferences form {
    margin-top: 1rem;
}

.cookie-settings-link {
    display: block;
    margin: 0.25rem auto 0;
    padding: 0.45rem;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 32rem) {
    .cookie-choices {
        width: 100%;
    }

    .cookie-choices button {
        flex: 1 1 9rem;
    }
}
