/* Checkout + order confirmation */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.checkout-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.checkout-login { font-size: 14.5px; margin: -6px 0 20px; }
.checkout-step { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 14px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-step:first-of-type { border-top: 0; padding-top: 0; }
.checkout-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-style: normal; font-size: 14px; flex: none; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.checkout-submit { justify-self: start; }
.checkout-submit:disabled { opacity: .7; pointer-events: none; }

.opt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.opt-grid--pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { display: grid; gap: 4px; height: 100%; padding: 16px 16px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s, background .3s; }
.opt__box b { font-family: var(--ff-h); font-size: 16px; color: var(--ink); }
.opt__box small { font-size: 13px; color: var(--text); }
.opt__box em { font-style: normal; justify-self: start; margin-top: 4px; }
.opt__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.opt:hover .opt__box { border-color: rgba(225,56,50,.45); }
.opt input:checked + .opt__box { border-color: var(--red); background: rgba(225,56,50,.04); box-shadow: 0 0 0 4px rgba(225,56,50,.12); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--red); outline-offset: 2px; }

.trx-box { padding: 18px 20px; border-radius: 16px; background: var(--off); border: 1px dashed rgba(225,56,50,.35); display: grid; gap: 12px; margin: 6px 0; }
.trx-box[hidden] { display: none; }
.trx-box p { margin: 0; font-size: 14px; }
.trx-box h4 { margin: 0; font-size: 17px; }
.field--check a { color: var(--red); font-weight: 600; }

.sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh); }
.sum-card__name { font-size: 26px; margin: 10px 0 6px; }
.sum-card__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sum-card__price b { font-family: var(--ff-h); font-size: 34px; color: var(--ink); line-height: 1; }
.sum-card__price small { color: var(--muted); }
.sum-card__list { display: grid; gap: 8px; margin-bottom: 16px; }
.sum-card__list li { display: flex; gap: 10px; font-size: 14px; }
.sum-card__list .ic { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.sum-card__switch select { padding: 12px 14px; }

.sum-box { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.sum-box::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--red); filter: blur(100px); opacity: .35; right: -120px; top: -120px; pointer-events: none; }
.sum-box > * { position: relative; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14.5px; color: rgba(255,255,255,.75); }
.sum-row[hidden] { display: none; }
.sum-row b { color: #fff; font-family: var(--ff-h); font-weight: 600; text-align: right; }
.sum-row b s { opacity: .55; margin-right: 4px; font-weight: 400; }
.sum-row--total { border-bottom: 0; padding-top: 16px; font-size: 16px; color: #fff; }
.sum-row--total b { font-size: 28px; color: #fff; }
.sum-ref { margin: 8px 0 0; font-size: 13px; color: #5ee0b8; }
.sum-ref.is-bad { color: #ffb199; }
.sum-note { margin: 12px 0 0; font-size: 12.5px; color: rgba(255,255,255,.55); }
.sum-help { border-radius: var(--r-lg); }

/* Confirmation */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.order-no { font-family: var(--ff-h); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--ink); letter-spacing: .02em; word-break: break-all; }
.order-lines { display: grid; margin: 12px 0 18px; }
.order-lines > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.order-lines dt { color: var(--muted); }
.order-lines dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.order-lines__total dt, .order-lines__total dd { font-family: var(--ff-h); font-size: 18px; font-weight: 700; color: var(--ink); }
.pay-line strong { color: var(--red); }
.next-card { background: var(--ink); color: var(--text-light); border: 0; }
.next-card:hover, .account-card:hover { transform: none; }
.account-card p { font-size: 14.5px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.order-minimal { text-align: center; }
.order-minimal .order-no { margin: 8px 0 14px; }

@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .opt-grid, .opt-grid--pay { grid-template-columns: 1fr; }
  .order-lines > div { flex-direction: column; gap: 2px; }
  .order-lines dd { text-align: left; }
  .sum-card, .sum-box { padding: 22px; }
}
