.ChatItem {
  width: auto;
  padding: 12px 20px;
  background: #f5f5f5;
  display: flex;
  cursor: pointer;
  &__imgcontainer {
    width: 40px;
    height: 40px;
    position: relative;

    img {
      height: 100%;
      width: 100%;
      border-radius: 50%;
    }

    &__status_circle {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: #00e676;
      border: 3px solid white;
      bottom: 0;
      right: 0;
      position: absolute;
    }
  }

  &__body {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    width: 100%;
    &__name {
      display: flex;
      justify-content: space-between;
      width: 100%;
      span {
        font-family: Inter;
        font-style: normal;
        font-weight: normal;
        font-size: 16px;
        line-height: 24px;
        color: #000000;
      }

      small {
        font-family: Inter;
        font-style: normal;
        font-weight: normal;
        font-size: 14px;
        line-height: 22px;
        text-align: right;
        color: #595959;
      }
    }

    &__message {
      display: flex;
      justify-content: space-between;
      width: 100%;
      span {
        max-width: 273px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        font-family: Inter;
        font-style: normal;
        font-weight: normal;
        font-size: 14px;
        line-height: 22px;
        color: #595959;
      }

      small {
        font-family: Inter;
        font-style: normal;
        font-weight: normal;
        padding: 0px 6px;
        border-radius: 50%;
        font-size: 12px;
        line-height: 20px;
        background: #1890ff;
        display: flex;
        align-items: center;
        text-align: center;
        color: #ffffff;
      }
    }
  }

  &__active {
    width: auto;
    padding: 12px 20px;
    display: flex;
    cursor: pointer;
    background-color: white;
  }
}

@media (max-width: 768px) {
  .ChatItem {
    padding: 16px 16px;
    background: white;

    &__body {
      &__message {
        span {
          max-width: 250px;
        }
      }
    }
  }
}
