/* Purchase surfaces extend MonarcaRosa's existing pink editorial system. */
.purchase-steps{display:flex;gap:18px;list-style:none;margin:0 34px 27px 0;padding:0;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}
.purchase-steps li{padding:0 0 12px;white-space:nowrap}.purchase-steps [aria-current]{color:var(--rose);border-bottom:2px solid var(--rose)}
.checkout-dialog{width:min(640px,94vw);max-height:92dvh;padding:38px 40px 30px}.checkout-dialog .modal-title{font-size:38px;line-height:1.13;margin:15px 0}.checkout-dialog .modal-title em{color:var(--rose)}
.checkout-intro{font-size:13px;line-height:1.7;margin:12px 0 22px;color:var(--muted)}
.purchase-items{list-style:none;padding:0;margin:0}.purchase-items li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding:15px 0}.purchase-items img{width:52px;height:64px;object-fit:cover;background:var(--pink)}
.purchase-items strong{font-size:14px;font-weight:500;line-height:1.5}.purchase-items small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:4px}.purchase-items b{font-size:13px;white-space:nowrap;font-weight:500}
.edit-bag{min-height:44px;font-size:12px;color:var(--rose);text-decoration:underline;text-underline-offset:4px;margin:6px 0 14px}
.checkout-dialog .checkout-summary{margin:22px 0 18px}.checkout-dialog .total-row{font-size:13px;padding:7px 0}.checkout-dialog .total-row.total{font-size:17px;margin-top:10px;padding-top:17px}.checkout-dialog .full-button{margin-top:14px;min-height:52px;font-size:13px}
.purchase-test-note{font-size:11px;line-height:1.8;color:var(--muted);margin:18px 0}.purchase-test-note strong{font-weight:500;color:var(--ink)}
.purchase-resume{background:var(--pink);padding:13px 16px;font-size:12px;line-height:1.7;border-left:2px solid var(--rose);margin:15px 0 22px}
.checkout-recovery:not([hidden]){display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:12px;margin-top:12px}.checkout-recovery a{text-decoration:underline;text-underline-offset:4px}.checkout-recovery button{min-height:44px}
.bag-bottom>.field-label{font-size:12px}.bag-bottom>select{margin:8px 0 18px;width:100%}.bag-bottom .coupon-form{margin-top:2px}.bag-bottom .total-row{font-size:13px}.bag-bottom .total-row.total{font-size:17px}.bag-bottom .small-note{font-size:11px;line-height:1.75}.bag-bottom .button{font-size:12px}
.payment-layout{max-width:1180px;padding:0 5vw;gap:6vw;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);align-items:start}.payment-art{position:sticky;top:32px;margin-top:26px}.payment-art img{height:510px;object-fit:cover}.payment-panel{min-width:0;padding-top:24px}.payment-panel h1{font-size:clamp(36px,3.8vw,52px);margin:19px 0 24px}.payment-panel p{font-size:13px;line-height:1.8}.payment-panel .payment-intro{margin:18px 0 24px;color:var(--muted)}
.payment-status{border:0;border-bottom:1px solid var(--line);padding:0 0 16px;margin:20px 0 16px;background:transparent}.payment-status strong{font-size:13px;margin:0;display:flex;gap:8px;align-items:center}.payment-status span{display:block;font-size:11px;color:var(--muted);margin-top:8px}.payment-status[data-state="paid"] strong:before{content:'✓';display:grid;place-items:center;width:22px;height:22px;border:1px solid #49715b;border-radius:50%;color:#31513e}.payment-status[data-state="pending"] strong:before{content:'';width:7px;height:7px;border-radius:50%;background:#9b713c}
.payment-receipt{border-block:1px solid var(--line);padding:19px 0 18px}.receipt-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px}.receipt-heading h2{font:400 23px var(--serif);margin:0}.receipt-heading>span{font-size:10px;letter-spacing:.05em;color:var(--muted)}
.payment-lines{margin:12px 0 15px}.payment-lines li{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:13px 0}.payment-lines strong{font-size:13px;font-weight:500}.payment-lines small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.payment-lines b{font-size:13px;font-weight:500;white-space:nowrap}.receipt-totals{margin:0}.receipt-totals>div{display:flex;justify-content:space-between;gap:16px;padding:6px 0;font-size:12px}.receipt-totals dt{color:var(--muted)}.receipt-totals dd{margin:0;white-space:nowrap}.receipt-totals .receipt-total{padding-top:16px;font-size:18px}.receipt-total dt{color:var(--ink)}
.payment-actions{gap:12px;margin:22px 0 14px}.payment-actions .button{font-size:12px;min-height:48px}.payment-actions>a:not(.button){font-size:12px;text-align:center;padding:10px}.payment-panel .payment-check{font-size:11px;color:var(--muted)}.payment-panel .purchase-test-note{font-size:11px;margin:18px 0}.test-card-help{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.test-card-help summary{font-size:12px;cursor:pointer;padding:8px 0}.test-card-help p{font-size:12px}.test-card-help code{font-size:12px;white-space:nowrap}
.payment-panel[data-payment-status="paid"]{background:transparent;padding:24px 0}.payment-panel[data-payment-status="paid"] h1{text-align:left;font-size:clamp(38px,3.8vw,52px);margin:18px 0 24px}.payment-panel[data-payment-status="paid"]>.eyebrow{text-align:left}.payment-panel[data-payment-status="paid"] .demo-wing-seal{margin:0 0 14px}.payment-panel .replay-butterflies{font-size:11px;min-height:40px}
.order-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}.order-history-heading h3{font:400 23px var(--serif);margin:0}.order-history-heading button{font-size:11px;min-height:44px}
.purchase-order{padding:19px 0;border-bottom:1px solid var(--line);margin:0}.purchase-order-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.purchase-order-head>strong{font-size:11px;letter-spacing:.03em}.order-state{font-size:10px;line-height:1.6;color:var(--muted)}.order-state[data-state="paid"]{color:#31513e}.order-state[data-state="pending"]{color:#7c571f}.order-date{font-size:10px;line-height:1.7;color:var(--muted);margin:9px 0}.order-products{font-size:12px;line-height:1.8;margin:12px 0;overflow-wrap:anywhere}.purchase-order-foot{display:flex;justify-content:space-between;align-items:center;gap:14px}.purchase-order-foot strong{font-size:16px;font-weight:500}.purchase-order-foot a{font-size:11px;min-height:44px;display:inline-flex;align-items:center;color:var(--rose);text-decoration:underline;text-underline-offset:4px}.purchase-order.is-current{border-left:2px solid var(--rose);padding-left:14px}
@media(max-width:720px){
 .checkout-dialog{width:calc(100% - 20px);max-width:none;padding:34px 20px 24px}.checkout-dialog .modal-title{font-size:34px}.purchase-steps{gap:14px;font-size:10px;margin-bottom:23px}.purchase-items li{grid-template-columns:44px minmax(0,1fr) auto;gap:10px}.purchase-items img{width:44px;height:58px}.purchase-items strong{font-size:13px}.purchase-items small{font-size:11px}.purchase-items b{font-size:12px}.checkout-dialog .field,.bag-bottom .field{font-size:16px}.checkout-dialog .field-label{font-size:12px}.checkout-dialog .full-button{font-size:12px}.checkout-dialog .checkout-summary{margin-top:18px}
 .payment-layout{display:block;margin:18px auto 38px;padding:0 6vw}.payment-art{display:none}.payment-panel,.payment-panel[data-payment-status="paid"]{padding:14px 0}.payment-panel h1,.payment-panel[data-payment-status="paid"] h1{font-size:39px;line-height:1.12}.payment-panel[data-payment-status="paid"] .demo-wing-seal{width:52px;height:44px;margin:0 0 13px}.payment-panel .eyebrow{font-size:9px}.payment-panel p{font-size:13px}.payment-actions .button{min-height:50px;font-size:12px}.receipt-heading{flex-wrap:wrap;gap:7px}.receipt-heading h2{font-size:24px}.receipt-totals>div{font-size:12px;line-height:1.6}.receipt-totals .receipt-total{font-size:18px}.receipt-totals dt{max-width:72%}.account-header .back-shop{font-size:11px}.account-header .back-shop span{display:inline}.account-header{grid-template-columns:1fr auto}.account-header .wordmark>span{font-size:27px}.purchase-order-head{gap:8px}
}

.checkout-dialog #checkoutForm{display:contents}.checkout-submit{position:sticky;bottom:-30px;background:var(--paper,#fff0f5);margin:20px -40px -30px;padding:10px 40px 24px;border-top:1px solid var(--line);z-index:2}.checkout-submit .purchase-test-note{margin:0 0 8px;font-size:10px}.checkout-submit .full-button{margin:4px 0 0}.checkout-submit .form-message{margin-bottom:0}.checkout-submit .form-message:empty{display:none}
@media(max-width:720px){.checkout-submit{bottom:-24px;margin:16px -20px -24px;padding:12px 20px 20px}.checkout-submit .purchase-test-note{line-height:1.6}}

/* Stock controls remain usable at narrow widths. */
.bag-row-controls{flex-wrap:wrap}.bag-row-controls>.small-note{flex-basis:100%;order:3;margin:0}.quantity button{min-width:44px;min-height:44px}.coupon-form input{font-size:16px}.remove-item{min-height:44px}
