/* ITM-MOB-V2: phone polish (<=767px) - bottom nav, cart thumbnails, gallery row, buy card, same-category rail */
@media (max-width:767px){
/* bottom nav: 4 equal icons + LINE, labels no longer overlap */
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button){display:flex !important;align-items:center !important;justify-content:space-between !important;gap:2px !important;padding:5px 8px calc(5px + env(safe-area-inset-bottom, 0px)) !important;height:auto !important;min-height:58px !important;box-sizing:border-box !important}
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button) > a.payment-method-icon-mobile{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;flex:1 1 0 !important;min-width:0 !important;margin:0 !important;gap:3px !important;text-decoration:none !important}
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button) > a.payment-method-icon-mobile .mobile-main-button{width:30px !important;height:30px !important;min-width:30px !important;margin:0 !important;padding:0 !important}
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button) > a.payment-method-icon-mobile .mobile-text{font-size:11px !important;line-height:1.2 !important;white-space:nowrap !important;color:#222 !important;margin:0 !important}
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button) > a.payment-method-icon-mobile[href*="lin.ee"]{flex:0 0 auto !important;margin-left:4px !important}
body #mobile-menu.bottom-menu:has(> a > .mobile-main-button) > a[href*="lin.ee"] img{width:86px !important;height:auto !important;display:block !important}
/* product gallery: thumbnails + spare-parts tile on one row (tile used to drop to its own line) */
body .itm-thwrap.has-sp{display:flex !important;align-items:center !important;gap:8px !important}
body .itm-thwrap.has-sp > .itm-thsc{flex:1 1 auto !important;min-width:0 !important;width:auto !important}
body .itm-thwrap.has-sp > .itm-spl.tile{flex:none !important;margin:0 !important;position:static !important}
/* buy card: heart to the card's top-right corner (was alone on its own row); delivery icon no longer touches the text */
body .itm-buy .itm-meta{padding-right:44px !important;flex-wrap:wrap !important;row-gap:4px !important;box-sizing:border-box !important}
body .itm-buy .itm-meta .rt{flex-basis:100% !important;margin-left:0 !important}
body .itm-buy .itm-meta .itm-fav{position:absolute !important;top:12px !important;right:12px !important;margin:0 !important}
body .itm-recv-line svg{margin-right:6px !important;vertical-align:-3px !important}
/* cart thumbnails that floated over the page (cart button + badge in the header already) */
body #mobile-menu.top-menu{display:none !important}
/* "same category" rail label was ~3px tall */
body #itm-rel .h{font-size:12px !important;line-height:1.4 !important;margin:0 0 4px !important}
body #itm-rel{height:auto !important;overflow:hidden !important;margin:6px 0 !important}
body #itm-rel .vp{height:auto !important;overflow:hidden !important}
body #itm-rel .tr{display:flex !important;flex-wrap:nowrap !important;width:max-content !important;height:auto !important;gap:8px !important}
body #itm-rel .tr > a{flex:0 0 auto !important;max-width:260px !important}
}
