﻿.imessage { background-color: #fff; border-radius: 4px; display: flex; flex-direction: column; font-size: 17px; margin: 0 auto 14px; max-width: 600px; padding: 7px 20px; }
  .imessage p { border-radius: 16px; line-height: 1.25; max-width: 75%; padding: 7px 12px; position: relative; word-wrap: break-word; }
    .imessage p::before,
    .imessage p::after { bottom: -0.14px; content: ""; height: 14px; position: absolute; }
p.from-me { align-self: flex-end; background-color: #248bf5; color: #fff; }
  p.from-me::before { border-bottom-left-radius: 12px 10px; border-right: 14px solid #248bf5; right: -5px; transform: translate(0, -0.14px); }
  p.from-me::after { background-color: #fff; border-bottom-left-radius: 7px; right: -40px; transform: translate(-30px, -2px); width: 10px; }
p[class^="from-"] { margin: 7px 0; width: -webkit-fit-content; width: fit-content; }
p.from-me ~ p.from-me { margin: 4px 0 0; }
  p.from-me ~ p.from-me:not(:last-child) { margin: 4px 0 0; }
  p.from-me ~ p.from-me:last-child { margin-bottom: 7px; }
p.from-them { align-items: flex-start; background-color: #e5e5ea; color: #000; }
  p.from-them:before { border-bottom-right-radius: 12px 10px; border-left: 14px solid #e5e5ea; left: -5px; transform: translate(0, -0.14px); }
  p.from-them::after { background-color: #fff; border-bottom-right-radius: 7px; left: 20px; transform: translate(-30px, -2px); width: 10px; }
.no-tail::before { display: none; }
.margin-b_none { margin-bottom: 0 !important; }
.margin-b_one { margin-bottom: 14px !important; }
.margin-t_one { margin-top: 14px !important; }
.container { margin: 0 auto; max-width: 600px; padding: 14px; }
.comment { color: #222; font-size: 17px; line-height: 1.5; margin-bottom: 17px; max-width: 100%; padding: 0; }

@media screen and (max-width: 800px) {
  .container { padding: 7px; }
  .imessage { font-size: 14px; margin: 0 auto 14px; max-width: 600px; padding: 4px 12px; }
    .imessage p { margin: 7px 0; }
}
