/* 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: 0 4px 14px color-mix(in srgb, var(--ink, #111) 18%, 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: 768px) {
  /* Sit below footer copy; footer padding keeps text clear of both floats */
  .back-to-top {
    right: 0.85rem;
    bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-footer {
    padding-bottom: 5rem;
  }

  .site-footer__copy {
    padding-bottom: 0.75rem;
  }

  .site-footer__copy p {
    padding-inline: 3rem;
  }

  /* LiveChat bubble — keep off address “United Kingdom” on phones */
  #chat-widget-container {
    bottom: max(0.35rem, env(safe-area-inset-bottom, 0px)) !important;
  }
}
