/* ============================================================
   25-deardoc — keeps DearDoc's injected widgets off the site's own controls.
   rw-widget-floating = floating Google-reviews slider, #ada-widget-host = accessibility
   button, #ddc-sc = chatbot (all injected by DearDoc's code.js).
   ============================================================ */

/* Phones/tablets (<=820px, where the sticky Call / Book Now bar shows): the floating reviews
   slider sat on top of that bar and the hero buttons. Reviews are already on the page
   (testimonials + live Google section). */
@media (max-width: 820px) {
  rw-widget-floating,
  [data-rw-floating] {
    display: none !important;
  }
}

/* Mobile menu open (01-nav.js sets body.sec-01-nav-lock): hide the floating widgets so
   they don't cover the bottom menu links and CTA. Selector specificity beats DearDoc's
   own "#ddc-sc{display:block !important}". */
body.sec-01-nav-lock rw-widget-floating,
body.sec-01-nav-lock #ada-widget-host,
body.sec-01-nav-lock #ddc-sc {
  display: none !important;
}

/* Chat open on a phone (DearDoc sets html.ddc-html--m--active): the accessibility button
   was sitting on top of the chat's reply buttons. */
html.ddc-html--m--active #ada-widget-host {
  display: none !important;
}
