/* Insight consent banner and withdraw button, for the public site.
 * Loaded by {% insight_head %}. Leave that tag out and style
 * .in-consent yourself to match the site. */

.in-consent {
  --in-c-bg: #18181b;
  --in-c-text: #f4f4f5;
  --in-c-accent: #2563eb;
  --in-c-radius: 10px;

  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: var(--in-c-radius);
  background: var(--in-c-bg);
  color: var(--in-c-text);
  font: 14px/1.5 system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}
.in-consent.is-visible { opacity: 1; transform: none; }
.in-consent[hidden] { display: none; }
.in-consent__text { flex: 1 1 24rem; }
.in-consent__text p { margin: 0; }
.in-consent__lead { font-weight: 600; margin-bottom: 0.25rem !important; }
.in-consent a { color: inherit; }
.in-consent__actions { display: flex; gap: 0.5rem; }
.in-consent__actions button {
  padding: 0.55rem 1rem;
  border: 1px solid var(--in-c-accent);
  border-radius: 6px;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
.in-consent__accept { background: var(--in-c-accent); color: #fff; }
.in-consent__decline { background: transparent; color: var(--in-c-text); }

.in-withdraw { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .in-consent { transition: none; transform: none; }
}
