$sliderHeight: 5px !default;
$sliderBorderRadius: 5px !default;
$sliderBackgroundColor: #1B171A !default;
$sliderThumbBackgroundColor: #a5a5a5 !default;
$sliderThumbHoverBackgroundColor: #fff !default;
$sliderFilledBackgroundColor: #0061AA !default;
$sliderTimeFontSize: 16px !default;
$sliderTimePadding: 0 1em !default;
$sliderThumbWidth: $sliderHeight * 3 !default;
$sliderThumbHeight: $sliderThumbWidth !default;

slider {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0 5px 0 5px;
  .fill {
    position: absolute;
    align-self: flex-start;
    border-radius: $sliderBorderRadius;
    background: $sliderFilledBackgroundColor;
    height: $sliderHeight;
  }
  .background {
    position: absolute;
    align-self: center;
    width: calc(100% - #{$sliderThumbWidth});
    border-radius: $sliderBorderRadius;
    background: $sliderBackgroundColor;
    height: $sliderHeight;
  }
  input[type=range] {
    position: absolute;
    z-index: 1;
    -webkit-appearance: none;
    background: transparent;
    height: 30px;
    cursor: pointer;
    &:hover,
    &:active {
      &::-webkit-slider-thumb {
        background: $sliderThumbHoverBackgroundColor;
      }
      &::-moz-range-thumb {
        background: $sliderThumbHoverBackgroundColor;
      }
      &::-ms-thumb {
        background: $sliderThumbHoverBackgroundColor;
      }
      &[disabled=disabled]::-webkit-slider-thumb {
        background: $sliderThumbBackgroundColor;
        cursor: not-allowed;
      }
      &[disabled=disabled]::-moz-range-thumb {
        background: $sliderThumbBackgroundColor;
        cursor: not-allowed;
      }
      &[disabled=disabled]::-ms-thumb {
        background: $sliderThumbBackgroundColor;
        cursor: not-allowed;
      }
    }
    &:focus {
      outline: none;
    }
    &::-webkit-slider-runnable-track {
      width: 100%;
      height: $sliderHeight;
      box-shadow: none;
      background: transparent;
      border-radius: $sliderHeight;
      border: none;
    }
    &::-moz-range-track {
      width: 100%;
      height: $sliderHeight;
      cursor: pointer;
      box-shadow: none;
      background: transparent;
      border-radius: $sliderHeight;
      border: none;
    }
    &::-ms-track {
      width: 100%;
      height: $sliderHeight;
      cursor: pointer;
      background: transparent;
      border-color: transparent;
      color: transparent;
    }
    &::-ms-fill-lower {
      background: transparent;
      border: none;
      border-radius: $sliderHeight;
      box-shadow: none;
    }
    &::-ms-fill-upper {
      background: transparent;
      border: none;
      border-radius: $sliderHeight;
      box-shadow: none;
    }
    &::-webkit-slider-thumb {
      box-shadow: none;
      border: none;
      height: $sliderThumbHeight;
      width: $sliderThumbWidth;
      border-radius: 50%;
      background: $sliderThumbBackgroundColor;
      cursor: pointer;
      -webkit-appearance: none;
      margin-top: -($sliderThumbHeight / 2) + ($sliderHeight / 2);
    }
    &::-moz-range-thumb {
      box-shadow: none;
      border: none;
      height: $sliderThumbHeight;
      width: $sliderThumbWidth;
      border-radius: 50%;
      background: $sliderThumbBackgroundColor;
      cursor: pointer;
    }
    &::-ms-thumb {
      box-shadow: none;
      border: none;
      height: $sliderThumbHeight;
      width: $sliderThumbWidth;
      border-radius: 50%;
      background: $sliderThumbBackgroundColor;
      background: transparent;
      cursor: pointer;
      height: $sliderHeight;
    }
  }
}