/* ITM-MOB-V5: phone fixes from the mobile audit (<=767px) */
@media (max-width:767px){
/* product description tables: the theme sizes tables 4.5em (made for the 3px phone root), inside the 14px description that became 63px text + a 900px wide page */
body table{font-size:13px !important}
body .mobile-container table{display:block !important;width:auto !important;max-width:100% !important;height:auto !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch}
body .mobile-container td,body .mobile-container th{width:auto !important}
body .mobile-container img{max-width:100% !important;height:auto !important}
body .mobile-container iframe{max-width:100% !important}
/* cart page buttons (next step / back / quote) had 3px text */
body button.mobile-button{font-size:15px !important}
body button.mobile-button i{font-size:18px !important}
body #itm-recv-sum ~ a > button.mobile-button,body #itm-recv-sum + a > button.mobile-button,body .itm-qbtn{font-size:15px !important}
body .itm-ckall,body .itm-qsel{font-size:13px !important}
/* stock switch + sort row was 4px wider than the screen (page wiggled sideways) */
body .itm-sortbar{box-sizing:border-box !important;max-width:100% !important}
body .itm-sortbar select{min-width:0 !important;flex:0 1 auto !important}
/* type chips: names on up to 2 lines instead of a cut-off first word */
body .itm-types .itm-types-row{max-height:102px !important}
body .itm-types .itm-type{height:46px !important}
body .itm-types .itm-type .nm{display:-webkit-box !important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal !important;font-size:12px !important;line-height:1.25 !important;text-overflow:clip !important;word-break:break-word}
/* brand page header: the authorized-dealer badge sat beside the counts and pushed the page 25px wider than the screen */
body .itm-bh-row{align-items:flex-start !important}
body .itm-bh-main{min-width:0 !important;flex:1 1 auto !important}
body .itm-bh-t{min-width:0 !important;width:100% !important}
body .itm-bh-t h1{font-size:17px !important;line-height:1.3 !important;margin:0 0 4px !important}
body .itm-bh-meta{flex-wrap:wrap !important;align-items:center !important;font-size:12px !important}
body .itm-bh-meta img.pt{flex:0 0 auto !important;width:auto !important;max-width:100% !important;height:auto !important;max-height:60px !important;margin-top:4px !important}
/* back-to-top circle: product/basket pages have their own buy bar (no main nav to hide), keep it above that bar; blog has its own button */
body.itm-bnav-hide:not(:has(#mobile-menu.bottom-menu > a > .mobile-main-button)) #itm-totop{bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important}
body:has(#mg-top) #itm-totop{display:none !important}
/* side menu: quick links + language row sat flush against the screen edge */
body .res-side-menu > div:nth-child(-n+2){padding-left:10px !important;padding-right:10px !important;box-sizing:border-box !important}
/* search: while typing, the search button sits at the end of the row (the filter button is hidden then) and the bottom bar steps aside so it does not cover the results */
body:has(.search-inner .text-input:focus) div.search-inner{padding-right:8px !important}
body:has(.search-inner .text-input:focus) div.search-inner > a.button{margin-left:auto !important}
body:has(.search_result:not(.ng-hide)) #mobile-menu.bottom-menu:has(> a > .mobile-main-button){transform:translateY(110%) !important}
}
