// Agora Checkout — Apple-grade: 3 columns, clean, no clutter. const Checkout = ({ route, setRoute }) => { const data = window.AG_DATA; const item = data.byId[route.id] || data.items[0]; const seller = data.sellers[item.seller]; const [step, setStep] = useState(1); // 1 shipping, 2 payment, 3 review const [paid, setPaid] = useState(false); if (paid) { return (
Order #AG-26-04-21-9482

Paid. Authenticated. Shipping.

{seller.name} has been notified. We'll authenticate at our Berlin hub and ship within 48 hours. Track your order in your account.

); } return (
setRoute({ name:'product', id: item.id })}>← Back to piece

Checkout

{/* Step indicator */}
{[ { n: 1, l:'Address & shipping' }, { n: 2, l:'Payment' }, { n: 3, l:'Review & pay' }, ].map((s, i, arr) => (
setStep(s.n)} className="ag-flex ag-gap-3" style={{ flex: 1, alignItems:'center', padding:'18px 0', cursor:'pointer', borderBottom: step === s.n ? '2px solid var(--ag-ink)' : '2px solid transparent', marginBottom: -1, }}>
= s.n ? 'var(--ag-ink)' : 'transparent', color: step >= s.n ? '#fff' : 'var(--ap-fg-faint)', border:'1px solid '+(step >= s.n ? 'var(--ag-ink)' : 'var(--ap-border)'), display:'flex', alignItems:'center', justifyContent:'center', fontSize: 11, fontWeight: 600, fontFamily:'var(--ag-font-mono)' }}> {step > s.n ? : s.n}
= s.n ? 'var(--ag-ink)' : 'var(--ap-fg-muted)' }}>{s.l}
))}
{step === 1 && (

Where it ships

Shipping method

{[ { id:'ddp', l:'DDP Express · DHL', d:'Customs & duties included. 5–8 business days.', cost:'Included' }, { id:'std', l:'Standard ground', d:'Customs & duties included. 9–14 business days.', cost:'Included' }, { id:'cou', l:'Concierge hand-delivery (Berlin only)', d:'Authenticator brings it personally. Try-on at door.', cost:'+€60' }, ].map((m, i) => ( ))}
)} {step === 2 && (

How you'll pay

{[ { id:'card', l:'Credit / debit card', icon:'tag' }, { id:'klarna', l:'Klarna — 3 interest-free instalments', icon:'box' }, { id:'bank', l:'Bank transfer (SEPA)', icon:'send' }, { id:'escrow', l:'Escrow protection — release on receipt', icon:'shield' }, ].map((m, i) => ( ))}
{}}/> Use the same address as shipping.
)} {step === 3 && (

Confirm and pay

Ships to
Lea Kobayashi · Linienstraße 124, 10115 Berlin · Germany
Paying with
Visa ending 4242 · expires 11/28
Shipping method
DDP Express · DHL · 5–8 business days · all duties included

Funds are held in escrow until you receive and accept the piece. If anything is amiss, return within 14 days for a full refund. By placing this order, you agree to the Agora Buyer Terms.

)}
{step > 1 && }
{step < 3 ? ( ) : ( )}
{/* Order summary */}
); }; window.Checkout = Checkout;