@import './variables';

/* placeholders */
.western-input {
  color: $main-color;
}

.western-input:focus {
  color: $main-color;
}

input.form-control.western-input::-webkit-input-placeholder {
  /* WebKit, Blink, Edge */
  color: rgb(236, 236, 236) !important;
}
input.form-control.western-input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: rgb(236, 236, 236) !important;
  opacity: 1;
}
input.form-control.western-input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: rgb(236, 236, 236) !important;
  opacity: 1;
}
input.form-control.western-input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: rgb(236, 236, 236) !important;
}

input.form-control.western-input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: 0 0 0 1000px $lite-gray inset !important;
  -webkit-text-fill-color: $main-color !important;
}

/* input[type="range"] */
input[type='range'] {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  width: 100%;
  height: 3px;
  margin-bottom: 15px;
  border: none;
  padding: 0;
  background: $lightest-gray;
  outline: none;

  &::-moz-range-track {
    border: inherit;
    background: transparent;
  }

  &::-ms-track {
    border: inherit;
    color: transparent;
    background: transparent;
  }

  &::-ms-fill-lower,
  &::-ms-fill-upper {
    background: transparent;
  }

  &::-ms-tooltip {
    display: none;
  }

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 15px;
    border: solid 1px gainsboro;
    background: $lightest-gray;
  }
  &::-moz-range-thumb {
    width: 40px;
    height: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to bottom, #529de1 0, #245e8f 100%);
  }

  &::-ms-thumb {
    width: 40px;
    height: 18px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(to bottom, #529de1 0, #245e8f 100%);
  }
}

select {
  padding: 8px;
  border: solid 1px $main-color;
  color: $main-color;

  &:focus {
    outline: none;
  }
}

input[type='checkbox'] {
  width: 20px;
  height: 20px;
}
