@import "mixins/mixins";
@import "common/var";

@include b(select-dropdown) {
  @include e(item) {
    font-size: $--font-size-base;
    padding: 0 20px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: $--select-option-color;
    height: $--select-option-height;
    line-height: $--select-option-height;
    box-sizing: border-box;
    cursor: pointer;

    @include when(disabled) {
      color: $--select-option-disabled-color;
      cursor: not-allowed;

      &:hover {
        background-color: $--color-white;
      }
    }

    &:hover {
      @include select-option-hover-bg;
    }

    &.selected {
      color: $--color-theme-ckb;
      [data-theme="ckb-symbol"] & {
        color: $--color-theme-ckb;
      }
      [data-theme="yjb-symbol"] & {
        color: $--color-theme-yjb;
      }
      [data-theme="sz-symbol"] & {
        color: $--color-theme-sz;
      }
      font-weight: $--font-weight-base;
    }
  }
}
