/* Floating "back to top" button (components/layout/BackToTopButton.tsx) —
 * fixed to the viewport, shown/hidden by useScrolled based on scroll
 * position (not a footer-only, always-visible button anymore). */
.sw-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--sw-primary);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.sw-back-to-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sw-back-to-top:hover {
  background: var(--sw-primary-hover);
}

@media (max-width: 767px) {
  .sw-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
