.wz-back-to-top {
  position: fixed;
  z-index: 900;
  right: max(18px, calc(14px + env(safe-area-inset-right, 0px)));
  bottom: max(24px, calc(18px + env(safe-area-inset-bottom, 0px)));
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e40046;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  cursor: pointer;
}

.wz-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wz-back-to-top:hover,
.wz-back-to-top:focus-visible {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  outline: 3px solid rgba(228, 0, 70, 0.24);
  outline-offset: 3px;
}

.wz-back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 700px) {
  .wz-back-to-top {
    right: max(14px, calc(10px + env(safe-area-inset-right, 0px)));
    bottom: max(82px, calc(76px + env(safe-area-inset-bottom, 0px)));
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wz-back-to-top {
    transition: none;
  }
}
