/* TRINITY-MICROBLADING-004: shared public back-to-top component. */
.back-to-top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(32, 27, 25, 0.2);
  border-radius: 0 !important;
  background: rgba(251, 249, 246, 0.96);
  box-shadow: 0 10px 30px rgba(32, 27, 25, 0.14);
  color: #201b19;
  font: 700 1rem/1 "Source Sans 3", sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #201b19;
  color: #fff;
}

@media (max-width: 47.99rem) {
  .back-to-top {
    left: 1rem;
  }

  body:has(> .mobile-booking-bar) .back-to-top {
    bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition-duration: 0.01ms;
  }
}
