.chat-content { position: relative; font-weight: 400; line-height: 1.3; max-width: 70%; padding: 10px; font-size: 0.875em; border-radius: 10px 10px 0; float: right; margin-left: 40px; white-space: pre-wrap; text-align: left; } .agent.chat-content { color: #000; background: #7e0c65; border-radius: 10px 10px 10px 0; float: left; } .chasitor.chat-content { background: rgb(6, 223, 6); color: rgb(0, 0, 0); margin-left: auto; }