.imessage {
    background-color: #fff;
    /*border: 1px solid #e5e5ea;*/
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    /*max-width: 600px;*/
    padding: 0.5rem 1.5rem;
}
.from-them table td {
    font-size: 16px !important;
}

.imessage div.from-me, .imessage div.from-them {
    border-radius: 1.15rem;
    line-height: 1.25;
    max-width: 75%;
    padding: 0.5rem .875rem;
    position: relative;
    word-wrap: break-word;
}

.imessage div.from-me::before, .imessage div.from-me::after, 
.imessage div.from-them::before, .imessage div.from-them::after
 {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
}

div.from-me {
    align-self: flex-end;
    background-color: #34C759;
    color: #fff;
}

div.from-me::before {
    border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid #34C759;
    right: -0.35rem;
    transform: translate(0, -0.1rem);
}

div.from-me::after {
    background-color: #fff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform:translate(-30px, -2px);
    width: 10px;
}

div[class^="from-"],  p[class^="from-"] {
    margin: 0.5rem 0;
    width: fit-content;
}

div.from-me ~ div.from-me {
    margin: 0.25rem 0 0;
}

div.from-me ~ div.from-me:not(:last-child) {
    margin: 0.25rem 0 0;
}

div.from-me ~ div.from-me:last-child {
    margin-bottom: 0.5rem;
}

div.from-them, p.from-them{
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
}

div.from-them:before, p.from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid #e5e5ea;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
}

div.from-them::after, p.from-them::after {
    background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
}

div[class^="from-"].emoji, p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
}

div[class^="from-"].emoji::before, p[class^="from-"].emoji::before {
    content: none;
}

.no-tail::before {
    display: none;
}

.margin-b_none {
    margin-bottom: 0 !important;
}

.margin-b_one {
    margin-bottom: 1rem !important;
}

.margin-t_one {
    margin-top: 1rem !important;
}


@media screen and (max-width: 800px) {

    .imessage {
        /*font-size: 1.05rem;*/
        margin: 0 auto 1rem;
        max-width: 600px;
        padding: 0.25rem 0.875rem;
    }

    .imessage p, .imessage div.from-me, .imessage div.from-them {
        margin: 0.5rem 0;
    }
}