.chat-card {
  padding: 12px;
  display: flex;
  justify-content: flex-start;
  $size: 42px;
  --avatar-size: 42px;

  &.left {
    flex-direction: row;

    .chat-card__avatar {
      margin-right: 8px;

      image {
        width: 90%;
        height: 90%;
      }
    }

    .chat-card__content {
      width: calc(90% - var(--avatar-size));
      border-color: #1B4F34;
    }
  }

  &.right {
    flex-direction: row-reverse;

    .chat-card__avatar {
      margin-left: 8px;
    }

    .chat-card__content {
      border-color: #38FF6E;
    }
  }



  &__avatar {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: $size;
    height: $size;
    border-radius: 50%;
  }

  &__content {
    max-width: calc(80% - $size);
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    overflow: hidden;
  }


  &__handle {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 12px 0;

    &.disabled {
      opacity: 0.5;
    }

    .item {
      position: relative;
      width: 190 * 0.5px;
      height: 54 * 0.5px;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 12px;
      color: var(--primary-color);

      image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    }

  }
}

.loading {
  --td-loading-color: #38FF6E;
  align-self: center;
  margin: 0 8px;
}