.mockchat, .mockchat *, .mockchat *:after, .mockchat *:before {
    box-sizing: border-box;
}
.mockchat {
    position: relative;
    color: #283747;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
    line-height: 1.25;
    perspective: 900px;
    overflow: hidden;
}
.mockchat .device {
    width: 100%;
    margin: 0 auto;
    /* background: #f8c7cc; */
    padding-top: 200%;
    border-radius: 50px;
    /* box-shadow: 0 10px 40px rgba(40, 55, 71, .4); */
    position: relative;
    /* background: #283747; */
    transition: all 0.5s;
}
.mockchat .device:before {
    display: block;
    /* content: ""; */
    position: absolute;
    height: 4%;
    width: 40%;
    background: #283747;
    top: 10px;
    left: 30%;
    border-radius: 0 0 10px 10px;
    z-index: 3;
    border-top: transparent;
}
.mockchat .device:after {
    display: block;
    /* content: ""; */
    position: absolute;
    height: 1%;
    width: 15%;
    background: #161e26;
    border-radius: 100px;
    top: 18px;
    left: 42.5%;
    z-index: 3;
    border-top: transparent;
}
.mockchat .device .screen {
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: #fcf7ff; */
    /* background-image: linear-gradient(#fcf7ff, #e4eaf0); */
    /* box-shadow: inset 0 0 40px rgba(255, 255, 255, .7), 0 0 0 5px rgba(255, 255, 255, .15); */
    /* border-radius: 40px; */
    overflow: hidden;
}
.mockchat .app {
    width: 100%;
    max-width: 100%;
    height: 580px;
    /* height: auto; */
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-content: flex-end;
    align-items: flex-end;
    /* flex-wrap: wrap; */
    flex-direction: column;
    padding: 1em;
    overflow-y: scroll;
    transition: all 0.3s;
}
.mockchat .reply {
    transform-origin: 100% 50%;
    margin: 0.25em 0 0.25em 1.5em !important;
    width: calc(100% - 3em);
    background: white;
    border-radius: 1.5em;
    position: relative;
    padding: 0.75em 1em;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(2em) scale(0.5);
    animation: mockchat-reply-pop cubic-bezier(0, 0.81, 0.58, 1.2) 0.4s;
    animation-fill-mode: forwards;
    text-align: right;
    transition: all 0.3s;
    max-height: 0;
    box-sizing: border-box;
    display: inline-table;
}
.mockchat .reply:nth-child(2n - 1) {
    transform-origin: 0 50%;
    margin: 0.25em 1.5em 0.25em 1.5em !important;
    width: calc(100% - 3em);
    background: #1446a0;
    color: white;
    text-align: left;
}
.mockchat .reply:nth-child(2n - 1):after {
    display: block;
    content: "";
    background: #58d68d;
    position: absolute;
    height: 0.75em;
    width: 0.75em;
    left: -1.5em;
    top: 1.375em;
    border-radius: 99999px;
    font-size: 0.75em;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-weight: bold;
}
.mockchat .reply.dots {
    transform-origin: 50% 50%;
    margin: 0.25em 35% 0.25em 35% !important;
    max-width: 30%;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
}
.mockchat .reply.dots:after {
    display: none;
}
.mockchat .reply.dots span {
    display: block;
    height: 4px;
    width: 4px;
    background: currentColor;
    display: inline-block;
    border-radius: 99999px;
    margin: 0.25em 0.15em;
    opacity: 0;
    animation: mockchat-dots 0.5s infinite alternate;
    transform: translateY(0.25em);
}
.mockchat .reply.dots span:nth-child(2) {
    animation-delay: 0.1s;
}
.mockchat .reply.dots span:nth-child(3) {
    animation-delay: 0.2s;
}
@keyframes mockchat-dots {
    to {
        transform: translateY(-0.2em);
        opacity: 1;
   }
}
@keyframes mockchat-blink {
    to {
        opacity: 1;
   }
}
@keyframes mockchat-reply-pop {
    to {
        transform: none;
        font-size: 1rem;
        opacity: 1;
        max-height: 200px;
   }
}

.mockchat__btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    background-color: #e80a2a;
    border-radius: 30px;
    padding: 20px 10px;
    color: #fff;
    font-weight: 300;
    font-size: 16px;
    transition: 500ms all;
    animation: mockchat-reply-pop cubic-bezier(0, 0.81, 0.58, 1.2) 0.4s;
    transition: all 0.3s;
}

.mockchat__btn:hover {
    background-color: #950015;
}

@media(max-width: 1200px) {
    .mockChat__wrap {
        background-size: 70%;
    }

    .mockchat .device .screen {
        background: #fcf7ff;
        background-image: linear-gradient(#fcf7ff, #e4eaf0);
        box-shadow: inset 0 0 40px rgba(255, 255, 255, .7), 0 0 0 5px rgba(255, 255, 255, .15);
        border-radius: 40px;
    }

    .mockchat .device {
        background: #f8c7cc;
        box-shadow: 0 10px 40px rgba(40, 55, 71, .4);
        background: #283747;
    }

    .mockchat .device:before {
        display: block;
        content: "";
        position: absolute;
        height: 4%;
        width: 40%;
        background: #283747;
        top: 10px;
        left: 30%;
        border-radius: 0 0 10px 10px;
        z-index: 3;
        border-top: transparent;
    }
    .mockchat .device:after {
        display: block;
        content: "";
        position: absolute;
        height: 1%;
        width: 15%;
        background: #161e26;
        border-radius: 100px;
        top: 18px;
        left: 42.5%;
        z-index: 3;
        border-top: transparent;
    }

    .mockchat {
        overflow: initial;
    }

    .mockChat__wrap {
        background: transparent!important;
        margin-bottom: 0!important;
    }
}