/* ANPLEGALS mobile touch, modal and fixed-widget safeguard */
html{overflow-x:clip;scroll-padding-bottom:90px}body{overflow-x:clip}
.anp-mini-wa{width:40px!important;height:40px!important;right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;z-index:80!important}
@media(max-width:768px){
  input,select,textarea{font-size:16px!important}
  #root .fixed.bottom-4.right-3.z-\[90\],#root .fixed.bottom-6.right-5.z-\[90\]{right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;z-index:90!important}
  #root .fixed.inset-0.z-\[200\]{z-index:1000!important;padding-bottom:env(safe-area-inset-bottom)!important}
  #root .fixed.inset-0.z-\[200\] > div{max-height:calc(100dvh - 16px)!important}
  #root .fixed.inset-0.z-\[200\] form{padding-bottom:max(22px,env(safe-area-inset-bottom))!important;-webkit-overflow-scrolling:touch}
  #root .fixed.inset-0.z-\[200\] input,#root .fixed.inset-0.z-\[200\] select,#root .fixed.inset-0.z-\[200\] textarea,#root .fixed.inset-0.z-\[200\] button{min-height:44px}
  .anp-keyboard-open #root .fixed.bottom-4.right-3.z-\[90\],.anp-keyboard-open #root .fixed.bottom-6.right-5.z-\[90\],.anp-keyboard-open .anp-mini-wa{display:none!important}
  body:has(.anp-mini-wa),body:has(#root .fixed.bottom-4.right-3.z-\[90\]),body:has(#root .fixed.bottom-6.right-5.z-\[90\]){padding-bottom:max(78px,calc(62px + env(safe-area-inset-bottom)))}
}
