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;
}
.slider-track {
  width: 100%;
  height: 2px;
  position: absolute;
  margin: auto;
  top: -5px;
  bottom: 0;
  border-radius: 5px;
  background: #e0e0e5;
}

input[type='range']::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 5px;
}
input[type='range']::-moz-range-track {
  -moz-appearance: none;
  height: 5px;
}
input[type='range']::-ms-track {
  appearance: none;
  height: 5px;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background-color: #fffbe6;
  cursor: pointer;
  border: 4px solid var(--base-blue);
  margin-top: -10px;
  pointer-events: auto;
  border-radius: 50%;
}

input[type='range']::-webkit-slider-thumb::backdrop {
  background-color: var(--base-blue);
}

@-moz-document url-prefix() {
  .slider-track {
    top: 0;
  }
}

input[type='range']::-moz-range-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background-color: #fffbe6;
  cursor: pointer;
  border: 4px solid var(--base-blue);
  margin-top: -9px;
  pointer-events: auto;
  border-radius: 50%;
}
input[type='range']::-ms-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background-color: #3f8bff;
  border: #3f8bff;
  cursor: pointer;
  margin-top: -9px;
  pointer-events: auto;
  border-radius: 50%;
}

.values {
  background-color: var(--base-blue);
  width: 32%;
  position: relative;
  margin: auto;
  padding: 10px 0;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  font-size: 25px;
  color: #ffffff;
}
.values:before {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-top: 15px solid var(--base-blue);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  margin: auto;
  bottom: -14px;
  left: 0;
  right: 0;
}
