/* Mobile product layout and safe-area policy. Desktop product geometry unchanged. */
:root{
 --shop-vh:100vh;--shop-vtop:0px;--shop-vbottom:0px;
 --shop-safe-t:env(safe-area-inset-top,0px);--shop-safe-b:env(safe-area-inset-bottom,0px);
 --shop-safe-l:env(safe-area-inset-left,0px);--shop-safe-r:env(safe-area-inset-right,0px);
 --shop-bottom:calc(var(--shop-vbottom) + var(--shop-safe-b));
}
@supports(height:100dvh){:root{--shop-vh:100dvh}}
@media (max-aspect-ratio:4/5), (max-width:760px){
 #all{height:var(--shop-vh);scroll-padding-top:calc(50px + var(--shop-safe-t));scroll-padding-bottom:calc(60px + var(--shop-safe-b))}
 #menu{padding-top:var(--shop-safe-t);padding-left:var(--shop-safe-l);padding-right:var(--shop-safe-r)}
 #menu.shop-menu-ready{height:calc(50px + var(--shop-safe-t))!important}
 #mi{width:calc(100% - var(--shop-safe-l) - var(--shop-safe-r))}
 #lang{left:max(4px,var(--shop-safe-l))}
 #cartinfo{transition:none;top:0;margin-top:calc(var(--shop-vtop) + var(--shop-safe-t));right:var(--shop-safe-r)!important;width:44px;min-width:44px;min-height:44px}
 #cartinfo #ica,#cartinfo #cx{right:7px}
 #zx{transition:none;top:2px!important;margin-top:calc(var(--shop-vtop) + var(--shop-safe-t));left:max(4px,var(--shop-safe-l));width:44px;height:44px;padding:8px;object-position:center}
 #zbuy:hover,#zcheck:hover,#cartinfo:hover{transform:none}
 /* Full viewport product: title, flexible description, square image, thumbs,
    then two independent horizontal option rows and the purchase button. */
 #zoom{
   --product-gap:8px;
   --product-pic:min(calc(100vw - var(--shop-safe-l) - var(--shop-safe-r) - 28px),max(112px,calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 450px)));
   top:var(--shop-vtop)!important;left:0!important;width:100%!important;height:var(--shop-vh)!important;
   transform:none!important;border-radius:0!important;flex-direction:column;align-items:center;justify-content:flex-start;
   gap:var(--product-gap);padding:calc(var(--shop-safe-t) + 62px) max(12px,var(--shop-safe-r)) calc(var(--shop-safe-b) + 12px) max(12px,var(--shop-safe-l));
   overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
   -webkit-overflow-scrolling:touch;isolation:isolate;
 }
 #zoom #zcloser{display:none}
 /* Animate the viewport reveal and the real image separately, keeping the
    responsive layout fixed. The card's rectangle is the transition origin. */
 #zoom.shop-product-transition{pointer-events:none;will-change:clip-path,opacity}
 #zoom.shop-product-transition *{pointer-events:none!important}
 #zoom.shop-product-transition #zoomp{will-change:transform}
 #zoom.shop-product-transition #zoombar{will-change:transform,opacity}

 #zoombar{
   order:0;position:relative!important;bottom:auto!important;left:auto!important;transform:translate(var(--shop-title-x,0px),var(--shop-title-y,0px)) rotate(var(--shop-title-angle,-1.2deg)) scale(var(--shop-title-sx,1),var(--shop-title-sy,1))!important;
   width:calc(100% + max(12px,var(--shop-safe-l)) + max(12px,var(--shop-safe-r)) + 16px);
   flex:0 0 auto;min-height:42px;padding:10px 12px;
   font-size:clamp(15px,4.3vw,23px);line-height:1.15;white-space:pre-line;overflow-wrap:anywhere;
 }
 #pinfo{
   order:1;z-index:925;position:relative;right:auto;width:min(100%,560px);
   flex:1 1 0;min-height:40px;height:auto;padding:0;justify-content:flex-start;align-items:stretch;overflow:hidden;
   background:transparent;border:0;border-radius:0;box-shadow:none;
 }
 #pinfobody{
   min-height:0;flex:1 1 auto;width:100%;height:auto;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;
   padding:4px 8px;font-size:clamp(13px,3.5vw,17px);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
   border:0;border-radius:0;box-shadow:none;background:transparent;cursor:auto;scrollbar-width:thin;
 }
 #pinfobody:after{display:none}
 /* Scroll hints remain fixed at the visible edges, not inside the text. */
 /* The upper fade belongs to the tilted title stripe and inherits its angle. */
 #zoombar::after,#pinfo::after{
   content:"";position:absolute;left:0;right:0;
   pointer-events:none;opacity:0;transition:opacity .15s ease;
 }
 #zoombar::after{
   top:100%;height:30px;
   background:linear-gradient(to bottom,#fff 0px,#fff 8px,rgba(255,255,255,0) 30px);
 }
 #pinfo::after{bottom:0;height:min(18px,25%);z-index:2;background:linear-gradient(to top,#fff,rgba(255,255,255,0))}
 #zoombar.shop-scroll-above::after,#pinfo.shop-scroll-below::after{opacity:1}

 /* Equal free space above and below the gallery when there is no description. */
 #zoom.shop-no-description #pinfo{display:none}
 #zoom.shop-no-description:not(.shop-image-expanded) #zoomp{margin-top:auto}
 #zoom.shop-no-description:not(.shop-image-expanded) #zmore{margin-bottom:auto}
 #zoomp{
   order:2;flex:0 0 auto;width:var(--product-pic)!important;height:var(--product-pic)!important;
   aspect-ratio:1/1;object-fit:contain;object-position:center;border-radius:8px!important;
   transform:translate(var(--shop-image-x,0px),var(--shop-image-y,0px)) scale(var(--shop-image-sx,1),var(--shop-image-sy,1))!important;
   background:rgba(255,255,255,.8);box-shadow:0 5px 12px rgba(0,0,0,.18);
 }
 #zmore{
   order:3;position:relative;left:auto!important;top:auto;width:min(100%,560px);height:auto;
   flex:0 0 auto;flex-direction:row;align-items:center;justify-content:safe center;
   gap:8px;padding:3px 4px 5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
   transform:none!important;opacity:1;visibility:visible!important;
   scrollbar-width:none;--thumbsize:clamp(38px,11vw,52px);
 }
 .zmore{width:var(--thumbsize);height:var(--thumbsize);border-radius:6px;box-shadow:0 2px 4px #0002}
 .zmore:hover{transform:none}
 #buybox{
   order:4;position:sticky;bottom:0!important;z-index:997;flex:none;display:flex;flex-direction:column;align-items:center;
   width:100%;height:auto;gap:6px;padding:4px 0 2px;background:transparent;transform:none!important;opacity:1;visibility:visible!important;
 }
 #osel{position:relative;width:100%;flex-direction:column;gap:3px;align-items:center;justify-content:center}
 #zcolors,#zsizes{position:relative;left:auto;right:auto;width:100%;min-height:44px;gap:6px;justify-content:safe center;overflow-x:auto;overflow-y:hidden;padding:2px 4px;scrollbar-width:none}
 #zcolors:empty,#zsizes:empty{display:none}
 #osel:has(#zcolors:empty):has(#zsizes:empty){display:none}
 .hchi{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:5px 8px;margin:0;
   transform:none!important;font-size:16px;opacity:.62;line-height:1;border:0;border-radius:0;background:transparent;
   transition:opacity .2s,font-size .2s}
 .hchi[data-this="sel"]{opacity:1}
 #zsizes .hchi[data-this="sel"]{font-size:22px}
 .hchi[aria-disabled="true"]{opacity:.3!important}
 .hsi{width:30px;height:30px;border-radius:50%;object-fit:cover;transform:scale(.72);transition:transform .2s}
 .hchi[data-this="sel"] .hsi{transform:scale(1)}
 #zbuy{order:1;position:relative;width:70vw;max-width:560px;height:max(44px,9vw);max-height:56px;flex:none;border-radius:8px}
 #zbuy:before{font-size:clamp(16px,4vw,22px);left:3vw}
 #zbuy:after{font-size:clamp(12px,3vw,16px);right:3vw}
 #zoom.shop-photo-transition #zoomp{will-change:transform}
 #zoom.shop-photo-transition{will-change:background-color}
 #cartinfo{translate:0 var(--shop-photo-cart-y,0px)}
 #zoom.shop-image-expanded ~ #cartinfo{translate:0 calc(-1 * (var(--shop-vtop) + var(--shop-safe-t) + 120px));pointer-events:none!important}
 #zoom.shop-photo-transition ~ #cartinfo{pointer-events:none!important;will-change:translate}
 #zoom.shop-photo-transition #zoombar{transform:translate(var(--shop-title-x,0px),calc(var(--shop-title-y,0px) + var(--shop-photo-y,0px))) rotate(var(--shop-title-angle,-1.2deg)) scale(var(--shop-title-sx,1),var(--shop-title-sy,1))!important}
 #zoom.shop-photo-transition #pinfo,#zoom.shop-photo-transition #zmore,#zoom.shop-photo-transition #buybox{transform:translateY(var(--shop-photo-y,0px))!important}
 #zoom.shop-photo-transition #zoombar,#zoom.shop-photo-transition #pinfo,#zoom.shop-photo-transition #zmore,#zoom.shop-photo-transition #buybox{will-change:transform;pointer-events:none!important}
 #zoom.shop-photo-transition #buybox *,#zoom.shop-photo-transition #zmore *,#zoom.shop-photo-transition #pinfo *{pointer-events:none!important}
 #zoom.shop-image-expanded{justify-content:center;background:#0f1620;padding-inline:0}
 #zoom.shop-image-expanded #zoombar,#zoom.shop-image-expanded #pinfo,#zoom.shop-image-expanded #zmore,#zoom.shop-image-expanded #buybox{display:none}
 #zoom.shop-image-expanded #zoomp{width:min(100vw,calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 72px))!important;height:auto!important;aspect-ratio:1/1;border-radius:0!important;box-shadow:none}
 /* Cart / checkout: keep action buttons and inputs inside visual viewport. */
 #cart{top:var(--shop-vtop);height:var(--shop-vh);padding-top:calc(var(--shop-safe-t) + 48px);padding-bottom:calc(var(--shop-safe-b) + 76px);overscroll-behavior:contain}
 #cartlist{min-height:calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 48px);padding-bottom:calc(88px + var(--shop-safe-b))}
 #zcheck{transition:none;bottom:calc(var(--shop-bottom) + 12px);margin-bottom:0;height:max(44px,9vw);max-height:56px}
 #zcheck:before{font-size:clamp(12px,3vw,16px)}
 #zcheck:after{font-size:clamp(16px,4vw,22px)}
 #cartret{transition:none;top:calc(var(--shop-vtop) + var(--shop-safe-t));min-height:44px;padding:12px 0;font-size:12px}
 /* Preserve the paper, the original 3D lid, and the separate pay button.
    Fixed final geometry is safe-area aware; GSAP animates the translation. */
 #cart.shop-checkout-active{
   --checkout-width:min(560px,calc(100vw - var(--shop-safe-l) - var(--shop-safe-r) - 24px));
   --checkout-lid:calc(var(--checkout-width) * .095);
   --checkout-pay-bottom:calc(var(--shop-bottom) + 12px);
   --checkout-box-bottom:calc(var(--checkout-pay-bottom) + 60px);
 }
 #cart.shop-checkout-active #cartlist{pointer-events:none}
 #cart.shop-checkout-active #zcheck{pointer-events:none}
 #cart.shop-checkout-active #cartret{width:80vw;height:44px;min-height:44px;padding:0;font-size:12px}
 #cart.shop-checkout-active #box{
   position:fixed;bottom:var(--checkout-box-bottom)!important;width:var(--checkout-width);
   height:auto;max-height:max(96px,calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 132px - var(--checkout-lid)));
   flex-direction:column;justify-content:flex-start;padding:0;
   overflow:visible;border-radius:0;flex:none;
 }
 #cart.shop-checkout-active #pbox{display:block;width:100%;height:var(--checkout-lid);top:calc(0px - var(--checkout-lid));left:0}
 #cart.shop-checkout-active #boxl{position:absolute;top:10px;left:12px;right:auto;width:76px;height:76px}
 #cart.shop-checkout-active #fill{
   position:static;z-index:5;min-height:0;max-height:inherit;overflow-y:auto;overscroll-behavior:contain;
   flex:0 1 auto;justify-content:flex-start;padding:106px 16px 49px;gap:0;
 }
 #cart.shop-checkout-active .fsplit{flex-direction:column;gap:3px;flex:none}
 #cart.shop-checkout-active #fill>.fsplit:nth-of-type(2){margin-top:42px}
 #cart.shop-checkout-active .ipa{font-size:16px;min-height:44px;margin:0;padding:9px}
 #cart.shop-checkout-active .input-wrap{padding-top:16px;flex:none}
 #cart.shop-checkout-active .input-wrap:before{font-size:11px;left:0;color:white}
 #cart.shop-checkout-active #fill>.input-wrap{margin-top:42px}
 #cart.shop-checkout-active #boxs{min-height:24px;margin:12px 0 0}
 #cart.shop-checkout-active #boxval{position:relative;bottom:auto;margin:0;font-size:13px}
 #cart.shop-checkout-active #pay{
   position:fixed;bottom:var(--checkout-pay-bottom)!important;width:var(--checkout-width);
   z-index:99999;flex:none;gap:8px;
 }
 #cart.shop-checkout-active .bpay{min-height:48px;height:48px;margin:0;font-size:12px;line-height:1.1;padding:8px;bottom:auto;gap:6px}
 #cart.shop-checkout-active .pico{width:26px;height:26px;margin-right:0}
 /* Fixed navigation and order status, including provider QR overlays. */
 #filters{bottom:var(--shop-bottom);max-height:calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 70px)}
 #cats{bottom:var(--shop-bottom)}
 #sorter{bottom:calc(var(--shop-bottom) + 20px)}
 #mspre,.sectitle{top:calc(60px + var(--shop-safe-t))}
 #orderpost,#ook,#ono{top:var(--shop-vtop);height:var(--shop-vh);max-height:var(--shop-vh)}
 #ook{justify-content:flex-start;gap:12px;padding:calc(var(--shop-safe-t) + 48px) max(12px,var(--shop-safe-r)) calc(var(--shop-safe-b) + 12px) max(12px,var(--shop-safe-l))}
 #ooktitle,#ookoid,#oostatus,#ooqrbox,#oolist,#oofoot{position:relative;top:auto;bottom:auto;transform:none;flex:none;width:100%;max-width:560px}
 #ooktitle{font-size:20px;line-height:1.2;padding:10px}
 #ookoid{font-size:24px}
 #ookoid:before,#ookoid:after,#oostatus:before{font-size:12px;line-height:1.4;margin:0}
 #ooqrbox{width:100px;padding:6px}
 #ooqr{width:88px;height:88px}#ooqi{width:24px;height:24px}
 #oostatus{font-size:15px;text-align:center}
 #oolist{flex:1 1 140px;min-height:120px;height:auto;overflow-y:auto;padding:12px 6px}
 #oofoot{position:sticky;bottom:0;height:auto;min-height:48px;font-size:18px;flex-wrap:wrap;padding:8px;gap:6px}
 #oofoot:before,#oofoot:after{width:auto;font-size:12px;padding:0}
 #onotitle{top:calc(var(--shop-safe-t) + 48px);font-size:20px;padding:0 16px;text-align:center}
 #payOverlay{top:var(--shop-vtop)!important;height:var(--shop-vh)!important;max-height:var(--shop-vh);padding:calc(var(--shop-safe-t) + 12px) max(12px,var(--shop-safe-r)) calc(var(--shop-safe-b) + 12px) max(12px,var(--shop-safe-l));overflow:auto}
 #payOverlay>div{max-height:100%;overflow:auto;padding:clamp(16px,4vw,28px)!important;margin:auto}
 #payOverlay img{max-width:100%;height:auto!important}
 #payOverlay button{min-height:44px}
 .shop-family-chooser{max-height:calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 24px);top:var(--shop-vtop);margin:auto}
 #sbclose{min-width:44px;min-height:44px}
 #fsend{min-height:44px}
 #bottom{padding-bottom:calc(3.5vw + var(--shop-safe-b))}
 #icp,#colaco{bottom:calc(3.5vw + var(--shop-safe-b))}
}
@media (max-width:760px) and (max-height:500px){
 #zoom{--product-pic:min(calc(100vw - 28px),max(112px,calc(var(--shop-vh) - 270px)));gap:5px}
 #pinfo{min-height:40px}
 #buybox{position:relative}
}

