/* checkout.css — Pep Launchpad */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #1a1a1a; font-size: 14px; }

/* ── Container cap ────────────────────────────────────── */
.checkout-container { max-width: 1280px; margin: 0 auto; }

/* ── Desktop layout ───────────────────────────────────── */
.checkout-wrap  { display: flex; min-height: 100vh; }
.checkout-left  { flex: 1; background: #fff; padding: 40px 80px 60px; max-width: 56%; }
.checkout-right { width: 44%; background: #f5f5f5; border-left: 1px solid #e0e0e0; padding: 40px 56px 60px; }

/* ── Mobile header (hidden on desktop) ───────────────── */
.mobile-header  { display: none; background: #fff; border-bottom: 1px solid #e0e0e0; }
.mobile-header > a { display: block; padding: 14px 20px; border-bottom: 1px solid #e0e0e0; }
.summary-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: #f5f5f5; border: none; cursor: pointer;
  padding: 11px 20px; font-size: .85rem; color: #3b82f6; font-weight: 500;
}
.toggle-total { margin-left: auto; font-weight: 700; color: #1a1a1a; font-size: .9rem; }
.mobile-summary-panel { display: none; padding: 16px 20px; background: #f5f5f5; border-top: 1px solid #e0e0e0; }
.mobile-summary-panel.open { display: block; }

/* desktop-only hides on mobile */
.desktop-only { display: block; }

/* ── Mobile breakpoint ────────────────────────────────── */
@media (max-width: 900px) {
  .checkout-wrap  { flex-direction: column; }
  .checkout-left  { width: 100%; max-width: 100%; padding: 20px 16px 40px; }
  .desktop-only   { display: none !important; }
  .mobile-header  { display: block; }
}

/* ── Header ───────────────────────────────────────────── */
.checkout-logo { margin-bottom: 32px; }
.checkout-logo img { height: 40px; }
.checkout-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #999; margin-bottom: 28px; }
.checkout-breadcrumb span { color: #1a1a1a; font-weight: 500; }
.checkout-breadcrumb .sep { color: #ccc; }

/* ── Sections ─────────────────────────────────────────── */
.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 14px; }

/* ── Form controls ────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid #d0d0d0; border-radius: 6px; padding: 10px 12px;
  font-size: 14px; color: #1a1a1a; background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-control:focus, .form-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); outline: none; }
.form-control::placeholder { color: #aaa; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 10px; }
.form-control.is-valid   { border-color: #22c55e; background-image: none; }
.form-control.is-invalid { border-color: #ef4444; background-image: none; }
.invalid-feedback { font-size: .78rem; color: #dc2626; margin-top: 4px; display: none; }
.form-control.is-invalid ~ .invalid-feedback { display: block; }

/* ── Shipping tiers ───────────────────────────────────── */
#rightShipping   { display: none; }
#shippingSection { margin-bottom: 28px; }
.shipping-tiers  { display: flex; flex-direction: column; gap: 8px; }
.shipping-tier-row { border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.tier-active   { background: #1a1a1a; color: #fff; border: 2px solid #1a1a1a; }
.tier-inactive { background: #fff; border: 1.5px solid #e0e0e0; color: #bbb; }
.tier-radio { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0; position: relative; }
.tier-radio-on::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.tier-radio-off { border-color: #ccc; }
.tier-label    { font-weight: 600; font-size: .875rem; }
.tier-sublabel { font-size: .73rem; opacity: .65; margin-top: 1px; }
.tier-price    { font-weight: 700; font-size: .9rem; }
.tier-badge    { display: inline-block; background: #22c55e; color: #fff; font-size: .66rem; border-radius: 4px; padding: 1px 5px; margin-top: 2px; font-weight: 600; }

/* ── Payment methods ──────────────────────────────────── */
.payment-option { border: 1.5px solid #e0e0e0; border-radius: 8px; margin-bottom: 8px; }
.payment-option:has(.pm-radio:checked) { border-color: #1a1a1a; }
.pm-radio { display: none; }
.payment-label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.pm-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0; position: relative; }
.pm-radio:checked ~ .payment-label .pm-dot { border-color: #1a1a1a; }
.pm-radio:checked ~ .payment-label .pm-dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #1a1a1a; }
.pm-name { font-weight: 500; font-size: .9rem; }
.payment-instructions { padding: 10px 14px 14px; font-size: .85rem; color: #555; border-top: 1px solid #f0f0f0; line-height: 1.7; }
.pm-steps { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.pm-step  { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: #555; line-height: 1.55; }
.pm-step-n { width: 20px; height: 20px; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ── Payment Proof ────────────────────────────────────── */
.proof-steps { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.proof-step  { display: flex; align-items: flex-start; gap: 12px; }
.proof-step-num { width: 22px; height: 22px; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: .7rem; font-weight: 700; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.proof-step-title { font-size: .85rem; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.proof-step-desc  { font-size: .8rem; color: #6b7280; line-height: 1.5; }
.demo-receipt-wrap { margin-bottom: 20px; }
.demo-receipt-eyebrow { font-size: .72rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.demo-mock-receipt { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; max-width: 300px; isolation: isolate; }
.demo-mock-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.demo-mock-app    { font-weight: 700; font-size: .9rem; color: #1a1a1a; }
.demo-mock-status { font-size: .75rem; color: #16a34a; font-weight: 600; }
.demo-mock-amount { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; color: #1a1a1a; }
.demo-mock-row { display: flex; justify-content: space-between; font-size: .78rem; color: #6b7280; padding: 5px 0; border-top: 1px solid #f3f4f6; }
.demo-mock-row span:last-child { font-weight: 500; color: #1a1a1a; }
.demo-mock-txn span:last-child { font-family: monospace; color: #2563eb; }
.demo-mock-note { margin-top: 10px; font-size: .71rem; color: #9ca3af; text-align: center; font-style: italic; }
.upload-area { display: block; border: 1.5px dashed #d0d0d0; border-radius: 8px; padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: #fafafa; }
.upload-area:hover   { border-color: #3b82f6; background: #f0f7ff; }
.upload-area.has-file { border-color: #22c55e; background: #f0fdf4; border-style: solid; }
.upload-icon { margin-bottom: 8px; color: #9ca3af; }
.upload-area.has-file .upload-icon { color: #16a34a; }
.upload-label { font-size: .875rem; font-weight: 500; color: #374151; }
.upload-area.has-file .upload-label { color: #15803d; }
.upload-sub { font-size: .75rem; color: #9ca3af; margin-top: 4px; }
.upload-area.has-file .upload-sub { color: #16a34a; }

/* ── Verify ───────────────────────────────────────────── */
.verify-box     { border-radius: 8px; padding: 12px 14px; margin-top: 10px; font-size: .875rem; }
.verify-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.verify-fail    { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.verify-pending { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Submit ───────────────────────────────────────────── */
.btn-checkout { width: 100%; padding: 14px; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; margin-top: 20px; }
.btn-checkout:hover:not(:disabled) { background: #333; }
.btn-checkout:disabled { opacity: .4; cursor: not-allowed; }
.checkout-note { text-align: center; font-size: .78rem; color: #999; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── Order summary ────────────────────────────────────── */
.summary-title { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: #1a1a1a; }
.order-item    { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.item-image-wrap { position: relative; flex-shrink: 0; }
.item-img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid #e0e0e0; background: #f5f5f5; }
.item-img-placeholder { width: 58px; height: 58px; background: #eee; border-radius: 8px; }
.item-qty-badge { position: absolute; top: -6px; right: -6px; background: #888; color: #fff; font-size: .68rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.item-title   { font-size: .875rem; font-weight: 500; }
.item-variant { font-size: .78rem; color: #888; }
.item-vials   { font-size: .72rem; color: #aaa; }
.item-price   { font-size: .875rem; font-weight: 500; margin-left: auto; white-space: nowrap; }
.summary-divider { border: none; border-top: 1px solid #e0e0e0; margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: 6px; }
.summary-row .label { color: #666; }
.summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-top: 4px; }
.kit-row { display: flex; justify-content: space-between; font-size: .78rem; color: #999; margin-bottom: 3px; }
.secure-row { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #aaa; margin-top: 16px; justify-content: center; }
.secure-row svg { width: 14px; height: 14px; }
