/* Only the shopping-cart overlay and its contents. */
.mrs-cart-overlay[hidden]{display:none}
.mrs-cart-overlay:not([hidden]){display:flex;position:fixed;inset:0;z-index:3000;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;background:#000a;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){display:flex;flex-direction:column;position:relative;inset:auto;width:min(620px,100%);max-height:min(800px,calc(100dvh - 48px));overflow:hidden;box-sizing:border-box;background:linear-gradient(150deg,#182228,#080e12 65%,#04080b);color:#fff;border:1px solid #526068;border-radius:22px;box-shadow:0 24px 90px #000b,inset 0 1px 0 #ffffff15;padding:0;font:16px/1.5 Arial,sans-serif}
body .mrs-cart-panel .mrs-cart-heading{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;min-height:74px;padding:16px 58px;box-sizing:border-box;background:linear-gradient(180deg,#ff3c50,#e20928 70%,#c60021);box-shadow:inset 0 1px 0 #ffffff30,0 3px 12px #0005}
body .mrs-cart-panel .mrs-cart-heading h2{margin:0;font:800 20px/1.3 Arial,sans-serif;letter-spacing:.025em;text-align:center;color:#fff;text-transform:none;text-shadow:0 1px 2px #0004}
body .mrs-cart-panel .mrs-cart-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border:0;border-radius:50%;background:#ffffff15;color:#fff;cursor:pointer;float:none}
body .mrs-cart-panel .mrs-cart-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
body .mrs-cart-panel .mrs-cart-items-bar{flex-shrink:0;text-align:center;padding:11px 16px;font-size:16px;font-weight:750;color:#e3e9ed;background:linear-gradient(180deg,#2b373e,#202b31);border-bottom:1px solid #465158}
body .mrs-cart-panel .mrs-cart-content{padding:26px;overflow:auto;overscroll-behavior:contain;min-height:0}
body .mrs-cart-panel .mrs-cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:18px 0 28px;box-sizing:border-box;text-align:center}
body .mrs-cart-panel .mrs-cart-empty-icon{position:relative;color:#d5dee3;margin:0 0 22px}
body .mrs-cart-panel .mrs-cart-empty-icon svg{display:block;width:78px;height:78px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
body .mrs-cart-panel .mrs-cart-empty-icon span{position:absolute;right:-9px;top:12px;display:grid;place-items:center;width:27px;height:27px;border:3px solid #111b20;border-radius:50%;background:var(--red,#ff102b);color:white;font:700 13px/1 Arial,sans-serif}
body .mrs-cart-panel .mrs-cart-empty h3{margin:0 0 9px;color:#fff;font-size:21px;font-weight:750}
body .mrs-cart-panel .mrs-cart-empty p{margin:0 0 24px;color:#bfcbd2;font-size:15px;max-width:280px}
body .mrs-cart-panel .mrs-cart-continue{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 24px;box-sizing:border-box;border:1px solid #ff4156;border-radius:7px;background:linear-gradient(180deg,#ff3c50,#ff102b 44%,#cf001b);box-shadow:inset 0 1px 0 #ffffff30,0 4px 12px #0004;color:#fff;font:700 15px/1.4 Arial,sans-serif;text-decoration:none}
body .mrs-cart-panel .mrs-cart-row{padding:18px;margin:0 0 14px;border:1px solid #394850;border-radius:10px;background:linear-gradient(145deg,#ffffff07,#ffffff02)}
body .mrs-cart-panel .mrs-cart-row strong{display:block;font-size:16px;color:#fff;overflow-wrap:anywhere}
body .mrs-cart-panel .mrs-cart-price{margin:6px 0 15px;font-size:16px;color:#d9e3e9;font-weight:650}
body .mrs-cart-panel .mrs-cart-controls{display:flex;align-items:center;gap:12px;margin:0}
body .mrs-cart-panel .mrs-cart-controls>span{min-width:16px;text-align:center;font-weight:650}
body .mrs-cart-panel .mrs-cart-controls button{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:5px 10px;border:1px solid #53636c;border-radius:5px;background:linear-gradient(180deg,#30414a,#202d35);color:#fff;font:600 16px/1.4 Arial,sans-serif;cursor:pointer}
body .mrs-cart-panel .mrs-cart-controls .mrs-cart-remove{margin-left:auto;min-width:auto;background:transparent;border-color:transparent;color:#bfcbd2;font-size:13px}
body .mrs-cart-panel .mrs-cart-total{display:flex;justify-content:flex-end;margin:22px 0 12px;padding-top:18px;border-top:1px solid #465158;font-size:18px;font-weight:750;color:#fff}
body .mrs-cart-panel .mrs-cart-note{margin:0 0 20px;color:#bfcbd2;font-size:13px;line-height:1.55}
body .mrs-cart-panel button:hover,body .mrs-cart-panel .mrs-cart-continue:hover{filter:brightness(1.12)}
body .mrs-cart-panel button:focus-visible,body .mrs-cart-panel a:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:560px){
.mrs-cart-overlay:not([hidden]){padding:12px}
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){max-height:calc(100dvh - 24px);border-radius:20px}
body .mrs-cart-panel .mrs-cart-heading{min-height:65px;padding-inline:50px}
body .mrs-cart-panel .mrs-cart-heading h2{font-size:18px}
body .mrs-cart-panel .mrs-cart-content{padding:20px}
body .mrs-cart-panel .mrs-cart-empty{min-height:330px}
}

/* Compact glossy dropdown, anchored to the existing basket button. */
.mrs-cart-overlay:not([hidden]){display:block;pointer-events:none;padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){pointer-events:auto;position:fixed;left:var(--cart-left,12px);top:var(--cart-top,100px);right:auto;bottom:auto;width:min(360px,calc(100vw - 24px));max-height:min(520px,var(--cart-space,70dvh));border:1px solid #70848f;border-radius:14px;background:linear-gradient(125deg,#ffffff16 0%,#ffffff03 28%,transparent 48%),linear-gradient(160deg,#283b47 0%,#111f28 48%,#060d12 100%);box-shadow:inset 0 1px 0 #ffffff60,inset 1px 0 0 #ffffff14,0 12px 34px #0009,0 2px 6px #0006;outline:none}
body .mrs-cart-panel .mrs-cart-heading{min-height:46px;padding:10px 43px;background:linear-gradient(180deg,#ff7c88 0%,#ff344b 13%,#fa092d 48%,#d50024 50%,#f70b30 100%);box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #880017,0 2px 8px #0005}
body .mrs-cart-panel .mrs-cart-heading h2{font-size:16px;letter-spacing:.01em}
body .mrs-cart-panel .mrs-cart-close{right:9px;width:30px;height:30px;min-width:30px;min-height:30px;padding:7px;background:#ffffff12}
body .mrs-cart-panel .mrs-cart-close svg{width:16px;height:16px}
body .mrs-cart-panel .mrs-cart-items-bar{padding:7px 12px;font-size:14px;background:linear-gradient(180deg,#49606d 0%,#2b3d47 45%,#20313c 100%);box-shadow:inset 0 1px 0 #ffffff25;border-bottom-color:#536a76}
body .mrs-cart-panel .mrs-cart-content{padding:16px}
body .mrs-cart-panel .mrs-cart-empty{min-height:180px;padding:9px 0 12px}
body .mrs-cart-panel .mrs-cart-empty-icon{margin-bottom:12px;color:#edf5fa;filter:drop-shadow(0 1px 4px #ffffff18)}
body .mrs-cart-panel .mrs-cart-empty-icon svg{width:48px;height:48px;stroke-width:1.3}
body .mrs-cart-panel .mrs-cart-empty-icon span{right:-7px;top:5px;width:20px;height:20px;border-width:2px;font-size:11px}
body .mrs-cart-panel .mrs-cart-empty h3{font-size:16px;margin-bottom:6px;text-transform:none}
body .mrs-cart-panel .mrs-cart-empty p{font-size:14px;line-height:1.45;max-width:260px;margin-bottom:15px;color:#d6e3eb}
body .mrs-cart-panel .mrs-cart-continue{min-height:38px;padding:8px 17px;font-size:14px;border-radius:6px;background:linear-gradient(180deg,#ff8290 0%,#ff3c55 15%,#ff1237 48%,#d60025 50%,#f20c30 100%);border-color:#ff687d;box-shadow:inset 0 1px 0 #ffffff70,inset 0 -1px 0 #a3001c,0 3px 9px #0006}
body .mrs-cart-panel .mrs-cart-row{padding:13px;margin-bottom:10px;border-radius:8px;background:linear-gradient(150deg,#ffffff14,#ffffff03 48%,#00000016);box-shadow:inset 0 1px 0 #ffffff14}
body .mrs-cart-panel .mrs-cart-row strong{font-size:14px}
body .mrs-cart-panel .mrs-cart-price{font-size:14px;margin:5px 0 10px}
body .mrs-cart-panel .mrs-cart-total{font-size:16px;margin-top:14px;padding-top:12px}

/* White cart card with MRS red actions and product sensor options. */
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){background:#fff;color:#171717;border-color:#ddd;max-height:min(760px,var(--cart-space,70dvh));box-shadow:0 12px 34px #0008,inset 0 1px 0 #fff}
body .mrs-cart-panel .mrs-cart-items-bar{background:#eee;color:#333;border-bottom-color:#e1e1e1;box-shadow:none}
body .mrs-cart-panel .mrs-cart-content{flex:1;min-height:0;background:#fff}
body .mrs-cart-panel .mrs-cart-empty-icon{color:#111;filter:none}
body .mrs-cart-panel .mrs-cart-empty-icon span{border-color:#fff}
body .mrs-cart-panel .mrs-cart-empty h3{color:#111;text-shadow:none}
body .mrs-cart-panel .mrs-cart-empty p,body .mrs-cart-panel .mrs-cart-note{color:#5e5e5e}
body .mrs-cart-panel .mrs-cart-row{background:#fafafa;border-color:#ddd;box-shadow:none}
body .mrs-cart-panel .mrs-cart-row strong,body .mrs-cart-panel .mrs-cart-price,body .mrs-cart-panel .mrs-cart-total{color:#171717}
body .mrs-cart-panel .mrs-cart-total{border-color:#ddd;display:block;text-align:right}
body .mrs-cart-panel .mrs-cart-controls button{background:#f4f4f4;border-color:#bbb;color:#222}
body .mrs-cart-panel .mrs-cart-controls .mrs-cart-remove{background:transparent;border-color:transparent;color:#555}
body .mrs-cart-panel .mrs-cart-sensors{margin-top:20px}
body .mrs-cart-panel .mrs-cart-sensor-heading{margin:0 -16px 20px;padding:7px 16px;background:#ddd;color:#222;font:800 17px/1.3 Arial,sans-serif;text-align:center;text-transform:none;letter-spacing:0;text-shadow:none}
body .mrs-cart-panel .mrs-cart-sensor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body .mrs-cart-panel .mrs-cart-sensor-card{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}
body .mrs-cart-panel .mrs-cart-sensor-visual{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#f3f3f3;margin:0 0 12px;overflow:hidden}
body .mrs-cart-panel .mrs-cart-sensor-visual img{width:42px;height:42px;object-fit:contain}
body .mrs-cart-panel .mrs-cart-sensor-card h4{color:#111;font:700 14px/1.35 Arial,sans-serif;margin:0 0 12px;min-height:3.9em;overflow-wrap:anywhere}
body .mrs-cart-panel .mrs-cart-sensor-card select{width:100%;max-width:110px;min-height:32px;border:1px solid #999;border-radius:0;padding:4px 8px;color:#222;background:#fff;font:14px Arial,sans-serif}
body .mrs-cart-panel .mrs-cart-sensor-price{color:#555;font:12px/1.4 Arial,sans-serif;margin:12px 0 18px}
body .mrs-cart-panel .mrs-cart-sensor-add{display:block;width:100%;min-height:38px;margin-top:auto;padding:8px;border:1px solid #ef1530;border-radius:6px;background:linear-gradient(180deg,#ff3c50,#ed0c2b);color:#fff;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
body .mrs-cart-panel .mrs-cart-sensor-details{margin-top:9px;color:#b60922;font:12px/1.4 Arial,sans-serif;text-decoration:underline}
body .mrs-cart-panel .mrs-cart-sensor-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:16px;color:#555;font:12px Arial,sans-serif}
body .mrs-cart-panel .mrs-cart-sensor-pagination button{border:0;background:transparent;color:#d40925;width:36px;height:36px;padding:0;font:30px/1 Arial,sans-serif;cursor:pointer}
body .mrs-cart-panel .mrs-cart-sensor-status{color:#555;text-align:center;font:14px/1.5 Arial,sans-serif}
@media(min-width:561px){
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){width:min(720px,calc(100vw - 24px))}
body .mrs-cart-panel .mrs-cart-sensor-visual{width:88px;height:88px}
body .mrs-cart-panel .mrs-cart-sensor-visual img{width:54px;height:54px}
body .mrs-cart-panel .mrs-cart-sensor-card h4{min-height:2.7em;font-size:16px}
}

/* Expand the rounded card while keeping it inside the available viewport. */
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){width:min(540px,calc(100vw - 24px));max-height:min(780px,var(--cart-space,85dvh));border-radius:20px}
@media(min-width:561px){
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){width:min(1080px,calc(100vw - 24px));max-height:min(1140px,var(--cart-space,85dvh))}
}

/* Half the previous rendered width; retain the existing card length. */
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){width:min(270px,calc((100vw - 24px)/2))}
@media(min-width:561px){
body .mrs-cart-overlay .mrs-cart-panel:not([hidden]){width:min(540px,calc((100vw - 24px)/2))}
}

/* Keep scrolling available on small screens without a visible inner scrollbar. */
body .mrs-cart-panel .mrs-cart-content{scrollbar-width:none;-ms-overflow-style:none}
body .mrs-cart-panel .mrs-cart-content::-webkit-scrollbar{display:none;width:0;height:0}

/* Wider mobile cart; keep its position and existing appearance. */
@media(max-width:560px){
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){width:min(540px,calc(100vw - 24px))}
}
@media(max-width:560px){
body .mrs-cart-overlay:not(.mrs-offer-overlay):not([hidden]){display:flex;align-items:center;justify-content:center;padding:12px;pointer-events:auto}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){position:relative;inset:auto;max-height:calc(100dvh - 24px)}
}

/* Use the supplied product graphics in the existing sensor image space. */
body .mrs-cart-panel .mrs-cart-sensor-visual:has(img[src^="/assets/products/"]){border-radius:4px;background:transparent}
body .mrs-cart-panel .mrs-cart-sensor-visual img[src^="/assets/products/"]{width:100%;height:100%;object-fit:contain}

/* Keep the complete cart reachable within the viewport. */
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){height:auto;min-height:0;max-height:min(760px,var(--cart-space,calc(100dvh - 24px)))}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-content{flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:28px;scrollbar-width:thin;scrollbar-gutter:stable}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-content::-webkit-scrollbar{display:block;width:7px;height:auto}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-content::-webkit-scrollbar-thumb{background:#aaa;border-radius:4px}
body .mrs-cart-panel .mrs-cart-sensor-visual{border-radius:0;background:transparent;aspect-ratio:1}
body .mrs-cart-panel .mrs-cart-sensor-visual img{width:100%;height:100%;object-fit:contain;border-radius:0}
body .mrs-cart-panel .mrs-cart-sensor-visual:has(img[src^="/assets/products/"]){border-radius:0}

/* Compact mobile cart with one complete sensor option at a time. */
@media(max-width:560px){
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-content{padding:12px 16px 16px}
body .mrs-cart-panel .mrs-cart-empty{min-height:0;padding:0 0 8px}
body .mrs-cart-panel .mrs-cart-empty-icon{margin-bottom:6px}
body .mrs-cart-panel .mrs-cart-empty-icon svg{width:28px;height:28px}
body .mrs-cart-panel .mrs-cart-empty h3{font-size:15px;margin-bottom:4px}
body .mrs-cart-panel .mrs-cart-empty p{font-size:12px;margin-bottom:8px}
body .mrs-cart-panel .mrs-cart-continue{min-height:32px;padding:5px 12px;font-size:13px}
body .mrs-cart-panel .mrs-cart-sensors{margin-top:10px}
body .mrs-cart-panel .mrs-cart-sensor-heading{margin-bottom:10px;padding-block:6px;font-size:15px}
body .mrs-cart-panel .mrs-cart-sensor-grid{grid-template-columns:minmax(0,1fr)}
body .mrs-cart-panel .mrs-cart-sensor-visual{width:88px;height:88px;margin-bottom:8px}
body .mrs-cart-panel .mrs-cart-sensor-card h4{min-height:0;font-size:14px;margin-bottom:8px}
body .mrs-cart-panel .mrs-cart-sensor-price{margin:6px 0 8px}
body .mrs-cart-panel .mrs-cart-sensor-add{min-height:34px;padding:6px}
body .mrs-cart-panel .mrs-cart-sensor-details{margin-top:6px}
body .mrs-cart-panel .mrs-cart-sensor-pagination{margin-top:8px}
body .mrs-cart-panel .mrs-cart-sensor-pagination button{height:30px}
}

/* Two complete sensor options with controls visible in the available screen. */
body .mrs-cart-overlay:not(.mrs-offer-overlay):not([hidden]){display:flex;align-items:center;justify-content:center;padding:12px;pointer-events:auto}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){position:relative;inset:auto;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-empty{min-height:0;padding:0 0 8px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-empty-icon{margin-bottom:6px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-empty-icon svg{width:28px;height:28px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-empty h3{font-size:16px;margin-bottom:4px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-empty p{font-size:13px;margin-bottom:8px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensors{margin-top:10px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-content{padding:12px 16px 16px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-heading{margin-bottom:10px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-price{margin:6px 0 8px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-pagination{margin-top:8px}
@media(max-width:560px){
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){width:calc(100vw - 24px)}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-grid{gap:12px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-visual{width:72px;height:72px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-card h4{font-size:13px;min-height:3.9em;margin-bottom:6px}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-add{font-size:13px}
}

/* Enlarge cart product graphics without leaving the cart. */
body .mrs-cart-panel button.mrs-cart-sensor-visual{padding:0;border:0;cursor:zoom-in;flex-shrink:0}
body .mrs-cart-panel button.mrs-cart-sensor-visual:focus-visible{outline:2px solid #ed0c2b;outline-offset:3px}
body .mrs-cart-image-preview[hidden]{display:none!important}
body .mrs-cart-image-preview:not([hidden]){display:flex!important;position:fixed;inset:0;z-index:2147483647;box-sizing:border-box;align-items:center;justify-content:center;padding:12px;background:rgba(0,0,0,.8);pointer-events:auto}
body .mrs-cart-image-preview-frame{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:min(900px,calc(100vw - 24px));height:min(956px,calc(100dvh - 24px));padding:44px 12px 12px;border:0;border-radius:12px;background:transparent;overflow:hidden}
body .mrs-cart-image-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;margin:0}
body .mrs-cart-image-preview .mrs-cart-image-preview-close{position:absolute;top:4px;right:8px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#ed0c2b;color:#fff;font:28px/1 Arial,sans-serif;cursor:pointer}

@media(max-width:560px){body .mrs-cart-panel button.mrs-cart-sensor-visual{touch-action:manipulation;pointer-events:auto}body .mrs-cart-panel button.mrs-cart-sensor-visual img{pointer-events:none}}

/* Shopping cart only: charcoal surfaces, existing grey bars and red accents retained. */
body .mrs-cart-overlay #mrs-cart-panel:not([hidden]),
body #mrs-cart-panel .mrs-cart-content{background:#15191c;color:#fff}
body #mrs-cart-panel .mrs-cart-empty-icon,
body #mrs-cart-panel .mrs-cart-empty h3,
body #mrs-cart-panel .mrs-cart-row strong,
body #mrs-cart-panel .mrs-cart-price,
body #mrs-cart-panel .mrs-cart-total,
body #mrs-cart-panel .mrs-cart-sensor-card h4{color:#fff}
body #mrs-cart-panel .mrs-cart-empty-icon span{border-color:#15191c}
body #mrs-cart-panel .mrs-cart-empty p,
body #mrs-cart-panel .mrs-cart-note,
body #mrs-cart-panel .mrs-cart-sensor-price,
body #mrs-cart-panel .mrs-cart-sensor-pagination,
body #mrs-cart-panel .mrs-cart-sensor-status,
body #mrs-cart-panel .mrs-cart-controls .mrs-cart-remove{color:#c7cbd0}
body #mrs-cart-panel .mrs-cart-row{background:#15191c}
body #mrs-cart-panel .mrs-cart-sensor-card select{background:#15191c;color:#fff}

/* Browse the current products in one horizontal accessory row. */
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-grid{display:flex;flex-wrap:nowrap;align-items:stretch;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding-bottom:10px;scrollbar-width:thin;scrollbar-color:#aaa #15191c}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-card{flex:0 0 calc((100% - 12px)/2);scroll-snap-align:start}

/* Cart details use the existing enlarged-product image layout. */
#mrs-cart-product-details{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;overflow:auto;border:1px solid #666;border-radius:14px;background:radial-gradient(ellipse at top left,#303030,#222 48%,#191919);color:#fff;box-shadow:0 16px 48px #0009;font-family:Arial,sans-serif}
#mrs-cart-product-details::backdrop{background:rgba(0,0,0,.7)}
#mrs-cart-product-details header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 20px;padding:16px 0 12px;border-bottom:1px solid #ef001b}
#mrs-cart-product-details h2{margin:0;color:#fff;font:700 24px/1.2 Arial,sans-serif;text-transform:uppercase}
#mrs-cart-product-details button{width:44px;height:44px;padding:0;border:0;background:transparent;color:#fff;font:32px/1 Arial,sans-serif;cursor:pointer}
#mrs-cart-product-details .mrs-product-photo-media{padding:12px;line-height:0}
#mrs-cart-product-details svg{display:block;width:100%;height:auto;max-height:calc(100dvh - 120px);overflow:hidden}

#mrs-cart-product-details button:focus{outline:none;box-shadow:none}
#mrs-cart-product-details button:focus-visible{outline:none;color:#fff}

#mrs-cart-product-details button,#mrs-cart-product-details button:hover,#mrs-cart-product-details button:focus,#mrs-cart-product-details button:focus-visible{color:#fff;-webkit-text-fill-color:#fff}

#mrs-cart-product-details .mrs-cart-details-copy{padding:8px 24px 24px;color:#fff;font:16px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
#mrs-cart-product-details .mrs-cart-details-copy h3{margin:0 0 12px;color:#fff;font:700 20px/1.35 Arial,sans-serif;text-transform:none}
#mrs-cart-product-details .mrs-cart-details-copy h4{margin:16px 0 8px;color:#fff;font:700 17px/1.4 Arial,sans-serif;text-transform:none}
#mrs-cart-product-details .mrs-cart-details-copy p{margin:0 0 14px;color:#fff}
#mrs-cart-product-details .mrs-cart-details-copy ul,#mrs-cart-product-details .mrs-cart-details-copy ol{margin:0 0 14px;padding-left:24px}
#mrs-cart-product-details .mrs-cart-details-copy li{margin:0 0 6px}
@media(max-width:560px){#mrs-cart-product-details .mrs-cart-details-copy{padding:8px 20px 20px}}

/* Activate the existing controls printed on cart product previews. */
body .mrs-cart-image-preview .mrs-cart-image-actions{position:absolute;pointer-events:none}
body .mrs-cart-image-preview .mrs-cart-image-actions>button{position:absolute;display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:transparent;box-shadow:none;pointer-events:auto;cursor:pointer;appearance:none}
body .mrs-cart-image-preview .mrs-cart-image-actions>button:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Cart currency selector uses the existing site conversion control. */
body #mrs-cart-panel .mrs-cart-currency{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 12px;color:#c7cbd0;font:14px/1.4 Arial,sans-serif}
body #mrs-cart-panel .mrs-cart-currency select{box-sizing:border-box;min-height:32px;padding:4px 8px;border:1px solid #777;border-radius:4px;background:#15191c;color:#fff;font:14px Arial,sans-serif}
body #mrs-cart-panel .mrs-cart-currency-status{flex-basis:100%;margin:0;color:#c7cbd0;font:12px/1.4 Arial,sans-serif;text-align:right}
body #mrs-cart-panel .mrs-cart-currency-status:empty{display:none}

/* Match mobile accessory navigation on desktop without a bottom scrollbar. */
@media(min-width:561px){
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-grid{scrollbar-width:none;-ms-overflow-style:none}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-sensor-grid::-webkit-scrollbar{display:none;height:0}
}

/* Give the centered desktop shopping cart the available screen height. */
@media(min-width:561px){
body .mrs-cart-overlay:not(.mrs-offer-overlay):not([hidden]){display:flex;align-items:center;justify-content:center;padding:12px;pointer-events:auto}
body .mrs-cart-overlay:not(.mrs-offer-overlay) .mrs-cart-panel:not([hidden]){position:relative;inset:auto;max-height:calc(100dvh - 24px)}
}

/* Keep desktop accessory navigation outside the scrolling cart content. */
@media(min-width:561px){
body #mrs-cart-panel>.mrs-cart-sensor-pagination{flex:0 0 auto;margin:0;padding:8px 16px;background:#15191c;color:#c7cbd0}
}
