:root {
  --error: #B42318;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --error: #FDA29B;
  }
}

:root[data-theme="dark"] {
  --error: #FDA29B;
}

.container.narrow { max-width: 760px; }
.lede { margin-bottom: 32px; }

.notice { padding: 24px 0; color: var(--muted); text-align: center; }
.fine { margin: 8px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.error { min-height: 1.5em; margin: 12px 0 0; color: var(--error); font-size: 0.9375rem; font-weight: 500; }

.builder { padding: 0; }
.builder[hidden], fieldset[hidden] { display: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.group { margin: 0 0 32px; }
.group legend {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
.opt:hover { border-color: var(--link); }
.opt:has(input:checked) { border-color: var(--link); background: var(--good-bg); }
.opt.off { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.opt.off:hover { border-color: var(--border); }
.opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--link); }
.opt-label { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.opt-sub { display: block; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.opt-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.opt.off .opt-price { font-weight: 500; }

.summary {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.summary-row.save { color: var(--link); }
.summary-row.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 1.125rem; font-weight: 700; }

.fields label { display: block; margin: 16px 0 6px; font-size: 0.9375rem; font-weight: 600; }
.fields input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.fields input:hover { border-color: var(--muted); }

.consent { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
.consent input { flex: none; width: 24px; height: 24px; margin: 4px 0 0; accent-color: var(--link); }
.consent label { flex: 1; padding: 4px 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.cta { width: 100%; margin-top: 16px; }
.btn:disabled,
.btn:disabled:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

.result { text-align: center; }
.result p { margin: 0 0 16px; }
.result .msg { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.result .btn { width: auto; }

@media (min-width: 600px) {
  .options { grid-template-columns: repeat(2, 1fr); }
}
