/* Compact, consent-first GA4 choice: no overlays or dark patterns. */
.ga4-consent-banner, .ga4-consent-manage { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ga4-consent-banner[hidden] { display: none !important; }
.ga4-consent-banner {
  position: fixed; z-index: 2147483000; inset: auto 12px 12px auto;
  width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  overflow-y: auto; box-sizing: border-box; padding: 14px 16px 10px;
  color: #142439; background: #fff; border: 1px solid #c9d4e1;
  border-radius: 12px; box-shadow: 0 8px 26px #1020302b;
  line-height: 1.45; text-align: left; font-size: 14px;
}
.ga4-consent-banner h2 {
  font: 700 17px/1.3 system-ui, sans-serif; color: #142439; margin: 0 0 5px;
}
.ga4-consent-banner p { margin: 0 0 9px; font-size: 14px; line-height: 1.45; color: #263b51; }
.ga4-consent-banner .ga4-consent-education { font-size: 13px; font-weight: 600; }
.ga4-consent-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 7px; align-items: center; }
.ga4-consent-action {
  min-height: 44px; width: 100%; padding: 8px 10px;
  border: 2px solid #173b65; border-radius: 7px;
  font: 650 14px/1.3 system-ui, sans-serif; color: #173b65; background: #f4f7fb;
  cursor: pointer;
}
.ga4-consent-action:first-child { background: #173b65; color: #fff; }
.ga4-consent-action:hover { filter: brightness(.95); }
.ga4-consent-controls a {
  grid-column: 1 / -1; justify-self: start;
  min-height: 36px; display: inline-flex; align-items: center;
  font-size: 13px; line-height: 1.3; color: #123c79; text-decoration: underline;
}
.ga4-consent-action:focus-visible, .ga4-consent-controls a:focus-visible,
.ga4-consent-manage:focus-visible { outline: 3px solid #bd7800; outline-offset: 3px; }
.ga4-consent-manage {
  display: inline-flex; align-items: center; margin: 4px;
  min-height: 44px; padding: 8px 10px;
  font: 14px/1.3 system-ui, sans-serif; color: inherit;
  background: transparent; border: 0; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 480px) {
  .ga4-consent-banner { inset: auto 8px 8px 8px; width: calc(100vw - 16px); padding: 12px 13px 8px; }
  .ga4-consent-action { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ga4-consent-banner, .ga4-consent-action { transition: none !important; animation: none !important; }
}
