input[type='range'] {
  -webkit-appearance: none;
  width: 100%;
}

input[type='range']::-webkit-slider-runnable-track {
  width: 300px;
  height: 5px;
  border: none;
  border-radius: 3px;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #a0a0a0;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: white;
  margin-top: -8px;
}

input[type='range']:focus {
  outline: none;
}

input[type='range']::-moz-range-track {
  width: 300px;
  height: 5px;
  border: none;
  border-radius: 3px;
}

input[type='range']::-moz-range-thumb {
  border: 1px solid #a0a0a0;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: white;
}

input[type='range']::-ms-fill {
  background-color: 'accessories';
  height: 1em;
}

input[type='range']::-moz-range-progress {
  height: 1em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #dedede;
  background-color: #fdfafa;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: #a0a0a0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: white;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

input:checked + .round:before {
  background-color: #51ba6f;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media screen and (min-width: 450px) {
  .switch {
    width: 66px;
    height: 42px;
  }
  .slider:before {
    height: 34px;
    width: 32px;
  }
}

