
/* ITM-BARLOAD-V1 (4 Dec 2026, Sirot: on phones the bottom bar of a product page swaps while the page loads).
   1) Before Angular starts, all four buttons of the bar showed at once (add to cart / LINE / out of stock / reserve) and then two went away.
      Now the two "no stock" buttons stay hidden until Angular decides, the LINE button waits (keeping its place) until it has its final look, and the - 1 + box has its place kept.
   2) Products with several models: the single-product bar showed for a moment and then the "choose a model" bar (#itm-vtbar) slid over it.
      Now the single bar stays blank until the models bar has settled (script below; gives up after 6 s so the buttons can never stay hidden). */
/* V1-1: itm-mob-v7 forces every .button of this bar to display:flex, so ng-cloak never hid anything here - these rules outrank it.
   P = before Angular (children still carry ng-cloak): cart + the in-stock LINE button show, the two "no stock" buttons do not.
   S = Angular is up but the stock answer is not in yet (cart button and the grey button are both .ng-hide): keep the same look, cart not clickable yet. */
/* V1-2: only the grey "out of stock" button - the cart button also carries ng-cloak in the served page (it is added to ng-show elements on the way out) */
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y) > button.bg-grey-500[ng-cloak],html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y) > a[ng-cloak][ng-if="qtotal == 0"]{display:none !important}
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y) > a[ng-cloak][ng-if="qtotal > 0"]{display:flex !important;flex:1 1 0 !important;min-width:0 !important}
/* V1-3: a LINE button of the product bar that does not have its final look yet (before Angular, and again right after Angular re-creates it) keeps its final place but is not painted;
   gives up 4 s after the page starts (html.itm-bl-late) so the button can never stay hidden */
html:not(.itm-bl-late) body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y):not(:has(> a > .mobile-main-button)) > a[href*="lin.ee"]:not(.itm-flb){visibility:hidden;flex:1 1 0 !important;min-width:0 !important;overflow:hidden !important;white-space:nowrap !important}
html:not(.itm-bl-late) body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y):not(:has(> a > .mobile-main-button)) > a[href*="lin.ee"]:not(.itm-flb) > img{display:none !important}
@media (max-width:991px){
#mobile-menu.bottom-menu:has(> [ng-cloak]):has(> button#buy):not(:has(> .itm-fq))::before{content:"";flex:none;width:104px;height:46px;box-sizing:border-box;border:1px solid #d6d6cf;border-radius:10px;background:#fff}
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y):has(> button.bg-grey-500.ng-hide):has(> button#buy.ng-hide) > .itm-fq{display:flex !important;pointer-events:none}
html:not(.itm-vtl-end) body:has(#itm-vt-ph,#itm-vt) #mobile-menu.bottom-menu > *{visibility:hidden !important}
html:not(.itm-vtl-end) body:has(#itm-vt-ph,#itm-vt) #mobile-menu.bottom-menu::before{visibility:hidden}
}
/* V1-4: state S - the cart button is .ng-hide for a moment, so the bar's own look (itm-mob-v7, written for :not(.ng-hide)) is repeated here; otherwise it showed as the old tall red button */
@media (max-width:1279.98px){
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y):has(> button.bg-grey-500.ng-hide) > button#buy.ng-hide{display:flex !important;align-items:center !important;justify-content:center !important;gap:6px !important;margin:0 !important;height:46px !important;min-height:0 !important;line-height:1.2 !important;white-space:nowrap !important;overflow:hidden !important;padding:0 10px !important;border-radius:10px !important;box-shadow:none !important;font-size:15px !important;font-weight:600 !important;width:auto !important;max-width:none !important;box-sizing:border-box !important;background:#EBD412 !important;color:#222 !important;pointer-events:none}
}
@media (max-width:380px){#mobile-menu.bottom-menu:has(> [ng-cloak]):has(> button#buy):not(:has(> .itm-fq))::before{width:92px}}
/* V1-5 (Sirot: the LINE button still blinks when a product page opens): Angular takes both LINE buttons out (ng-if) and puts one back only when the stock answer arrives,
   so for a moment there was no LINE button. A plain copy (.itm-lnph, made by the script below) stands in whenever the bar has no real LINE button. */
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y) > a.itm-lnph{display:none !important}
html body #mobile-menu.bottom-menu:not(#itm-z):not(#itm-y):not(:has(> a[href*="lin.ee"]:not(.itm-lnph))) > a.itm-lnph{display:flex !important}
