/* 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;
  border: 1px solid color-mix(in srgb, #fff 35%, transparent);
  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: 640px) {
  /* Sit lower in the copyright bar so it clears the text line */
  .back-to-top {
    right: 0.65rem;
    bottom: 0.3rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  /* Room below / beside copyright for the up-to-top control */
  .site-footer__copy {
    padding-right: 3.4rem;
    padding-bottom: 2.85rem;
  }

  /* Keep company address / country above the LiveChat bubble */
  .site-footer__main {
    padding-bottom: 5.25rem;
  }

  #chat-widget-container {
    bottom: 4.25rem !important;
  }
}
