/* Checkout: one page (your details and how you pay), the result pages, and the development stand-ins
   for StreamPay's pages. The site's own header and footer frame them. */

.co { padding-top: calc(var(--header) + 20px); padding-bottom: 112px; }

/* The way back and the steps, above the content */
.co-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: 30px; }
.co-bar.no-back { justify-content: center; }
.co-back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.co-back .arr { display: inline-block; transition: transform .3s var(--ease); }
.co-back:hover { color: #fff; }
.co-back:hover .arr { transform: translateX(4px); }
.co-back:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); }
.steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); }
.steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.steps .now { color: #fff; }
.steps .now span { background: #fff; color: var(--blue); box-shadow: none; }
.steps .done { color: var(--muted); }
.steps .done span { background: rgba(255, 255, 255, .16); box-shadow: none; }

/* ───────── The page: heading, the form, and the course beside it ───────── */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; grid-template-areas: "head sum" "form sum"; column-gap: 72px; align-items: start; }
.co-head { grid-area: head; margin-bottom: 30px; }
.co-h { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); line-height: 1.35; text-wrap: balance; }
.co-intro { color: var(--muted); margin-top: 6px; }
.co-form { grid-area: form; min-width: 0; }
.co-alert { padding: 14px 18px; border-radius: 14px; background: rgba(255, 159, 148, .14); box-shadow: inset 0 0 0 1px rgba(255, 159, 148, .35); color: #FFD9D4; font-size: 15.5px; margin-bottom: 28px; }
.co-form > .btn { margin-top: 4px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* a left offset would widen an RTL page */

/* Sections of the form */
.co-step { display: grid; gap: 22px; }
.co-step + .co-step { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }
.co-sh { font-family: var(--display); font-size: 25px; line-height: 1.4; margin-bottom: -4px; }
.co-step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-step legend { padding: 0; margin-bottom: 8px; }

/* Ways to pay: in full, or split */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .25s, color .25s; }
.opt:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); transition: box-shadow .25s var(--ease); }
.opt:has(input:checked) { background: #fff; color: var(--blue); box-shadow: 0 18px 40px -26px rgba(1, 20, 32, .8); }
.opt:has(input:checked) .opt-dot { box-shadow: inset 0 0 0 7px var(--blue); }
.opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.opt-body { display: grid; line-height: 1.6; }
.opt-body b { font-size: 17px; font-weight: 500; }
.opt-body small { font-size: 14px; color: var(--muted); }
.opt:has(input:checked) .opt-body small { color: rgba(20, 32, 153, .7); }
.opt-price { font-family: var(--display); font-weight: 700; font-size: 22px; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 6px; }
.opt-price small { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }
.opt:has(input:checked) .opt-price small { color: rgba(20, 32, 153, .7); }
/* when each payment falls, under the split the buyer picked */
.opt-sched { grid-column: 2 / -1; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(20, 32, 153, .12); display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; animation: rise .4s var(--ease) both; }
.opt:not(:has(input:checked)) .opt-sched { display: none; }
.opt-sched li { display: grid; font-size: 13.5px; line-height: 1.6; }
.opt-sched li > span { color: rgba(20, 32, 153, .65); }
.opt-sched .money { font-size: 15.5px; font-weight: 500; justify-self: start; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* more than one method (when a course offers them) */
.opts.methods .opt { grid-template-columns: 22px minmax(0, 1fr) auto; }
.opt-off { display: none; }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.opt:has(input:disabled) .opt-off { display: block; color: var(--warn) !important; }
.opt-logos .paylogos { margin: 0; gap: 10px; }
.opt:has(input:checked) .paylogos { color: var(--blue); }

/* Where the money goes: StreamPay's page, and the cards and wallets it takes */
.co-secure { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 2px; }
.co-secure p { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.co-secure .ic { flex: none; }
.co-secure .paylogos { margin: 0; gap: 14px; color: rgba(255, 255, 255, .8); }
.paylogos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: rgba(255, 255, 255, .78); }
.paylogos .brand { height: 22px; width: 38px; }
.paylogos .pl-mada { width: 44px; height: 16px; }
.paylogos .pl-mc { width: 30px; }
.paylogos .pl-ap, .paylogos .pl-sp { width: 54px; height: 34px; }
.pl-txt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* The button */
.co-go { margin-top: 40px; display: grid; gap: 14px; }
.co-go .btn { gap: 10px; }
.co-go .btn .money { font-weight: 500; }
.co-terms { font-size: 13.5px; color: var(--faint); text-align: center; text-wrap: balance; }

/* The waiting list, once joined: the confirmation in the heading's place */
.co-head-btn { margin-top: 24px; }
/* an address moves to its own line whole rather than breaking at a hyphen; only one longer than the line wraps */
.co-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: #fff; }

/* ───────── The course: what, when, what's included, the price ───────── */
.co-sum { grid-area: sum; position: sticky; top: calc(var(--header) + 20px); border-radius: 24px; padding: 24px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.co-sum-head { display: flex; gap: 14px; align-items: center; }
.co-sum-ic { flex: none; width: 58px; height: 58px; border-radius: 22.37%; position: relative; overflow: hidden; background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.co-sum-ic img { position: absolute; left: 4%; bottom: 0; width: 92%; max-width: none; }
.co-sum-when { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.co-sum-when b { color: #fff; font-weight: 500; }
.co-sum-title { font-family: var(--display); font-size: 21px; line-height: 1.45; margin-top: 2px; text-wrap: balance; }
.co-facts, .co-incl, .co-price { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.co-facts { list-style: none; display: grid; gap: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.co-facts li { display: flex; gap: 10px; align-items: flex-start; }
.co-facts .ic { flex: none; margin-top: 3px; }
.co-incl h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.co-incl ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.7; }
.co-incl li { display: flex; gap: 10px; align-items: flex-start; }
.co-incl .ic { flex: none; margin-top: 5px; color: var(--ok); }
.co-price { display: grid; gap: 6px; font-size: 15px; }
.co-price[hidden] { display: none; }
.co-price div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); }
.co-price dd { margin: 0; color: #fff; }
.co-price .disc dd { color: var(--ok); }
.co-price .tot { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.co-price .tot dt, .co-price .tot dd { color: #fff; font-size: 18px; font-weight: 500; }
.co-price div:first-child.tot { margin-top: 0; padding-top: 0; border-top: 0; }
.co-guarantee { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.co-guarantee .ic { flex: none; margin-top: 4px; color: var(--ok); }
.co-seats { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ───────── Results ───────── */
.res { max-width: 600px; margin: 8px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.res .co-h { margin-bottom: 8px; }
.res .co-intro { margin: 0 0 26px; }
.res-badge { width: 92px; height: 92px; margin-bottom: 20px; }
.res-badge svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.res-badge circle { fill: #fff; stroke: none; transform-origin: center; animation: badge-in .6s var(--spring) both; }
.res-badge path { stroke: var(--blue); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .35s forwards; }
.res-badge.bad circle { fill: rgba(255, 255, 255, .12); }
.res-badge.bad path { stroke: #fff; }
@keyframes badge-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.res-card { width: 100%; border-radius: 22px; padding: 6px 22px; background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); text-align: start; }
.res-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.res-row:last-child { border-bottom: 0; }
.res-row span { color: var(--muted); }
.res-row b { font-weight: 500; text-align: left; }
.res-note { font-size: 14px; color: var(--muted); padding: 0 0 14px; }
.res-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.res-actions form { display: contents; }
.res-small { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.next { list-style: none; margin: 48px 0 0; padding: 0; width: 100%; text-align: start; display: grid; gap: 4px; }
.next-h { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.next li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.next-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 700; }
.next li div { display: grid; line-height: 1.7; }
.next li b { font-weight: 500; }
.next li span { color: var(--muted); font-size: 15.5px; }
.dev-box { margin-top: 36px; display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; outline: 1.5px dashed rgba(255, 214, 10, .55); }
.dev-box span { font-size: 13px; color: var(--warn); }
.res-spin { width: 76px; height: 76px; margin-bottom: 22px; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .14); border: 4px solid transparent; border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── The development stand-ins for StreamPay's pages ───────── */
.mock-page, html:has(.mock-page) { background: #EEF0F5; color: #1A1C24; }
.mock { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; }
.mock-flag { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #FFE58A; color: #4A3B00; }
.mock-card { width: min(420px, 92vw); background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); display: grid; gap: 18px; }
.mock-merchant { display: flex; gap: 12px; align-items: center; }
.mock-merchant img { width: 42px; height: 42px; border-radius: 10px; background: var(--blue); }
.mock-merchant div { display: grid; line-height: 1.5; }
.mock-merchant span { font-size: 13.5px; color: #6B6F80; }
.mock-amount { display: grid; gap: 2px; padding: 18px 0; border-block: 1px solid #ECEDF2; text-align: center; }
.mock-amount > span, .mock-amount > small { font-size: 13.5px; color: #6B6F80; }
.mock-amount b { font-size: 40px; font-weight: 700; color: #1A1C24; }
.mock form { display: grid; gap: 10px; }
.mock-split { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.mock-split legend { font-size: 13.5px; color: #6B6F80; margin-bottom: 6px; }
.mock-split label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid #ECEDF2; cursor: pointer; font-size: 15px; }
.mock-split label:has(input:checked) { border-color: #1A1C24; }
.mock-split b { font-weight: 600; }
.mock-btn { height: 52px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mock-btn.ok { background: #1A1C24; color: #fff; }
.mock-pay { display: grid; gap: 8px; }
.mock-or { text-align: center; font-size: 13px; color: #6B6F80; margin-top: 6px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-btn.card { background: #F3F4F7; color: #1A1C24; font-size: 14.5px; }
.mock-btn.bad { background: #F3F4F7; color: #B3261E; }
.mock-cancel { text-align: center; font-size: 14px; color: #6B6F80; }
.mock-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.mock-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mock-lines span { color: #6B6F80; }
.mock-lines .sum { padding-top: 10px; border-top: 1px solid #ECEDF2; font-weight: 600; }
.mock-lines .sum span { color: #1A1C24; }

/* ───────── Narrower screens: one column, the course above the form ───────── */
@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "sum" "form"; grid-template-rows: none; max-width: 640px; margin-inline: auto; }
  .co-bar { max-width: 640px; margin-inline: auto; }
  .co-head { margin-bottom: 22px; }
  .co-sum { position: static; margin-bottom: 40px; }
}

@media (max-width: 760px) {
  .co { padding-top: calc(var(--header) + 8px); padding-bottom: 88px; }
  .co-bar { margin-bottom: 22px; }
  .steps li:not(.now) { font-size: 0; gap: 0; }
  .steps li + li::before { width: 16px; }
  .co-h { font-size: 34px; }
  .co-sum { padding: 20px; border-radius: 22px; }
  .co-step + .co-step { margin-top: 36px; padding-top: 32px; }
  .co-sh { font-size: 23px; }
  .opt { padding: 16px; column-gap: 12px; }
  .co-secure { justify-content: flex-start; }
  .co-go { margin-top: 32px; }
  .res-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .co-bar { gap: 10px; }
  .steps, .steps li { gap: 6px; }
  .steps li + li::before { width: 10px; }
  .opt-price { font-size: 19px; }
  .opt-price small { font-size: 13px; }
  .co-secure .paylogos { gap: 11px; }
  .paylogos .brand { width: 34px; height: 20px; }
  .paylogos .pl-mada { width: 40px; height: 14px; }
  .paylogos .pl-mc { width: 27px; }
  .paylogos .pl-ap, .paylogos .pl-sp { width: 48px; height: 30px; }
}
