/* Product filters */
.v24-filters {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.v24-filter-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-color);
}

.v24-filter-options {
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.v24-filter-options li {
  margin: 0 0 12px;
}

.v24-filter-options li:last-child {
  margin-bottom: 0;
}

.v24-filter-options li.depth-1 {
  padding-left: 16px;
}

.v24-filter-options li.depth-2 {
  padding-left: 32px;
}

.v24-filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  cursor: pointer;
}

.v24-filter-options input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0 2px 0 0;
  accent-color: #1c5da1;
  cursor: pointer;
}

.v24-filter-count {
  opacity: 0.6;
}

/* Price */
.v24-price-values {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.v24-price-values input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 2px;
  background: var(--white);
  font: inherit;
  color: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}

.v24-price-values input::-webkit-outer-spin-button,
.v24-price-values input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.v24-price-slider {
  position: relative;
  height: 30px;
}

.v24-price-track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 6px;
  border-radius: 3px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    #dfe4ec var(--low, 0%),
    #1c5da1 var(--low, 0%),
    #1c5da1 var(--high, 100%),
    #dfe4ec var(--high, 100%)
  );
}

.v24-price-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.v24-price-slider input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 1px solid #dfe4ec;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
}

.v24-price-slider input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 1px solid #dfe4ec;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
}

/* Loading */
#v24_products {
  position: relative;
  transition: opacity 0.15s;
}

#v24_products.v24-loading {
  min-height: 240px;
  opacity: 0.45;
  pointer-events: none;
}

#v24_products.v24-loading::after,
#v24_products.v24-loading-more::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border: 3px solid #dfe4ec;
  border-top-color: #1c5da1;
  border-radius: 50%;
  animation: v24-spin 0.8s linear infinite;
}

#v24_products.v24-loading::after {
  top: 96px;
}

#v24_products.v24-loading-more::after {
  bottom: -52px;
}

#v24_products.v24-loading-more {
  margin-bottom: 72px;
}

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

@media (prefers-reduced-motion: reduce) {
  #v24_products.v24-loading::after,
  #v24_products.v24-loading-more::after {
    animation-duration: 3s;
  }
}

.v24-load-previous {
  display: block;
  margin: 0 auto 24px;
  border: 0;
  cursor: pointer;
}

/* Links stay in the page for search engines; with scripts they only drive loading. */
.v24-catalog-js #v24_pagination {
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
