/* Ion.RangeSlider, Simple Skin
// css version 2.0.3
// © Denis Ineshin, 2014    https://github.com/IonDen
// © guybowden, 2014        https://github.com/guybowden
// ===================================================================================================================*/

/* =====================================================================================================================
// Skin details */

.irs {
    height: 55px;
}

.irs-with-grid {
    height: 75px;
}

.irs-line {
    height: 10px;
    top: 33px;
    background: $color-grey-border-lighter;
    border: 1px solid $color-grey-border-lighter;
    border-radius: 16px;
    -moz-border-radius: 16px;
}

.irs-line-left {
    height: 8px;
}

.irs-line-mid {
    height: 8px;
}

.irs-line-right {
    height: 8px;
}

.irs-bar {
    height: 10px;
    top: 33px;
    border-top: 1px solid $color-white;
    border-bottom: 1px solid $color-white;
    background: $color-white;
    //background: linear-gradient(to top, rgba(66,139,202,1) 0%,rgba(127,195,232,1) 100%); /* W3C */
}

.irs-bar-edge {
    height: 10px;
    top: 33px;
    width: 14px;
    border: 1px solid #428bca;
    border-right: 0;
    background: #428bca;
    background: linear-gradient(to top, rgba(66, 139, 202, 1) 0%, rgba(127, 195, 232, 1) 100%); /* W3C */
    border-radius: 16px 0 0 16px;
    -moz-border-radius: 16px 0 0 16px;
}

.irs-shadow {
    height: 2px;
    top: 38px;
    background: #000;
    opacity: 0.3;
    border-radius: 5px;
    -moz-border-radius: 5px;
}

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

.irs-slider {
    top: 25px;
    width: 27px;
    height: 27px;
    border: 1px solid #AAA;
    background: #DDD;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(220, 220, 220, 1) 20%, rgba(255, 255, 255, 1) 100%); /* W3C */
    border-radius: 27px;
    -moz-border-radius: 27px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.irs-slider.state_hover, .irs-slider:hover {
    background: #FFF;
}

.irs-min, .irs-max {
    color: #333;
    font-family: 'Lucien-book';
    font-size: 1.13em;
    line-height: 1.333;
    text-shadow: none;
    top: 0;
    padding: 1px 5px;
    //background: rgba(0,0,0,0.1);
    border-radius: 3px;
    -moz-border-radius: 3px;
    color: $color-golden;
}

.lt-ie9 .irs-min, .lt-ie9 .irs-max {
    background: #ccc;
}

.irs-from, .irs-to, .irs-single {
    //position:relative;
    color: $color-golden;
    font-size: 14px;
    line-height: 1.333;
    text-shadow: none;
    background: $color-white;
    border-radius: 8px;
    -moz-border-radius: 8px;
    top: 20px;
    z-index: 999;

    @include mobile-landscape-and-below {
        font-size: 10px;
        line-height: 1.333;
    }

}

.irs-from {

    border-left: 2px solid $color-golden;
    border-top: 2px solid $color-golden;
    border-bottom: 2px solid $color-golden;

    @include border-top-radius(10px);
    @include border-right-radius(0px);
    @include border-bottom-radius(0px);
    @include border-left-radius(10px);

    padding: 10px 5px 10px 20px;

    &:after {

        content: '';
        display: block;
        position: absolute;
        top: 0.5px;
        left: 100%;
        width: 0;
        height: 0;
        border-color: transparent transparent transparent $color-white;
        border-style: solid;
        border-width: 18.5px;

    }

    &:before {

        content: '';
        display: block;
        position: absolute;
        top: -2px;
        left: 100%;
        width: 0;
        height: 0;
        border-color: transparent transparent transparent $color-golden;
        border-style: solid;
        border-width: 21.5px;

    }

    @include mobile-landscape-and-below {

        border-left: 2px solid $color-golden;
        border-right: 2px solid $color-golden;
        border-top: 2px solid $color-golden;
        border-bottom: 2px solid $color-golden;

        @include border-top-radius(10px);
        @include border-right-radius(10px);
        @include border-bottom-radius(10px);
        @include border-left-radius(10px);

        padding: 10px 5px;

        &:after, &:before {
            display: none;
        }

    }

}

.irs-to {

    border-right: 2px solid $color-golden;
    border-top: 2px solid $color-golden;
    border-bottom: 2px solid $color-golden;

    @include border-top-radius(10px);
    @include border-right-radius(10px);
    @include border-bottom-radius(10px);
    @include border-left-radius(0px);

    padding: 10px 20px 10px 5px;

    &:after {

        content: '';
        display: block;
        position: absolute;
        top: -1px;
        left: -38px;
        width: 0;
        height: 0;
        border-color: transparent $color-white transparent transparent;
        border-style: solid;
        border-width: 20px;

    }

    &:before {

        content: '';
        display: block;
        position: absolute;
        top: -2px;
        left: -42px;
        width: 0;
        height: 0;
        border-color: transparent $color-golden transparent transparent;
        border-style: solid;
        border-width: 21px;

    }

    @include mobile-landscape-and-below {

        border-left: 2px solid $color-golden;
        border-right: 2px solid $color-golden;
        border-top: 2px solid $color-golden;
        border-bottom: 2px solid $color-golden;

        @include border-top-radius(10px);
        @include border-right-radius(10px);
        @include border-bottom-radius(10px);
        @include border-left-radius(10px);

        padding: 10px 5px;

        &:after, &:before {
            display: none;
        }

    }

}

.lt-ie9 .irs-from, .lt-ie9 .irs-to, .lt-ie9 .irs-single {
    background: #999;
}

.irs-grid {
    height: 27px;
}

.irs-grid-pol {
    opacity: 0.5;
    background: #428bca;
}

.irs-grid-pol.small {
    background: #999;
}

.irs-grid-text {
    bottom: -5px;
    color: #99a4ac;
}

.irs-disabled {
}
