/* Approved cart geometry plus the explicitly confirmed rendered mockup palette.
   The final paint-only section shares that palette across gallery and dialogs. */
.storefront #shop-monogram{background:#000;border:0;overflow:hidden;border-radius:7px}
.storefront #shop-monogram img{display:block;width:100%;height:100%;object-fit:contain}
.storefront-page #order-dialog{width:min(1080px,calc(100vw - 28px));max-width:1080px;padding:0;border-width:1px;border-style:solid;border-radius:18px}
.storefront-page.product-mode #order-dialog .workspace-panel.checkout-cart,#order-dialog .checkout-cart{padding:0;min-width:0}
#order-dialog .checkout-brandbar{display:flex;align-items:center;gap:12px;margin:0;padding:14px 20px;border-bottom:1px solid var(--shop-line);background:var(--shop-panel)}
.checkout-brandbar>img{display:block;width:50px;height:50px;flex:none;object-fit:contain;border-radius:7px;background:#000}
.checkout-brandbar>div{flex:1;min-width:0}
.checkout-brandbar strong{display:block;font-size:14px;font-weight:600;letter-spacing:1.2px;overflow-wrap:anywhere}
.checkout-brandbar small{display:block;color:var(--shop-muted);font-size:11px;margin-top:3px}
#order-dialog .checkout-brandbar>button{width:44px;min-width:44px;min-height:44px;padding:5px;background:transparent;border:0;font-size:24px;flex:none}
#order-dialog .checkout-heading{padding:20px 20px 0;margin:0}
#order-dialog .checkout-heading h2{font-size:25px;line-height:1.3;letter-spacing:-.6px;font-weight:500}
#order-dialog .checkout-cart>p{font-size:12px;margin:5px 20px 17px;line-height:1.5}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;padding:0 20px 22px;align-items:start;min-width:0}
#order-dialog #order-review{border:0;padding:0;margin:0;min-width:0}
#order-dialog #order-review>summary{font-size:12px;padding:0 0 7px;min-height:30px}
#order-dialog #order-lines{max-height:none;overflow:visible;min-width:0}
#order-dialog .checkout-summary-panel{background:var(--shop-panel);border:1px solid var(--shop-line);border-radius:12px;padding:16px;min-width:0}
body:not(.product-mode) #checkout-product-summary{display:none}
#checkout-product-summary h3{font-size:15px;font-weight:500;margin:0 0 11px}
.checkout-count-line{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:12px;color:var(--shop-muted)}
.checkout-count-line output{font-variant-numeric:tabular-nums;color:var(--shop-ink);flex:none}
#checkout-product-total{margin:11px 0 0;border-top:1px solid var(--shop-line);padding-top:12px;font-size:12px}
#order-dialog .customer-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:14px 0}
#order-dialog .customer-fields label{margin:0;font-size:12px;gap:5px;min-width:0}
#order-dialog .customer-fields input,#order-dialog .customer-fields textarea,#order-dialog .customer-fields select{width:100%;min-width:0;min-height:44px;border-radius:8px;font-size:14px;padding:9px}
#order-dialog .customer-fields .requirement,#order-dialog #customer-email-help,#order-dialog #customer-note-help{font-size:11px;line-height:1.4}
#order-dialog .route-guidance{font-size:12px;margin:12px 0;padding:10px;border-radius:8px;overflow-wrap:anywhere}
#order-dialog .route-guidance h3{font-size:13px;margin:0 0 6px}
#order-dialog .route-guidance p{font-size:12px;margin:6px 0;line-height:1.5}
#order-dialog .order-submit-footer{position:static;background:transparent;padding:12px 0 0;border-top:1px solid var(--shop-line)}
#order-dialog .order-submit-footer #order-feedback{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#order-dialog .order-submit-footer .dialog-actions{display:block}
#order-dialog #send-live{width:100%;min-height:46px;border-radius:9px;font-size:13px;font-weight:600;padding:10px}
#order-dialog #send-live:disabled{opacity:.45}
#order-dialog .checkout-continue-browsing{display:block;margin:10px auto 0;min-height:44px;background:transparent;border:0;color:var(--shop-ink);font-size:12px;padding:7px}
#order-dialog .product-bag-group{border:1px solid var(--shop-line);border-radius:12px;margin:0 0 12px;overflow:hidden}
#order-dialog .cart-group-heading{display:flex;align-items:center;gap:4px;padding-right:8px}
#order-dialog .product-group-toggle{min-height:65px;padding:12px;gap:10px}
#order-dialog .product-group-toggle>svg{width:18px;height:18px;flex:none}
#order-dialog .product-group-toggle strong{font-size:14px;font-weight:500}
#order-dialog .product-group-toggle small{font-size:11px;margin-top:2px}
#order-dialog .cart-group-state{font-size:12px;margin-left:auto;flex:none}
#order-dialog .cart-new-design{min-width:44px;min-height:44px;border:0;background:transparent;font-size:22px;padding:4px}
#order-dialog .cart-preview-strip{display:flex;gap:6px;padding:0 12px 12px;align-items:center;min-width:0}
#order-dialog .cart-preview-strip button{width:36px;height:50px;min-width:36px;min-height:50px;border:0;background:var(--shop-raised);padding:0;border-radius:5px;overflow:hidden}
#order-dialog .cart-preview-strip img{display:block;width:100%;height:100%;object-fit:contain}
#order-dialog .cart-preview-strip small{font-size:11px;color:var(--shop-muted)}
#order-dialog .product-bag-line{padding:12px;margin:0 12px;border-top:1px solid var(--shop-line);min-width:0}
#order-dialog .product-line-top h3{font-size:13px}
#order-dialog .product-line-top .sku{margin:3px 0 0;font-size:11px}
#order-dialog .product-line-top p{font-size:11px;line-height:1.4;margin:5px 0 0}
#order-dialog .product-line-top>div{min-width:0}
#order-dialog .cart-ready-state{display:inline-block;padding:2px 6px;border-radius:5px;background:var(--shop-raised);font-size:11px;margin-top:5px}
#order-dialog .cart-ready-state.incomplete{color:var(--pink)}
#order-dialog .product-sheet-mini{width:65px;min-width:65px;height:92px}
#order-dialog .product-thumb{width:42px;min-width:42px;height:62px}
#order-dialog .product-bag-line>label{font-size:11px;margin:9px 0 0}
#order-dialog .product-bag-line select{font-size:13px;border-radius:8px;min-height:44px;padding:7px}
#order-dialog .product-line-actions{gap:7px;flex-wrap:wrap;margin-top:9px}
#order-dialog .product-line-actions>button:first-child{padding:6px 8px;min-height:44px;font-size:12px;border:1px solid var(--shop-line);border-radius:8px;flex:0 1 auto}
#order-dialog .product-quantity{margin-left:auto;flex:none;border-radius:8px}
#order-dialog .product-quantity button{width:40px;min-width:40px;min-height:44px;font-size:17px}
#order-dialog .product-quantity output{min-width:22px;font-size:12px;font-variant-numeric:tabular-nums}
#order-dialog .product-remove-line{min-width:36px;width:36px;min-height:44px;padding:0;font-size:21px}
#order-dialog .product-promotion{border-radius:0;margin:0;padding:12px;border-top:1px solid var(--shop-line)}
#order-dialog .product-promotion strong{font-size:12px;font-weight:500}
#order-dialog .product-promotion p,#order-dialog .product-promotion small{font-size:11px;line-height:1.45;margin:5px 0}
#order-dialog .product-promotion progress{margin:9px 0;height:5px}
#order-dialog .product-promotion button{min-height:44px;font-size:12px;border-radius:8px;padding:7px 10px}
#order-dialog .product-price-review{font-size:12px;line-height:1.5;margin:0 0 12px}
#order-dialog .product-validation{font-size:12px;line-height:1.4}
#order-dialog .cart-empty{padding:24px 12px;border:1px solid var(--shop-line);border-radius:12px;background:var(--shop-panel);color:var(--shop-muted)}
#order-dialog .cart-empty p{font-size:12px;margin:6px 0}
@media(max-width:850px){.checkout-layout{grid-template-columns:minmax(0,1fr);gap:16px}.storefront-page #order-dialog{width:min(680px,calc(100vw - 20px))}.checkout-summary-panel{grid-column:1}}
@media(max-width:730px){.storefront-page.product-mode #order-dialog,.storefront-page #order-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.product-mode #order-dialog .workspace-panel,#order-dialog .workspace-panel.checkout-cart{padding:0}#order-dialog .checkout-brandbar{padding:12px}#order-dialog .checkout-heading{padding:16px 12px 0}#order-dialog .checkout-cart>p{margin:5px 12px 14px}.checkout-layout{padding:0 12px calc(18px + env(safe-area-inset-bottom))}#order-dialog .product-bag-line{padding:12px 0}#order-dialog .checkout-summary-panel{padding:13px}#order-dialog .customer-fields input,#order-dialog .customer-fields textarea,#order-dialog .customer-fields select,#order-dialog .product-bag-line select{font-size:16px}#order-dialog .product-line-actions>button:first-child{flex:1 1 auto;text-align:center}.checkout-brandbar strong{letter-spacing:.5px;font-size:13px}}
@media(prefers-reduced-motion:reduce){#order-dialog *{scroll-behavior:auto!important}}

/* Confirmed plum/lavender palette from the rendered nkc-checkout-cart-only.html
   and nkc-viewer-cart-refresh.html mockups. These rules change
   paint only, not gallery/cart sizing, artwork, availability, prices or routing.
   Keep the selected mockup appearance independent of the device's OS theme. */
html{color-scheme:dark;background:#121017}
.storefront-page{color-scheme:dark;--purple:#c0a0fa;--pink:#c0a0fa;--line:#35303f;--card:#1b1822;--muted:#b8aec8;--shop-bg:#121017;--shop-panel:#1b1822;--shop-raised:#25212e;--shop-line:#35303f;--shop-ink:#f5f0fc;--shop-muted:#b8aec8;--shop-accent:#c0a0fa;--shop-accent-ink:#201136;--shop-soft:#302340;--shop-promotion:#302340;--shop-promotion-ink:#f5f0fc;--shop-success:#a0dabd;--shop-attention:#e6c894;--shop-danger:#ff9cba;background:var(--shop-bg);color:var(--shop-ink)}
.storefront-page button{color:var(--shop-ink)}
.storefront button:hover{border-color:var(--shop-accent)}
.storefront #saved[aria-pressed=true],.storefront #compact[aria-pressed=true],#storefront-sidebar button[aria-pressed=true],.storefront #selection-mode[aria-pressed=true]{color:var(--shop-accent)}
.storefront .search-panel #refresh,.storefront #product-chooser{border-color:var(--shop-line)}
.storefront #refresh .refresh-icon{color:var(--shop-ink)}
.storefront #feedback,.storefront #selected-count{color:var(--shop-accent)}
.storefront-page .empty,.storefront-page .placeholder{color:var(--shop-muted)}
.storefront-page .empty h2{color:var(--shop-ink)}
.storefront .image-button,.storefront .image-button:hover{background:var(--shop-raised)}
.storefront .image-button:hover{border-color:var(--shop-accent)}
.storefront .card-actions .star:before{background:var(--shop-panel);border-color:var(--shop-line)}
.storefront .star[aria-pressed=true]{color:var(--shop-accent)}
.storefront .card-actions .green:hover .quick-add-mark{background:var(--shop-accent)}
.storefront .card-controls .check{background:var(--shop-panel);border-color:var(--shop-line)}
.storefront .customer-badge{background:var(--shop-panel);border-color:var(--shop-line);color:var(--shop-ink)}
.storefront-page .product-slot-meter span{background:var(--shop-line)}
.storefront-page .product-slot-meter span.filled{background:var(--shop-accent)}
.storefront-page dialog{color:var(--shop-ink);background:var(--shop-panel);border-color:var(--shop-line)}
.storefront-page dialog::backdrop{background:#0008}
.storefront-page dialog button{background:var(--shop-panel);color:var(--shop-ink);border-color:var(--shop-line)}
.storefront-page dialog :is(.purple,.primary,.green),#order-dialog #send-live{background:var(--shop-accent);border-color:var(--shop-accent);color:var(--shop-accent-ink)}
.storefront-page dialog .red{background:var(--shop-raised);border-color:var(--shop-line);color:var(--shop-danger)}
.storefront-page dialog .panel-heading h2,.storefront-page dialog .detail-info h2{color:var(--shop-ink)}
#order-dialog #order-review>summary{color:var(--shop-muted)}
.storefront-page dialog .workspace-panel>p,.storefront-page dialog :is(.fine,.sku),.storefront-page dialog .detail-info dt{color:var(--shop-muted)}
.storefront-page dialog :is(.product-line-top p,.product-group-toggle small,.product-bag-line>label,.customer-fields label,.requirement){color:var(--shop-muted)}
.storefront-page dialog :is(input,textarea,select),#order-dialog .customer-fields :is(input,textarea,select),#order-dialog .product-bag-line select{background:var(--shop-raised);border-color:var(--shop-line);color:var(--shop-ink)}
.storefront-page dialog :is(input,textarea)::placeholder{color:var(--shop-muted)}
.storefront-page dialog .requirement.required{color:var(--shop-danger)}
#order-dialog .customer-fields .required-field :is(input,textarea,select){border-color:var(--shop-danger)}
.storefront-page dialog [aria-invalid=true]{outline-color:var(--shop-danger)}
.storefront-page dialog :is(.product-quantity,.product-sheet-mini,.product-price-review){background:var(--shop-raised)}
.storefront-page dialog .product-quantity button,.storefront-page dialog :is(.product-group-toggle,.product-thumb,.product-line-actions>button:first-child,.product-remove-line){background:transparent}
.storefront-page dialog .product-line-actions>button:first-child{color:var(--shop-accent)}
.storefront-page dialog .product-remove-line{color:var(--shop-danger)}
.storefront-page .product-promotion{background:var(--shop-soft);color:var(--shop-ink)}
.storefront-page .product-promotion :is(p,small){color:var(--shop-muted)}
.storefront-page .product-promotion progress{accent-color:var(--shop-accent)}
.storefront-page .product-promotion button,.storefront-page .product-promotion button:hover{background:var(--shop-accent);border-color:var(--shop-accent);color:var(--shop-accent-ink)}
.storefront-page dialog .route-guidance{background:var(--shop-raised);border-color:var(--shop-line);color:var(--shop-ink)}
.storefront-page dialog .route-guidance :is(h3,a){color:var(--shop-accent)}
.storefront-page dialog .route-guidance .whatnot-stream-button{background:var(--shop-accent);border-color:var(--shop-accent);color:var(--shop-accent-ink)!important}
.storefront-page dialog .detail-image,.storefront-page dialog .product-slot-art{background:var(--shop-raised);border-color:var(--shop-line);color:var(--shop-ink)}
.storefront-page dialog .product-slot-remove{background:var(--shop-panel);color:var(--shop-danger)}
.storefront-page dialog :is(.product-slot-empty,.product-sheet-mini>span){color:var(--shop-muted)}
#order-dialog .cart-ready-state{color:var(--shop-success)}
#order-dialog .cart-ready-state.incomplete{color:var(--shop-attention)}
.storefront-page dialog :is(.product-validation,.error),#order-feedback[data-kind=error],#receipt-feedback[data-kind=error]{color:var(--shop-danger)}
#order-feedback,#receipt-feedback{color:var(--shop-success)}
#order-feedback[data-kind=working]{color:var(--shop-attention)}
#order-dialog .checkout-brandbar{background:#050505;color:#f6eff5}
#order-dialog .checkout-brandbar strong{color:#ff4d9e}
#order-dialog .checkout-brandbar small{color:#c9bec7}
#order-dialog .checkout-brandbar>button{background:transparent;color:#f6eff5}
