& {
  .lbaic {
    &-message {
      &-bot {
        .lbaic-message {

          &-container {
            &-in {
              margin-inline-end: auto;
              border-radius: var(--lbaic-message-bot-radius);
              background-color: var(--lbaic-message-bot-bg);
              padding: 12px 14px;

              &:first-child:last-child {
                --lbaic-message-bot-radius: 16px;
              }

              &:not(:first-child):not(:last-child) {
                --lbaic-message-bot-radius: 0 16px 16px 0;
              }

              &:not(:first-child) {
                .lbaic-message-title {
                  display: none;
                }
              }

              &:not(:last-child) {
                margin-block-end: 4px;
              }

              &:first-child {
                --lbaic-message-bot-radius: 16px 16px 16px 0;
              }

              &:last-child {
                --lbaic-message-bot-radius: 0 16px 16px 16px;
              }
            }
          }

          &-in {
            padding: 0;
          }

          &-body {
            &:has(.lbaic-message-body-in:not(:only-child)) {
              .lbaic-message-body-in {
                &:not(:first-child) {
                  .lbaic-message-in {
                    border-radius: 16px;
                  }
                }
              }
            }
          }

          &-info {
            > *:not(:last-child) {
              margin-block-end: 16px;
            }

            * {
              font-family: inherit;
              color: currentColor;
            }

            pre {
              padding-block: 8px;
              padding-inline: 8px;
              background-color: var(--lbaic-message-code-action-bg);
              border-radius: 5px;
            }

            img {
              width: 100%;
              display: inline-block;
              object-fit: cover;
              border-radius: 8px;
            }

            //ul, ol {
            //  padding-inline-start: 24px;
            //}

            a {
              text-decoration: underline;
            }

            h1 {
              font-size: 1.6em;
            }

            h2 {
              font-size: 1.4em;
            }

            h3 {
              font-size: 1.3em;
            }

            h4 {
              font-size: 1.2em;
            }

            h5 {
              font-size: 1.1em;
            }

            h6 {
              font-size: 1em;
            }
          }
        }

        &:not(:has(~ .lbaic-message-row.lbaic-message-bot)) .lbaic-message-actions {
            opacity: 1;
        }

      }
    }
  }
}