.unbiased-consent {
  position: fixed;
  z-index: 2147483647;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid #020618;
  border-radius: 0;
  background: #fff;
  color: #020618;
  box-shadow: 0 8px 30px rgb(0 0 0 / 18%);
  font-family: "JUST Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  animation: unbiased-consent-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
}

@keyframes unbiased-consent-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

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

/* Headline and body run as one paragraph to keep the banner short. */
.unbiased-consent__copy strong {
  display: inline;
  font-size: inherit;
}

.unbiased-consent__copy strong::after {
  content: " ";
}

.unbiased-consent__copy p {
  display: inline;
  margin: 0;
}

.unbiased-consent a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.unbiased-consent__actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.unbiased-consent button {
  min-width: 96px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #020618;
  border-radius: 0;
  background: #fff;
  color: #020618;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.unbiased-consent button:hover {
  background: #f2f2f2;
}

.unbiased-consent button:focus-visible {
  outline: 3px solid #f4513a;
  outline-offset: 2px;
}

.unbiased-consent .unbiased-consent__accept {
  background: #020618;
  color: #f7f9ff;
}

.unbiased-consent .unbiased-consent__accept:hover {
  background: #2b2b2b;
}

.unbiased-consent-manage {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.unbiased-consent-manage:hover {
  text-decoration-thickness: 2px;
}

.unbiased-consent-manage:focus-visible {
  outline: 3px solid #f4513a;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  /* !important: analytics.js sets 16px offsets inline. */
  .unbiased-consent {
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 4px 16px rgb(0 0 0 / 16%);
  }

  .unbiased-consent button {
    min-width: 0;
    padding: 4px 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .unbiased-consent {
    animation: none;
    scroll-behavior: auto;
  }
}

@media print {
  .unbiased-consent {
    display: none !important;
  }
}

/* Keep the banner from covering an open dialog (credits checkout) */
body:has(dialog[open]) .unbiased-consent{display:none}
/* Focus hand-back to <main> after a consent choice: no page-wide ring */
main[tabindex="-1"]:focus{outline:none}
