.cookie-consent {
    box-sizing: border-box;
    padding: 1rem;
    color: #222;
    background: #fff;
    border: 1px solid #767676;
    line-height: 1.5;
}

#analytics-preference {
    margin: 1rem auto;
    width: min(calc(100% - 2rem), 48rem);
}

#cookie-preferences {
    width: min(calc(100% - 2rem), 34rem);
    max-height: calc(100% - 2rem);
    overflow: auto;
    margin: auto;
}

#cookie-preferences::backdrop {
    background: rgb(0 0 0 / 60%);
}

.cookie-consent h2,
.cookie-consent h3 {
    margin: 0 0 .25rem;
}

.cookie-consent p {
    margin: 0 0 1rem;
}

.cookie-consent [role="status"]:empty {
    margin: 0;
}

.cookie-consent label {
    display: block;
    margin-bottom: 1rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.cookie-consent button {
    min-height: 44px;
    padding: .4rem .8rem;
    border: 1px solid currentColor;
    border-radius: .25rem;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-consent a {
    color: #164f79;
    text-decoration: underline;
}

.cookie-preferences-trigger {
    min-height: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent :focus-visible,
.cookie-preferences-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.cookie-consent :focus-visible {
    outline-color: #164f79;
}

.cookie-consent[hidden],
.cookie-consent [hidden],
.cookie-preferences-trigger[hidden] {
    display: none;
}