/* Larger mobile cart quantity controls, centered between variant and subtotal. */
@media (max-aspect-ratio:4/5), (max-width:760px){
 #cartlist .cartsubitem{min-height:40px;height:auto;flex:none;align-items:center}
 #cartlist .ciadjust{transform:none;position:absolute;width:clamp(108px,28vw,152px);height:40px;left:50%;margin-left:0;translate:-50% 0;bottom:0}
 #cartlist .cicalc{width:max-content;max-width:25vw;white-space:nowrap}
 #cartlist .ciqty{font-size:clamp(19px,5.6vw,30px);line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
 #cartlist .ciadjust .svx{width:40px;height:40px;padding:6px;stroke-width:1.6;transition:none}
 #cartlist .ciadjust .svx:hover{transform:none}
}

/* Shared catalogue stripe: semantic line break on every screen size. */
.iso[data-mobile-title]::after{content:attr(data-mobile-title);white-space:pre-line}
@media (min-aspect-ratio:4/5) and (min-width:761px){
 .iso[data-mobile-title]::after{font-size:max(11px,1.1vw);line-height:1.15;padding:max(3px,.25vw) 1vw}
}

@media (max-aspect-ratio:4/5), (max-width:760px){
 .iso[data-mobile-title]::after{font-size:3.9vw;line-height:1.15}
}

