.back-to-top {
  position: fixed;
  z-index: 90;
  right: 32px;
  bottom: 96px;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #00a76d;
  background: #00a76d;
  color: #fff;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.18s ease;
}

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

.back-to-top:hover {
  background: #00925f;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--sjm-color-gold);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 47.999rem) {
  .back-to-top {
    right: 20px;
    bottom: 104px;
    width: 56px;
    height: 56px;
  }
}
