/* Public website styles; kept separate from the React administrator interface. */
.cookie-banner[hidden], [data-cookie-settings][hidden], #cookie-browser-preference[hidden] { display: none !important; }
.cookie-preferences:not([open]) { display: none; }
.cookie-banner, .cookie-preferences { color: #10213a; background: #fff; font-size: 14px; line-height: 1.6; text-align: left; }
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 3000; border-top: 3px solid var(--apdrc-blue, #2457d6); box-shadow: 0 -6px 28px #0010381a; max-height: 65vh; overflow-y: auto; }
.cookie-banner-inner { max-width: 1640px; margin: auto; padding: 22px 32px max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 32px; }
.cookie-banner-copy { flex: 1; min-width: 0; }
.cookie-banner h2, .cookie-preferences h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: inherit; }
.cookie-banner p, .cookie-preferences p { margin: 0; font-size: 14px; line-height: 1.6; color: #526078; }
.cookie-banner a, .cookie-preferences a { color: #2457d6; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-button { min-height: 44px; padding: 10px 18px; border: 1px solid #b5bfd0; border-radius: 6px; background: #fff; color: #10213a; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cookie-button:hover { background: #eef3fc; border-color: #2457d6; }
.cookie-button-primary { background: #2457d6; color: #fff; border-color: #2457d6; }
.cookie-button-primary:hover { background: #1842a7; color: #fff; }
.cookie-button:focus-visible, .cookie-close:focus-visible, .cookie-settings-link:focus-visible, #cookie-analytics:focus-visible, .cookie-banner a:focus-visible, .cookie-preferences a:focus-visible { outline: 3px solid #35c6bd; outline-offset: 3px; }
.footer-links .cookie-settings-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.8rem; font-weight: 700; line-height: 1.45; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cookie-preferences { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; margin: auto; border: 0; border-radius: 12px; box-shadow: 0 24px 80px #00103840; overflow-y: auto; }
.cookie-preferences::backdrop { background: #00103899; }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cookie-dialog-header h2 { margin: 0; }
.cookie-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #dce3ec; border-radius: 6px; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.cookie-category { padding: 20px 0; border-bottom: 1px solid #dce3ec; }
.cookie-category-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.cookie-category h3 { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.cookie-required { color: #0a5853; background: #d9f5ef; padding: 3px 10px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
#cookie-analytics { position: static; appearance: auto; opacity: 1; width: 22px; height: 22px; margin: 0; accent-color: #2457d6; cursor: pointer; }
.cookie-preferences .cookie-browser-preference { margin-top: 10px; color: #0a5853; }
.cookie-preferences .cookie-policy-note { padding: 20px 0; }
.cookie-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) { .cookie-banner-inner { align-items: flex-start; flex-direction: column; gap: 16px; } }
@media (max-width: 480px) {
    .cookie-banner-inner { padding: 18px 16px max(18px, env(safe-area-inset-bottom)); }
    .cookie-actions { width: 100%; }
    .cookie-button { flex: 1; padding-inline: 12px; }
    .cookie-preferences { padding: 20px; }
}
