/* Only the cookie notice and preferences dialog; no site-wide typography. */
.selmarin-consent[hidden], .selmarin-consent [hidden] { display: none !important; }
.selmarin-consent { position: fixed; z-index: 2147483000; inset: auto 0 0; color: #002e58; font: 400 14px/1.55 Avenir, Arial, sans-serif; text-align: left; }
.selmarin-consent-managing { inset: 0; }
.selmarin-consent *, .selmarin-consent *::before, .selmarin-consent *::after { box-sizing: border-box; }
.selmarin-consent h2, .selmarin-consent h3, .selmarin-consent p, .selmarin-consent nav { margin: 0; color: inherit; }
.selmarin-consent h2 { font: 600 20px/1.3 Avenir, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.selmarin-consent h3, .selmarin-consent label { display: block; font: 600 15px/1.4 Avenir, Arial, sans-serif; letter-spacing: 0; }
.selmarin-consent p { font: 400 14px/1.55 Avenir, Arial, sans-serif; }
.selmarin-consent-banner { max-height: 65vh; overflow-y: auto; background: #fff; border-top: 1px solid #dce4eb; box-shadow: 0 -6px 28px #002e5812; }
.selmarin-consent-inner { display: flex; align-items: center; gap: 36px; max-width: 1440px; margin: 0 auto; padding: 22px 40px; }
.selmarin-consent-summary { flex: 1 1 580px; }
.selmarin-consent-summary h2 { margin-bottom: 6px; font-size: 18px; }
.selmarin-consent-summary p { max-width: 710px; color: #455c70; }
.selmarin-consent nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12px/1.5 Avenir, Arial, sans-serif; }
.selmarin-consent-summary nav { margin-top: 7px; }
.selmarin-consent nav a { color: #002e58; text-decoration: underline; text-underline-offset: 3px; }
.selmarin-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.selmarin-consent .selmarin-consent-actions button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-width: 112px; min-height: 44px; padding: 11px 19px; border: 1px solid #002e58; border-radius: 5px; background: #002e58; color: #fff; font: 500 14px/1.4 Avenir, Arial, sans-serif; text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.selmarin-consent .selmarin-consent-actions button:hover { background: #12446e; border-color: #12446e; }
.selmarin-consent .selmarin-consent-actions [data-choice="preferences"] { background: #fff; color: #002e58; border-color: #b7c8d5; }
.selmarin-consent .selmarin-consent-actions [data-choice="preferences"]:hover { background: #f2f6f9; border-color: #002e58; }
.selmarin-consent button:focus-visible, .selmarin-consent a:focus-visible, .selmarin-consent input:focus-visible, .selmarin-cookie-link:focus-visible { outline: 3px solid #008fd5; outline-offset: 3px; }
.selmarin-consent-overlay { position: fixed; z-index: 2147483001; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #001c37a6; overscroll-behavior: contain; }
.selmarin-consent-dialog { width: 100%; max-width: 560px; max-height: 90vh; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; background: #fff; border: 1px solid #dce4eb; border-radius: 12px; box-shadow: 0 20px 70px #001b3540; }
.selmarin-consent-dialog:focus { outline: none; }
.selmarin-consent-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.selmarin-consent .selmarin-consent-close { appearance: none; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -10px -8px 0; padding: 0; color: #002e58; background: transparent; border: 0; border-radius: 5px; font: 400 28px/1 Arial, sans-serif; cursor: pointer; }
.selmarin-consent .selmarin-consent-close:hover { background: #f0f5f8; }
.selmarin-consent .selmarin-consent-note { color: #587083; font-size: 13px; }
.selmarin-consent-categories { display: grid; gap: 12px; margin: 24px 0 20px; }
.selmarin-consent-category { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #dce4eb; border-radius: 8px; background: #f8fafc; }
.selmarin-consent-category p { margin-top: 6px; color: #587083; font-size: 13px; }
.selmarin-consent-always { flex: 0 0 auto; color: #355b54; background: #eaf3ef; padding: 5px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.selmarin-consent input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 44px; position: relative; display: block; width: 44px; height: 26px; margin: 0; border: 1px solid #91a5b6; border-radius: 20px; background: #aebdc9; cursor: pointer; box-shadow: none; }
.selmarin-consent input[type="checkbox"]::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #002e5820; }
.selmarin-consent input[type="checkbox"]:checked { background: #002e58; border-color: #002e58; }
.selmarin-consent input[type="checkbox"]:checked::before { left: 21px; }
.selmarin-consent input[type="checkbox"]::after { content: ''; position: absolute; inset: -9px 0; }
.selmarin-consent-dialog .selmarin-consent-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3eaf0; }
.selmarin-consent-dialog .selmarin-consent-actions button { flex: 1 1 0; min-width: 0; }
.selmarin-consent [data-consent-status] { flex-basis: 100%; color: #9d2727; font-size: 13px; }
.selmarin-consent [data-consent-status]:empty { display: none; }
.selmarin-consent-dialog [data-consent-status]:not(:empty) { margin-top: 12px; }
.selmarin-consent-inner:has([data-consent-status]:not(:empty)) { flex-wrap: wrap; }
.selmarin-cookie-link { appearance: none; font: inherit; font-size: 14px; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 1050px) {
    .selmarin-consent-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px 28px; }
    .selmarin-consent-summary { flex-basis: auto; }
}
@media (max-width: 600px) {
    /* Keep the footer preference link clear of the site's fixed back-to-top button. */
    .footer-wrapper-bottom .selmarin-cookie-link { margin-bottom: 64px; }
    .selmarin-consent-inner { padding: 18px 20px max(18px, env(safe-area-inset-bottom)); gap: 14px; }
    .selmarin-consent-summary h2 { font-size: 17px; }
    .selmarin-consent-summary p { font-size: 13px; }
    .selmarin-consent-banner .selmarin-consent-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
    .selmarin-consent-banner [data-choice="preferences"] { grid-column: 1 / -1; grid-row: 2; }
    .selmarin-consent .selmarin-consent-actions button { min-width: 0; padding: 11px 12px; font-size: 13px; }
    .selmarin-consent-overlay { padding: 16px; }
    .selmarin-consent-dialog { max-height: 90vh; max-height: calc(100dvh - 32px); padding: 22px 20px; border-radius: 10px; }
    .selmarin-consent-dialog h2 { font-size: 19px; }
    .selmarin-consent-category { padding: 15px; gap: 12px; }
    .selmarin-consent-categories { margin: 20px 0; }
    .selmarin-consent-always { max-width: 64px; text-align: center; }
    .selmarin-consent-dialog .selmarin-consent-actions { margin-top: 20px; padding-top: 18px; }
}
@media (forced-colors: active) {
    .selmarin-consent input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; }
    .selmarin-consent input[type="checkbox"]::before, .selmarin-consent input[type="checkbox"]::after { display: none; }
}
