/* applied to original <select> to hide */

.has_sb {
    position: absolute;
    left: -999999em;
    text-indent: -999999em;
}

/* always visible styles */
.selectbox {
    display: inline-block;
    *display: inline;
    margin: 0;
    position: relative;
    vertical-align: middle;
    zoom: 1;
    overflow: hidden;
}

.selectbox .display {
    box-shadow: inset 2px 3px 0 #c9c9c9;
    background: #ececec;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    height: 37px;
    font: 16px/35px 'PT Sans Narrow', sans-serif;
    color: #4f5255;
}

.selectbox .display .text {
    padding: 3px 24px 0 15px;
    height: 35px;
    white-space: nowrap;
    overflow: hidden;
}

.selectbox.disabled .display {
    color: #999;
}

.selectbox .display .arrow_btn {
    background: #ececec url("../images/select-decor.png") 2px 50% no-repeat;
    width: 24px;
    height: 35px;
    position: absolute;
    top: 3px;
    right: 0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.selectbox .value {
    display: none;
}

/* dropdown styles */
.selectbox.items {
    background: #ececec;
    display: block;
    list-style: none;
    margin: -2px 1px 0 0;
    padding: 5px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 9999999999;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, .34);
    -moz-box-shadow: 3px 3px 3px rgba(0, 0, 0, .34);
    -webkit-box-shadow: 3px 3px 3px rgba(0, 0, 0, .34);
    border-left: 2px solid #c9c9c9;
    border-radius: 0 0 3px 3px;
    -moz-border-radius: 0 0 3px 3px;
    -webkit-border-radius: 0 0 3px 3px;
}

.selectbox.items li {
    display: block;
    margin: 0;
    padding: 0 0 1px;
    color: #4f5255;
}

.selectbox.items li.first {
    margin-top: 0;
}

.selectbox.items li>.item {
    color: #4f5255;
    cursor: default;
    display: block;
    padding: 7px 5px 7px 15px;
    text-decoration: none;
}

.selectbox.items li>.item>.text {
    display: inline-block;
    *display: inline;
    zoom: 1;
}

.selectbox.items li.selected>.item {
    background: #7e8f97;
    color: #fff;
}

.selectbox.items li.disabled>.item {
    color: #999;
}

.selectbox.items li.hover>.item {
    background: #7e8f97;
    color: #fff;
}

.selectbox.items .value {
    display: none;
}

/* optgroup styles */
.selectbox.items .optgroup .items {
    border: none;
    margin: 0;
    padding: 0;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

.selectbox.items .optgroup>.label {
    cursor: default;
    font-weight: bold;
    line-height: 1em;
}

.selectbox.items .optgroup .items li>.item {
    padding-left: 1em;
}

/* easy rounding styles */
.selectbox .round_sb.display {
    padding: 2px 26px 2px 5px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.selectbox .round_sb.display .arrow_btn {
    right: 2px;
    top: 2px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.selectbox.round_sb.items {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.selectbox.round_sb.items>li>a {
    padding: 4px 6px;
}

.selectbox.round_sb.items>li.first>.item {
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
}

.selectbox.round_sb.items>li.last>.item {
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
}

/* for optgroups */
.selectbox.round_sb.items>li>.label {
    line-height: 2.08em;
    padding: 4px 6px;
}

.selectbox.round_sb.items>li>.items li>.item {
    padding: 4px 6px 4px 12px;
}

/* fixed width example styles */
.selectbox .display.fixed_width {
    width: 73px;
    padding: 0 24px 0 3px;
}

.selectbox.fixed_width.items {
    width: 100px; /* width of display text plus the padding (60 + 27) = 87 */
}

.selectbox .display.fixed_width2 {
    width: 60px;
    padding: 0 24px 0 3px;
}

.selectbox.fixed_width2.items {
    width: 300px; /* width of display text plus the padding (60 + 27) = 87 */
}
