@import "../../scss/theme/config";



.cd-select {
    font-size: 12px;
    display: inline-block;
    position: relative;
    color: $colorBase;
    border: none;
    padding: 0;
    width: 100%;
}

.cd-select-el {
    position: relative;
    display: inline-block;
    z-index: 100;
    height: 30px;
    width: 100%;
    outline: none;
    vertical-align: middle;
}

.cd-select-el select {
    font-size: 20px;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
    z-index: 11;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    position: absolute;
    visibility: visible;
}

.cd-sim-select {
    background: #FFF;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    outline: none;
    box-sizing: border-box;
}

.cd-sim-select.open {
    z-index: 10;
    height: auto;
}

.cd-sim-select input {
    position: absolute;
    border: 1px #ddd solid;
    left: 0px;
    z-index: -1;
    top: 0px;
    height: 0px;
    width: 0px;
    font-size: 0;
}

.sim-head {
    height: 28px;
    background: #FFF;
    position: relative;
    border: 1px solid $inputSearchColor;
    border-radius: 2px;
}

.cd-sim-select:hover .sim-head {
    border-color: $inputHoverColor;
}

.cd-sim-select.open .sim-head {
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(34, 153, 255, 0.20);
}

.cd-sim-select .current {
    color: #595454;
    font-size: 12px;
    padding: 0 10px;
    cursor: default;
    height: 28px;
    display: block;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 32px;
}

.sim-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -2.5px;
    border-top: 5px solid $colorDark;
    border-left: 5px transparent solid;
    border-right: 5px transparent solid;
    border-bottom: none;
    cursor: pointer;
}

.cd-sim-select.open .sim-arrow {
    border-bottom: 5px solid $colorDark;
    border-left: 5px transparent solid;
    border-right: 5px transparent solid;
    border-top: none;
}

.cd-sim-select .sim-head:before {
    content: "";
    
    display: block;
    position: absolute;
    right: 1px;
    top: 5px;
    width: 29px;
    height: 20px;
    pointer-events: none;
    background: #FFF;
}

.cd-sim-select .sim-list {
    display: none;
    margin-top: 5px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.20);
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.cd-sim-select .sim-list ul {
    max-height: $listMaxheight;
    background-color: $selectBgColor;
}

.cd-sim-select .sim-list li {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    list-style-type: none;
}

.cd-sim-select .sim-list li.hover {
    background: $selectHoverColor;
    color: $colorBase;
}

.cd-sim-select .sim-list li.disabled,
.cd-sim-select .sim-list li.unavailable {
    background: #f6f6f6;
    cursor: default;
    color: $inputDisableColor;
}

.cd-sim-select .sim-list li.disabled:hover,
.cd-sim-select .sim-list li.unavailable:hover {
    background: #f6f6f6;
    color: $inputDisableColor;
}

select.error+.cd-sim-select .sim-head,
.cd-select.error .cd-sim-select .sim-head {
    border: 1px solid $colorError !important;
}

select.error+.cd-sim-select.open .sim-head,
.cd-select.error .cd-sim-select.open .sim-head {
    border: 1px solid #E2231A !important;
    box-shadow: 0 0 0 2px rgba(226, 35, 26, 0.20);
}

select.error+.cd-sim-select .sim-head .current,
.cd-select.error .cd-sim-select .sim-head .current {
    color: $colorError !important;
}

select.error+.cd-sim-select.open .cd-select.error .cd-sim-select.open {
    border: 1px solid $colorError;
}

select.error+.cd-sim-select.open .sim-arrow,
.cd-select.error .cd-sim-select.open .sim-arrow {
    border-top-color: $colorError;
}

.cd-select .cd-sim-select.open .sim-arrow {
    border-bottom-color: $colorDark;
}

.cd-select.select-lg .cd-select-el {
    height: 35px;
}

select.select-lg+.cd-sim-select .sim-head,
.cd-select.select-lg .cd-sim-select .sim-head {
    height: 33px;
}

select.select-lg+.cd-sim-select .current,
.cd-select.select-lg .cd-sim-select .current {
    height: 33px;
    line-height: 33px;
}

select.select-lg+.cd-sim-select .sim-list li,
.cd-select.select-lg .cd-sim-select .sim-list li {
    line-height: 23px;
}