.g-aikit-user-message {
  display: flex;
  flex-direction: column;
  gap: var(--g-spacing-1);
  align-items: flex-end;
}

.g-aikit-user-message_format_plain {
  white-space: pre-wrap;
}

.g-aikit-user-message__image {
  display: block;
  max-width: 300px;
  max-height: 300px;
  border-radius: var(--g-border-radius-m);
  object-fit: contain;
}

.g-aikit-user-message__file-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-spacing-1);
  margin-top: var(--g-spacing-1);
  align-self: flex-end;
}

.g-aikit-user-message__file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--g-spacing-2);
  border-radius: var(--g-border-radius-s);
  background: var(--g-color-base-simple-hover-solid);
  max-width: 200px;
}

.g-aikit-user-message__file-chip-name {
  font-size: var(--g-text-body-1-font-size);
  line-height: var(--g-text-body-1-line-height);
  color: var(--g-color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}