/* Chosen select list */

.chosen-container {
    width: 100% !important;
}

.chosen-container.chosen-disabled,
.custom-select.disabled .chosen-container {
    background-color: $disabled-color;
    opacity: 0.5;
}

.chosen-container.chosen-disabled .chosen-choices:hover {
    cursor: not-allowed;
}

.disabled .chosen-container {
    pointer-events: none !important;
}

.disabled .chosen-container:hover {}

.disabled .chosen-container .chosen-choices {
    background-color: #eee;
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    color: #414042;
    font-family: "Open Sans", sans-serif;
    font-size: 14pt;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    min-height: 30px;
    padding: 0 6px;
}

.chosen-input-group {
    @include calc(width, "100% - 37px");
}

.chosen-input-group .chosen-container .chosen-choices {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.chosen-input-group button.btn {
    border-radius: 0;
    z-index: 1!important;
}

.chosen-input-group button.btn:hover {
    border-radius: 0;
}

.chosen-container-multi .chosen-choices {
    background-image: none;
    background: none;
    border: 1px solid #CCC;
    @include transition(border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s);
    border: none;
    border-bottom: 2.5px solid $orange;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    padding: 2px 5px;
}

.chosen-container-multi .chosen-choices:focus {
    border-color: #66AFE9;
    outline: 0px none;
    border: none;
    @include box-shadow(none);
}

.chosen-container-multi .chosen-choices li.search-choice {
    background: #EFEEED !important;
    border: none;
    border-radius: 0;
    line-height: 1;
    @include box-shadow(none);
    font-family: "Open Sans", sans-serif;
    font-size: 12pt;
    color: #414042;
    height: 25px;
    padding: 0.2em 2.0em 0.3em 0.6em;
    vertical-align: baseline;
    span {
        height: 20px;
        display: block;
        word-break: break-all;
        overflow: hidden;
        line-height: 18px;
        margin-top: -1px;
    }
}

.chosen-container-multi .chosen-choices li.search-choice:before,
.chosen-container-multi .chosen-choices li.search-field:before,
.chosen-container-multi .chosen-results li:before {
    content: none;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    background: $bright-blue;
    top: 0px;
    line-height: 19pt;
    color: #FFF;
    font-size: 10pt;
    padding: 0 5px;
    display: table;
    right: 0;
    height: 25px;
    display: inline-block;
    width: 23px;
    @include transition(all 0.35s linear 0s);
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
    text-decoration: none;
    color: #FFF;
    background-color: $orange;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
    font-family: "Glyphicons Halflings";
    content: "\e014";
}

.chosen-container .chosen-results li:first-child {
    margin-top: 12px;
}

.chosen-container .chosen-results li {
    font-size: 13pt;
    line-height: 22pt;
    font-family: "Open Sans", sans-serif;
    color: $dark-blue;
    padding: 0;
}

.chosen-container .chosen-results li.group-result {
    color: #414041;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 17px;
}

.chosen-container .chosen-results li.group-option {
    color: $dark-blue;
    font-weight: 400;
}

.chosen-container-multi .chosen-drop .result-selected {
    color: #968c83 !important;
}

.chosen-container .chosen-results li.active-result {
    color: $dark-blue;
}

.chosen-container .chosen-results li.highlighted {
    background-color: inherit;
    background-image: none;
    text-decoration: underline;
}

.chosen-container-active .chosen-choices {
    @include box-shadow(none);
}

.chosen-container,
.chosen-container-single {
    .chosen-single {
        height: 34px;
        span {
            line-height: 34px;
            font-size: 12pt;
            padding: 0 6px;
        }
    }
    .chosen-drop {
        background-color: #FFF;
        border: 1px solid #cfcfcf;
        border-top: 0;
        .chosen-results {
            padding-left: 34.6px;
            li.no-results {
                margin-left: -28px;
                padding: 0 15px;
            }
        }
        .chosen-search input[type=text] {
            border: 1px solid #cfcfcf;
            padding: 0 15px;
            font-size: 12pt;
            font-family: Open Sans, sans-serif;
        }
    }
}

.chosen-container-multi .chosen-choices.has-error {
    @include box-shadow(0px 0px 4px -2px #A94442 inset);
    border-color: #A94442;
}


/* Chosen-single */

.chosen-container .chosen-choices,
.chosen-container .chosen-single {
    background: none !important;
    border: 1px solid #CCC;
    @include transition(border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s);
    border: 1px solid #cfcfcf !important;
    border-radius: 0;
    font-size: 14pt;
    padding: 0px 8px !important;
    @include box-shadow(none !important);
}

.chosen-container-single {
    &.chosen-with-drop {
        .chosen-single {
            color: transparent;
        }
    }
    .chosen-single {
        color: #414042;
        div b {
            background: none;
        }
    }
    .chosen-drop {
        padding: 0;
        .chosen-search {
            padding: 0;
            margin: -32px 0 0 0;
            border-bottom: 1px solid #cfcfcf;
            height: 33px;
            input[type="text"] {
                border: none;
                margin: 0;
                background-position: 100% -36px;
            }
        }
    }
}
