.puante-back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 980;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(232, 95, 0, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(88, 49, 20, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

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

.puante-back-to-top:hover,
.puante-back-to-top:focus-visible {
  background: #c95000;
}

.puante-back-to-top:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.28);
  outline-offset: 3px;
}

.puante-back-to-top__icon {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .puante-back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

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