/* Site consent banner. Neutral by design - it inherits the host page's fonts and colours
 * through CSS variables, so it reads as part of the site rather than a bolted-on widget. */
.sc-root,
.sc-root *,
.sc-root *::before,
.sc-root *::after { box-sizing: border-box; }

.sc-root {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  /* Above the product tour (2147483100), not below it. The tour and this banner both appear
     on a first visit, and the tour's backdrop swallows every click behind it - which left the
     consent question on screen and unanswerable. The legal gate outranks the tour. */
  z-index: 2147483200;
  margin-inline: auto;
  max-width: 44rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--sc-line, rgba(15, 23, 42, .12));
  border-radius: 1rem;
  background: var(--sc-bg, #fff);
  color: var(--sc-fg, #0f172a);
  box-shadow: 0 10px 34px rgba(15, 23, 42, .16);
  font: inherit;
  font-size: .9375rem;
  line-height: 1.55;
  animation: sc-in .22s ease-out both;
}
@media (prefers-reduced-motion: reduce) { .sc-root { animation: none; } }
@keyframes sc-in { from { opacity: 0; transform: translateY(10px); } }

.sc-title  { margin: 0 0 .35rem; font-weight: 650; font-size: 1rem; }
.sc-body   { margin: 0; color: var(--sc-muted, #475569); }
.sc-more   { color: var(--sc-link, #0f766e); font-weight: 550; text-underline-offset: 2px; }
.sc-actions{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.sc-btn {
  padding: .5rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 550;
  cursor: pointer;
}
.sc-accept  { background: var(--sc-accent, #0f766e); color: #fff; }
.sc-decline { background: transparent; border-color: var(--sc-line, rgba(15, 23, 42, .18));
              color: var(--sc-fg, #0f172a); }
.sc-btn:focus-visible { outline: 2px solid var(--sc-accent, #0f766e); outline-offset: 2px; }

/* Both choices are one tap apart and styled as real buttons. A "Decline" hidden behind a
   link, or three clicks deep, is a dark pattern and fails the consent test outright. */

@media (prefers-color-scheme: dark) {
  .sc-root:not([data-theme="light"]) {
    --sc-bg: #0f172a; --sc-fg: #e2e8f0; --sc-muted: #94a3b8;
    --sc-line: rgba(226, 232, 240, .16); --sc-link: #5eead4; --sc-accent: #14b8a6;
  }
}
