/*
 * Cookie Notice's own look: every class starts with cookie-notice, so nothing here touches the site's pages and
 * nothing of the site's theme is needed. Its colours are its own; the button colour comes from the settings.
 */
.cookie-notice-box {
    --cookie-notice-colour: #2563eb;
    position: fixed;
    z-index: 2147483000;
    left: 0;
    right: 0;
    bottom: 0;
    font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    pointer-events: none;
}
.cookie-notice-box [hidden] {
    display: none !important;
}
.cookie-notice-banner {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
}
.cookie-notice-text {
    flex: 1 1 24rem;
    margin: 0;
}
.cookie-notice-link {
    margin-left: 0.35rem;
    color: var(--cookie-notice-colour);
    text-decoration: underline;
}
.cookie-notice-buttons {
    display: flex;
    gap: 8px;
}
.cookie-notice-button {
    padding: 8px 18px;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    background: var(--cookie-notice-colour);
    border: 1px solid var(--cookie-notice-colour);
    border-radius: 8px;
    cursor: pointer;
}
.cookie-notice-button:hover,
.cookie-notice-button:focus-visible {
    filter: brightness(1.08);
    color: #ffffff;
}
.cookie-notice-button--plain,
.cookie-notice-button--plain:hover,
.cookie-notice-button--plain:focus-visible {
    color: var(--cookie-notice-colour);
    background: #ffffff;
}
.cookie-notice-again {
    pointer-events: auto;
    position: fixed;
    left: 12px;
    bottom: 12px;
    padding: 4px 12px;
    font: inherit;
    font-size: 12px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    cursor: pointer;
}
.cookie-notice-left,
.cookie-notice-right {
    right: auto;
    left: 16px;
    bottom: 16px;
    max-width: min(380px, calc(100vw - 32px));
}
.cookie-notice-right {
    left: auto;
    right: 16px;
}
.cookie-notice-left .cookie-notice-banner,
.cookie-notice-right .cookie-notice-banner {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.cookie-notice-right .cookie-notice-again {
    left: auto;
    right: 12px;
}
@media (prefers-color-scheme: dark) {
    .cookie-notice-banner {
        color: #e2e8f0;
        background: #0f172a;
        border-color: #334155;
    }
    .cookie-notice-button--plain,
    .cookie-notice-button--plain:hover,
    .cookie-notice-button--plain:focus-visible {
        background: #0f172a;
    }
}
