/* Shared non-modal consent panel. */
.consent-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px max(4%, calc((100% - 1280px) / 2));
    background: #f7fafb;
    color: #12252d;
    border-bottom: 1px solid #e4ebed;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.consent-banner[hidden], .cookie-preferences[hidden] { display: none; }
.consent-content { flex: 1 1 360px; min-width: 0; }
.consent-content p { margin: 0 0 8px; }
.consent-content a { color: #087b82; text-decoration: underline; }
.consent-status:empty { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #087b82;
    border-radius: 8px;
    background: #ffffff;
    color: #087b82;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.consent-actions button:hover { background: #e9f9f9; }
.consent-banner:focus, .consent-banner :focus-visible {
    outline: 3px solid #087b82;
    outline-offset: -3px;
}
.cookie-preferences {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.footer .cookie-preferences:focus-visible { outline: 3px solid #63dfdc; outline-offset: 3px; }
@media (max-width: 430px) {
    .consent-actions { width: 100%; flex-direction: column; }
    .consent-actions button { width: 100%; }
}

/* Late consent UI must not displace the page beneath it. */
.consent-banner {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: 24px;
    width: min(560px, calc(100% - 48px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    border: 1px solid #e4ebed;
    border-radius: 12px;
}
@media (max-width: 650px) {
    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
}
