/*
 * SBR2 — Activation checkout.
 * Same visual language as the registration wizard, so finishing a registration and paying
 * for it feel like one product rather than two.
 */
:root {
  --ac-ink: #1f2937;
  --ac-muted: #6b7280;
  --ac-line: #e5e7eb;
  --ac-soft: #f8fafc;
  --ac-focus: #1a73e8;
  --ac-shadow: 0 10px 30px rgba(15,23,42,.08);
  --ac-shadow-sm: 0 2px 10px rgba(15,23,42,.06);
}

#sbr2-activation-root { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ac-ink); }
/* No capitals anywhere in the flow — themes uppercase every <button>, and the id +
   universal selector is what outranks their class rules. Matches the wizard. */
#sbr2-activation-root, #sbr2-activation-root * { text-transform: none; }
.ac-wrap { max-width: 1040px; margin: 0 auto; padding: 24px 18px 48px; }

.ac-head { text-align: center; margin-bottom: 20px; }
.ac-head h1 { margin: 0 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
.ac-regnum { color: var(--ac-focus); letter-spacing: .06em; }
.ac-head p { margin: 0; color: var(--ac-muted); font-size: 15px; }

/* ── Steps ───────────────────────────────────────────────────── */
.ac-steps {
  list-style: none; display: flex; gap: 8px; margin: 0 0 22px; padding: 14px;
  background: #fff; border: 1px solid var(--ac-line); border-radius: 16px; box-shadow: var(--ac-shadow-sm);
}
.ac-step { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ac-muted); font-size: 13.5px; }
.ac-step-num {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 999px; display: grid; place-items: center;
  background: #f3f4f6; color: var(--ac-muted); font-weight: 800; font-size: 12.5px; border: 1px solid var(--ac-line);
}
.ac-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-step.current { color: var(--ac-ink); font-weight: 700; }
.ac-step.current .ac-step-num { background: var(--ac-focus); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(26,115,232,.25); }
.ac-step.done { color: var(--ac-ink); }
.ac-step.done .ac-step-num { background: #d1fae5; color: #065f46; border-color: transparent; }

/* ── Layout ──────────────────────────────────────────────────── */
.ac-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.ac-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ac-card {
  background: #fff; border: 1px solid var(--ac-line); border-radius: 16px;
  box-shadow: var(--ac-shadow); padding: 22px;
}
.ac-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.ac-lead { margin: 0 0 16px; color: var(--ac-muted); font-size: 14px; line-height: 1.5; }
.ac-muted { color: var(--ac-muted); font-size: 13px; display: block; margin-top: 2px; }
.ac-note {
  display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 0; padding: 11px 13px;
  background: var(--ac-soft); border-radius: 10px; font-size: 13px; color: var(--ac-muted); line-height: 1.5;
}

/* ── Period cards ────────────────────────────────────────────── */
.ac-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ac-plan {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 14px 16px; cursor: pointer; font-family: inherit; text-align: center;
  background: #fff; border: 2px solid var(--ac-line); border-radius: 14px;
  transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}
.ac-plan:hover { border-color: #b7c6e0; transform: translateY(-2px); box-shadow: var(--ac-shadow-sm); }
.ac-plan:focus-visible { outline: 3px solid rgba(26,115,232,.35); outline-offset: 2px; }
.ac-plan.selected { border-color: var(--ac-focus); background: #f5f9ff; }
.ac-plan-years { font-size: 15px; font-weight: 700; color: var(--ac-muted); }
.ac-plan.selected .ac-plan-years { color: var(--ac-focus); }
.ac-plan-total { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ac-plan-per { font-size: 12.5px; color: var(--ac-muted); }
.ac-plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.ac-plan-check {
  position: absolute; top: 8px; right: 9px; font-size: 11px; color: var(--ac-focus); opacity: 0;
  transition: opacity .14s ease;
}
.ac-plan.selected .ac-plan-check { opacity: 1; }

/* ── Add-ons ─────────────────────────────────────────────────── */
.ac-decal-toggle { margin-bottom: 2px; }
.ac-included {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1px solid #cfe0fb; border-radius: 12px; background: #f5f9ff; font-size: 15px;
}
.ac-included-badge {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 999px; display: grid;
  place-items: center; background: #16a34a; color: #fff; font-size: 11px; margin-top: 1px;
}
.ac-decal-body { margin-top: 16px; }
.ac-field { margin-bottom: 14px; }
.ac-field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  background: #fff; border: 1px solid var(--ac-line); color: var(--ac-ink);
}
.ac-chip:hover { border-color: #b7c6e0; background: var(--ac-soft); }
.ac-chip.selected { border-color: var(--ac-focus); background: #eaf2fe; color: var(--ac-focus); box-shadow: 0 0 0 1px var(--ac-focus) inset; }
.ac-swatch { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.ac-chip--swatch { padding-left: 10px; }

/* The preview is the reason this step exists — millimetres mean nothing on their own.
   The hull is drawn to scale, so 100 mm vs 300 mm is a real comparison, not a hint. */
.ac-hull {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow-sm); background: #cfe2f2;
}
.ac-hull-svg { display: block; width: 100%; height: auto; }
.ac-hull-body { filter: drop-shadow(0 10px 14px rgba(9, 30, 55, .28)); }
.ac-hull-number { transition: font-size .22s cubic-bezier(.2,.7,.3,1), fill .18s ease; }
.ac-hull-caption {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; background: #fff; border-top: 1px solid var(--ac-line);
  font-size: 12.5px; color: var(--ac-muted);
}
.ac-hull-caption strong { color: var(--ac-ink); }
.ac-hull-caption-sep { width: 4px; height: 4px; border-radius: 999px; background: var(--ac-line); }

/* ── Summary ─────────────────────────────────────────────────── */
.ac-summary {
  position: sticky; top: 20px; background: #fff; border: 1px solid var(--ac-line);
  border-radius: 16px; box-shadow: var(--ac-shadow); padding: 20px;
}
.ac-summary h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.ac-summary-lines { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ac-summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ac-summary-lines li span:first-child { color: var(--ac-muted); }
.ac-summary-lines li span:last-child { font-weight: 600; white-space: nowrap; }
.ac-summary-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--ac-line); font-weight: 800; font-size: 19px;
}
.ac-summary-vat { font-size: 12px; color: var(--ac-muted); margin-top: 3px; }

.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: filter .14s ease, box-shadow .14s ease, transform .08s ease;
}
.ac-btn-primary { background: var(--ac-focus); color: #fff; box-shadow: 0 10px 22px rgba(26,115,232,.25); }
.ac-btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.ac-btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.ac-btn-secondary { background: #fff; color: var(--ac-ink); border-color: var(--ac-line); }
.ac-btn-block { width: 100%; margin-top: 16px; }
.ac-fineprint { font-size: 12px; color: var(--ac-muted); text-align: center; margin: 10px 0 0; }
.ac-warn {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px;
  border-radius: 9px; background: #fffbeb; color: #92400e; font-size: 12.5px; line-height: 1.5;
}

/* ── States ──────────────────────────────────────────────────── */
.ac-loading { text-align: center; color: var(--ac-muted); }
.ac-error, .ac-done { display: flex; gap: 16px; align-items: flex-start; }
.ac-error > i { font-size: 26px; color: #dc2626; margin-top: 2px; }
.ac-done > i { font-size: 26px; color: #16a34a; margin-top: 2px; }
.ac-error h2, .ac-done h2 { margin: 0 0 6px; }
.ac-error p, .ac-done p { margin: 0 0 14px; color: var(--ac-muted); }

@media (max-width: 900px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-summary { position: static; }
  .ac-step-label { display: none; }
  .ac-step { flex: 0 0 auto; }
  .ac-steps { justify-content: center; }
}

/* The stern close-up: its own quiet strip under the boat, not a panel over it. */
.ac-hull-zoom { position: relative; padding: 12px 14px 0; background: #fff; }
.ac-hull-zoom-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0;
  color: #9aa3af; margin-bottom: 6px;
}
.ac-hull-zoom-svg {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--ac-line);
}

/* ── Steps 2-4 ───────────────────────────────────────────────────
   Single column once the order is fixed: the summary has done its job. */
.ac-single { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.ac-step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
#ac-payment-element { margin-top: 8px; min-height: 60px; }

.ac-ok {
  display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 11px 13px;
  border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 13px; line-height: 1.5;
}

/* Identity */
.ac-idsteps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-idsteps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.ac-idsteps i {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: #eaf2fe; color: var(--ac-focus); font-size: 14px;
}
.ac-verified { display: flex; gap: 14px; align-items: flex-start; }
.ac-verified-icon { font-size: 26px; color: #16a34a; margin-top: 2px; }
.ac-verified h2 { margin: 0 0 4px; }

/* Review */
.ac-review {
  display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 20px;
  margin: 16px 0 0; align-items: center;
}
.ac-review dt { color: var(--ac-muted); font-size: 14px; }
.ac-review dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ac-ink); }
.ac-review dd.is-missing { font-weight: 400; }
.ac-review dd input {
  width: 100%; padding: 9px 11px; font-size: 14.5px; font-family: inherit;
  border: 1px solid #f0c9a0; border-radius: 9px; background: #fffdf7; color: var(--ac-ink);
}
.ac-review dd input:focus { outline: none; border-color: var(--ac-focus); box-shadow: 0 0 0 3px rgba(26,115,232,.14); }

/* What happens next — straight from the follow-on ledger. */
.ac-followons { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-fo { display: flex; gap: 12px; align-items: flex-start; }
.ac-fo-icon { font-size: 17px; margin-top: 1px; }
.ac-fo--done .ac-fo-icon { color: #16a34a; }
.ac-fo--wait .ac-fo-icon { color: #b45309; }
.ac-fo--skip .ac-fo-icon { color: #9aa3af; }
.ac-fo-body { display: flex; flex-direction: column; }
.ac-fo-label { font-weight: 600; color: var(--ac-ink); font-size: 14.5px; }
.ac-fo--skip .ac-fo-label { color: var(--ac-muted); text-decoration: line-through; }
.ac-fo-note { font-size: 12.5px; color: var(--ac-muted); margin-top: 1px; }

.ac-final { display: flex; justify-content: center; margin-top: 4px; }

/* When the chosen letter height physically won't fit the owner's freeboard. */
.ac-hull-warn {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px;
  background: #fffbeb; color: #92400e; font-size: 13px; line-height: 1.5;
  border-top: 1px solid #fde68a;
}
.ac-hull-warn i { margin-top: 2px; flex: 0 0 auto; }

/* ── Step 4: soft checks and the declaration ─────────────────────── */
.ac-input {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--ac-line); border-radius: 10px; background: #fff; color: var(--ac-ink);
  box-sizing: border-box;
}
.ac-input:focus { outline: none; border-color: var(--ac-focus); box-shadow: 0 0 0 3px rgba(26,115,232,.14); }

/* A question, not a barrier — deliberately softer than the warning style. */
.ac-soft {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px;
  border-radius: 10px; background: #f5f9ff; color: #1e40af; font-size: 13px; line-height: 1.55;
}
.ac-soft i { margin-top: 2px; flex: 0 0 auto; }

.ac-declare { border: 2px solid #cfe0fb; }
.ac-declare-text {
  margin: 12px 0 0; padding: 16px; border-radius: 12px; background: var(--ac-soft);
  font-size: 14px; line-height: 1.65; color: var(--ac-ink);
}
.ac-declare-check {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.ac-declare-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ac-focus); cursor: pointer; }
.ac-declare-sign { display: block; margin-top: 18px; }
.ac-signature {
  font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 22px; letter-spacing: .02em;
}

/* ── Step 5: the confirmation checklist ──────────────────────────── */
.ac-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-check { display: flex; gap: 12px; align-items: flex-start; }
.ac-check-icon { font-size: 18px; margin-top: 1px; }
.ac-check--ok .ac-check-icon { color: #16a34a; }
.ac-check--todo .ac-check-icon { color: #b45309; }
.ac-check-body { display: flex; flex-direction: column; }
.ac-check-label { font-weight: 600; font-size: 15px; color: var(--ac-ink); }
.ac-check-note { font-size: 12.5px; color: var(--ac-muted); margin-top: 1px; }
.ac-final-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ac-line);
  font-size: 20px; font-weight: 800;
}
.ac-complete { text-align: center; padding: 40px 24px; }
.ac-complete-icon { font-size: 46px; color: #16a34a; display: block; margin-bottom: 12px; }
.ac-complete h2 { margin: 0 0 6px; font-size: 22px; }
.ac-complete .ac-lead { max-width: 420px; margin: 0 auto 20px; }
