/* mmr-checkout.css - the Whop ELEMENTS checkout form that replaced the old embed inside .checkout on / and /secret/ (2026-10-21).
   Loaded by both pages after their own sheet (sales.css on /, styles.css on /secret/); both define the same tokens (--ink, --accent,
   --accent-soft, --small, --cross, --font-body, --font-head). Rules are namespaced under .mmr-form so nothing else moves.
   House rule: no text under 16px (17px preferred); on iOS anything under 16px makes Safari zoom the page when a field takes focus. */

.mmr-form { padding: 18px 16px 20px; text-align: left; }
@media (min-width: 700px) { .mmr-form { padding: 22px 22px 24px; } }

.mmr-h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.mmr-h2 + .mmr-h2, .mmr-pay + .mmr-h2 { margin-top: 22px; }
.mmr-form .mmr-h2--pay { margin-top: 22px; }

.mmr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mmr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mmr-field--full { grid-column: 1 / -1; }
.mmr-field label { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--ink); }
.mmr-field input, .mmr-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.mmr-field input:focus-visible, .mmr-field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) { .mmr-grid { grid-template-columns: 1fr; } }

/* a [hidden] field must really disappear: display:flex would otherwise override the attribute */
.mmr-field[hidden] { display: none !important; }

.mmr-pay { margin-top: 4px; }
#whop-payment-element { min-height: 120px; }
#whop-branding { margin-top: 8px; }

.mmr-note { margin: 14px 0 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--small); }
.mmr-note a { color: var(--ink); }

#pay-error {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: #8a1c14;
  background: #fff5f4;
  border: 2px solid #e3b4b0;
  border-radius: 10px;
}
#pay-error.show { display: block; }

/* the pay button: house CTA orange, full width, same pill shape as the page's other CTAs */
.mmr-cta {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 20px 20px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  background: #f88900;
  border: 2px solid #f88900;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 6px 0 rgba(var(--accent-rgb), 0.55), 0 0 18px 0 rgba(var(--accent-rgb), 0.30);
}
.mmr-cta:hover:not(:disabled) { background: #e07b00; border-color: #e07b00; }
.mmr-cta:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.mmr-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 700px) { .mmr-cta { font-size: 18px; padding: 22px 24px; } }

.mmr-secure { margin: 10px 0 0; text-align: center; font-family: var(--font-body); font-size: 16px; color: var(--small); }

/* the Whop payment element used to need 320px of room inside .checkout__mount; the form sizes itself */
.checkout__mount.mmr-form { min-height: 0; }
