/* R45 — mobile: iframe externo é overlay integral; internamente somente áreas próprias rolam. */
html,body.widget-page{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;}
body.widget-page{display:flex!important;flex-direction:column!important;overscroll-behavior:none!important;}
.widget-head{flex:0 0 auto!important;}
#widget-root{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important;}
#widget-root>[data-step="start"],#widget-root>[data-step="identify"],#widget-root>[data-step="chat"]{min-height:0!important;max-height:100%!important;}
#widget-root>[data-step="start"],#widget-root>[data-step="identify"]{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;}
#widget-root>[data-step="identify"] input,#widget-root>[data-step="identify"] textarea,#widget-root>[data-step="start"] input{scroll-margin-top:12px!important;scroll-margin-bottom:18px!important;font-size:16px!important;}
html.nowchat-field-focused body.widget-page{overflow:hidden!important;}
html.nowchat-field-focused #widget-root>[data-step="identify"],html.nowchat-field-focused #widget-root>[data-step="start"]{overscroll-behavior:contain!important;}
.widget-flow-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;}
.widget-composer-r40{position:relative!important;inset:auto!important;transform:none!important;translate:none!important;}
@media(max-width:700px){
  .widget-head{height:72px!important;min-height:72px!important;padding:9px 11px!important;}
  #widget-root{padding:9px!important;}
  #widget-root>[data-step="identify"]{padding-bottom:max(18px,env(safe-area-inset-bottom))!important;}
  #widget-root>[data-step="identify"] form{padding-bottom:max(18px,env(safe-area-inset-bottom))!important;}
}