/* Empty desktop descriptions leave the original right-hand space blank. */
#zoom.shop-no-description #pinfo{display:none!important}

/* Mobile catalogue: header, independent scrollable category rail, sort footer.
   Preserve the original dark translucent bar and horizontal rail animations. */
#mobile-sort-toggle{display:none}
@media (max-aspect-ratio:4/5), (max-width:760px){
 #filters{height:48px;width:98vw;left:1vw;margin:0;padding:0;max-height:calc(var(--shop-vh) - var(--shop-safe-t) - var(--shop-safe-b) - 70px);border-top-left-radius:max(12px,3vw);border-top-right-radius:max(12px,3vw)}
 #fmob{display:flex;height:48px;padding:0;z-index:208}
 #fmhead{padding:0 60px 0 7vw;font-size:clamp(13px,4vw,17px)}
 #fmseta{display:flex;right:max(8px,calc(7vw - 12px));top:2px;width:44px;height:44px}
 #setabar{fill:white;stroke:white;opacity:.7;width:clamp(15px,4vw,20px);height:clamp(15px,4vw,20px)}
 #filters .rail{top:48px;bottom:48px;height:auto;max-height:none;width:100%;padding:4px 44px;flex-direction:column;justify-content:safe center;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
 #filters .rail .filter{flex-shrink:0;line-height:1.2;font-size:clamp(13px,2.2vh,20px);padding:5px 6px;margin:2px 0;text-align:center;white-space:normal}
 #filters .rail .fmain{font-weight:bold}
 #filters .rail .sidel{left:0;top:0;width:44px;height:44px;padding:0;margin:0}
 #filters .rail .sider,#filters #s1a,#filters #s1b,#filters #s1c,#filters .fsep{display:none}
 #mobile-sort-toggle{position:absolute;bottom:2px;right:max(8px,calc(7vw - 12px));width:44px;height:44px;padding:0;border:0;background:transparent;align-items:center;justify-content:center;z-index:209;cursor:pointer}
 #filters.shop-nav-expanded #mobile-sort-toggle{display:flex}
 #mobile-sort-toggle .bacora{width:22px;height:22px;opacity:.7;margin:0}
 #mobile-sort-toggle[aria-expanded="true"] .bacora{opacity:1}
 #filters #sorter{position:absolute;bottom:0;right:0;width:100%;height:48px;padding:0 64px 0 5px;gap:4px;justify-content:safe center;align-items:center;background:transparent;z-index:207}
 #filters #sorter #xsort{display:none}
 #filters #sorter .filter{flex:0 1 auto;white-space:nowrap;font-size:clamp(10px,2.8vw,14px);line-height:1.2;margin:0;padding:9px 4px;min-height:44px;display:flex;align-items:center;justify-content:center}
}

