.Message {
  flex: 0 0 auto;
  justify-content: flex-start;
  flex-direction: row;
  align-items: flex-end;
  align-content: stretch;

  &.Mine {
    .MessageInner {
      align-self: flex-end;
      background-color: var(--color-border-02);
    }
  }

  &Wrapper {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
  }

  &Inner {
    align-self: flex-start;
    justify-content: center;
    padding: var(--spacing-m);
    max-width: 236px;
    min-height: 44px;
    border: 1px solid var(--color-border-02);
    border-radius: 22px;
    z-index: 1;
    user-select: none;
    touch-action: manipulation;
    margin-bottom: var(--spacing-xs);

    &.Emoji {
      border: none;
      background-color: transparent!important;

      .MessageText {
        font-size: 50px;
      }
    }
  }

  &Text {
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--color-main);
    font-weight: 400;
    font-size: var(--base-font);
    line-height: 18px;
    margin: -3px 0 -4px;
  }
}

.PartnerAvatar {
  margin-right: var(--spacing-xs);
  margin-bottom: var(--spacing-m);
  flex: 0 0 auto;
  justify-content: flex-start;

  .Avatar {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
