/* v575 — public Customer focused-category rail touch-scroll repair.
   Scope is intentionally limited to the public /order Customer app. */
body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}

body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-rail-scroll-v497{
  display:flex;
  flex-wrap:nowrap;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scroll-snap-type:none!important;
  scroll-padding-inline:0;
  scrollbar-width:none;
  touch-action:auto;
  padding-bottom:6px;
}

body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-rail-scroll-v497::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-mini-v497{
  flex:0 0 auto;
  scroll-snap-align:none!important;
  scroll-snap-stop:normal!important;
}

/* Preserve easy vertical page scrolling when a swipe starts over a category card. */
body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-mini-v497{
  touch-action:manipulation;
}

/* v576 — actual-device nested horizontal gesture repair.
   v214 intentionally constrains the Customer PWA root to vertical pan. In Chromium's
   touch arbitration that ancestor restriction wins before the nested Change section
   can claim a horizontal swipe. Keep vertical page scrolling native and reserve only
   horizontal gestures inside this rail for the tiny v576 drag runtime below. */
body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-rail-scroll-v497,
body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-rail-scroll-v497 *{
  touch-action:pan-y pinch-zoom!important;
}

body.shop-page.category-first-v498[data-staff-table-order="false"][data-staff-quick-order="false"] .customer-category-change-rail-v498 .customer-category-rail-scroll-v497.is-dragging-v576{
  cursor:grabbing;
  user-select:none;
  -webkit-user-select:none;
  scroll-behavior:auto!important;
}
