:root {
  --ink: #182235;
  --muted: #64748b;
  --line: #d9e0ea;
  --panel: #f5f7fb;
  --primary: #635bff;
  --primary-dark: #5148e5;
  --danger: #b42318;
  --success: #16794b;
  --shadow: 0 22px 60px rgba(25, 35, 55, .13);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
.test-banner { position: fixed; z-index: 3; inset: 0 0 auto; padding: 7px; background: #fef3c7; color: #854d0e; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.test-banner + .checkout-shell { padding-top: 28px; }
.checkout-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(440px, 1fr); }
.summary-panel { background: linear-gradient(145deg, #f7f8fc, #eef1f7); display: flex; justify-content: flex-end; padding: 72px 72px 48px 32px; }
.summary-inner { width: min(480px, 100%); }
.back-link { display: inline-flex; gap: 10px; color: #516077; text-decoration: none; font-size: 14px; font-weight: 650; margin-bottom: 62px; }
.brand-mark { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #6c63ff, #3730a3); color: white; font-weight: 800; box-shadow: 0 8px 20px rgba(99,91,255,.25); margin-bottom: 22px; }
.eyebrow { color: #667085; font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.summary-panel h1 { font-size: 42px; letter-spacing: -.04em; margin: 0 0 38px; }
.product-row, .total-row { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d8deea; padding: 0 0 28px; }
.product-row h2 { font-size: 16px; margin: 0 0 8px; }
.product-row p { color: var(--muted); line-height: 1.55; font-size: 14px; max-width: 320px; margin: 0; }
.product-row strong { white-space: nowrap; }
.total-row { border: 0; padding-top: 26px; font-size: 16px; }
.total-row strong { font-size: 20px; }
.trust-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 54px; color: #657086; font-size: 13px; line-height: 1.5; }
.trust-note p { margin: 0; }.trust-note strong { color: #344054; }
.shield { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: #e8e7ff; color: var(--primary); font-weight: 800; }
.payment-panel { display: flex; padding: 72px 32px 48px 72px; background: #fff; }
#payment-form { width: min(460px, 100%); }
#payment-form > h2 { font-size: 20px; margin: 0 0 28px; }
.field { margin-bottom: 20px; }
label, legend { display: block; font-size: 13px; font-weight: 700; color: #344054; margin-bottom: 8px; }
input, select { appearance: none; width: 100%; min-height: 48px; border: 1px solid var(--line); background: white; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #98a2b3; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,91,255,.13); position: relative; z-index: 1; }
.field > input, .field > select { border-radius: 8px; }
.field > select + input, .field > input + .split-fields, .field > .split-fields + input { margin-top: -1px; border-radius: 0; }
.field > select { border-radius: 8px 8px 0 0; }
.field > input:last-child { border-radius: 0 0 8px 8px; }
.amount-input-wrap { position: relative; }
.amount-input-wrap > span { position: absolute; left: 14px; top: 15px; z-index: 2; color: #667085; font-size: 13px; font-weight: 800; }
.amount-input-wrap input { border-radius: 8px; padding-left: 54px; font-size: 18px; font-weight: 700; }
.amount-field small { display: block; color: #667085; font-size: 11px; margin-top: 7px; }
.card-fields { border: 0; padding: 0; margin: 0 0 20px; }
.card-number-wrap { position: relative; }
.card-number-wrap input { border-radius: 8px 8px 0 0; padding-right: 70px; }
.card-brand { position: absolute; right: 13px; top: 15px; font-size: 10px; font-weight: 850; color: #667085; border: 1px solid #d0d5dd; border-radius: 4px; padding: 3px 5px; background: #fff; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; }
.split-fields input { margin-top: -1px; }
.split-fields input:first-child { border-radius: 0 0 0 8px; }
.split-fields input:last-child { margin-left: -1px; border-radius: 0 0 8px 0; }
.address-split input { border-radius: 0 !important; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; margin: 4px 0 20px; }
.checkbox-row input { appearance: auto; min-height: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.error-box { color: var(--danger); background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.pay-button, .secondary-button { border: 0; width: 100%; min-height: 50px; border-radius: 8px; background: var(--primary); color: white; font-size: 15px; font-weight: 750; cursor: pointer; box-shadow: 0 7px 18px rgba(99,91,255,.22); transition: transform .15s, background .15s; }
.pay-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pay-button:disabled { opacity: .72; cursor: wait; transform: none; }
.button-spinner { display: inline-block; width: 17px; height: 17px; margin-left: 9px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.button-spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.descriptor { text-align: center; color: #667085; font-size: 12px; line-height: 1.5; margin: 16px 0 24px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: #98a2b3; font-size: 11px; }.footer-links a { color: inherit; }
.result-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg,#f6f7fb,#eceffc); }
.result-card { width: min(520px, 100%); background: #fff; text-align: center; padding: 52px 42px; border-radius: 18px; box-shadow: var(--shadow); }
.result-card h1 { letter-spacing: -.025em; margin: 8px 0 12px; }.result-card > p { color: var(--muted); line-height: 1.6; }
.result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #edeefe; color: var(--primary); font-size: 30px; font-weight: 800; }
.result-icon.success { background: #e9f8f0; color: var(--success); }.result-icon.failed { background: #fef0ef; color: var(--danger); }
.order-reference { font-size: 12px; word-break: break-all; }.secondary-button { display: inline-grid; place-items: center; width: auto; padding: 0 24px; text-decoration: none; margin-top: 18px; }
@media (max-width: 820px) {
  .checkout-shell { display: block; }
  .summary-panel, .payment-panel { padding: 38px 22px; justify-content: center; }
  .summary-panel { padding-top: 48px; }.back-link { margin-bottom: 38px; }
  .summary-panel h1 { font-size: 36px; }.trust-note { margin-top: 34px; }
  #payment-form { margin: auto; }
}
@media (max-width: 420px) { .summary-panel, .payment-panel { padding-left: 16px; padding-right: 16px; }.result-card { padding: 40px 22px; } }
