:root {
  --select-icon-size: 16px;
  --select-icon-right-margin: var(--space-sm); 
  --select-text-icon-gap: var(--space-xxxs); 
}

.select {
  position: relative;
}

.select__button { 
  width: 100%;
  white-space: nowrap;
}

.select__button::after {
  margin-left: auto;
}

.select__dropdown { 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .2s, opacity .2s;
  pointer-events: none;
}

.select__dropdown::before { 
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity .2s;
}

.select__button[aria-expanded="true"] + .select__dropdown {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity .2s;
}

.select__button[aria-expanded="true"] + .select__dropdown::before {
  opacity: 1;
}

.select__list {
  position: relative;
  min-width: 200px;
  text-align: center;
  list-style: none !important;
  background-color: white;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.05);
  padding: 5rem;
  pointer-events: all;
  border-radius: 6px;
}

.select__list:not(:first-of-type) { 
  margin-top: 2px;
}

.select__item { 
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0px;
  color: var(--blue);
  opacity: 0.8;
  transition: opacity .3s;
}


.select__item--optgroup { 
  font-size: 0.8em;
  opacity: 0.8;
}

.select__item--option {
  cursor: pointer;
}

.select__item--option:hover,
.select__item--option[aria-selected=true],
.select__item--option:focus {
  opacity: 1;
}

.select__label {
  width: 100%;
  text-align: left;
}

