/* chat */

.mf9f41dsq-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.mf9f41dsq-chat__footer {
    width: 100%;
    padding: 30px 18px;
}

.mf9f41dsq-chat__footer-inner {
    width: 100%;
    position: relative;
}

.mf9f41dsq-chat__content {
    flex-grow: 1;
    max-height: calc(100vh - 240px);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    margin: auto auto 0;
}

.mf9f41dsq-chat__msg {
    position: relative;
    padding: 14px 20px;
    color: #2A2A2A;
    font-size: 18px;
    display: block;
    max-width: fit-content;
    z-index: 1;
    min-width: 65px;
    word-break: break-word;
}

.mf9f41dsq-chat__time {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 14px;
    color: #bdbdbd;
}

.mf9f41dsq-chat__msg--user {
    margin-left: auto;
    background: #D2B5714D;
    border-radius: 20px 0px 20px 20px;
}

.mf9f41dsq-chat__msg--girl {
    margin-left: 70px;
    margin-right: auto;
    background: #C2C2C24D;
    border-radius: 0px 20px 20px 20px;
}

.mf9f41dsq-chat__msg--girl::before {
    content: "";
    z-index: -1;
    position: absolute;
    top: 0;
    left: -70px;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-size: 130%;
    background-position: center top;
    background-image: url(../images/profiles/1-mf9f41dsq.jpg);
}

.mf9f41dsq-chat__msg + .mf9f41dsq-chat__msg {
    margin-top: 30px;
}

.mf9f41dsq-chat__msg--user + .mf9f41dsq-chat__msg--girl,
.mf9f41dsq-chat__msg--girl + .mf9f41dsq-chat__msg--user {
    margin-top: 30px;
}

.mf9f41dsq-chat__msg--girl + .mf9f41dsq-chat__msg--girl {
    border-radius: 15px;
}

.mf9f41dsq-chat__msg--girl + .mf9f41dsq-chat__msg--girl::after,
.mf9f41dsq-chat__msg--girl + .mf9f41dsq-chat__msg--girl::before {
    display: none;
}

.mf9f41dsq-chat__complain {
    margin-left: auto;
    display: block;
}

.mf9f41dsq-chat__complain svg {
    display: block;
}

[data-chat="1"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/1-mf9f41dsq.jpg);
}

[data-chat="2"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/2-mf9f41dsq.jpg);
}

[data-chat="3"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/3-mf9f41dsq.jpg);
}

[data-chat="4"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/4-mf9f41dsq.jpg);
}

[data-chat="5"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/5-mf9f41dsq.jpg);
}

[data-chat="6"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/6-mf9f41dsq.jpg);
}

[data-chat="7"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/7-mf9f41dsq.jpg);
}

[data-chat="8"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/8-mf9f41dsq.jpg);
}

[data-chat="9"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/9-mf9f41dsq.jpg);
}

[data-chat="10"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/10-mf9f41dsq.jpg);
}

[data-chat="11"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/11-mf9f41dsq.jpg);
}

[data-chat="12"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/12-mf9f41dsq.jpg);
}

[data-chat="13"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/13-mf9f41dsq.jpg);
}

[data-chat="14"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/14-mf9f41dsq.jpg);
}

[data-chat="15"] .mf9f41dsq-chat__msg--girl::before {
    background-image: url(../images/profiles/15-mf9f41dsq.jpg);
}

.mf9f41dsq-chat__msg .text {
    display: none;
}

/* typing */

.visible .typing {
    display: none;
}

.visible .text {
    display: block;
}

.typing {
}

.typing span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 100%;
    background: #000;
    margin-right: 8px;
    animation: waveAnim 1s linear infinite;
}

.typing span:nth-child(2) {
    animation-delay: -0.8s;
}

.typing span:nth-child(3) {
    animation-delay: -0.6s;
}

@keyframes waveAnim {
    0%,
    60%,
    100% {
        transform: initial;
    }

    30% {
        transform: translateY(-6px);
    }
}