/* iOS/WeChat keyboard: one scrollable form, logo participates in flow.
   No floating controls obscuring inputs in the reduced visual viewport. */
@media (max-aspect-ratio:4/5), (max-width:760px){
 #cart.shop-checkout-active.shop-keyboard #box{overflow:hidden}
 #cart.shop-checkout-active.shop-keyboard #pbox{display:none}
 #cart.shop-checkout-active #fill{padding:14px 16px 22px;scroll-padding:12px;max-height:inherit;flex:1 1 auto;align-items:stretch}
 #cart.shop-checkout-active #boxl{position:static;align-self:flex-start;width:64px;height:64px;margin:0 0 12px;flex:none}
 #cart.shop-checkout-active #fill>.fsplit:nth-of-type(2),#cart.shop-checkout-active #fill>.input-wrap{margin-top:16px}
 #cart.shop-checkout-active #fill .fsplit{gap:10px}
 #cart.shop-checkout-active.shop-keyboard{overflow:hidden;padding:0}
 #cart.shop-checkout-active.shop-keyboard #cartlist,#cart.shop-checkout-active.shop-keyboard #cartret,#cart.shop-checkout-active.shop-keyboard #pay,#cart.shop-checkout-active.shop-keyboard #zcheck{visibility:hidden!important;pointer-events:none!important}
 #cart.shop-checkout-active.shop-keyboard #box{top:calc(var(--shop-vtop) + 4px)!important;bottom:auto!important;height:calc(var(--shop-vh) - 8px)!important;max-height:calc(var(--shop-vh) - 8px)!important;transform:none!important}
 #cart.shop-checkout-active.shop-keyboard #fill{height:100%;max-height:100%;padding:12px 16px 24px;overflow-y:auto;-webkit-overflow-scrolling:touch}
 #cart.shop-checkout-active.shop-keyboard #boxl{display:none}
}

