:root{--jotain-line:#bac8c8;--jotain-white:#f8faf7;--jotain-ink:#243a43;--jotain-muted:#53676b;--jotain-blue:#275d70;--jotain-green-dark:#243a43}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Consent preferences open as a blocking choice without changing page content. */
html.analytics-consent-open,
html.analytics-consent-open body {
  overflow: hidden;
}

html.analytics-consent-fallback-open body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 24, 36, 0.72);
}

.analytics-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  box-sizing: border-box;
  display: grid;
  width: min(520px, calc(100vw - 40px));
  max-width: 520px;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 28px;
  gap: 24px;
  overflow: auto;
  border: 1px solid var(--jotain-line);
  border-radius: 6px;
  background: var(--jotain-white);
  box-shadow: 0 24px 64px rgba(10, 24, 36, 0.28);
  color: var(--jotain-ink);
}

.analytics-consent:not([open]) {
  display: none;
}

.analytics-consent::backdrop {
  background: rgba(10, 24, 36, 0.72);
}

.analytics-consent__copy {
  min-width: 0;
}

.analytics-consent__title {
  margin: 0;
  color: var(--jotain-ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.analytics-consent__copy p:not(.sr-only):not(.analytics-consent__title) {
  margin: 10px 0 0;
  color: var(--jotain-muted);
  font-size: 14px;
  line-height: 1.55;
}

.analytics-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--jotain-ink);
  border-radius: 4px;
  background: var(--jotain-white);
  color: var(--jotain-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}

.analytics-consent__actions .analytics-consent__accept {
  border-color: var(--jotain-blue);
  background: var(--jotain-blue);
  color: var(--jotain-white);
}

.analytics-consent__actions button:hover,
.analytics-consent__actions button:focus-visible,
.footer-preferences:hover,
.footer-preferences:focus-visible {
  outline: 2px solid var(--jotain-blue);
  outline-offset: 2px;
}

.footer-legal,
.site-footer .footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.footer-preferences {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--jotain-green-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}

@media (max-width: 720px) {
  .analytics-consent {
    width: calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 24px 20px;
    gap: 20px;
  }

  .analytics-consent__title {
    font-size: 19px;
  }

  .analytics-consent__actions {
    grid-template-columns: 1fr;
  }

  .analytics-consent__actions button {
    width: 100%;
  }

  .footer-legal,
  .site-footer .footer-legal {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-consent * {
    scroll-behavior: auto;
    transition: none;
  }
}

