/* =========================================
   AF Scroll Buttons (AdvancedJSBandle)
   - fixed buttons right side
   - smooth UI, no theme sprites
   ========================================= */

.af-sb-wrap{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* кликаются только кнопки */
}

.af-sb-btn{
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* убиваем любые sprite-правила темы */
  background-image: none;
  background-repeat: no-repeat;
  background-position: 0 0;

  /* анимации */
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.af-sb-btn.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.af-sb-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.26);
}

.af-sb-btn:active{
  transform: translateY(1px) scale(0.98);
}

.af-sb-btn:focus{
  outline: none;
}

.af-sb-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22), 0 8px 24px rgba(0,0,0,.35);
}

.af-sb-btn i{
  font-size: 16px;
  line-height: 1;
}

/* чуть компактнее на маленьких экранах */
@media (max-width: 520px){
  .af-sb-wrap{ right: 10px; bottom: 12px; }
  .af-sb-btn{ width: 40px; height: 40px; border-radius: 11px; }
}
