/* Klara "Message us" widget position (moved here from drkahana.css).
   Kept in its own file so WP Rocket's "Remove Unused CSS" can be told never to trim it:
   the iframe and the .has-back-to-top class only appear after the page loads (added by
   Klara's script and wp.js), so the trimmer would otherwise drop these rules.
   See the rocket_rucss_safelist filter in functions.php. */

/* Starts where the back-to-top button sits. Once the back-to-top button is shown, the html
   element gets .has-back-to-top (see wp.js) and the widget slides up above it. The iframe has an
   8px internal margin, so its right offset is the back-to-top offset minus 8px. */
iframe[title="Message Us"] {
  bottom: 36px !important;
  right: 28px !important;
  transition: bottom 0.3s ease;
}

.has-back-to-top iframe[title="Message Us"] {
  bottom: 96px !important;
}

@media screen and (max-width: 991px) {
  iframe[title="Message Us"] {
    bottom: 24px !important;
    right: 16px !important;
  }

  .has-back-to-top iframe[title="Message Us"] {
    bottom: 84px !important;
  }
}

@media screen and (max-width: 479px) {
  iframe[title="Message Us"] {
    bottom: 12px !important;
    right: 4px !important;
  }

  .has-back-to-top iframe[title="Message Us"] {
    bottom: 72px !important;
  }
}
