@import 'mixin';
@import 'extend';
@import 'variables';
/**
 * Plugin: Ion.RangeSlider
 * Ver: 2.0.3
 * 2013-2014 Denis Ineshin | IonDen.com
 * Redesign: Steve Piper
 */

.irs {
  position: relative;
  display: block;
  height: 40px;
  -webkit-touch-callout: none;
  @extend %user-select;
}

.irs-line {
  position: relative;
  display: block;
  overflow: hidden;
  height: 12px;
  top: 25px;
  outline: none;
}

.irs-line-left,
.irs-line-mid,
.irs-line-right {
  position: absolute;
  display: block;
  top: 0;
  height: 12px;
  width: 10%;
}

.irs-line-left {
  left: 0;
}

.irs-line-mid {
  left: 10%;
}

.irs-line-right {
  right: 0;
}

.irs-bar-edge {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  top: 25px;
  height: 12px;
  width: 5px;
}

.irs-shadow {
  position: absolute;
  left: 0;
  top: 34px;
  display: none;
  width: 0;
  height: 3px;
}

.irs-slider {
  position: absolute;
  display: block;
  left: 0;
  width: 5px;
  height: 18px;
  top: 22px;
  cursor: pointer;
  &.from {
    left: 100px;
    &:before {
      content: '';
      position: absolute;
      display: block;
      top: -30%;
      left: 0;
      width: 200%;
      height: 170%;
    }
  }
  &.to {
    left: 300px;
    &:before {
      content: '';
      position: absolute;
      display: block;
      top: -30%;
      right: 0;
      width: 200%;
      height: 170%;
    }
  }
  &.single {
    left: 10px;
    &:before {
      content: '';
      position: absolute;
      display: block;
      top: -30%;
      left: -30%;
      width: 160%;
      height: 160%;
    }
  }
}

.irs-slider.type_last {
  z-index: 2;
}

.irs-min,
.irs-max {
  position: absolute;
  display: block;
  cursor: default;
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  top: 0;
  padding: 1px 3px;
}

.irs-min {
  left: 0;
}

.irs-max {
  right: 0;
}

.irs-from,
.irs-to,
.irs-single {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  cursor: default;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  padding: 1px 5px;
  &:after {
    position: absolute;
    display: block;
    content: "";
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -3px;
    overflow: hidden;
    border: 3px solid transparent;
  }
}

.irs-grid {
  position: absolute;
  display: none;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
}

.irs-with-grid {
  height: 60px;
  .irs-grid {
    display: block;
  }
}

.irs-grid-pol {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  &.small {
    height: 4px;
  }
}

.irs-grid-text {
  position: absolute;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 9px;
  padding: 0 3px;
  line-height: 9px;
}

.irs-disable-mask {
  position: absolute;
  display: block;
  top: 0;
  left: -1%;
  width: 102%;
  height: 100%;
  cursor: default;
  z-index: 2;
}

.irs-disabled {
  @extend %opacity-04;
}

.irs-hidden-input {
  position: absolute !important;
  display: block !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  z-index: -9999 !important;
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
}

.irs-bar {
  position: absolute;
  display: block;
  left: 0;
  width: 0;
  height: 12px;
  top: 25px;
}

.irs-line {
  background: #ccc;
}

.irs-bar-edge {
  background: $primary-color;
}

.irs-shadow {
  background: #000;
  opacity: 0.25;
}

.lt-ie9 .irs-shadow {
  filter: alpha(opacity=25);
}

.irs-slider {
  background: $primary-color;
  &.state_hover,
  &:hover {
    background: darken($primary-color, 10);
  }
}

.irs-min,
.irs-max {
  color: #999;
  background: #e1e4e9;
}

.irs-from,
.irs-to,
.irs-single {
  color: #fff;
  background: $primary-color;
  &:after {
    border-top-color: $primary-color;
  }
}

.irs-grid-pol {
  background: #b3b3b3;
}

.irs-grid-text {
  color: #808080;
}

.irs-disable-mask {
  background: rgba(0, 0, 0, 0.0);
}

.irs-bar {
  background: $primary-color;
}