.back-to-top {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgb(220 73 153 / .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 160ms ease, visibility 0s 180ms;
}
.back-to-top_visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top:disabled { opacity: 0; }
.back-to-top:active { background: var(--color-brand-active); }
@media (hover: hover) {
  .back-to-top:hover { background: var(--color-brand-hover); }
}
@media (max-width: 767px) {
  .back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transform: none; }
}
