/* --- 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 {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  width: 366px;
  max-width: 100%;
  height: 40px;
  cursor: pointer;
  /* background: #f2f3f5; */
  border-radius: 2px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.screen-select {
  background: transparent;
}

.dropdown.open {
  z-index: 2;
}
.dropdown:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.dropdown.focus {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
/* CARAT */
.dropdown .carat {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 12px;
  top: 50%;
  margin-top: -6px;
  border-width: 2px 2px 0 0;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.4);
  transform: rotate(135deg);
}

.dropdown.open .carat {
  margin-top: -3px;
  border-width: 0 0 2px 2px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.4);
}

.dropdown.disabled .carat {
  border-top-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 {
  height: 40px;
  font-weight: 400;
  display: block;
  font-size: 14px;
  line-height: 40px;
  padding: 0 50px 0 12px;
  color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.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;
  /* box-shadow: inset -55px 0 25px -20px #fff; */
}

/* DROP DOWN WRAPPER */

.dropdown div {
  position: absolute;
  height: 0;
  left: -1px;
  right: -1px;
  top: 100%;
  margin-top: -1px;
  background: #fff;
  border: 1px solid #ccc;
  border-top: 1px solid #eee;
  border-radius: 0 0 3px 3px;
  overflow: hidden;
  opacity: 0;
}

/* 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;
  max-height: 260px;
  width: 100%;
  list-style: none;
  overflow: hidden;
  overflow-y: scroll;
}

.dropdown ul::-webkit-scrollbar {
  width: 4px;
}
.dropdown ul::-webkit-scrollbar-thumb {
  background: #f2f2f2;
  border-radius: 8px;
}

.dropdown > div {
  max-height: 280px;
  /* height: 280px; */
  overflow: hidden;
}

.dropdown.scrollable.open ul {
  overflow-y: auto;
}

/* DROP DOWN LIST ITEMS */

.dropdown li {
  list-style: none;
  padding: 0px 12px;
}

/* .focus class is also added on hover */

.dropdown li.active {
  font-weight: 700;
  color: #1e5fdd;
}
.dropdown li.focus {
  background: #1e5fdd;
  position: relative;
  z-index: 3;
  color: #fff;
}
