.box-chat-container {
    background: #ffffff;
    width: 90vw;
    position: fixed;
    bottom: 0;
    right: 0;
    height: 90vh;
    max-width: 760px;
    max-height: 860px;
    border-top-left-radius: 20px;
    z-index: 20;
}

.box-chat-header {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-chat-title {
    color: #00a656;
    font-size: 24px;
    font-weight: 600;
}

.box-chat-close {
    border: solid 1px #dee2e6;
    border-radius: 50%;
    width: 18px;
    transform: scale(1.5);
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    flex-shrink: 0;
}

.box-chat-user {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
    border-top: solid 1px #dee2e6;
    border-bottom: solid 1px #dee2e6;
    transition: margin-right 0.55s ease;
}

.box-chat-user.sidebar-open {
    margin-right: 380px;
}

.box-chat-user .avatar {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: solid 1px #e1e1e1;
}

.box-chat-user .overview .name {
    color: #151618;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.box-chat-user .overview .online-status .status-online {
    height: 10px;
    width: 10px;
    display: inline-block;
    background: #009900;
    border-radius: 50%;
}

.box-chat-user .overview .online-status .status-offline {
    height: 10px;
    width: 10px;
    display: inline-block;
    background: gray;
    border-radius: 50%;
}

.box-chat-user .overview .online-status .status-text {
    font-size: 12px;
    color: #868e96;
    margin-left: 4px;
}

.box-chat-content {
    padding: 24px;
    height: calc(100% - 246px);
    overflow-y: auto;
}

.box-chat-content .group-message {
    display: flex;
    column-gap: 16px;
}

.box-chat-content .group-message:not(:first-child) {
    margin-top: 12px;
}

.box-chat-content .group-message .user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: solid 1px #e1e1e1;
    flex-shrink: 0;
}

.box-chat-content .group-message .messages {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.box-chat-content .group-message .message {
    color: #000000;
    font-size: 14px;
    padding: 8px 16px;
    background: #f2f2f2;
    border-radius: 12px;
    width: fit-content;
}

.box-chat-content .group-message.sent {
    justify-content: flex-end;
}

.box-chat-content .group-message.sent .messages {
    align-items: flex-end;
}

.box-chat-content .group-message.sent .message {
    color: #ffffff;
    background-color: #373a40;
}

.box-chat-footer {
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.box-chat-footer input {
    border: solid 2px #e2e8f0;
    width: 100%;
    border-radius: 12px;
    height: 48px;
    padding: 0 20px;
    padding-right: 62px;
    font-size: 14px;
}

.box-chat-footer input::placeholder {
    color: #adb5bd;
}

.box-chat-send-btn {
    position: absolute;
    background: transparent;
    border: none;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 28px);
    width: 60px;
}

.open-files {
    cursor: pointer;
}

/* Files Sidebar Styles */
.files {
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background-color: #ffffff;
    z-index: 2;
    box-shadow: 0px 4px 20px 0px #00000033;
    transition-duration: 0.5s;
    padding: 20px;
}

.files.open {
    right: 0;
    min-width: 300px;
}

.files .title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.files .title {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.files-content {
    max-height: 95%;
    overflow-y: auto;
}

.files-content-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16.5px 12px;
}

.files-content-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info-upload {
    display: flex;
    flex-direction: column;
}

.file-info-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #000 !important;
}

.capacity-file {
    display: flex;
    align-items: center;
    gap: 4px;
}

.capacity-file span {
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #00000066;
}

.mb-back-to-msg {
    width: 20px;
    display: none;
}

@media all and (max-width: 628px) {
    .mb-back-to-msg {
        display: block;
    }
}
