/* *******************************
message-area
******************************** */
.chat-header .user-name {
    display: flex;
    justify-content: space-between;
}

.chat-header .user-name .leftdiv {
    display: flex;
    align-items: center;
}

.chat-header .user-name img.classific-img {
    width: 55px;
    height: 55px;
    border-radius: 16px;
}

.chat-header .user-name .name {
    padding-left: 10px;
}

.chat-header .user-name .name h4 {
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    color: #001D55;
    font-family: 'Plus Jakarta Sans';
}

.chat-header .user-name .name span {
    font-size: 14px;
    font-weight: 500;
    line-height: 25.7px;
    color: #4F4F4F;
    font-family: 'Plus Jakarta Sans';
}

.chat-header .user-name .rightdiv {
    display: flex;
    align-items: center;
    gap: 20px;
}

.message-area .chat-header .msg-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.message-area .chat-header .msg-search .chat-search {
    position: relative;
    width: 100%
}

.message-area .chat-header .msg-search a.add img {
    height: 36px;
}

.message-area .chat-header .msg-search .chat-search .form-control.search {
    background-color: rgba(0, 0, 0, 0.06);
    height: 50px;
    border-radius: 100px;
    border-color: rgba(0, 0, 0, 0.06);
    padding: 0 20px;
}

.message-area .chat-header .msg-search .chat-search a.form-icon {
    position: absolute;
    top: 12px;
    right: 15px;
}

.message-area .chat-list .chatuser {
    display: flex;
    padding: 12px 0px 10px 12px;
    border-bottom: 1px solid #eee;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

.message-area .chat-list .chatuser .leftdiv {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-area .chat-list .chatuser .leftdiv img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.message-area .chat-list .chatuser .leftdiv .chat-user-detail h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    color: #001D55;
    font-family: 'Plus Jakarta Sans';
}

.message-area .chat-list .chatuser .leftdiv .chat-user-detail span {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #494A52;
    font-family: 'Plus Jakarta Sans';
}

.message-area {
    /* height: 100vh; */
    overflow: hidden;
    /* padding: 30px 0; */
    background: #6663df03;
    box-shadow: 0px 0px 13px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.message-area .chat-area {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 0.3rem;
    /* height: 90vh; */
    overflow: hidden;
    min-height: calc(100% - 1rem);
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 350px;
    float: left;
    padding: 15px;
}

.message-area .chat-area .modal-content {
    border: none;
    border-radius: 0;
    outline: 0;
    height: 100%;
}

.message-area .chat-area .modal-dialog-scrollable {
    height: 700px !important;
}

.chatbox {
    width: auto;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #ccc;
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.msg-head {
    padding: 15px;
    border-bottom: 1px solid #ccc;
}


.chatbox .msg-body ul {
    overflow: hidden;
}

.chatbox .msg-body ul li {
    list-style: none;
    margin: 15px 0;
}

.chatbox .msg-body ul li.sender {
    display: block;
    width: 100%;
    position: relative;
}

.chatbox .msg-body ul li.sender:before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    top: -6px;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    border-color: transparent transparent #f5f5f5 transparent;
    -webkit-transform: rotate(-37deg);
    -ms-transform: rotate(-37deg);
    transform: rotate(-37deg);
}

.chatbox .msg-body ul li.sender p {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #f5f5f5;
    display: inline-block;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 0;
}

.chatbox .msg-body ul li.sender p b {
    display: block;
    color: #180660;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.chatbox .msg-body ul li.repaly {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
}

.chatbox .msg-body ul li.repaly:before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    bottom: 15px;
    right: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    border-color: transparent transparent #4b7bec transparent;
    -webkit-transform: rotate(37deg);
    -ms-transform: rotate(37deg);
    transform: rotate(37deg);
}

.chatbox .msg-body ul li.repaly p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #4b7bec;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-bottom: 0;
}

.chatbox .msg-body ul li.repaly p b {
    display: block;
    color: #061061;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.chatbox .msg-body ul li.repaly:after {
    display: block;
    content: '';
    clear: both;
}

.chatbox .time {
    display: block;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.chatbox li.repaly .time {
    margin-right: 20px;
}

.chatbox .divider-chat {
    position: relative;
    z-index: 1;
    text-align: center;
}

.chatbox .divider-chat:after {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    top: 12px;
    left: 0;
    border-top: 1px solid #EBEBEB;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.send-box {
    padding: 8px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* margin-bottom: 15px; */
}

.send-box .form-control {
    display: block;
    width: 85%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.send-box .attach #upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.send-box .attach .button-wrapper {
    position: relative;
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .chat-icon {
        display: block;
        /* margin-right: 5px; */
        margin: auto !important
    }

    .chatlist {
        width: 100%;
    }

    .chatbox {
        width: 100%;
        position: absolute;
        left: 1000px;
        right: 0;
        background: #fff;
        transition: all 0.5s ease;
        border-left: none;
    }

    .showbox {
        left: 0 !important;
        transition: all 0.5s ease;
    }

    .msg-head h3 {
        font-size: 14px;
    }

    .msg-head p {
        font-size: 12px;
    }

    .msg-head .flex-shrink-0 img {
        height: 30px;
    }

    .send-box button {
        width: 28%;
    }

    .send-box .form-control {
        width: 70%;
    }

    .msg-body ul li.sender p {
        font-size: 13px;
        padding: 8px;
        border-bottom-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .msg-body ul li.repaly p {
        font-size: 13px;
        padding: 8px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 6px;
    }

}