.chat-message-wrapper {
    margin-top: 2rem;
}

.chat-message {
    display: flex;
    width: 100%;
    margin-bottom: 4px;
}

.chat-bubble {
    min-width: 360px;
    position: relative;
    max-width: 60%;
    border-radius: 6px;
    padding: 8px 10px;
    word-wrap: break-word;
    background-color: #ececec;
    font-size: 14px;
    line-height: 1.3;
}

.chat-info {
    display: inline-block;
    width: auto;  
    border-radius: 5px;
    padding: 5px 8px;
    background-color: rgba(97, 97, 97, 0.15);
    font-size: .8rem;
}

.chat-content {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-content p:last-child {
    margin-bottom: 0px;
}

.from-me {
    justify-content: flex-end;
}

.from-me .chat-bubble {
    background-color: #dcf8c6;
}

.from-others {
    justify-content: flex-start;
}

.from-me .chat-bubble::after,
.from-others .chat-bubble::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.from-me .chat-bubble::after {
    border-width: 4px 0 4px 4px;
    border-color: transparent transparent transparent #dcf8c6;
    right: -4px;
    top: 12px;
}

.from-others .chat-bubble::after {
    border-width: 4px 4px 4px 0;
    border-color: transparent #f2f2f2 transparent transparent;
    left: -4px;
    top: 12px;
}