@use 'styles/variables.scss' as *;
@use './theme' as *;

$root: 'simple-list-item';

.#{$root} {
  @include simple-list-item-theme-modifiers();

  border-radius: 10px;
  padding: 6.5px 8px 6.5px 15px;
  background: simple-list-item-theme-color('background');
  border: 1px solid simple-list-item-theme-color('border-color');

  &:hover {
    box-shadow: 0 5px 20px simple-list-item-theme-color('hover-shadow-color');

    .#{$root}__secondary-action {
      display: inline;
    }
  }

  &__secondary-action {
    display: none;
    background-color: simple-list-item-theme-color('action-button-background');
    color: simple-list-item-theme-color('action-icon-color');

    &:hover {
      background-color: simple-list-item-theme-color('action-button-background-hover-color');
    }

    &:focus {
      outline: unset;
    }
  }

  .MuiListItemText-root {
    margin-right: 10px;
  }

  .MuiListItem-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
  }

  .MuiListItemSecondaryAction-root {
    height: 25px;
    width: 25px;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    transform: none;
  }

  .MuiListItemText-primary {
    font-family: $font-family;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: simple-list-item-theme-color('text-color');
  }
}
