.avs-budget-filter {
  min-width: 320px;
}

.avs-range-compact {
  height: 0.4rem;
  padding: 0;
  margin-top: 0;
}

.avs-budget-filter .filter-container {
  position: relative;
  width: 60%;
}

.avs-budget-filter input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  outline: none;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  background-color: transparent;
  pointer-events: none;
}

.avs-budget-filter .slider-track {
  width: 100%;
  height: 5px;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  border-radius: 5px;
}

.avs-budget-filter input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 5px;
}

.avs-budget-filter input[type="range"]::-moz-range-track {
  -moz-appearance: none;
  height: 5px;
}

.avs-budget-filter input[type="range"]::-ms-track {
  appearance: none;
  height: 5px;
}

.avs-budget-filter input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 1.2em;
  width: 1.2em;
  background-color: var(--avs-primary);
  cursor: pointer;
  margin-top: -7px;
  pointer-events: auto;
  border-radius: 50%;
}

.avs-budget-filter input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 1.2em;
  width: 1.2em;
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--avs-primary);
  pointer-events: auto;
  border: none;
}

.avs-budget-filter input[type="range"]::-ms-thumb {
  appearance: none;
  height: 1.7em;
  width: 1.7em;
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--avs-primary);
  pointer-events: auto;
}

.avs-budget-filter input[type="range"]:active::-webkit-slider-thumb {
  background-color: #ffffff;
  border: 1px solid var(--avs-primary);
}

.avs-budget-filter .filter-values {
  background-color: var(--avs-primary);
  width: 32%;
  position: relative;
  margin: auto;
  padding: 4px 0;
  border-radius: 30px;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  color: #ffffff;
}

.avs-budget-filter .filter-values:before {
  position: absolute;
  height: 0;
  width: 0;
  border-top: 15px solid var(--avs-primary);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  margin: auto;
  bottom: -14px;
  left: 0;
  right: 0;
}

/* On réduit la piste du range via la classe Bootstrap form-range */
.avs-range-compact::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
}

.avs-range-compact::-moz-range-thumb {
  width: 14px;
  height: 14px;
}

.avs-range-compact::-ms-thumb {
  width: 14px;
  height: 14px;
}

.avs-budget-note {
  margin-top: 0.15rem;
  color: #2f7f4f;
  font-size: 0.78rem;
}

.avs-budget-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 40px 40px 40px 3px;
  background-color: rgba(0, 155, 160, 0.08);
  border: 1px solid rgba(0, 155, 160, 0.35);
  color: var(--avs-primary);
  font-weight: 600;
  white-space: nowrap;
}

.avs-budget-highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--avs-tertiary);
}

