/* The shared control replaces the legacy per-page links. */
html.omfys-scroll-to-top-ready .back-to-top {
  display: none !important;
}

#omfys-scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #292664;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 31, 48, 0.22) !important;
  transition: background-color 160ms ease, transform 160ms ease;
}

#omfys-scroll-to-top[hidden] {
  display: none !important;
}

#omfys-scroll-to-top:hover {
  background: #ea4636;
  transform: translateY(-2px);
}

#omfys-scroll-to-top:focus-visible {
  outline: 3px solid #ea4636;
  outline-offset: 3px;
}

#omfys-scroll-to-top svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

@media (max-width: 767px) {
  #omfys-scroll-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #omfys-scroll-to-top {
    transition: none;
  }
}
