/* Optional GA4 choices share the site's monochrome typography and rounded cards. */
.ga4-banner {
  position: fixed; inset: auto auto 1.25rem 50%; transform: translateX(-50%);
  z-index: 10010; box-sizing: border-box; width: min(800px, calc(100% - 2.5rem));
  max-height: calc(100dvh - 2.5rem); overflow: auto; overscroll-behavior: contain;
  padding: 0; background: #fff; color: #18181b; border: 1px solid #27272a;
  border-radius: 1.25rem; box-shadow: 0 12px 48px #18181b24;
  font: 400 .85rem/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
}
.ga4-banner[hidden] { display: none !important; }
.ga4-intro { position: relative; padding: 1.1rem 4.6rem 1.1rem 1.4rem; background: #18181b; color: #fff; border-radius: 1.15rem 1.15rem 0 0; }
.ga4-banner-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 1px solid #d4d4d8; border-radius: .65rem; background: transparent; color: #fff; font-size: 0; line-height: 0; cursor: pointer; }
.ga4-banner-close::before, .ga4-banner-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.ga4-banner-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ga4-banner-close:hover { background: #3f3f46; }
.ga4-banner-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.ga4-body { padding: 1.1rem 1.4rem; }
.ga4-banner .ga4-eyebrow { margin: 0 0 .35rem; color: #d4d4d8; font-size: .6rem; font-weight: 700; letter-spacing: .16em; }
.ga4-banner h2 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.ga4-intro > p:last-child { margin: 0; font-size: .8rem; line-height: 1.6; color: #e4e4e7; }
.ga4-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.ga4-button {
  display: flex; flex-direction: column; gap: .3rem; box-sizing: border-box; width: 100%;
  padding: .85rem; text-align: left; cursor: pointer; font-family: inherit;
  border: 1px solid #52525b; border-radius: .75rem; background: #fff; color: #18181b;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ga4-option-title { font-size: .82rem; font-weight: 700; line-height: 1.4; }
.ga4-option-detail { font-size: .73rem; font-weight: 400; line-height: 1.55; color: #52525b; transition: color .15s; }
.ga4-button:is(:hover, :focus-visible, :active) { background: #000; color: #fff; border-color: #000; }
.ga4-button:is(:hover, :focus-visible, :active) .ga4-option-detail { color: #fff; }
.ga4-button[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.ga4-button[aria-pressed="true"] .ga4-option-detail { color: #fff; }
.ga4-button:focus-visible, .ga4-links a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.ga4-banner .ga4-note { margin: 1rem 0 .35rem; font-size: .7rem; color: #52525b; }
.ga4-banner .ga4-links { margin: 0; font-size: .73rem; }
.ga4-links a { text-decoration: underline; text-underline-offset: 3px; }
.ga4-preferences { border-top: 1px solid #e4e4e7; padding-top: .8rem; color: #18181b; }
.ga4-preferences h4 { font-size: .85rem; font-weight: 700; margin: 0 0 .3rem; }
.ga4-status { font-size: .75rem; margin: 0 0 .7rem; }
.ga4-preferences .ga4-actions { grid-template-columns: 1fr; gap: .5rem; }
.ga4-preferences .ga4-button { padding: .7rem .8rem; gap: .2rem; }
.ga4-preferences .ga4-option-detail { font-size: .7rem; }
.ga4-modal > div:first-child { margin: -1.5rem -1.5rem 0; padding: 1rem 1.5rem; background: #18181b; border-bottom: 0; border-radius: 1rem 1rem 0 0; }
.ga4-modal > div:first-child h3, .ga4-modal > div:first-child button { color: #fff; }
.ga4-modal > p:first-of-type { padding-top: .65rem; }
#cookie-modal-content:has(.ga4-preferences) { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .ga4-banner { bottom: .75rem; width: calc(100% - 1.5rem); max-height: calc(100dvh - 1.5rem); border-radius: 1rem; }
  .ga4-intro { padding: 1rem 4.4rem 1rem 1.1rem; border-radius: .9rem .9rem 0 0; }
  .ga4-body { padding: 1rem 1.1rem; }
  .ga4-banner h2 { font-size: 1.2rem; }
  .ga4-intro > p:last-child { font-size: .76rem; }
  .ga4-actions { grid-template-columns: 1fr; gap: .5rem; }
  .ga4-button { padding: .7rem .85rem; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) { .ga4-button, .ga4-option-detail { transition: none; } }
