.pull-refresh {
  position: fixed;
  z-index: 1200;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 0.55rem 1.6rem rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translate(-50%, -4rem);
  transition: transform 160ms ease, opacity 160ms ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.pull-refresh.is-visible {
  opacity: 1;
}

.pull-refresh-icon {
  display: inline-grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transform-origin: center;
}

.pull-refresh.is-pulling .pull-refresh-icon,
.pull-refresh.is-refreshing .pull-refresh-icon {
  animation: pull-refresh-spin 700ms linear infinite;
}

.pull-refresh.is-ready .pull-refresh-icon {
  animation-duration: 420ms;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pull-refresh {
    transition: none;
  }

  .pull-refresh.is-pulling .pull-refresh-icon,
  .pull-refresh.is-refreshing .pull-refresh-icon {
    animation: none;
  }
}
