.ls-autocomplete {
  position: relative;

  &__selected-items {
    padding: 0 $field-sp;
  }

  &__selected-item-badge {
    max-width: 100%;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 1px;
    padding-right: 0 !important;
    line-height: 1;
    min-height: 2.4rem !important;
    white-space: nowrap;

    .ls-icon-button {
      min-height: 2.4rem;
      width: 2.4rem;
      font-size: 1.5rem;
    }
  }

  &__selected-item-badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__selected-item-remove {
    margin-left: 2 * $sp;
    flex-shrink: 0;
  }

  &__input {

    &--expanded {
      border-bottom-left-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }
  }

  &__items {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 1px;
    z-index: $layer-dropdown;
    overflow-y: auto;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 0;
    background-color: $color-white;
    color: $color-theme-light-font;
    box-shadow: $shadow-main;

    &--bottom {
      top: 100%;
    }

    &--top {
      bottom: 100%;
    }

    &--theme-light {
      background-color: $color-white;
      color: $color-theme-light-font;
    }

    &--theme-dark {
      background-color: $color-theme-dark;
      color: $color-theme-dark-font;
    }

    &--rounded {
      border-bottom-left-radius: $border-radius-main;
      border-bottom-right-radius: $border-radius-main;
    }

    &--rounded-lg,
    &--round {
      border-bottom-left-radius: $border-radius-large;
      border-bottom-right-radius: $border-radius-large;
    }
  }

  &__no-items-text {
    padding: 2 * $sp 3 * $sp;
    text-align:center;
  }

  &__item-header {
    width: 100%;
    padding: 2 * $sp 3 * $sp;
    font-weight: bold;
  }

  &__item {
    cursor: pointer;
    padding: 2 * $sp 3 * $sp;
    display: flex;
    justify-content: space-between;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

    &--active {
      background-color: $color-primary;
      color: $color-theme-dark-font;

      &:hover {
        background-color: $color-primary !important;
        color: $color-theme-dark-font !important;
      }
    }

    &--selected {
      background-color: $color-primary;
      color: $color-theme-dark-font;

      &:hover {
        background-color: $color-primary !important;
        color: $color-theme-dark-font !important;
      }
    }

    &--disabled {
      cursor: default;
      opacity: 0.4;

      &:hover {
        background-color: transparent;
        color: $color-theme-light-font;
      }
    }
  }

  &__item-divider {
    width: 100%;
    border-bottom: set-border();
    margin: $sp 0;
  }
}
