/*
 * secure-booking-checkout-pay.css: the payment step in the phone-first
 * checkout (checkout-payment.js shapes its words; payment-step.js builds it).
 *
 * While paying, the heading and the plan switch above the form step aside (the
 * order bar still names the plan and price), the step opens with "Payment" and
 * who it is for, and the wallet button comes first. Also the optional question after an
 * unpaid Affirm return (affirm-return-question.js). Scoped under body.sbc.
 * See wiki/secure-booking-checkout.md.
 */

/* The payment step charges the plan sent to /submit, so the switch and the
   form's heading have nothing to say there. */
body.sbc .sb-paying .sbc-title,
body.sbc .sb-paying .sbc-plans {
  display: none;
}

body.sbc .sb-paying .sb-form {
  padding-top: 12px;
}

body.sbc .sb-back {
  color: var(--sbc-ink);
  font-family: var(--sbc-text);
}

body.sbc .sbc-pay-title {
  margin: 8px 0 4px;
  font-family: var(--sbc-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: var(--sbc-ink);
}

.sbc-pay-for {
  margin: 0 0 16px;
  color: var(--sbc-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.sbc-pay-edit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sbc-link);
  font: 600 14.5px var(--sbc-text);
  cursor: pointer;
}
.sbc-pay-edit:focus-visible {
  outline: 2px solid var(--sbc-apricot);
  outline-offset: 2px;
  border-radius: 3px;
}

body.sbc .sb-pay-echo {
  color: var(--sbc-muted);
  font-size: 14px;
}
body.sbc .sb-pay-echo .sb-pay-echo-edit {
  color: var(--sbc-link);
}
body.sbc .sb-pay-trust,
body.sbc .sb-secure-note {
  color: var(--sbc-muted);
  font-size: 13.5px;
  text-align: center;
}
body.sbc .sb-pay-trust a {
  color: var(--sbc-link);
}

/* ---- After an unpaid Affirm return --------------------------------------- */

.sb-affirm-q {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--sbc-line);
  border-radius: 12px;
  background: var(--sbc-card);
}
.sb-affirm-q-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.sb-affirm-q-options {
  display: grid;
  gap: 8px;
}
.sb-affirm-q-option {
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--sbc-line);
  border-radius: 8px;
  background: var(--sbc-page);
  color: var(--sbc-ink);
  font: 500 15px var(--sbc-text);
  text-align: left;
  cursor: pointer;
}
.sb-affirm-q-option:focus-visible {
  outline: 2px solid var(--sbc-apricot);
  outline-offset: 2px;
}
.sb-affirm-q-thanks {
  margin: 0;
  color: var(--sbc-muted);
  font-size: 14.5px;
}
