:root {
  --consent-shadow: 0 28px 80px oklch(0.14 0.008 80 / 0.14);
}

html.consent-open {
  overflow: hidden;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: oklch(0.12 0.006 80 / 0.24);
  backdrop-filter: blur(14px);
}

.consent-panel {
  width: min(960px, 100%);
  border: 1px solid oklch(0.16 0.008 80 / 0.14);
  background:
    radial-gradient(circle at top right, oklch(0.95 0.03 275 / 0.32), transparent 34%),
    linear-gradient(180deg, oklch(0.99 0.004 85) 0%, oklch(0.97 0.005 85) 100%);
  color: oklch(0.16 0.008 80);
  box-shadow: var(--consent-shadow);
  padding: clamp(22px, 3vw, 34px);
}

.consent-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.48 0.008 80);
}

.consent-panel h2 {
  margin: 0 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.consent-copy p {
  margin: 0;
  max-width: 68ch;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: oklch(0.32 0.008 80);
}

.consent-copy p + p {
  margin-top: 10px;
}

.consent-note,
.consent-legal {
  color: oklch(0.48 0.008 80);
}

.consent-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consent-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.consent-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid oklch(0.16 0.008 80 / 0.12);
  background: oklch(0.985 0.004 85 / 0.82);
}

.consent-option strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.16 0.008 80);
}

.consent-option small {
  display: block;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: oklch(0.48 0.008 80);
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: oklch(0.52 0.19 268);
  flex: 0 0 auto;
}

.consent-option.is-required {
  background: oklch(0.97 0.005 85);
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid oklch(0.16 0.008 80);
  border-radius: 999px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.consent-btn:hover {
  transform: translateY(-1px);
}

.consent-btn-ghost {
  background: transparent;
  color: oklch(0.16 0.008 80);
}

.consent-btn-ghost:hover {
  background: oklch(0.16 0.008 80);
  color: oklch(0.985 0.004 85);
}

.consent-btn-soft {
  background: oklch(0.97 0.005 85);
  color: oklch(0.16 0.008 80);
}

.consent-btn-soft:hover {
  background: oklch(0.94 0.008 85);
}

.consent-btn-solid {
  background: oklch(0.16 0.008 80);
  color: oklch(0.985 0.004 85);
}

.consent-btn-solid:hover {
  background: oklch(0.52 0.19 268);
  border-color: oklch(0.52 0.19 268);
  color: #fff;
}

.consent-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.consent-link-button:hover {
  color: oklch(0.16 0.008 80);
}

@media (max-width: 840px) {
  .consent-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .consent-banner {
    padding: 12px;
  }

  .consent-panel {
    padding: 20px;
  }

  .consent-actions {
    justify-content: stretch;
  }

  .consent-btn {
    width: 100%;
  }
}
