/* Tokens fall back to literals so the banner survives on a page without style.css. */

.zxc-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 8000;
  font-family: var(--font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--ink, #0A0A0A);
  text-align: center;
}
.zxc-consent[hidden] { display: none; }
.zxc-consent *, .zxc-consent *::before, .zxc-consent *::after { box-sizing: border-box; }
.zxc-consent :where(button) { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit;
  -webkit-tap-highlight-color: transparent; }
.zxc-consent :where(h2, p) { margin: 0; padding: 0; }
.zxc-consent :focus-visible { outline: 2px solid var(--accent, #FF7A1A); outline-offset: 3px; }

.zxc-consent__card {
  background: var(--surface, #FFFFFF);
  border-radius: var(--radius, 1.5rem);
  padding: 26px 20px 20px;
  box-shadow: inset 0 4px 0 var(--accent, #FF7A1A),
    0 8px 16px rgba(10, 10, 10, 0.06), 0 24px 48px rgba(10, 10, 10, 0.14);
  animation: zxc-consent-rise 0.3s var(--ease, cubic-bezier(.2, .7, .2, 1)) both;
}

@keyframes zxc-consent-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.zxc-consent__title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.zxc-consent__copy {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #6B7280);
  text-wrap: pretty;
}
.zxc-consent__inline {
  color: var(--ink, #0A0A0A);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.zxc-consent__inline:hover { color: var(--accent, #FF7A1A); }

.zxc-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.zxc-consent__manage,
.zxc-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 999px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.18s var(--ease, cubic-bezier(.2, .7, .2, 1)),
    color 0.18s var(--ease, cubic-bezier(.2, .7, .2, 1)),
    transform 0.18s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.zxc-consent__manage {
  grid-column: 1 / -1;
  background: #FFF1E0;
  color: #C2560F;
}
.zxc-consent__manage:hover { background: #FFE0BD; color: var(--ink, #0A0A0A); }
.zxc-consent__btn {
  background: var(--ink, #0A0A0A);
  color: #FFFFFF;
}
.zxc-consent__btn:hover { background: var(--accent, #FF7A1A); transform: translateY(-1px); }

.zxc-consent__panel {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #E5E5E5);
  text-align: left;
}
.zxc-consent__panel[hidden] { display: none; }

.zxc-consent__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  cursor: pointer;
}
.zxc-consent__opt-text { flex: 1; min-width: 0; }
.zxc-consent__opt-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.zxc-consent__opt-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6B7280);
}

.zxc-consent__check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.zxc-consent__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-sm, 999px);
  background: #D9D5CE;
  transition: background 0.18s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.zxc-consent__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.28);
  transition: transform 0.18s var(--ease, cubic-bezier(.2, .7, .2, 1));
}
.zxc-consent__check:checked + .zxc-consent__track { background: var(--accent, #FF7A1A); }
.zxc-consent__check:checked + .zxc-consent__track::after { transform: translateX(18px); }
.zxc-consent__check:focus-visible + .zxc-consent__track {
  outline: 2px solid var(--accent, #FF7A1A);
  outline-offset: 3px;
}

.zxc-consent__btn--save { margin-top: 12px; width: 100%; }

@media (min-width: 720px) {
  .zxc-consent {
    left: 20px;
    right: auto;
    bottom: 20px;
    width: min(380px, calc(100vw - 40px));
    text-align: left;
  }
  .zxc-consent__card { padding: 26px 22px 22px; }
  .zxc-consent__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .zxc-consent__card { animation: none; }
  .zxc-consent__manage,
  .zxc-consent__btn,
  .zxc-consent__track,
  .zxc-consent__track::after { transition: none; }
}
