.bsj-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid #018080;
  border-radius: 999px;
  background: #ffffff;
  color: #005f5f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 24px rgba(0, 63, 63, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.bsj-back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

.bsj-back-to-top:hover,
.bsj-back-to-top:focus-visible {
  background: #005f5f;
  color: #ffffff;
  border-color: #005f5f;
  outline: none;
}

@media (max-width: 767px) {
  .bsj-back-to-top {
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsj-back-to-top {
    transition: opacity .01s linear, visibility .01s linear;
    transform: none !important;
  }
}
