/* =====================================================
   Card-first payments (MHMR lane B): the card button inside his Payment
   tile, the deposit / in-full choice, the sign-up form's "How do you want
   to pay?", and the thank-you page's pay card. Loaded only by the pages
   that use it (pay.html, register.html, register_thanks.html); built from
   main.css's tokens so it follows the site's visual system.
   ===================================================== */

/* ---- his page: the card box inside the Payment tile ---- */
.myreg-paynow {
  margin: 1rem 0 0.4rem;
  padding: 0.9rem 1rem 0.6rem;
  border: 1.5px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  background: #fff8f0;
}
.myreg-paynow .myreg-h { margin: 0 0 0.6rem; }
.myreg-paynow #paypal-button-container {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0.75rem 0 0.25rem;
  min-height: 48px;
}
.pay-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; }
.pay-choice-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  min-height: 48px;
}
.pay-choice-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pay-choice-opt:has(input:focus-visible) { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.pay-choice-opt input { margin: 0; grid-row: span 2; align-self: center; accent-color: var(--accent); }
.pay-choice-label { font-weight: 600; }
.pay-choice-amt {
  grid-column: 2;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent-strong);
}
.pay-choice-sub { grid-column: 2; color: var(--text-muted); font-size: 0.82rem; }
.pay-choice-one { margin: 0; font-size: 1.05rem; }
.pay-choice-one strong { font-family: var(--font-heading); font-weight: 800; color: var(--accent-strong); }
.pay-error {
  margin: 0.4rem 0 0.2rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: #6e2929;
  font-size: 0.92rem;
}
.pay-card-note { margin: 0.35rem 0 0; }
.myreg-inperson { background: var(--surface-2); }

/* ---- sign-up form: How do you want to pay? ---- */
.reg-intent .radio-card-title [data-amt] { font-family: var(--font-heading); font-weight: 800; }

/* ---- thank-you page: the pay card in step 1 ---- */
.thanks-paynow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.25rem; }
.thanks-paynow .btn { min-height: 48px; }
.thanks-ways { margin: 0.85rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.5; }
.thanks-ways li { padding: 0.45rem 0 0.45rem 1.1rem; position: relative; border-top: 1px dashed var(--border); }
.thanks-ways li:first-child { border-top: 0; }
.thanks-ways li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

@media (max-width: 560px) {
  .pay-choice { grid-template-columns: 1fr; }
  .thanks-paynow .btn { flex: 1 1 100%; }
}
