
.message-area {
    height: 80dvh;
    overflow: hidden;
    padding: 30px 0;
    /* background: ; */
}

.chat-area {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    height: 70vh;
    overflow: hidden;
    min-height: calc(100% - 1rem);
    display: flex;
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    /* width: 350px; */
    float: left;
    padding: 15px 0 0px;
}

.chat-header{
    padding: 0 15px;
}

.chat-area .modal-content {
    border: none;
    border-radius: 0;
    outline: 0;
    height: 100%;
}

.chat-area .modal-dialog-scrollable {
    height: 100% !important;
}

.chatbox {
    width: auto;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #ccc;
    flex-grow: 1;
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.msg-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-area .form-control {
    display: block;
    width: 80%;
    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: 50px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.chat-area .form-control:focus {
    outline: 0;
    box-shadow: inherit;
}

a.add img {
    height: 36px;
}

.chat-area .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    align-items: center;
    justify-content: space-between;
    flex-wrap: inherit;
}

.chat-area .nav-tabs .nav-item {
    width: 100%;
}

.chat-area .nav-tabs .nav-link {
    width: 100%;
    color: #180660;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-top: 5px;
    margin-bottom: -1px;
    background: 0 0;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.chat-area .nav-tabs .nav-item.show .nav-link,
.chat-area .nav-tabs .nav-link.active {
    color: #222;
    background-color: #fff;
    border-color: transparent transparent #000;
}

.chat-area .nav-tabs .nav-link:focus,
.chat-area .nav-tabs .nav-link:hover {
    border-color: transparent transparent #000;
    isolation: isolate;
}

.chat-list h3 {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list a.d-flex {
    padding: 7px 0;
    position: relative;
    text-decoration: none;
}

.chat-list  span.active {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    bottom: 3px;
    left: 45px;
    height: 12px;
    width: 12px;
    background: #00DB75;
    border-radius: 50%;
    border: 2px solid #fff;
}

.msg-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

.msg-head p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.msg-head {
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.moreoption {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

.moreoption .navbar {
    padding: 0;
    display: flex;
    gap: 15px;
}

.moreoption .navbar a i{
    font-size: 30px;
    color: black;
    padding: 0 !important;
}

.moreoption li .nav-link {
    color: #222;
    font-size: 16px;
}

.moreoption .dropdown-toggle::after {
    display: none;
}

.moreoption .dropdown-menu[data-bs-popper] {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.125rem;
}

.moreoption .dropdown-menu[data-bs-popper] {
    padding: 0px;
}

.moreoption .dropdown-menu[data-bs-popper] li{
    padding: 0;
}

.moreoption .dropdown-menu[data-bs-popper] li a{
    display: flex;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.moreoption .dropdown-menu[data-bs-popper] li a i{
    font-size: 20px;
}
/*
.msg-body ul {
    overflow: hidden;
} */

.msg-body ul li {
    list-style: none;
    margin: 15px 0;
}

.msg-body ul li.sender {
    display: block;
    width: 100%;
    position: relative;
}



.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-radius: 20px;
    margin-bottom: 0;
}

.msg-body ul li.sender p b {
    display: block;
    color: #180660;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.msg-body ul li.repaly {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
}


.msg-body ul li.repaly p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: var(--primary-red);
    display: inline-block;
    border-radius: 20px;
    margin-bottom: 0;
}

.msg-body ul li.repaly p b {
    display: block;
    color: #061061;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.msg-body ul li.repaly:after {
    display: block;
    content: '';
    clear: both;
}

.time {
    display: block;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.sender .time{
    margin-top: 5px;
    margin-left: 15px;
}

.repaly .time{
    margin-top: 5px;
    margin-left: 0px;
    margin-right: 15px;
}

/* li.repaly .time {
    margin-right: 20px;
} */

.divider {
    position: relative;
    z-index: 1;
    text-align: center;
}

.msg-body h6 {
    text-align: center;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    display: inline-block;
    padding: 0 5px;
    margin-bottom: 0;
}

.divider: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: 15px;
    border-top: 1px solid #ccc;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    gap: 10px;
}

.send-box .form-control {
    display: block;
    /* width: 62%; */
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 50px;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



.send-box button i {
    margin-right: 5px;
}

.send-btns .button-wrapper {
    position: relative;
    width: 125px;
    height: auto;
    text-align: left;
    margin: 0 auto;
    display: block;
    background: #F6F7FA;
    border-radius: 3px;
    padding: 5px 15px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.send-btns .button-wrapper span.label {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
    color: #343945;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 13px;
}

#upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.send-btns .attach .form-control {
    display: inline-block;
    width: 120px;
    height: auto;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #343945;
    background-color: #F6F7FA;
    background-clip: padding-box;
    border: 1px solid #F6F7FA;
    border-radius: 3px;
    margin-bottom: 5px;
}

.send-btns .button-wrapper span.label img {
    margin-right: 5px;
}

.button-wrapper {
    position: relative;
    width: 100%;
    /* height: 100px; */
    text-align: center;
    margin: 0 auto;
}

button:focus {
    outline: 0;
}

.add-apoint {
    display: inline-block;
    margin-left: 5px;
}

.add-apoint a {
    text-decoration: none;
    background: #F6F7FA;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #343945;
}

.add-apoint a svg {
    margin-right: 5px;
}

.chat-icon {
    display: none;
}

.closess i {
    display: none;
}

.msg-body {
    padding: 0px 20px;
}


.chat-header{
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.chatlist .modal-body {
    padding-top: 0px;
}




.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background-color: #ebebeb;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: #6d6d6d;
}


.add{
    padding: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
    display: block;
    line-height: 33px;
    background-color: var(--primary-red);
    font-size: 18px;
    border-radius: 50%;
    color: white;
}

.send-box a i{
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    display: block;
    text-align: center;
    background-color: var(--primary-red);
    border-radius: 50%;
}
.send-box a  #send-message-btn{
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-red);
    border-radius: 50%;
}





.my-profile-img img,
.chat_select_box img,
.chat-contact-profile img,
.sender-chat-profile img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}


.chat-list .chat_select_box{
    cursor: pointer;
    padding: 10px 15px !important;
}

.chat-list .chat_select_box:hover,
.chat_select_box.active{
    background-color: #e800041a;
}



.media-box{
    width: 22%;
    padding: 15px;
    border-left: 1px solid #ccc;
}

.media-box .accordion-button{
    height: auto;
}

.media-box .accordion-button:not(.collapsed),.media-box .accordion-button:focus{
    background-color: transparent;
    background: transparent;
    color: black;
    border: 0 !important;
    box-shadow: none !important;
}
.sidebar-video-list{
    display: grid
;
    gap: 10px;
    grid-template-columns: auto auto auto !important;
}
.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    /* width: 350px; */
    float: left;
    padding: 15px 0 0px;
}
.sidebar-img-list {
    display: grid
;
    gap: 10px;
    grid-template-columns: auto auto auto !important;
}
.sidebar-img-list .img-box img{
    width: 75px;
    height: 75px;
    object-fit: cover;

}
.media-box .accordion-body .img-box{
    /* display: grid; */

    grid-template-columns: auto auto auto;
    gap: 10px;
    padding-top: 10px;
}

.media-box .accordion-body .img-box img{
    object-fit: cover;
}

.gif-container img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
}

.gif-container{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px 10px;
    height: 40vh;
    overflow-y: auto;
}



.gif-container .box {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

.gif-container .box:hover{
    color: var(--primary-gold);
}

.gif-container .box img{
    height: 80px;
    width: auto;
    object-fit: contain;
}


@media (max-width: 767px) {
    .chat-icon {
        display: block;
        margin-right: 5px;
    }
    .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%;
    }
    .chat-list h3 {
        font-size: 14px;
    }
    .chat-list p {
        font-size: 12px;
    }
    .msg-body ul li.sender p {
        font-size: 13px;
        padding: 8px;

    }
    .msg-body ul li.repaly p {
        font-size: 13px;
        padding: 8px;

    }
}
