/* MEMZO checkout — layered on register.css (tokens, fields), legal.css (header CTA) and contact.css (chips, textarea). */

.checkout-page { --co-accent: #F0460E; }

.co-secure { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 50px; background: var(--reg-panel); font-size: 13px; font-weight: 600; color: var(--reg-ink); }
.co-secure svg { color: #1f9d55; }

/* ---------- stepper ---------- */
.co-steps { list-style: none; display: flex; gap: 10px; margin: clamp(4px, 1vw, 12px) 0 clamp(20px, 2.4vw, 32px); padding: 0; }
.co-step { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--reg-panel); color: var(--reg-muted); transition: background-color .3s, color .3s; }
.co-step__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--reg-bg); font-size: 14px; font-weight: 700; color: var(--reg-muted); }
.co-step__t { font-size: 15px; font-weight: 600; }
.co-step.is-current { background: var(--reg-ink); color: var(--reg-bg); }
.co-step.is-current .co-step__n { background: var(--co-accent); color: #fff; }
.co-step.is-done { color: var(--reg-ink); }
.co-step.is-done .co-step__n { background: var(--co-accent); color: #fff; font-size: 0; }
.co-step.is-done .co-step__n::after { content: "✓"; font-size: 14px; }

/* ---------- layout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(16px, 2vw, 28px); align-items: start; }
.co-panel { padding: clamp(26px, 3.6vw, 56px); border-radius: 32px; border: 1px solid var(--reg-line); background: var(--reg-bg); }
.co-title { margin: 0 0 10px; font-family: "DM Sans", sans-serif; font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; color: var(--reg-ink); }
.co-panel .co-lede { margin: 0 0 30px; max-width: 620px; font-size: 16.5px; line-height: 1.5; color: var(--reg-muted); }

.co-fieldset { margin: 0 0 30px; padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--reg-line); }
.co-fieldset legend { float: none; width: auto; margin: 0 0 16px; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--reg-muted); }
.co-fieldset--agree { border-bottom: 0; padding-bottom: 0; }
.co-fieldset .reg-check a, .co-files a { color: var(--reg-ink); text-decoration: underline; text-decoration-color: var(--co-accent); text-underline-offset: 3px; }
.co-files { margin-top: 14px; }

.co-prefix { position: relative; }
.co-prefix span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 600; color: var(--reg-muted); pointer-events: none; }
.co-prefix input { padding-left: 34px !important; text-transform: uppercase; }

/* ---------- buttons ---------- */
.co-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 50px; border: 1px solid var(--reg-ink); font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s, opacity .25s; }
.co-btn--primary { margin-left: auto; background: var(--co-accent); border-color: var(--co-accent); color: #fff !important; }
.co-btn--primary:hover:not(:disabled) { transform: translateY(-2px); background: var(--reg-ink); border-color: var(--reg-ink); color: var(--reg-bg) !important; }
.co-btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.co-btn--ghost { background: transparent; color: var(--reg-ink) !important; border-color: var(--reg-line); }
.co-btn--ghost:hover { border-color: var(--reg-ink); }

/* ---------- review ---------- */
.co-review { display: grid; gap: 12px; }
.co-review__group { padding: 20px 22px; border-radius: 20px; background: var(--reg-panel); }
.co-review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.co-review__head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--reg-muted); }
.co-review__head button { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--reg-ink); text-decoration: underline; text-decoration-color: var(--co-accent); text-underline-offset: 3px; cursor: pointer; }
.co-review dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.co-review dt { font-size: 14.5px; font-weight: 500; color: var(--reg-muted); }
.co-review dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--reg-ink); overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- payment ---------- */
.co-pay__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.co-status { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 50px; background: rgba(240, 70, 14, .1); font-size: 13px; font-weight: 600; color: var(--co-accent); white-space: nowrap; }
.co-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: co-pulse 1.8s ease-in-out infinite; }
@keyframes co-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.co-block { margin-bottom: 28px; }
.co-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--reg-ink); }
.co-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--reg-ink); color: var(--reg-bg); font-size: 12px; font-weight: 700; }

