/* HTNS v287 — final chat handle drag-position fix.
   A legacy Events layer pinned the handle with top:auto/bottom:... !important,
   which prevented JavaScript top changes from moving it vertically. This final
   override restores a variable-driven top position and gives iPhone a larger
   visible touch target near the screen edge. */

#htnsChatHandle,
#htnsChatHandle.chat-visible,
#htnsChatHandle:hover,
#htnsChatHandle:focus-visible{
  right:calc(-10px + env(safe-area-inset-right)) !important;
  top:var(--htns-chat-handle-top,50%) !important;
  bottom:auto !important;
  width:60px !important;
  height:76px !important;
  border-radius:18px 0 0 18px !important;
  touch-action:none !important;
  overscroll-behavior:none !important;
  -webkit-user-select:none !important;
  user-select:none !important;
  -webkit-touch-callout:none !important;
}

#htnsChatHandle.chat-handle-dragging{
  right:calc(-3px + env(safe-area-inset-right)) !important;
  transition:none !important;
}

@media (min-width:720px){
  #htnsChatHandle,
  #htnsChatHandle.chat-visible,
  #htnsChatHandle:hover,
  #htnsChatHandle:focus-visible{
    right:-10px !important;
    top:var(--htns-chat-handle-top,50%) !important;
    bottom:auto !important;
  }
}
