.chat-message-i__container {
  width: 100%;
  font-style: normal;
  font-weight: 350;
  font-size: 12px;
  color: #fff;
}

.chat-message-i__container--sent {
  display: grid;
  grid-template-columns: 1fr 10px;
  grid-template-rows: 1fr;
  grid-template-areas: "sender"
                       "message";
  width: fit-content;
  gap: 4px;
  margin-bottom: 4px;
  align-items: flex-end;
  word-break: break-word;
  margin-left: 10px;
}

.chat-message-i__header-container {
  grid-area: sender;
}

.chat-message-i__container--received + .chat-message-i__container--sent {
  margin-top: 24px
}

.chat-message-i__container--sent + .chat-message-i__container--received {
  margin-top: 24px
}


.chat-message-i__container--received {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas:
                    "sender"
                    "message";
  gap: 4px;
  align-items: flex-end;
  margin-bottom: 4px;
}

.chat-message-i__header {
  display: inline-flex;
  margin-left: 8px;
}

.chat-message-i__avatar {
  border-radius: 50%;
  display: inline-flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
}

.chat-message-i__container--sent .chat-message-i__avatar {
  background: var(--zocks-grey-3);
  margin-left: 10px
}

.chat-message-i__container--received .chat-message-i__avatar {
  border: 1px solid var(--zocks-grey-4);
  margin-left: 10px;
}


.chat-message-i__message {
  grid-column-start: 2;
  word-break: break-word;
  white-space: pre-line;
  width: fit-content;
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.chat-message-i__container--sent .chat-message-i__header {
  justify-content: right;
}

.chat-message-i__container--received .chat-message-i__message,
.chat-message-i__container--received .chat-message-attachment__container {
  grid-area: message;
  margin-left: 10px;
  margin-right: 10px;
  padding: 12px 16px;
  border: 1px solid var(--zocks-grey-4);
  border-radius: 4px 4px 4px 0;
  width: fit-content;
}

.chat-message-i__container--sent .chat-message-i__message,
.chat-message-i__container--sent .chat-message-attachment__container {
  grid-area: message;
  background: var(--zocks-grey-3);
  padding: 12px 16px;
  border-radius: 4px 4px 0 4px;
  width: fit-content;
}
