.scf-scroll-progress {
  --scf-scroll-progress: 0;
  --scf-scroll-progress-color: var(--bs-primary, #6c757d);
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 999;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  background: conic-gradient(
    var(--scf-scroll-progress-color) calc(var(--scf-scroll-progress) * 1%),
    rgba(255, 255, 255, .11) 0
  );
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
  isolation: isolate;
  -webkit-appearance: none;
  appearance: none;
}
.scf-scroll-progress::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #202124;
  z-index: -1;
  transition: background .2s ease, transform .2s ease;
}
.scf-scroll-progress__icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, .92);
  transition: transform .2s ease, color .2s ease;
}
.scf-scroll-progress:hover::before { background: #27282a; }
.scf-scroll-progress:hover .scf-scroll-progress__icon {
  color: #fff;
  transform: translateY(-1px);
}
.scf-scroll-progress:focus-visible {
  outline: 2px solid var(--scf-scroll-progress-color);
  outline-offset: 3px;
}
.scf-scroll-progress.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (max-width: 767.98px) {
  .scf-scroll-progress {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  }
  .scf-scroll-progress__icon { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .scf-scroll-progress,
  .scf-scroll-progress::before,
  .scf-scroll-progress__icon { transition: none; }
}
