/* Factory site chrome — scroll-to-top + sticky helpers (vertical covers) */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--primary, #393f94);
  color: #fff;
  text-decoration: none;
  box-shadow:none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  filter: brightness(0.94);
  outline: none;
}
.back-to-top svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
/* Legacy meeting seed id */
#button.back-to-top,
a#button.show {
  /* keep site styles if present; factory JS still toggles .show */
}
@media (max-width: 767px) {
  /*
   * Mobile floating controls sit bottom-right over footer contact/country.
   * Give the footer clear space, park back-to-top lower, and nudge chat up
   * so company/country text stays readable.
   */
  .site-footer {
    padding-bottom: 5.25rem;
  }

  .site-footer__contact,
  .site-footer__contact p[translate="no"] {
    padding-right: 4.75rem;
  }

  .site-footer__copy {
    padding-right: 4.75rem;
  }

  /* Lower than desktop — closer to the bottom edge, clear of contact copy */
  .back-to-top {
    right: 1rem;
    bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Keep LiveChat above the back-to-top and off the country line */
  #chat-widget-container {
    bottom: 3.35rem !important;
    right: 0.75rem !important;
  }
}