/* coin cards */
.co-coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.co-coin { position: relative; cursor: pointer; margin: 0; }
.co-coin input { position: absolute; opacity: 0; pointer-events: none; }
.co-coin__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 8px 15px; border-radius: 20px; border: 1px solid var(--reg-line); background: var(--reg-bg); text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s; }
.co-coin:hover .co-coin__card { border-color: var(--reg-ink); transform: translateY(-2px); }
.co-coin input:checked + .co-coin__card { border-color: var(--co-accent); box-shadow: 0 0 0 1px var(--co-accent), 0 10px 26px -18px rgba(240, 70, 14, .9); background: rgba(240, 70, 14, .05); }
.co-coin input:checked + .co-coin__card::after { content: ""; position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--co-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4.6 9.3 2.6 2.6 6-6.1' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.co-coin input:focus-visible + .co-coin__card { outline: 2px solid var(--reg-focus); outline-offset: 2px; }
.co-coin__icon { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.co-coin__icon--glyph { display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.co-coin__sym { font-size: 15px; font-weight: 700; color: var(--reg-ink); }
.co-coin__name { font-size: 12px; color: var(--reg-muted); }

/* network cards */
.co-nets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-net { position: relative; cursor: pointer; margin: 0; }
.co-net input { position: absolute; opacity: 0; pointer-events: none; }
.co-net__card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--reg-line); background: var(--reg-bg); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.co-net__card b { font-size: 15px; font-weight: 600; color: var(--reg-ink); }
.co-net__card em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--reg-muted); }
.co-net__card small { font-size: 12.5px; color: var(--reg-muted); }
.co-net:hover .co-net__card { border-color: var(--reg-ink); }
.co-net input:checked + .co-net__card { border-color: var(--co-accent); box-shadow: 0 0 0 1px var(--co-accent); background: rgba(240, 70, 14, .05); }
.co-net input:focus-visible + .co-net__card { outline: 2px solid var(--reg-focus); outline-offset: 2px; }
.co-net.is-off .co-net__card { opacity: .5; }
.co-net.is-off .co-net__card small { color: var(--co-accent); }

/* payment panel */
.co-pay { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; padding: 26px; border-radius: 26px; background: #0f0f0f; color: #fff; }
.co-pay::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -25%; top: -60%; background: radial-gradient(closest-side, rgba(240, 70, 14, .3), rgba(240, 70, 14, 0)); }
[data-bs-theme=dark] .co-pay { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.co-pay__qrwrap { display: grid; gap: 10px; justify-items: center; }
.co-pay__qr { display: grid; place-items: center; width: 184px; height: 184px; padding: 12px; border-radius: 18px; background: #fff; }
.co-pay__qr img, .co-pay__qr canvas { width: 160px !important; height: 160px !important; }
.co-pay__scan { font-size: 12px; color: rgba(255, 255, 255, .5); }
.co-pay__info { display: grid; gap: 16px; align-content: center; min-width: 0; }
.co-pay__k { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.co-pay__v { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-pay__amount b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.co-pay__amount small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .5); }
.co-pay__field code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); font-size: 13.5px; color: #fff; overflow-wrap: anywhere; }
.co-pay__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.co-pay__chip { display: inline-flex; gap: 6px; padding: 7px 13px; border-radius: 50px; background: rgba(255, 255, 255, .07); font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.co-pay__chip b { color: #fff; font-weight: 600; }

.co-icobtn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.co-icobtn:hover { background: #fff; border-color: #fff; color: #0f0f0f; }
.co-icobtn.is-copied { border-color: #4ade80; color: #4ade80; background: transparent; }
.co-icobtn--solid { height: 56px; border-color: var(--reg-line); color: var(--reg-ink); }
.co-icobtn--solid:hover { background: var(--reg-ink); border-color: var(--reg-ink); color: var(--reg-bg); }

.co-warn { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(240, 70, 14, .08); box-shadow: inset 3px 0 0 var(--co-accent); }
.co-warn svg { flex: none; margin-top: 1px; color: var(--co-accent); }
.co-warn p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--reg-ink); }

.co-tx { margin-top: 24px; }
.co-txrow { display: flex; gap: 10px; }
.co-txrow input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 14px !important; }
.co-unavailable { padding: 18px 22px; border-radius: 18px; background: var(--reg-panel); }
.co-unavailable p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--reg-muted); }
.co-unavailable a { color: var(--reg-ink); text-decoration: underline; text-decoration-color: var(--co-accent); text-underline-offset: 3px; }

