.container {
  .select {
    .clearButton {
      width: 24px;
      height: 24px;
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      border-radius: 3px;
      color: $gray;
      cursor: pointer;
      &:hover {
        background-color: transparentize($gray, 0.8);
      }
      &:active {
        background-color: transparentize($gray, 0.65);
      }
    }
    .toggle {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 36px;
      padding: 0 10px;
      background-color: $white;
      border: 1px solid $catskill-white;
      border-radius: 3px;
      font-size: 14px;
      cursor: pointer;
      .selectedOptionText {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .placeholder {
        color: $gray;
      }
      .clearButton {
        margin-left: 8px;
        margin-right: -6px;
        .clearIcon {
          width: 12px;
          height: 12px;
        }
      }
      .icon {
        margin-left: 8px;
        flex-shrink: 0;
      }
    }
    .options {
      min-width: unset;
      max-height: 295px;
      padding: 0;
      overflow-y: auto;
      border-radius: 3px;
      &.searchable {
        border-radius: 0 0 3px 3px;
      }
      .group {
        height: 28px;
        position: sticky;
        top: 0;
        padding: 4px 16px;
        background-color: $white;
        border-bottom: 1px solid $catskill-white;
        color: $gray;
        font-size: 14px;
        text-transform: uppercase;
      }
      .option {
        display: flex;
        align-items: center;
        height: 28px;
        padding: 0 24px;
        border-radius: 0;
        color: $dark-gray;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        &:hover {
          background-color: transparentize($gray, 0.85);
        }
        &:active {
          background-color: transparentize($gray, 0.7);
        }
        &.selected {
          background-color: $blue;
          color: $white;
          &:hover {
            background-color: $eastern-blue;
          }
          &:active {
            background-color: $blue-chill;
          }
        }
      }
      .noResults {
        padding: 4px 24px;
        color: $cadet-blue !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: not-allowed;
      }
    }
    .queryInputContainer {
      z-index: 1;
      .searchIcon {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        margin: 7px;
        color: $ghost;
      }
      input {
        padding-right: 30px;
        box-shadow: 0 1px 0 0 $catskill-white;
        color: $dark-gray;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        &:focus {
          border: none;
          box-shadow: 0 0 0 1px $viking;
        }
        &::placeholder {
          color: $gray;
        }
      }
      .clearButton {
        margin: 3px;
        .clearIcon {
          width: 10px;
          height: 10px;
        }
      }
    }
  }
  &.withError {
    .label {
      color: $sunset-orange;
    }
    .toggle {
      border: 1px solid $sunset-orange;
    }
  }
}
