.ui-slider {
  position: relative;
  text-align: left;
  background: #ede9fe;
  border-radius: 999px;
  height: 8px;
  margin-top: 1rem;
}
.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  cursor: pointer;
  touch-action: none;
  border-radius: 999px;
  background: rgb(var(--color-accent));
  border: 2px solid #fff;
  box-shadow: 0 10px 20px rgba(91, 33, 182, 0.25);
  top: 50%;
  transform: translateY(-50%);
  margin-left: -10px;
}
.ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  font-size: .7em;
  display: block;
  border: 0;
  background: linear-gradient(90deg, rgb(var(--color-accent)), rgb(var(--color-accent)));
  border-radius: 999px;
}
.ui-slider-horizontal .ui-slider-range {
  top: 0;
  height: 100%;
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 100px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Мобильное модальное окно фильтра */
#fast-filter-sidebar.mobile-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  overflow-y: auto;
  padding: 18px 16px 32px;
}
#filter-modal-overlay {
  z-index: 40;
}

/* Стиль чекбоксов фильтра */
.fast-filter-checkbox {
  accent-color: rgb(var(--color-accent));
}

/* Мобильный футер фильтра */
#mobile-filter-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 10px;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
}

.reset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reset-chip.hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  #mobile-filter-header {
    display: none !important;
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }
}

