@import "mixins/mixins";
@import "common/var";

@include b(select-dropdown) {
  @include e(item) {
    font-size: $--select-font-size;
    position: relative;
    color: $--select-option-color;
    height: $--select-option-height;
    line-height: $--select-option-height;
    box-sizing: border-box;
    cursor: pointer;
    & > span.ellipsis-wrapper {
      margin: 0 25px 0 10px;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      em {
        font-style: normal;
      }
    }
    @include when(disabled) {
      color: $--select-option-disabled-color;
      cursor: not-allowed;

      &:hover {
        color: $--select-option-disabled-color;
        background-color: $--color-white;
      }
    }

    &.hover, &:hover {
      background-color: $--select-option-hover-background;
      color: $--select-option-hover--font-color;
    }

    &.selected {
      color: $--select-option-selected-font-color;
      // background-color: $--select-option-selected-hover;
      // font-weight: bold;
      &.hover{
        background-color: $--select-option-hover-background;
        color: $--color-primary;
      }
    }
  }
}
