/* WRAPPER */

.dropdown{
    position: relative;
    cursor: pointer;
}

.dropdown.open{
    z-index: 2;
}

/* carat */

.dropdown .carat{
    position: absolute;
    right: 12px;   
    top: 50%;
    margin-top: -4px;
    border: 3px solid transparent;
    border-top: 6px solid #fff;
}

.dropdown.open .carat{
    margin-top: -8px;
    border-top: 3px solid transparent;
    border-bottom: 6px solid #fff;
}

.dropdown.disabled .carat{
    border-top-color: #999;
}

/* old */

.dropdown .old {
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.dropdown select{
    position: absolute;
    left: 0px;
    top: 0px;
}

.dropdown.touch .old{
    width: 100%;
    height: 100%;
}

.dropdown.touch select{
    width: 100%;
    height: 100%;
    opacity: 0;
}

/* selected item */ 

.dropdown .selected, .dropdown li {
    display: block;
    padding: 2px 4px;
    overflow: hidden;
    white-space: nowrap;
    background-color: #15679b;
    color:#fff;
    margin-right: 25px;
}

.dropdown.disabled .selected {
    color: #999;
}

.dropdown .selected::after{
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

/* wrapper */

.dropdown div {
    position: absolute;
    height: 0;
    left: 0px;
    right: 0px;
    top: 100%;
    overflow: hidden;
    opacity: 0;
    margin-top: 1px;
}

/* Height is adjusted by JS on open */

.dropdown.open div{
    opacity: 1;
    z-index: 2;
}

/* FADE OVERLAY FOR SCROLLING LISTS */

.dropdown.scrollable div::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    box-shadow: inset 0 -50px 30px -35px #fff;
}

.dropdown.scrollable.bottom div::after{
    opacity: 0;
}

/* DROP DOWN LIST */

.dropdown ul{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    list-style: none;
    overflow: hidden;
}

.dropdown.scrollable.open ul{
    overflow-y: auto;
}

/* DROP DOWN LIST ITEMS */

.dropdown li{
    list-style: none;
}

/* .focus class is also added on hover */

.dropdown li.focus{
    background: #73a4c3;
    position: relative;
    z-index: 3;
}

.dropdown li.active {}