/*!
 * jQuery Custom Select Plugin 1.9.0
 * 2014-09-03
 *
 * http://www.blissmedia.com.au/
 *
 * Copyright 2014 Bliss Media
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */

/* Standard
----------------------------------*/

.custom-select, .custom-select * {
    outline: none !important;
}

.custom-select {
    position: relative;
    width: 100%;
    font: normal 14px BYekan;
    height: 25px;
    background: #fff;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    border-radius: 3px;
    text-align: right;
}

    .custom-select a {
        display: inline-block;
        width: 100%;
        height: 20px;
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

        .custom-select a span {
            display: inline-block;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-align: right;
            padding-right: 10px;
            border: 1px solid #ccc;
            color: #666;
            border-radius: 3px;
        }

            .custom-select a span:after {
                content: "\f0d7";
                font: normal normal normal 14px/1 FontAwesome;
                font-size: inherit;
                text-rendering: auto;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                position: absolute;
                left: 0;
                margin: 7px 0 0 5px;
            }

    .custom-select select {
        display: none !important;
    }

    .custom-select > div {
        display: none;
        position: absolute;
        top: 93%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0 5px;
        width: 100%;
        border: 1px solid #ccc;
        border-top: 0;
        background: #FFFFFF;
        z-index: 100;
        overflow: hidden;
    }

    .custom-select input {
        width: 100%;
        float: left;
        border: 1px solid #ccc;
        color: #666;
        margin: 10px -2px 10px;
        text-align: right;
        direction: rtl;
        font: normal 12px BYekan;
        height: 21px;
        border-radius: 3px;
    }

    .custom-select > div > div {
        position: relative;
        overflow-x: hidden;
        overflow-y: visible;
        max-height: 120px;
        clear: both;
    }

    .custom-select div ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

        .custom-select div ul li {
            display: none;
            color: #666;
            line-height: 25px;
            padding: 0 5px 0 0;
            font-size: 12px;
        }

            .custom-select div ul li.active {
                display: block;
                cursor: pointer;
            }

            .custom-select div ul li:hover {
                background: #ccc;
                color: #fff;
            }

            .custom-select div ul li.option-hover {
                background: #428bca;
                color: #fff;
            }

            .custom-select div ul li.option-disabled {
                color: #999;
            }

                .custom-select div ul li.option-disabled:hover {
                    background: #ff9999;
                    color: #fff;
                }

            .custom-select div ul li.option-hover.option-disabled {
                background: #ff6666;
                color: #fff;
            }

            .custom-select div ul li.no-results {
                display: none;
                background: #f2f2f2;
                color: #000;
            }

/* Custom Select - Open
----------------------------------*/
.custom-select-open {
    border-bottom: 1px solid #eee;
}

    .custom-select-open div {
        display: block;
    }

/* Hide Input Box
----------------------------------*/
.custom-select input.custom-select-hidden-input {
    position: absolute !important;
    top: 0 !important;
    left: -1000px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    z-index: -1 !important;
}

/* Mobile Override
----------------------------------*/
.custom-select-mobile select {
    display: inline !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
