.cookie-consent-layer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cookie-banner { position: absolute; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-width: 1040px; max-height: calc(100vh - 24px); margin-inline: auto; overflow-y: auto; padding: 18px; color: #01080D; background: #fff; border: 1px solid #C6DCE9; border-radius: 18px; box-shadow: 0 18px 50px rgb(1 8 13 / 22%); pointer-events: auto; }
.cookie-banner__copy p { font-size: 14px; line-height: 1.55; }
.cookie-banner__copy a,
.cookie-panel a { display: inline-flex; min-height: 44px; align-items: center; color: #115787; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner__actions { display: grid; gap: 8px; margin-top: 14px; }
.cookie-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid #115787; border-radius: 8px; font: 700 14px/1.35 Inter, Arial, sans-serif; cursor: pointer; }
.cookie-button--primary { color: #fff; background: #115787; }
.cookie-button--primary:hover { background: #01080D; border-color: #01080D; }
.cookie-button--outline { color: #115787; background: #fff; }
.cookie-button--outline:hover { color: #fff; background: #115787; }
.cookie-button--plain { color: #115787; background: #EAF5FB; border-color: #51A9DB; }
.cookie-button--plain:hover { background: #D7EDF8; }
.cookie-button:focus-visible,
.cookie-panel__close:focus-visible,
.cookie-toggle input:focus-visible + span,
.footer-cookie-preferences:focus-visible,
.legal-cookie-preferences:focus-visible { outline: 3px solid #D65C12; outline-offset: 3px; }
.cookie-panel-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 12px; background: rgb(1 8 13 / 58%); pointer-events: auto; }
.cookie-panel { width: min(100%, 680px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px; color: #01080D; background: #fff; border: 1px solid #C6DCE9; border-radius: 18px; box-shadow: 0 22px 70px rgb(1 8 13 / 30%); }
.cookie-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-panel__eyebrow { margin-bottom: 5px; color: #D65C12; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cookie-panel h2 { color: #115787; font-size: clamp(25px, 7vw, 34px); }
.cookie-panel__close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #C6DCE9; border-radius: 50%; color: #115787; background: #fff; font-size: 27px; line-height: 1; }
.cookie-panel__description { margin-top: 14px; color: #455965; font-size: 14px; line-height: 1.6; }
.cookie-preference-list { display: grid; gap: 10px; margin-top: 18px; }
.cookie-preference { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 15px; border: 1px solid #D8E4EB; border-radius: 12px; }
.cookie-preference h3 { color: #115787; font-size: 17px; }
.cookie-preference p { margin-top: 5px; color: #455965; font-size: 13px; line-height: 1.5; }
.cookie-toggle { position: relative; display: inline-flex; }
.cookie-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-toggle > span:last-child { position: relative; display: block; width: 48px; height: 28px; border: 1px solid #A9BDC8; border-radius: 999px; background: #E3EBEF; cursor: pointer; transition: background-color .18s, border-color .18s; }
.cookie-toggle > span:last-child::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(1 8 13 / 25%); content: ''; transition: transform .18s; }
.cookie-toggle input:checked + span { background: #115787; border-color: #115787; }
.cookie-toggle input:checked + span::after { transform: translateX(20px); }
.cookie-toggle input:disabled + span { cursor: not-allowed; opacity: .72; }
.cookie-panel__footer { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 18px; }
.cookie-panel__footer .cookie-button { width: 100%; }
.cookie-panel-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-cookie-preferences { display: flex; min-height: 34px; align-items: center; padding: 0; border: 0; color: #C6D5DF; background: transparent; font: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; cursor: pointer; }
.footer-cookie-preferences:hover { color: #fff; text-decoration-color: currentColor; }
.landing-footer .footer-cookie-preferences { min-height: 44px; color: #fff; text-decoration-color: currentColor; }
.legal-cookie-preferences { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; margin-top: 14px; padding: 10px 16px; border: 1px solid #115787; border-radius: 8px; color: #115787; background: #fff; font: 700 14px/1.35 Inter, Arial, sans-serif; cursor: pointer; }
.legal-cookie-preferences:hover { color: #fff; background: #115787; }

@media (min-width: 768px) {
  .cookie-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 20px 22px; }
  .cookie-banner__actions { grid-template-columns: repeat(3, auto); align-items: center; margin-top: 0; }
  .cookie-panel { padding: 26px; }
  .cookie-panel__footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-panel__footer .cookie-button { width: auto; min-width: 210px; }
}

@media (max-width: 430px) {
  .cookie-banner { right: 12px; left: 12px; padding: 16px; }
  .cookie-panel { padding: 18px 16px; }
  .cookie-preference { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-toggle > span:last-child,
  .cookie-toggle > span:last-child::after { transition: none; }
}
