/* Consent banner + footer reopen control of the optional GTM hook (step 224). Linked only while tracking is on, so
   styles.css (and the site built without a container id) stays byte-identical. Colours from styles.css tokens.
   Contrast (WCAG AA, >= 4.5:1): #13243E on #FFFFFF 15.6:1; #2E5690 on #FFFFFF 7.4:1; #C3CEDC on #13243E 10.0:1. */
.consent-banner {
  /* Early in the DOM (right after the skip link, so Tab reaches it within the first stops) but pinned to the bottom
     of the viewport while it is open; tag.js gives <body> the same bottom padding meanwhile, so it never hides the
     footer. Above the app page bottom bar (z-index 85). Not a dialog and not a focus trap. */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 50vh;
  overflow-y: auto;
  background: #FFFFFF;
  color: #13243E;
  border-top: 1px solid #C8D3E0;
  box-shadow: 0 -10px 30px rgba(19, 36, 62, .12);
  padding: 16px 0;
}
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.consent-copy { min-width: 0; max-width: 760px; }
.consent-title { margin: 0 0 4px; font-size: 15px; font-weight: 750; line-height: 1.4; color: #13243E; }
.consent-text { margin: 0; font-size: 14px; line-height: 1.6; color: #13243E; overflow-wrap: anywhere; }
.consent-link { color: #2E5690; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.consent-link:hover { color: #193C74; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.consent-choice { min-height: 44px; min-width: 120px; white-space: normal; text-align: center; }

.consent-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #C3CEDC; /* on-dark */
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-open:hover { color: #FFFFFF; /* on-dark */ }
.consent-open:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

@media (max-width: 767px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { flex-wrap: nowrap; }
  .consent-choice { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-choice, .consent-choice:hover, .consent-choice:active { transition: none; transform: none; }
}
