/* V2-05.4R.10.4 — dual-handle price range filter */
.smart-price-range {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.smart-price-range > legend {
  margin: 0 0 14px;
  padding: 0;
  color: #292826;
  font-size: 13px;
  font-weight: 700;
}

.smart-price-range__values {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(120px, 180px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.smart-price-range__values > label {
  display: grid;
  gap: 6px;
  color: #666;
  font-size: 11px;
  font-weight: 650;
}

.smart-price-range__input {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 28, 0.14);
  border-radius: 10px;
  background: #fff;
}

.smart-price-range__input:focus-within {
  border-color: #292826;
  box-shadow: 0 0 0 2px rgba(41, 40, 38, 0.08);
}

.smart-price-range__input input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 6px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292826;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  appearance: textfield;
}

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

.smart-price-range__input b {
  padding-right: 12px;
  color: #777;
  font-size: 13px;
  font-weight: 650;
}

.smart-price-range__reset {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(20, 24, 28, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #292826;
  font-weight: 650;
  cursor: pointer;
}

.smart-price-range__reset:hover {
  border-color: rgba(41, 40, 38, 0.36);
}

.smart-price-range__slider {
  --price-start: 0%;
  --price-end: 100%;
  position: relative;
  height: 32px;
  margin: 0 9px;
}

.smart-price-range__track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right,
    #dfe1e4 0 var(--price-start),
    #292826 var(--price-start) var(--price-end),
    #dfe1e4 var(--price-end) 100%);
  transform: translateY(-50%);
}

.smart-price-range__slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.smart-price-range__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.smart-price-range__slider input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #292826;
  box-shadow: 0 0 0 1px rgba(20, 24, 28, 0.24), 0 2px 6px rgba(20, 24, 28, 0.18);
  pointer-events: auto;
  cursor: grab;
  appearance: none;
}

.smart-price-range__slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(41, 40, 38, 0.16);
}

.smart-price-range__slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.smart-price-range__slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #292826;
  box-shadow: 0 0 0 1px rgba(20, 24, 28, 0.24), 0 2px 6px rgba(20, 24, 28, 0.18);
  pointer-events: auto;
  cursor: grab;
}

.smart-price-range__bounds {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: #8a8d91;
  font-size: 11px;
}

@media (max-width: 640px) {
  .smart-price-range__values {
    grid-template-columns: 1fr 1fr;
  }

  .smart-price-range__reset {
    grid-column: 1 / -1;
  }
}
