.mf-chat-content-box {
  padding: 24px 40px 0;

  .mf-chat-message-card {
    justify-content: flex-start;
    align-items: flex-start;
    padding-right: 44px;

    &:last-of-type {
      margin-bottom: 0 !important;
    }

    &.position-right {
      padding-right: 0;
      padding-left: 44px;
      .role-avatar {
        margin-right: 0;
        margin-left: 12px;
      }
      .chat-content {
        background: #e3ecf8;

        &::before {
          left: auto;
          right: -5px;
          background: #e3ecf8;
        }
      }
    }

    .role-avatar {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      margin-right: 12px;
      border-radius: 50%;
      font-size: 32px;

      .ai-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(16, 37, 58, 1);
        font-size: 18px;
      }

      .user-avatar {
        background: #8a90a5;
      }

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

    .chat-content {
      position: relative;
      min-height: 46px;
      padding: 12px 16px;
      background: #e8e8e9;
      border-radius: 4px;

      &::before {
        content: '';
        position: absolute;
        left: -5px;
        top: 12px;
        width: 14px;
        height: 14px;
        transform: rotate(45deg);
        background: #e8e8e9;
        border-radius: 3px;
      }
    }
  }
}
