.scroll-to-top {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 2147483642;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 4vw, 3.375rem);
  height: clamp(3rem, 4vw, 3.375rem);
  padding: 0;
  border: 0.0625rem solid #ca5c47;
  border-radius: 999rem;
  background: #ca5c47;
  color: #fff;
  box-shadow: 0 1rem 2.25rem rgba(202, 92, 71, 0.32);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  display: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.scroll-to-top.show,
button.scroll-to-top.show {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  border-color: #000;
  background: #000;
  color: #fff;
}

.scroll-to-top:focus-visible {
  outline: 0.125rem solid #9e8667;
  outline-offset: 0.25rem;
}

.scroll-to-top .fa-arrow-up {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1;
}

@media (max-width: 767.98px) {
  .scroll-to-top {
    bottom: 4.9rem;
  }
}

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

body.nav-overlay-open .scroll-to-top {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
