/* Owdex Chat R21 — widget: um único scroll para histórico + compositor.
   O compositor permanece visualmente ancorado em envio/recebimento e só acompanha rolagem manual. */
#widget-root>[data-step="chat"]{min-height:0!important;overflow:hidden!important;position:relative!important}
.widget-flow-scroll[data-widget-scroll-host],
.widget-flow-scroll[data-public-scroll-host]{
  height:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;flex-direction:column!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
  scroll-padding-block:8px!important;overflow-anchor:auto!important;
}
.widget-flow-scroll[data-widget-scroll-host]>.queue-banner,
.widget-flow-scroll[data-public-scroll-host]>.queue-banner{flex:0 0 auto!important}
.widget-flow-scroll[data-widget-scroll-host]>.messages,
.widget-flow-scroll[data-public-scroll-host]>.messages{
  height:auto!important;min-height:0!important;max-height:none!important;flex:1 0 auto!important;
  overflow:visible!important;overflow-x:hidden!important;overflow-anchor:none!important;scrollbar-gutter:auto!important;
  overscroll-behavior:auto!important;padding-bottom:18px!important;
}
.widget-flow-scroll[data-widget-scroll-host]>.widget-composer,
.widget-flow-scroll[data-widget-scroll-host]>.widget-composer-r40,
.widget-flow-scroll[data-widget-scroll-host]>[data-widget-composer],
.widget-flow-scroll[data-public-scroll-host]>.public-ticket-composer,
.widget-flow-scroll[data-public-scroll-host]>[data-public-composer]{
  position:relative!important;inset:auto!important;bottom:auto!important;flex:0 0 auto!important;width:100%!important;
  min-width:0!important;margin:0!important;transform:none!important;translate:none!important;overflow-anchor:auto!important;
  scroll-margin-block:8px!important;background:var(--surface)!important;z-index:12!important;
}
.widget-flow-scroll[data-widget-scroll-host]>.widget-upload-status,
.widget-flow-scroll[data-widget-scroll-host]>.widget-closed-actions,
.widget-flow-scroll[data-public-scroll-host]>.widget-upload-status,
.widget-flow-scroll[data-public-scroll-host]>.widget-closed-actions{flex:0 0 auto!important}
.widget-reply-jump:not([hidden]){display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
@media(max-width:820px),(hover:none) and (pointer:coarse){
  .widget-flow-scroll[data-widget-scroll-host],
.widget-flow-scroll[data-public-scroll-host]{-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important}
  .widget-reply-jump{right:max(12px,env(safe-area-inset-right))!important;bottom:max(14px,calc(env(safe-area-inset-bottom) + 10px))!important;z-index:520!important}
}
