@import '../../theme/fonts.scss';
@import '../../theme/theme.scss';
@import '../../theme/layout';
@import '../../kai-font/style.scss';
@import '../../theme/colors.scss';

:root {
  --il-text-focused: var(--color-gs00);
  --il-icon-unfocused: var(--color-zeta);
}
.kai-il {
  width: auto;
  min-height: var(--list-item-height);
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  outline: none;
  background-color: $white;
  &:focus {
    color: var(--il-text-focused);
  }

  &-focused {
    background-color: $defaultFocusColor;
  }

  &-icon {
    &-focused {
      width: 8rem;
      text-align: center;

      span::before {
        @include list-item-icon;
        color: var(--il-text-focused);
      }

      img {
        @include list-item-icon;
        color: var(--il-text-focused);
      }
      
      svg {
        @include list-item-icon;
        color: var(--il-text-focused);
      }
    }

    &-unfocused {
      width: 8rem;
      text-align: center;

      span::before {
        @include list-item-icon;
        color: var(--il-icon-unfocused);
      }

      img {
        @include list-item-icon;
        color: var(--il-icon-unfocused);
      }

      svg {
        @include list-item-icon;
        color: var(--il-icon-unfocused);
      }
    }
  }

  &-line {
    font-family: 'Roboto';
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    span,
    label {
      padding: 0;
      width: 100%;
      overflow: hidden;
    }
  }

  &-primary {
    @extend .p-pri;
  }

  &-secondary {
    @extend .p-sec;
  }

  &-disabled {
    pointer-events: none;
    opacity: 0.4;
  }
}
