/* --- Messenger ------------------------------------------------------------ */
.f-open-ms {
    background: #fff;
}

.f-open-ms .f-back {
    background: transparent;
    color: #0084ff;
}

.f-open-ms .f-cta a {
    background: linear-gradient(135deg, #0099ff, #a033ff 60%, #ff5280);
}

.ms-bar {
    gap: 8px;
    justify-content: flex-start;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 -14px;
    padding: 8px 14px;
}

.ms-av {
    position: relative;
    width: 38px;
    height: 38px;
    flex: none;
}

.ms-av span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e4e6eb;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.ms-av i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #31a24c;
    border: 2px solid #fff;
}

.ms-who {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.ms-who b {
    display: block;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-who small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #65676b;
}

.ms-acts {
    display: flex;
    gap: 14px;
    font-size: 18px;
}

.ms-stamp {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #65676b;
    margin: 14px 0 6px;
}

.ms-chat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.ms-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.ms-row-first {
    margin-top: 10px;
}

.ms-row-out {
    justify-content: flex-end;
}

.ms-row .ms-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e4e6eb;
    display: grid;
    place-items: center;
    font-size: 14px;
    visibility: hidden;
}

.ms-row-last .ms-av {
    visibility: visible;
}

.ms-b {
    position: relative;
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
}

.ms-b-in {
    background: #f0f0f0;
    color: #050505;
}

.ms-b-out {
    background: linear-gradient(135deg, #0099ff, #a033ff 60%, #ff5280);
    color: #fff;
}

.ms-row-in:not(.ms-row-first) .ms-b {
    border-top-left-radius: 4px;
}

.ms-row-in:not(.ms-row-last) .ms-b {
    border-bottom-left-radius: 4px;
}

.ms-row-out:not(.ms-row-first) .ms-b {
    border-top-right-radius: 4px;
}

.ms-row-out:not(.ms-row-last) .ms-b {
    border-bottom-right-radius: 4px;
}

.ms-b p {
    margin: 0;
    white-space: pre-line;
}

.ms-t {
    display: none;
}

.ms-b-media {
    padding: 0;
    width: 280px;
    max-width: 80%;
    margin-bottom: 14px;
}

.ms-media {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: linear-gradient(160deg, #ffd6ec, #ffe3d0 50%, #d9d0ff);
}

.ms-media .f-media-text {
    padding: 14px 12px;
    font-size: 15px;
}

.ms-media .f-media-link {
    margin: 12px;
}

.ms-media audio {
    padding: 12px 8px;
}

.ms-cap {
    padding: 8px 12px 9px;
    font-weight: 600;
}

.ms-receipt {
    width: 16px;
    height: 16px;
    margin: 2px 0 4px auto;
    border-radius: 50%;
    background: #e4e6eb;
    display: grid;
    place-items: center;
    font-size: 9px;
    line-height: 1;
}

.ms-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.ms-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0084ff;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    flex: none;
}

.ms-ico {
    font-size: 18px;
}

.ms-field {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f0;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #65676b;
}

.ms-like {
    font-size: 24px;
}
