/* Pair summaries are the default; the existing four-step editor opens on demand. */
.commerce-bag{--bag-ink:#172229;--bag-muted:#536272;--bag-line:#d6dee5;color:var(--bag-ink)}
.commerce-bag .page-heading{margin-bottom:28px}
.commerce-bag .page-heading h1{font:750 clamp(28px,3.4vw,42px)/1.2 Manrope,Arial,sans-serif;letter-spacing:-.045em;margin:0 0 10px}
.commerce-bag .page-heading p{font-size:15px;line-height:1.5;margin:0;color:var(--bag-muted)}
.commerce-bag .cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:32px;align-items:start}
.commerce-bag .cart-pairs{min-width:0}
.commerce-bag .free-frame-terms{margin:0 0 20px;padding:13px 15px;font-size:13px;line-height:1.6;background:#f5f7f9;border:1px solid var(--bag-line)}
.commerce-bag .cart-item{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:16px 20px;align-items:start;border-bottom:1px solid var(--bag-line);padding:22px 0;margin:0}
.commerce-bag .cart-thumb{display:block;min-height:0;width:104px;height:104px;background:#f5f7f9;border:1px solid #e4e9ee}
.commerce-bag .cart-thumb .reference-product-image{margin:0;height:100%;min-height:0;aspect-ratio:auto;background:transparent;padding:5px}
.commerce-bag .cart-thumb .product-photo{width:100%;height:100%;object-fit:contain}
.commerce-bag .cart-item-main{min-width:0}
.commerce-bag .cart-item-main h3{font-size:17px;line-height:1.4;font-weight:750;margin:0 0 4px;letter-spacing:-.02em}
.commerce-bag .cart-color{font-size:13px;line-height:1.5;color:var(--bag-muted);margin:0 0 12px}
.commerce-bag .cart-selection-summary{margin:0;font-size:13px;line-height:1.6}
.commerce-bag .cart-selection-summary>div{display:grid;grid-template-columns:50px minmax(0,1fr);gap:8px;margin:3px 0}
.commerce-bag .cart-selection-summary dt{color:var(--bag-muted);font-weight:500}
.commerce-bag .cart-selection-summary dd{margin:0;font-weight:600}
.commerce-bag .cart-lens-charge,.commerce-bag .cart-free-label,.commerce-bag .cart-frame-choice p{font-size:12px;line-height:1.6;margin:10px 0}
.commerce-bag .cart-free-label{color:#2c604a;font-weight:650}
.commerce-bag .cart-frame-choice{margin-top:12px}
.commerce-bag .cart-rx-details{margin-top:8px}
.commerce-bag .cart-rx-details>summary,.commerce-bag .cart-lens-help>summary{min-height:44px;padding:11px 0;cursor:pointer;font-size:13px;line-height:1.6;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.commerce-bag .cart-rx-details .rx-saved-summary{margin-top:6px}
.commerce-bag .cart-item-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.commerce-bag .quantity-control{display:flex;align-items:center;margin:0;min-height:44px;border:1px solid var(--bag-line);width:auto}
.commerce-bag .quantity-control button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;font-size:18px;background:#fff;border:0}
.commerce-bag .quantity-control>span{min-width:24px;font-size:14px;line-height:1.5;text-align:center}
.commerce-bag [data-edit-prescription],.commerce-bag [data-remove]{min-width:44px;min-height:44px;padding:10px 8px;margin:0;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.commerce-bag .cart-line-prices{display:flex;flex-direction:column;gap:3px;text-align:right;margin:0;min-width:0}
.commerce-bag .cart-item-price{font-size:19px;line-height:1.4;font-weight:750;font-variant-numeric:tabular-nums}
.commerce-bag .cart-line-prices small{font-size:12px;line-height:1.5;color:var(--bag-muted)}
.commerce-bag .cart-prescription-editor{grid-column:1/-1;min-width:0}
.commerce-bag .cart-prescription-editor:empty{display:none}
.commerce-bag .cart-prescription-editor>.config-panel{margin:10px 0 0;padding:24px;border:1px solid var(--bag-line);background:#fff;max-width:none;min-width:0}
.commerce-bag .cart-layout:has(.cart-prescription-editor:not(:empty)){grid-template-columns:minmax(0,1fr)}
.commerce-bag .cart-layout:has(.cart-prescription-editor:not(:empty)) #bag-summary{position:static;max-width:480px;justify-self:end;width:100%}
.commerce-bag .cart-lens-help{border-bottom:1px solid var(--bag-line);padding:10px 0;margin:14px 0}
.commerce-bag .cart-lens-help p,.commerce-bag .cart-limit-note{font-size:12px;line-height:1.7;color:var(--bag-muted);margin:0 0 12px;max-width:75ch}
.commerce-bag .back-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;margin:8px 0}
.commerce-bag #bag-summary{padding:23px;background:#f5f7f9;border:1px solid var(--bag-line);border-radius:6px}
.commerce-bag #bag-summary h2{font-size:20px;font-weight:750;line-height:1.3;margin:0 0 12px}
.commerce-bag #bag-summary .bag-delivery-options label{min-height:44px}
.commerce-bag #bag-summary button,.commerce-bag #bag-summary select,.commerce-bag .cart-frame-choice button,.commerce-bag #cancel-shown-lenses{min-height:44px}
.commerce-bag #bag-summary [data-store-checkout]{background:var(--bag-ink);border-color:var(--bag-ink);color:#fff;min-height:48px}
.commerce-bag #bag-summary [data-store-checkout]:disabled{background:#dbe3eb;border-color:#bbc9d6;color:#4d5f6f;opacity:1;cursor:not-allowed}
.commerce-bag #bag-summary .bag-account-note{font-size:13px;line-height:1.5}
.commerce-bag button:focus-visible,.commerce-bag a:focus-visible,.commerce-bag summary:focus-visible{outline:3px solid #0866e8;outline-offset:3px}
@media(max-width:1000px){.commerce-bag .cart-layout{grid-template-columns:minmax(0,1fr);gap:28px}.commerce-bag #bag-summary{max-width:none;width:100%}}
@media(max-width:600px){
 .commerce-bag .page-heading{margin-bottom:22px}.commerce-bag .page-heading p{font-size:14px}
 .commerce-bag .cart-item{grid-template-columns:80px minmax(0,1fr);gap:12px 16px;padding:20px 0}
 .commerce-bag .cart-thumb{width:80px;height:90px;grid-column:1;grid-row:1/3}.commerce-bag .cart-item-main{grid-column:2;grid-row:1}
 .commerce-bag .cart-item-main h3{font-size:16px}.commerce-bag .cart-selection-summary{font-size:12px}.commerce-bag .cart-selection-summary>div{grid-template-columns:1fr;gap:0;margin-top:7px}
 .commerce-bag .cart-line-prices{grid-column:2;grid-row:2;flex-direction:row;flex-wrap:wrap;align-items:baseline;text-align:left;gap:4px 12px}
 .commerce-bag .cart-line-prices .cart-item-price{flex-basis:100%;font-size:18px}
 .commerce-bag .cart-prescription-editor>.config-panel{padding:18px 12px}.commerce-bag .cart-item-actions{gap:4px}
 .commerce-bag #bag-summary{padding:20px}.commerce-bag .cart-layout:has(.cart-prescription-editor:not(:empty)) #bag-summary{max-width:none}
 .commerce-bag .cart-rx-details .rx-saved-summary{margin-left:-96px;padding:12px}
}
