/* Measured source defect: the out-of-stock actions exceed a 768px viewport.
   Keep source styling; permit the long button labels to wrap on tablets. */
@media (min-width:761px) and (max-width:992px){
 .pd2-actions:has(.pd2-add-cart[onclick*="restock"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .pd2-actions:has(.pd2-add-cart[onclick*="restock"]) .btn{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Native product destinations remain tappable independently of SPA/detail hydration. */
#products .product-card-image-link{display:block;width:100%;height:100%;min-width:0;touch-action:manipulation}
#products .product-name-link{touch-action:manipulation}
@media(hover:none),(pointer:coarse){
 #products .product:hover,#products .product.is-best-seller-card:hover{transform:none!important}
 #products .product-card-image-box img{transition:none!important}
}
#productDetailContainer .pd2-plan-extra{display:block;grid-column:2/-1;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
#productDetailContainer .pd2-plan-card:has(input:disabled){opacity:.65;cursor:not-allowed}
#productDetailContainer .pd2-plan-card:focus-within{outline:2px solid var(--orange);outline-offset:2px}
@media(max-width:768px){
  #productDetailContainer .pd2-plan-grid .plan-options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
  #productDetailContainer .pd2-plan-card{min-width:0!important;width:100%;box-sizing:border-box}
  #productDetailContainer .pd2-plan-name{white-space:normal;overflow-wrap:anywhere}
}

/* Invisible spacing around the floating controls must pass taps to the page. */
@media (max-width: 760px) {
  body #floatingContact,
  body #floatingContact .floating-items {
    pointer-events: none !important;
  }
  body #floatingContact:not(.active) .floating-items {
    display: none !important;
  }
  body:not(.kpos-chat-open) #floatingContact .float-main-btn,
  body:not(.kpos-chat-open) #floatingContact.active .floating-items :is(a[href], button, [role="button"]) {
    pointer-events: auto;
  }
  body.kpos-chat-open #floatingContact {
    display: none !important;
  }
}

/* Let customers finish the active dialog before choosing analytics preferences. */
body:has(#modal.show) #kposConsent {
 visibility: hidden;
 pointer-events: none;
}

/* Keep the floating contact controls clear of mobile menus and dialogs. */
@media(max-width:760px){
 body:has(#mobileMenuPanel.show, #modal.show) #floatingContact{
  visibility:hidden;
 }
}

header nav.menu a:has(> .site-menu-icon),
#mobileMenuPanel a:has(> .site-menu-icon) {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
#mobileMenuPanel a:has(> .site-menu-icon) { display:flex; }
.site-menu-icon {
  flex:0 0 18px;
  width:18px;
  height:18px;
  object-fit:contain;
  vertical-align:middle;
  color:#c54d15;
}
