/* Estudios Védicos, checkout v2 (build 9, 26 Nov 2026): the page's own layer, on page/v2-base.css.
   Paid Memberships Pro with Stripe, drawn as a design: nothing charges. One section, the login page's formation:
   the order summary where login has its photograph (the locked offer card's look: photo, name, price, the offer
   points, a foot with the amount due today), the form sheet beside it in login's form design (paper sheet, its
   heads centred, its fields left). The photo of the summary card grows with the sheet, so both end on one line.
   Header: the logo only, no menu. Footer: the legal line only. No belly. Mobile first. Class prefix pay-. */


/* ---------------------------------------------------------------- 0. Chrome: logo only header, legal line footer */
.pay-hdr .hdr__in { justify-content: flex-start; }
.pay-foot { padding: 28px 0; }
.pay-foot .sfoot__legal { margin-top: 0; justify-content: center; text-align: center; }


/* ---------------------------------------------------------------- 1. The checkout */
#pago .pay-head h1 { margin: 0; font-size: var(--fs-h2); letter-spacing: -0.01em; text-wrap: balance; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; align-items: stretch; gap: var(--g2); }

/* The order summary: the offer card (shared .plan2), set in this grid on its own five lines. */
#pago .pay-sum { grid-row: auto; grid-template-rows: 220px repeat(4, auto); }
#pago .pay-sum .plan2__img { position: relative; height: auto; min-height: 0; }
#pago .pay-sum .plan2__img img { position: absolute; inset: 0; }
.pay-sum__foot { align-self: end; width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--g1); padding-top: var(--g2); border-top: 1px solid var(--line-light); }
.plan2--forest .pay-sum__foot { border-top-color: var(--line-dark); }
.pay-sum__total { margin: 0; font-size: var(--fs-lead); line-height: 1.45; }
.pay-sum__total b { font-weight: 600; }
.plan2--forest .pay-sum__total { color: var(--paper); }
.pay-sum__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g1); }

/* The form sheet: login's paper sheet. Heads centred (the step titles, the account line); fields left. */
.pay-sheet { align-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: none; padding: clamp(26px, 3.2vw, 44px); background-color: var(--paper); background-image: var(--noise), var(--surface-paper); background-blend-mode: soft-light, normal; border-radius: var(--rm); box-shadow: var(--pop); }
.pay-sheet > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
.pay-form { text-align: left; }
.pay-step { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.pay-step--card { margin-top: var(--s-5); }
.pay-step__legend { float: left; width: 100%; margin: 0; padding: 0; text-align: center; }
.pay-step__title { margin: 0; }
.pay-switch, .pay-who { margin: 0; text-align: center; }
.pay-switch .btn { margin: 0 0 0 var(--s-2); }
.pay-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--g1); color: var(--text); }
.pay-who b { font-weight: 600; }
.pay-sheet .fm-field { align-items: stretch; }
.pay-sheet .fm-field__error { flex-direction: row; align-items: flex-start; gap: var(--s-2); }

/* The card step, in the look of Stripe's card field: the number with a card mark, expiry and CVC side by side. */
.pay-cardno { position: relative; }
.pay-cardno__input { padding-right: 56px; }
.pay-cardno__input, #pay-exp, #pay-cvc { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pay-cardno__icon { position: absolute; top: 50%; right: 16px; display: flex; color: var(--musgo); transform: translateY(-50%); pointer-events: none; }
.pay-cardno__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: var(--s-4); }
.pay-stripe { margin: 0; }

/* The terms: a real checkbox in the form's colours, its label the whole line. */
.pay-agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; column-gap: var(--g1); min-height: 44px; padding-top: var(--s-2); }
.pay-agree input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; display: grid; place-content: center; border: 1px solid color-mix(in srgb, var(--verde) 45%, transparent); border-radius: var(--r); background: var(--white); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.pay-agree input::before { content: ""; width: 12px; height: 6px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .18s var(--ease); }
.pay-agree input:hover { border-color: var(--verde); }
.pay-agree input:checked { background: var(--verde); border-color: var(--verde); }
.pay-agree input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }
.pay-agree input:focus-visible { outline: 2px solid var(--oliva); outline-offset: 3px; }
.pay-agree label { padding-top: 1px; font-size: var(--fs-small); line-height: 1.5; color: var(--text); cursor: pointer; }
.pay-agree label a { color: var(--verde); }
.pay-agree-field.is-invalid .pay-agree input { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }

/* The pay button with the amount, a lock drawn in the button's own line; the small print under it. */
.pay-submit svg { width: 20px; height: 20px; }
.pay-small, .pay-note { margin: 0; }

@media (min-width: 1024px) {
  .pay-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); }
  /* The summary's photo takes the height the sheet needs, so the card and the sheet end on one line. */
  #pago .pay-sum { grid-template-rows: minmax(220px, 1fr) repeat(4, auto); }
}
@media (max-width: 767.98px) {
  #pago .pay-sum { grid-template-rows: 200px repeat(4, auto); }
  .pay-switch .btn { margin: var(--s-2) 0 0; }
}

/* Entrance, this section's own: the bill is laid down. The summary card slides in from the left as its photo
   settles, then the form sheet comes up beside it, the price's line drawing in under the amount. */
.js #pago .pay-sum { opacity: 0; transform: translateX(-32px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js #pago .pay-sum .plan2__img img { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.js #pago .pay-sheet { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .18s, transform .8s var(--ease) .18s; }
.js #pago.is-in .pay-sum, .js #pago.is-in .pay-sheet { opacity: 1; transform: none; }
.js #pago.is-in .pay-sum .plan2__img img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js #pago .pay-sum, .js #pago .pay-sheet, .js #pago .pay-sum .plan2__img img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pay-agree input, .pay-agree input::before { transition: none; }
}