/* ---------- done ---------- */
.co-done { text-align: left; }
.co-done__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; background: #1f9d55; }

/* ---------- order summary ---------- */
.co-side { position: sticky; top: 24px; display: grid; gap: 14px; }
.co-summary { position: relative; overflow: hidden; isolation: isolate; padding: 30px; border-radius: 32px; background: #0f0f0f; color: #fff; }
[data-bs-theme=dark] .co-summary { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.co-summary::before { content: ""; position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; right: -40%; top: -45%; background: radial-gradient(closest-side, rgba(240, 70, 14, .32), rgba(240, 70, 14, 0)); }
.co-summary .co-summary__tag { margin: 0 0 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.co-summary__plan { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.co-summary__name { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.co-summary .co-summary__desc { margin: 0; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.co-summary__change { flex: none; font-size: 13px; font-weight: 600; color: #fff !important; text-decoration: underline; text-decoration-color: var(--co-accent); text-underline-offset: 3px; }
.co-summary__feats { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 9px; }
.co-summary__feats li { position: relative; padding-left: 24px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.co-summary__feats li::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--co-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.2 9.3 2.4 2.4 5.2-5.3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.co-summary__lines { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.co-summary__lines div, .co-summary__total { display: flex; justify-content: space-between; gap: 12px; }
.co-summary__lines span { font-size: 14px; color: rgba(255, 255, 255, .6); }
.co-summary__lines b { font-size: 14px; font-weight: 600; color: #fff; }
.co-summary__total { align-items: baseline; padding-top: 18px; }
.co-summary__total span { font-size: 15px; font-weight: 600; color: #fff; }
.co-summary__total b { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; color: #fff; }
.co-summary .co-summary__small { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.co-summary__small a { color: rgba(255, 255, 255, .85) !important; text-decoration: underline; text-decoration-color: var(--co-accent); }
.co-trust { list-style: none; margin: 0; padding: 20px 22px; border-radius: 22px; background: var(--reg-panel); display: grid; gap: 10px; }
.co-trust li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.4; color: var(--reg-muted); }
.co-trust li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--co-accent); }
.co-trust a { color: var(--reg-ink); text-decoration: underline; text-decoration-color: var(--co-accent); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) { .co-grid { grid-template-columns: minmax(0, 1fr) 340px; } .co-coins { grid-template-columns: repeat(3, 1fr); } .co-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
  .co-summary__feats { display: none; }
}
@media (max-width: 575.98px) {
  .co-step { padding: 10px 12px; gap: 8px; border-radius: 14px; }
  .co-step__t { font-size: 13px; }
  .co-panel, .co-summary { border-radius: 24px; }
  .co-panel { padding: 24px 18px; }
  .co-review dl { grid-template-columns: 1fr; gap: 2px; }
  .co-review dd { margin-bottom: 8px; }
  .co-coins { grid-template-columns: repeat(2, 1fr); }
  .co-nets { grid-template-columns: 1fr; }
  .co-pay { grid-template-columns: 1fr; justify-items: center; padding: 20px; }
  .co-pay__info { width: 100%; }
  .co-pay__v { flex-wrap: wrap; }
  .co-icobtn--solid { width: 100%; }
  .co-txrow { flex-direction: column; }
  .co-btn { width: 100%; }
  .co-btn--primary { margin-left: 0; }
  .co-actions { flex-direction: column-reverse; }
}
