.ij-back-to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.95);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.ij-back-to-top:hover {
  background: rgba(29, 78, 216, 0.98);
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.32);
}

.ij-back-to-top:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
}

.ij-back-to-top svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

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