/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  /*font-family: Arial;*/
  max-width: 320px;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: var(--w-color-grey-50);
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 18px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #000 transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #000 transparent;
  top: 13px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: black;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color:  var(--w-color-grey-50);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-wrap: wrap;
  border-radius: 15px;
  padding: 15px 10px;
  margin-top: 5px;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}