.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #afb9d2;
  -webkit-box-shadow: 0 4px 8px rgba(29, 63, 131, 0.15);
  box-shadow: 0 4px 8px rgba(29, 63, 131, 0.15);
  color: var(--color-bg-surface);
  text-align: center;
  text-decoration: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  opacity: 0;
  visibility: hidden;
  transition: background .3s, opacity .3s, visibility .3s;
}

.back-to-top:focus {
  background: #afb9d2;
  color: var(--color-bg-surface);
}

.back-to-top:hover {
  background: #1D3F83;
  color: var(--color-bg-surface);
}

.back-to-top i {
  font-size: 1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
