/* Arena Teney — Forge F.2.2B picker gesture isolation
 * iPhone Safari vertical pan is JS-routed by 0185p01/p02/p03/p04. The picker itself is not
 * a native vertical scroll container, preventing scroll chaining/indicators.
 */
html.i185-picker-modal-lock,
body.i185-picker-modal-lock{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overscroll-behavior:none!important;
  width:100%!important;
  max-width:100%!important;
}

#i180-forge-layer.i185-picker-gesture-lock{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overscroll-behavior:none!important;
  width:100%!important;
  max-width:100%!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i180-forge-shell,
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-scroll{
  overflow:hidden!important;
  overflow-x:hidden!important;
  overscroll-behavior:none!important;
  -webkit-overflow-scrolling:auto!important;
  width:100%!important;
  max-width:100%!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker,
#i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker{
  inset:0!important;
  width:100%!important;
  max-width:100%!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet{
  touch-action:none!important;
  box-sizing:border-box!important;
  left:50%!important;
  right:auto!important;
  width:min(calc(100% - 12px),760px)!important;
  max-width:760px!important;
  max-height:min(88dvh,820px)!important;
  transform:translate3d(-50%,calc(105% + var(--i182-drag-y,0px)),0)!important;
}

#i180-forge-layer.i185-picker-gesture-lock.i182-picker-open .i182-picker-sheet{
  transform:translate3d(-50%,var(--i182-drag-y,0px),0)!important;
}

/* VisualViewport keyboard mode.
 * Keep the modal overlay full-screen; only the sheet is mapped to the visible
 * Safari viewport. This prevents the Forge underneath from leaking through any
 * keyboard/accessory-bar gap. */
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-backdrop{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background:rgba(4,4,8,.965)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  backdrop-filter:blur(12px)!important;
}

#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-sheet{
  top:var(--i185-vv-top,0px)!important;
  bottom:auto!important;
  height:var(--i185-vv-height,100dvh)!important;
  min-height:var(--i185-vv-height,100dvh)!important;
  max-height:var(--i185-vv-height,100dvh)!important;
  padding-bottom:0!important;
  border-radius:22px 22px 0 0!important;
}

/* Compact non-essential chrome while the keyboard is visible. */
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-grab{
  margin-top:5px!important;
  margin-bottom:1px!important;
}
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-title{
  padding-top:5px!important;
  padding-bottom:7px!important;
}
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-title small{
  font-size:7px!important;
}
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-title strong{
  font-size:16px!important;
}
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker .i180-forge-controls{
  padding-top:6px!important;
  padding-bottom:5px!important;
}
#i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-body{
  padding-bottom:6px!important;
  flex:1 1 auto!important;
  min-height:0!important;
}

/* 0185 owns vertical movement itself, so no native vertical scroller is needed. */
#i180-forge-layer.i185-picker-gesture-lock .i182-picker-body{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0 12px calc(14px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  overflow-x:hidden!important;
  overscroll-behavior:none!important;
  -webkit-overflow-scrolling:auto!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  touch-action:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker-body::-webkit-scrollbar,
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-scroll::-webkit-scrollbar,
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-items::-webkit-scrollbar,
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-filters::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
  background:transparent!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i180-forge-items{
  overflow:visible!important;
  max-height:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i180-forge-filters{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker-title,
#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-controls,
#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-panel,
#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-items,
#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-item{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker-title{
  padding-left:14px!important;
  padding-right:14px!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-controls{
  padding-left:0!important;
  padding-right:0!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-item{
  grid-template-columns:48px minmax(0,1fr) minmax(54px,max-content)!important;
  column-gap:10px!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-item-copy{
  min-width:0!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-item-copy strong{
  min-width:0!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-height:1.2!important;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker .i180-forge-item-side{
  min-width:54px!important;
  max-width:72px!important;
  overflow:visible!important;
}

/* Inputs below 16px trigger iPhone Safari page zoom. */
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-search input,
#i180-forge-layer.i185-picker-gesture-lock .i180-forge-search input:focus{
  font-size:16px!important;
  line-height:1.2!important;
  max-width:100%!important;
  min-width:0!important;
  transform:none!important;
  -webkit-text-size-adjust:100%!important;
  touch-action:none!important;
}

#i180-forge-layer.i185-picker-gesture-lock button,
#i180-forge-layer.i185-picker-gesture-lock a{
  touch-action:manipulation;
}

#i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet.is-dragging{
  transition:none!important;
}

#i180-forge-layer.i185-picker-dragging .i182-picker-backdrop{
  opacity:calc(1 - (var(--i182-drag-progress,0) * .56))!important;
}

@media(max-width:520px){
  #i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet{
    width:calc(100% - 8px)!important;
    max-height:min(89dvh,820px)!important;
  }
  #i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-sheet{
    height:var(--i185-vv-height,100dvh)!important;
    min-height:var(--i185-vv-height,100dvh)!important;
    max-height:var(--i185-vv-height,100dvh)!important;
  }
}

@media(max-height:720px){
  #i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet{
    max-height:92dvh!important;
  }
  #i180-forge-layer.i185-picker-gesture-lock.i185-search-focused .i182-picker-sheet{
    height:var(--i185-vv-height,100dvh)!important;
    min-height:var(--i185-vv-height,100dvh)!important;
    max-height:var(--i185-vv-height,100dvh)!important;
  }
}

@media(prefers-reduced-motion:reduce){
  #i180-forge-layer.i185-picker-gesture-lock .i182-picker-sheet{
    transition:none!important;
  }
}
