.select-box {
  position: relative;
  width: 300px;
  height: 42px;
  font-size: 14px;
  line-height: 1;
  margin: 10px 0;
  &__select-button {
    position: relative;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid $light-grey;
  }
  &:hover .select-box__select-button {
    border-color: $neutral-grey;
  }
  &__options-view-button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
  }
  &__option,
  &__label {
    color: $dark-grey;
  }
  &__selected-value {
    color: $darkest-grey;
  }
  .chevrons {
    position: absolute;
    top: -5px;
    right: 0;
    bottom: 0;
    padding: 10px;
    i {
      display: block;
      height: 50%;
      color: $neutral-grey;
      font-size: 12px;
      text-align: right;
      &::before {
        font-size: 10px !important;
      }
    }
  }

  &__options-view-button:checked + .select-box__select-button .chevrons i {
    color: $dark-grey;
  }

  &__options {
    position: absolute;
    top: 42px;
    right: 0;
    left: 0;
    width: 298px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid $light-grey;
    box-shadow: 3px 3px 10px rgba($dark-grey, 0.1);
    border-radius: 4px;
    max-height: 300px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: $medium-grey white;
    opacity: 0;
  }

  &__options-view-button:checked ~ .select-box__options {
    opacity: 1;
  }

  &__option {
    position: relative;
    line-height: 1;
    transition: 0.3s ease all;
    z-index: 2;
  }

  &__label {
    display: none;
    padding: 0;
  }

  &__options-view-button:checked ~ .select-box__options .select-box__label {
    display: block;
    padding: 10px;
  }

  .select-box__radio {
    position: absolute;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  &__option .select-box__radio:checked ~ .select-box__label:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
  }

  &__option:hover .select-box__label {
    background-color: $primary;
    color: #fff;
  }
}
