/* Keep the native Chatwoot launcher and panel below the site's dialogs. */
#cw-widget-holder:not(.woot--hide) { z-index: 900 !important; }
#cw-bubble-holder .woot-widget-bubble:not(.woot--hide) { z-index: 901 !important; }

body:has(.menu_box.into, .video_popup.show, .xz_popup.show, .login_popup.show, .pay_popup.show, .trade-order-modal:not([hidden])) :is(#cw-bubble-holder, #cw-widget-holder) {
  display: none !important;
}

@media (max-width: 667px) {
  #cw-bubble-holder .woot-widget-bubble.woot-elements--right:not(.woot--hide) {
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
