/* Commerce uses the atelier's existing Lantern & leaf tokens. */
.checkout-history{margin:32px 0 40px;padding:32px 0;border-block:1px solid var(--line);min-width:0}
.checkout-section-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:24px}.checkout-section-heading h2{margin-bottom:10px}.checkout-section-heading p{color:var(--muted)}
.checkout-panel{grid-column:1/-1;min-width:0}.checkout-panel>h2{font-size:1.5rem}.checkout-panel>p{max-width:70ch}
.checkout-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 32px;border:1px solid var(--line);border-radius:16px;padding:24px;margin:24px 0;background:var(--white)}
.checkout-offer>p,.checkout-offer>dl,.checkout-offer>label,.checkout-offer>button{grid-column:1/-1}.checkout-offer h3{font-size:1.25rem;margin-bottom:8px}.checkout-offer p{margin-bottom:0}.checkout-offer .check-row{margin:0;align-items:start}.checkout-offer .check-row>span{min-width:0;overflow-wrap:anywhere}.checkout-panel .checkout-offer>button{justify-self:start;background:var(--leaf);color:var(--white);border-color:var(--leaf)}.checkout-panel .checkout-offer>button:hover:not(:disabled){background:var(--leaf-hover)}
.checkout-total{font-size:1.75rem;font-weight:650;line-height:1.2;white-space:nowrap;color:var(--leaf)}.checkout-offer dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px 20px;margin:0;padding:16px 0;border-block:1px solid var(--line)}.checkout-offer dt{font-weight:650}.checkout-offer dd{margin:0;overflow-wrap:anywhere}
.checkout-orders{list-style:none;margin:0;padding:0;min-width:0}.checkout-order{padding:24px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,auto);gap:16px 32px;border-bottom:1px solid var(--line);min-width:0}.checkout-order:last-child{border-bottom:0}.checkout-order h3{margin:12px 0 8px;font-size:1.125rem}.checkout-reference{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}.checkout-order-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch}.checkout-order-actions>strong{font-size:1.25rem;color:var(--leaf);align-self:end;margin-bottom:4px}.checkout-order>details{grid-column:1/-1;font-size:.9375rem}.checkout-order>details>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:var(--leaf)}.checkout-order>details>p{margin:10px 0}
.checkout-status{display:inline-block;font-size:.875rem;font-weight:650;line-height:1.5;padding:4px 12px;border-radius:100px;background:var(--surface);color:var(--ink)}.checkout-status-paid{background:var(--leaf-soft);color:var(--leaf)}.checkout-status-pending,.checkout-status-uncertain,.checkout-status-prepared{background:var(--lantern-soft)}.checkout-status-failed{background:var(--error-bg);color:var(--error)}
.checkout-recovery{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--lantern-soft);margin:20px 0}.checkout-recovery h3{margin-bottom:10px}.checkout-help{font-size:.9375rem;color:var(--muted);margin-top:20px;overflow-wrap:anywhere}.checkout-help a{color:var(--leaf)}
@media(max-width:650px){.checkout-history{padding:24px 0}.checkout-section-heading{flex-direction:column;gap:12px}.checkout-offer{grid-template-columns:minmax(0,1fr);padding:20px;gap:16px}.checkout-total{font-size:1.5rem}.checkout-offer dl{grid-template-columns:minmax(0,1fr);gap:4px}.checkout-offer dd+dt{margin-top:12px}.checkout-order{grid-template-columns:minmax(0,1fr);gap:16px}.checkout-order-actions{align-items:start}.checkout-order-actions>strong{align-self:start}.checkout-order-actions .button{width:100%}}
