
.option-group {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap; 
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin: 0 10px 24px;
}

.option {
    display:flex;
    flex-direction: column;
    flex-wrap: nowrap; 
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;   
    border: none;
    border-radius: 5px;
    padding: 0;
    margin: 4px;
}

/* On phones the view and sort controls barely fit one row; letting them wrap
   made the list jump when the web font widened the labels. */
@media (max-width: 767px) {
    .option-group {
        flex-wrap: nowrap;
    }
    .option-group > .option {
        min-width: 0;
        flex: 0 1 auto;
    }
}

.option > label {
    font-size: 12px;
    margin: 0 2px 0 0;
    font-weight: 600;
    padding: 0 0 0 5px;
}

.select-box {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  font-size: 12px;
  background-color: #fff;
  z-index: 998;
}
.select-box__current {
    position: relative;
    box-shadow: none;
    cursor: pointer;
    outline: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;

    border: 1px solid var(--grey-color);
    border-radius: 5px;
}
.select-box__current:hover, .select-box__current:focus {
    box-shadow: 5px 5px 8px 4px rgb(0 0 0 / 18%);
}
.select-box__current:focus + .select-box__list {
  opacity: 1;
  -webkit-animation-name: none;
          animation-name: none;
}
.select-box__current:focus + .select-box__list .select-box__option {
  cursor: pointer;
}
.select-box__current:focus .select-box__icon {
  transform: rotate(180deg);
}
.select-box__value {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.select-box__input {
  display: none;
}
.select-box__input:checked + .select-box__input-text {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}
.select-box__input-text {
  display: none;
  margin: 0;
  padding: 3px;
}
.select-box__list li {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.select-box__list li:hover {
    background-color: #e9e9e9;
}

.select-box__list {
  position: absolute;
  width: 100%;
  list-style: none;
  opacity: 0;
  -webkit-animation-name: HideList;
          animation-name: HideList;
  -webkit-animation-duration: 0.5s;
          animation-duration: 0.5s;
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  -webkit-animation-timing-function: step-start;
          animation-timing-function: step-start;
  box-shadow: 5px 5px 8px 4px rgb(0 0 0 / 18%);
  border: 1px solid var(--grey-color);
  border-radius: 5px;
  background-color:#fff;
  z-index: 9;
  padding: 3px;

    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: flex-start;    
}

.select-box__option {
  display: block;
  padding: 3px;
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  flex: 1;
}

@-webkit-keyframes HideList {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}

@keyframes HideList {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}
