.back-to-top {
  position: fixed;
  z-index: var(--z-index-fixed);
  right: 24px;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #0E1424;
  cursor: pointer;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}

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

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

.back-to-top:hover {
  background-color: #eef4ff;
}

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

.back-to-top__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top__arrow {
  transform: rotate(-90deg);
  width: 24px;
  height: 24px;
}

.preview-button-right {
  bottom: 76px;
}

@media screen and (max-width: 991px) {
  .back-to-top {
    right: 16px;
    bottom: 24px;
  }
}