/* Payment contrast on every viewport. Keep the logo inside the form's safe space. */
#pay .bpay,#pay .bpay span{color:#fff!important}
@media (max-aspect-ratio:4/5), (max-width:760px){
 #cart.shop-checkout-active #boxl{width:clamp(24px,calc(var(--shop-vh) - 570px),64px);height:clamp(24px,calc(var(--shop-vh) - 570px),64px);transform:none;margin:0 0 5px;object-fit:contain;flex-shrink:0}
 #cart.shop-checkout-active:not(.shop-keyboard) #fill{padding-top:12px;padding-bottom:12px}
 #cart.shop-checkout-active:not(.shop-keyboard) #fill>.fsplit:nth-of-type(2),#cart.shop-checkout-active:not(.shop-keyboard) #fill>.input-wrap{margin-top:10px}
 #cart.shop-checkout-active:not(.shop-keyboard) #boxs{min-height:0;margin:4px 0 0}
}

/* Mobile order receipt — readable item rows */
@media (max-aspect-ratio:4/5), (max-width:760px){
 #ook{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 #ook #ooqrbox{width:220px;max-width:100%;padding:6px;flex:none}
 #ook #ooqr{width:208px;height:208px;max-width:100%;object-fit:contain}
 #ook #ooqi{width:42px;height:42px}
 #ook #oolist{position:relative;top:auto;height:auto;min-height:0;flex:none;overflow:visible;width:100%;padding:6px 12px}
 #ook #oolistin{width:100%}
 #ook .oolistitem{display:grid;grid-template-columns:52px 16px minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-items:center;justify-content:stretch;gap:6px 8px;width:100%;height:auto;min-height:80px;padding:12px 0;margin:0;border-bottom:1px solid rgba(41,63,90,.13)}
 #ook .oolistitem:last-child{border-bottom:0}
 #ook .oisep:before{display:none}
 #ook .oi-ico,#ook .oi-title,#ook .oi-col,#ook .oi-size,#ook .oi-qsub,#ook .oi-total{position:static;width:auto;left:auto;right:auto;white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.3}
 #ook .oi-ico{grid-column:1;grid-row:1/4;width:52px;height:52px;align-self:start}
 #ook .oi-title{grid-column:2/5;grid-row:1;font-size:15px;text-align:left;overflow:visible}
 #ook .oi-col{grid-column:2;grid-row:2;width:14px;height:14px}
 #ook .oi-size{grid-column:3/5;grid-row:2;font-size:12px;text-align:left}
 #ook .oi-qsub{grid-column:2/4;grid-row:3;font-size:13px;text-align:left}
 #ook .oi-total{grid-column:4;grid-row:3;font-size:15px;text-align:right;opacity:1}
 #ook .oi-title.oisame{display:none}
 #ook .oolistitem:not(.oisep){grid-template-rows:0 auto auto;min-height:58px}
 #ook #oofoot{flex:none;position:sticky;bottom:0;z-index:3;margin-top:auto}
 #ook #ootracking{font-size:13px}
}

/* Fill the area below mobile catalogue controls without moving the controls
   or changing GSAP's 48px collapsed / expanded content height. */
@media (max-aspect-ratio:4/5), (max-width:760px){
 #filters{bottom:0;box-sizing:content-box;border-bottom:var(--shop-bottom) solid rgba(var(--cc-r-bu),.9);background-clip:padding-box}
}

/* Checkout feedback lives above the package, on the plain green background. */
@media(max-aspect-ratio:4/5),(max-width:760px){
 #cart.shop-checkout-active #box #boxs{position:absolute;bottom:calc(100% + var(--checkout-lid) + 8px);left:0;width:100%;margin:0;padding:0 8px;min-height:0}
 #cart.shop-checkout-active #box #boxval{font-size:14px;color:#293f5a;line-height:1.35;margin:0;text-shadow:none}
 #cart.shop-checkout-active.shop-keyboard #box #boxs{top:0;bottom:auto;background:#ddeb17;padding:5px 8px}
}
