/* --- EASYDROPDOWN DEFAULT THEME --- */

/* PREFIXED CSS */

.dropdown,
.dropdown div,
.dropdown li,
.dropdown div::after {
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

.dropdown .selected::after,
.dropdown.scrollable div::after {
    -webkit-pointer-events: none;
    -moz-pointer-events: none;
    -ms-pointer-events: none;
    pointer-events: none;
}

/* WRAPPER */

.dropdown {
    position: relative;
    width: 100%;
    border: 1px solid #979ca9;
    cursor: pointer;
    background: #fff;
    border-radius: 3px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    height: 100%;
    /* line-height: 1.5; */
    box-sizing: border-box;
}

.dropdown.open {
    z-index: 2;
    border-color: #000000;
}

/* .dropdown:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, .15);
} */

.dropdown.focus {
    border-color: #000000;
    /* box-shadow: 0 0 5px rgba(51, 102, 248, .4); */
}

/* CARAT */

.dropdown .carat {
    position: absolute;
    top: 50%;
    right: 12px;
    background-image: url(../img/icons/dropdown-arrow.svg);
    width: 24px;
    height: 24px;
    background-size: cover;
    border: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    transform-origin: top;
}

.dropdown.open .carat {
    /* margin-top: 5px; */
    /* border-top: 6px solid transparent; */
    /* border-bottom: 8px solid #000; */
    transform: rotate(180deg) translateY(-50%);
}

.dropdown.disabled .carat {
    border-color: #999;
}

/* OLD SELECT (HIDDEN) */

.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 FEEDBACK ITEM */

.dropdown .selected,
.dropdown li {
    display: block;
    font-size: inherit;
    /* line-height: 1; */
    color: #25292c;
    padding: 0 12px;
    overflow: hidden;
    /* white-space: nowrap; */
    height: 100%;
    /* line-height: 48px; */
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown.disabled .selected {
    color: #999;
}

.dropdown .selected::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    border-radius: 0 2px 2px 0;
}

/* TimeZone */
.format_timezone select,
.format_timezone .selected,
.format_timezone li {
    font-size: 14px;
}

/* DROP DOWN WRAPPER */

.dropdown div {
    position: absolute;
    /*height: 0;*/
    left: -1px;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #979ca9;
    /* border-top: 1px solid #eee; */
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    display: none;
}

.dropdown div.top {
    bottom: 100%;
    margin-bottom: 5px;
    top: auto;

}

/* Height is adjusted by JS on open */

.dropdown.open div {
    opacity: 1;
    z-index: 2;
    max-height: 300px;
    overflow-y: auto;
    display: block;
    white-space: nowrap;
}

.dropdown.open div.focus {
    color: #fff !important;
}

/* 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;
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
}

/* .focus class is also added on hover */

.dropdown li.focus {
    background: #0084ff;
    position: relative;
    z-index: 3;
    color: #fff !important;
    /* font-weight: 500 !important; */
}

.dropdown li.active {
    /* font-weight: 700; */
    color: #246efc;
}

.dropdown.noSelected, .dropdown.noSelected .selected {
    color: #999;
}

.dropdown li.hide {
    display: none;
}
