.msgv2-messages-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100dvh;
}

@media screen and (min-width: 574px) {
    .msgv2-messages-page-container {
        max-height: 100dvh;
    }
}

.msgv2-main-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    gap: 2px;
}







/* Conversations container */
/* //////////////////////////////////////// */

.msgv2-convo-container {
    display: flex;
    flex-direction: column;
    flex: 0.33;
    min-width: 250px;
    max-height: calc(100dvh - 40px);
    border-right: 1px solid transparent;

    /* display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    flex: 1;
    border-radius: 4px;
    max-height: 100dvh ; */
}






.msgv2-convo-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* height: 51px; */
    /* border-bottom: 1px solid var(--fw-white-200); */
    line-height: 1rem;
    padding: 0px 0px;
    position: relative;
    /* font-size: 0.8rem; */
}

.msgv2-convo-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    /* padding: 10px 5px; */
    overflow-y: auto;
    color: var(--fw-black-450);
}



/* 

@media (min-width: 1004px) {
    .msgv2-convo-container {
        display: flex;
    }
} */


@media screen and (min-width: 768px) {
    .msgv2-convo-container {
        min-width: 395px;
    }
}


@media screen and (min-width: 1004px) {
    .msgv2-convo-container {
        border-right: 1px solid var(--fw-white-200);
    }
}






@media screen and (min-width: 574px) {
    .msgv2-convo-container {
        max-height: 100dvh !important;
    }

    .msgv2-message-container {
        max-height: 100dvh !important;
    }
}






.msgv2-message-content .funcelv2-button {
    width: 18px;
    height: 18px;
    font-size: 0.9rem;
}







/* Conversations rows */
/* //////////////////////////////////////// */
.msgv2-convo-record-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    padding: 5px 10px;
    gap: 7px;
    color: var(--fw-black-500);
    border-bottom: 1px solid var(--fw-white-200);
}

.msgv2-convo-record-row.active {
    color: var(--fw-black-250);
    background-color: var(--fw-white-100)
}

.msgv2-convo-record-row:hover {
    color: var(--fw-black-500);
    background-color: var(--fw-white-100);
    cursor: pointer;
}




.msgv2-convo-record-column-1 {
    height: 100%;
}

.msgv2-convo-record-column-2 {
    flex: 1;
    height: 100%;
    max-width: 225px;
    padding: 2px 0px;
    width: 0;
    margin-right: auto;
    margin-left: 0;
}

.msgv2-convo-record-column-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.msgv2-convo-record-column-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: end;
    height: 100%;
    min-width: 50px;
    font-size: 0.7rem;
}


.msgv2-convo-record-status-dot {
    width: 7px;
    height: 7px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid var(--primary-300);
}

.msgv2-date {
    /* font-size: 0.6rem; */
}

.msgv2-usernames {
    max-width: 100%;
    font-size: 0.75rem;
    display: flex;
    flex-direction: row;
    gap: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}





.msgv2-metadata-row {
    color: var(--fw-black-450);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 3px 5px 0px 5px;
    font-size: 0.7rem;
}

.msgv2-message-bubble-holder.inbound .msgv2-metadata-row {
    justify-content: start;
}

.msgv2-message-bubble-holder.outbound .msgv2-metadata-row {
    justify-content: end;
}



.msgv2-message-bubble-holder.inbound .msgv2-bubble-column {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.msgv2-message-bubble-holder.outbound .msgv2-bubble-column {
    display: flex;
    flex-direction: column;
    align-items: end;
}



.msgv2-message-bubble-holder.inbound .msgv2-bubble-column .with-media {
    background-color: var(--fw-white-100);
}

.msgv2-message-bubble-holder.outbound .msgv2-bubble-column .with-media {
    background-color: var(--fw-white-100);
}



.msgv2-message-bubble-holder.inbound .msgv2-bubble-column .with-tip {
    background-color: var(--static-green-100);
    color: var(--fw-static-white-000);
}

.msgv2-message-bubble-holder.outbound .msgv2-bubble-column .with-tip {
    background-color: var(--static-green-100);
    color: var(--fw-static-white-000);
}












.msgv2-timestamp {
    font-size: 0.6rem;
}

.msgv2-last-message {
    font-size: 0.75rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




/* Child columns */
.msgv2-convo-container {
    min-height: 0;
    overflow-y: auto;
    background-color: var(--fw-white-050);
}

.msgv2-message-container {
    min-height: 0;
    background-color: var(--fw-white-050);
}




/* Messages container */
/* //////////////////////////////////////// */

.msgv2-message-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    /* padding: 2px 5px; */
    flex: 1;
    /* border: 1px solid var(--fw-white-200); */
    border-radius: 4px;
    max-height: 100dvh;
}

.msgv2-message-container .funcelv2-title {
    font-size: 0.8rem;
    max-width: 100px;
    font-size: 0.6rem;
    overflow: hidden;
}





.msgv2-message-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* height: 54px; */
    line-height: 1rem;
    padding: 0px 0px;
    position: relative;
}




.msgv2-message-content {
    display: flex;
    flex-direction: column-reverse;
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 1;
}









.msgv2-composer-splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: var(--fw-black-450);
}


/* Message bubbles */
/* //////////////////////////////////////// */

.msgv2-message-bubble-holder {
    display: flex;
    flex-direction: row;
    gap: 3px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.msgv2-message-bubble-holder.outbound {
    justify-content: flex-end;
}

.msgv2-message-bubble-holder.inbound {
    justify-content: flex-start;
}

.msgv2-message-bubble-holder.outbound .msgv2-timestamp {
    text-align: right;
}

.msgv2-message-bubble-holder.inbound .msgv2-timestamp {
    text-align: left;
}



.msgv2-author-assets {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 2px;
    /* overflow: hidden; */
    max-width: 45px;
}



.msgv2-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.msgv2-menu-column {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 5px;
    padding-bottom: 17px;
    color: var(--fw-white-450);
}

/* .msgv2-author-name {
    font-size: 12px;
    color: var(--grey-600);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
} */

.msgv2-message-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}






.msgv2-message-bubble {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    max-width: 400px;
    font-size: 0.8rem;
    line-height: 1.1rem;
    /* border: 1px solid #000; */
}

.msgv2-message-bubble.inbound {
    color: var(--fw-black-250);
    background-color: var(--fw-white-100);
    text-align: right;
}

.msgv2-message-bubble.outbound {
    color: var(--fw-black-000);
    background-color: var(--primary-100);
    text-align: left;
}

.msgv2-bubble-message {
    text-align: left;
    font-size: 0.8rem;
    overflow: hidden;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}




.msgv2-bubble-username {
    font-weight: bold;
    font-size: 0.75rem;
    color: var(--fw-black-300);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


.msgv2-message-bubble.inbound .msgv2-bubble-username {
    /* color: var(--fw-black-300); */
    text-align: left;
}

.msgv2-message-bubble.outbound .msgv2-bubble-username {
    /* color: var(--fw-black-300); */
    text-align: left;
}










/* Message compose */
/* /////////////////////////////////////////// */

.msgv2-message-compose {
    /* height: 80px; */
    border-top: 1px solid var(--fw-white-200);
    background-color: var(--fw-white-050);
}



.msgv2-message-compose .fe-meta-info {
    margin: -18px 3px 0px 0px !important;
    user-select: none;
    pointer-events: none;
    opacity: 0.80;
    font-size: 0.5rem;
}