.checkoutMain.cart-page{max-width:1600px;margin:36px auto;padding:0 clamp(16px,4vw,64px) 160px}
.cart-page h1{font-size:clamp(36px,5vw,58px);margin:8px 0 26px}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,350px);gap:22px;align-items:start}
.cart-products,.cart-summary{min-width:0}
.cart-page #checkoutItems{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:14px;align-items:stretch}
.cart-page .bagitem{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:15px;margin:0;border:1px solid #354054;border-radius:12px;background:#151d2b;overflow-wrap:anywhere}
.cart-page .cartattachment{min-width:0}
.cart-page .cartattachment img{width:100%;height:100px;object-fit:contain}
.cart-page .cartqty{margin-top:auto}
.cart-page .cartactions{display:flex;flex-wrap:wrap;gap:6px}
.cart-page .deliverychoices,.cart-page .pickupfields{grid-template-columns:1fr}
.cart-page .addressfields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cart-paybar{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#101725;border-top:1px solid #3e4a5e;box-shadow:0 -8px 30px #0005;padding:12px clamp(16px,4vw,64px) calc(12px + env(safe-area-inset-bottom,0px))}
.cart-pay-inner{max-width:1472px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.cart-pay-inner #checkoutNotice{margin:4px 0 0;font-size:12px;line-height:1.4;color:#bbc8da}
.checkoutMain.cart-page #paySquare{margin:0;min-height:46px;white-space:nowrap}
.cart-page [hidden]{display:none!important}
.cart-page .receipt-layout{display:block}
.cart-page .receipt-layout #checkoutItems{display:block}
.cart-page:has(.receipt-layout) .cart-paybar{position:static;margin-top:20px;border-radius:10px}
.cart-page .fulfillment{scroll-margin-bottom:145px}
@media(max-width:820px){.cart-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.cart-page #checkoutItems{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cart-page .bagitem{padding:9px;font-size:12px}.cart-page .studioPanel{padding:12px}.cart-page .cartattachment img{height:75px}.cart-pay-inner #checkoutNotice{font-size:10px}.checkoutMain.cart-page #paySquare{padding:10px 12px;font-size:12px}}
.cart-page .bagitem p{margin:0}
.cart-page .bagitem .sourcefiles:empty{display:none}
.cart-page .cart-print-details{margin:0;padding:0;background:transparent;border:0;font-size:11px}
.cart-page .cart-print-details summary{cursor:pointer;color:#b9c9df}
.cart-page .cart-print-details p{margin-top:6px}
@media(max-width:540px){.cart-page .bagitem .file-preview-frame{display:block}.cart-page .bagitem input{max-width:100%}.cart-page .cartattachment>*{min-width:0;overflow-wrap:anywhere}}
.checkoutMain.cart-page{margin-top:22px}
.cart-heading{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);align-items:center;gap:18px;margin-bottom:18px}
.cart-heading h1{margin:4px 0;font-size:clamp(32px,4vw,48px)}
.cart-quick{min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid #354054;border-radius:12px;background:#151d2b}
.cart-quick:has(#cartQuickTotals:empty){display:none}
.cart-quick .carttotal,.cart-quick .cartprice{margin:0;padding:0;border:0;font-size:14px}
.cart-pricing-info{margin:4px 0 0;padding:0;background:none;border:0;font-size:11px}
.cart-pricing-info .notice{max-width:360px;margin:6px 0 0}
.cart-quick .deliverychoices{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.cart-quick .deliveryoption{padding:7px 9px;font-size:11px;gap:5px;min-height:36px}
.cart-layout{grid-template-columns:minmax(0,1fr) minmax(240px,270px);gap:14px}
.cart-page .cart-summary{padding:14px}
.cart-page .cart-summary h2{font-size:19px;margin:0 0 10px}
.cart-page .cart-summary .fulfillment{margin:0;padding:0;border:0;background:none}
.cart-page .cart-summary .deliverytotal{display:none}
.cart-page .cart-summary .deliverysummary{margin:0}
.cart-paybar{width:min(650px,calc(100% - 24px));left:12px;right:12px;margin-inline:auto;bottom:10px;border:1px solid #3e4a5e;border-radius:12px;padding:8px 12px}
.cart-page:has(.receipt-layout) .cart-paybar{width:100%}
@media(max-width:820px){.cart-layout,.cart-heading{grid-template-columns:minmax(0,1fr)}}
.cart-page .cart-summary:has(#cartTotals:empty){display:none}
.cart-page .shippingaddress{margin:6px 0;padding:0;border:0}
.cart-page .shippingaddress h4{margin:0 0 8px;font-size:14px}
.cart-page .addressfields{gap:8px}
.cart-quick .deliveryoption{display:flex;align-items:center;border:1px solid #3e4a5e;border-radius:7px;cursor:pointer;background:#101725}
.cart-quick .deliveryoption:has(input:checked){border-color:#d4a525;background:#d4a52518}
.cart-quick .deliveryoption input{width:14px;height:14px;margin:0;flex:none;accent-color:#d4a525}
.cart-quick .deliveryoption b{margin-left:3px}

/* Keep the shipping form compact alongside the cart on desktop. */
@media(min-width:821px){
 .cart-summary .shippingaddress h4{margin-bottom:6px}
 .cart-summary .addressfields{gap:6px 8px}
 .cart-summary .addressfields label{line-height:1.3}
 .cart-summary .addressfields label:nth-child(3){grid-column:auto}
 .cart-summary .addressfields input,.cart-summary .addressfields select{margin-top:3px;padding:6px 8px;min-height:33px}
 .cart-summary .addressbook{padding:4px 0 8px}
 .cart-summary .addressbook .notice{margin:0 0 4px}
 .cart-summary .addressbook .subbutton{min-height:32px;padding:5px 8px}
 .cart-summary .addressbooktools{margin-top:6px;gap:6px}
 .cart-summary .addressconfirm{margin-top:7px;font-size:12px;line-height:1.35}
 .cart-summary .shippingcountry,.cart-summary .addressreview{margin:6px 0 0;line-height:1.35}
 .cart-summary .addressreview{padding:6px 8px}
}

/* Use the full card width for the preview and its description. */
.cart-page .bagitem .file-preview{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:9px}
.cart-page .bagitem .file-preview-frame{display:grid;width:100%;height:112px;place-items:center}
.cart-page .bagitem .file-preview-frame img{height:100%}
.cart-page .bagitem .file-preview-label{margin-bottom:3px}
.cart-page .bagitem .file-preview-info small{margin-top:3px}
@media(max-width:540px){.cart-page .bagitem .file-preview-frame{height:84px}}

.checkout-progress{box-sizing:border-box;width:min(440px,calc(100% - 32px));padding:24px;border:1px solid #39485e;border-radius:16px;background:#141c29;color:#f0f4fa}
.checkout-progress::backdrop{background:rgba(7,11,18,.76)}
.checkout-progress h2{margin:0 0 10px;font-size:1.35rem}
.checkout-progress p{margin:10px 0;color:#c4cede}
.checkout-progress progress{display:block;width:100%;height:12px;accent-color:#e7b836}

.checkoutMain #orderDownloads.receipt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px}
.checkoutMain #orderDownloads.receipt-actions:empty{display:none}
.checkoutMain #orderDownloads.receipt-actions>*{width:auto;max-width:100%;min-height:40px;padding:8px 12px;font-size:.875rem;overflow-wrap:anywhere}

.checkout-customer-name{display:grid;gap:6px;margin:0 0 16px}
.checkout-customer-name input{width:100%;box-sizing:border-box;padding:10px 12px}
.checkout-progress form{display:grid;gap:7px}
.checkout-progress form label{display:grid;gap:3px;font-size:.9rem}
.checkout-progress form input{box-sizing:border-box;width:100%;padding:7px}
.checkout-progress{max-height:calc(100dvh - 32px);overflow:auto}

.cart-pay-inner > :first-child{min-width:0}
.cart-payment-actions{display:flex;align-items:stretch;gap:8px;flex:0 0 auto}
.checkoutMain.cart-page .cart-payment-actions > .button:is(#paySquare,#payPayPal){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;width:auto;height:auto;min-height:46px;margin:0;padding:9px 12px;font-size:13px;line-height:1.2;white-space:normal;text-align:center}
.checkoutMain.cart-page .cart-payment-actions > .button[hidden]{display:none!important}
.cart-payment-actions > .button svg{display:block;flex:0 0 20px;width:20px;height:20px;margin:0}
.cart-payment-actions > .button span{min-width:0}
@media(max-width:580px){.cart-pay-inner{flex-wrap:wrap}.cart-payment-actions{flex:1 0 100%}.checkoutMain.cart-page .cart-payment-actions > .button:is(#paySquare,#payPayPal){flex:1;padding:8px}}

.cart-pay-inner{display:grid;justify-content:stretch;gap:6px}
.cart-payment-heading{margin:0;text-align:center;font-size:11px;line-height:1.2;color:#bbc8da}
.cart-payment-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px}
.cart-payment-row #cartPayTotal{font-size:14px;white-space:nowrap}
.cart-payment-row .cart-payment-actions{flex:0 1 auto;min-width:0}
.checkoutMain.cart-page .cart-payment-actions > .button:is(#paySquare,#payPayPal){min-height:36px;font-size:11px;padding:6px 9px}
.cart-payment-actions > .button svg{flex-basis:16px;width:16px;height:16px}
.cart-pay-inner #checkoutNotice:empty{display:none}
.receipt-layout ~ .cart-paybar .cart-payment-heading,.cart-page:has(.receipt-layout) .cart-payment-heading{display:none}

@media(max-width:820px){.checkoutMain .fulfillment{scroll-margin-top:110px}}
.checkoutMain.cart-page .cart-payment-actions > .button:is(#paySquare,#payPayPal){min-height:40px;font-size:12px}
