/* chat */
/* left user list box */

.clh {
    /*! display: flex; */
    /*! justify-content: start; */
    /*! align-items: center; */
    /*! width: 100%; */
    /*! padding: 10px 20px; */
    /*! border-bottom: 1px solid #DBE5ED; */
}

.clh img {
    width: 50px;
    margin-right: 10px;
}

.clh small {
    font-size: 12px;
    color: #9fa7b0;
    display: block;
    text-align: right;
}

.clh h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.left_box .form-group {
    padding: 16px 0px;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
}

.left_box .form-group i {
    position: absolute;
    top: 29px;
    right: 20px;
    font-size: 20px;
    opacity: 0.5;
}

.user_list::-webkit-scrollbar {
    display: none;
}

.user_list {
    margin-top: 0;
    height: 489px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 0;
}

.user_list h5 {
    font-size: 13px;
    /* margin: 0 5px; */
    line-height: 14px;
    color: #000;
}

.user_list p {
    font-size: 12px;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
}

.user_list .list-group-item {
    padding: 10px 15px;
    background: #fff;
    border-color: #dddddd00;
    border-radius: 10px;
    cursor: pointer;
}

.user_list .list-group-item:hover {
    background-color: #e2e2e2;
}

.user_list .list-group-item.active {
    background-color: #F9FAFC;
    border-color: #DBE5ED;
}

.user_list small {
    font-size: 12px;
    font-weight: 400;
    color: #7B8793;
}

.user_img {
    max-width: 50px;
    width: 100%;
    height: 50px;
    position: relative;
    margin-right: 10px;
}

.user_img i {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 10px;
    display: none;
    color: #76C00D;
}

i.offline {
    color: red;
}

i.online {
    color: rgb(24, 202, 24);
}

i.block,
i.delete {
    color: red;
}

.user_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.user_list .user_name {
    display: flex;
    justify-content: start;
    align-items: center;
}

.user_list .user_name small {
    margin-left: auto;
    display: block;
}

/* Right chet box  */

.rigth_box {
	height: 100%;
	position: relative;
	background: #fff;
	border-radius: 20px;
	/* padding: 0px 20px; */
	border: 1px solid #F5F5F5;
	box-shadow: 0px 1px 10px 0px rgba(0,0,0,0.16);
}

.chat_head {
	padding: 14px 10px;
	display: flex;
	justify-content: start;
	align-items: center;
	border: 1px solid #DBE5ED;
	background: #F4F5F8;
	border-radius: 20px 20px 0px 0px;
	font-size: 22px;
	padding-left: 21px;
}

.chat_head img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.chat_head h5 {
    font-size: 18px;
    margin-left: 10px;
    color: #4B5155;
}

.chat_head .btn-group {
    margin-left: auto;
}

.chat_body {
    padding: 16px;
    height: calc(543px - 10px);
    overflow-y: auto;
    margin-bottom: 100px;
    border-bottom: 3px solid #f6f6f6;
}

.message {
    display: flex;
    justify-content: start;
    align-items: start;
    width: 80%;
    margin-bottom: 15px;
    margin-top: 15px;
}

.badge {
    background-color: var(--theme) !important;
}


.message img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.message .msg {
    width: 100%;
    padding: 0px 0px;
    max-width: fit-content;
}


.message .msg p {
    margin: 0;
    padding: 12px 13px;
    background-color: #e1e1e1;
    color: #000;
    font-size: 13px;
    border-radius: 10px;
    width: fit-content;
    position: relative;
    min-width: 65px;
    margin-bottom: 9px;
    border-radius: 30px 30px 30px 0px;
    max-width: 260px;
}

.message .msg p small {
    position: absolute;
    color: rgba(0, 0, 0, 0.3);
    bottom: -20px;
    right: -2px;
    width: 100%;
    font-size: 12px;
    text-align: left;
}

.message .msg small {
    font-size: 11px;
    color: #AFBBC6;
    width: 100%;
    display: block;
    text-align: right;
}

.send {
    margin-left: auto;
    justify-content: end;
}

.send .msg p {
    margin-left: auto;
    text-align: right;
    background-color: var(--theme);
    color: white;
    border-radius: 10px;
    box-shadow: 0px 3px 6px #00000029;
    background: #000;
    border-radius: 30px 20px 0px 30px;
}

.send .msg p small {
    text-align: right;
    right: 7px;
}

.chat_footer {
    display: flex;
    justify-content: start;
    align-items: center;
    /*! border-top: 1px solid rgba(0, 0, 0, 0.175); */
    padding: 5px 10px;
    position: absolute;
    width: 95%;
    bottom: 20px;
    left: 50%;
    background: white;
    margin: auto;
    border-radius: 60px;
    transform: translate(-50%);
}

.chat_footer .input_group label i {
    width: 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.chat_footer input {
    border: none;
}

.chat_footer button {
	max-width: 46px;
	height: 46px;
	border-radius: 50%;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	background-color: var(--theme);
	width: 100%;
	padding: 0 2px 0px 0px;
	font-size: 20px;
	background: var(--theme);
	margin-left: 20px;
}

.chat_footer button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    /*! background: var(--theme); */
}

.chat_footer .input_group i {
    color: #F1AF25;
    font-size: 20px;
}

.over_type {
    position: relative;
}

.over_type span {
    position: absolute;
    top: -60px;
    left: 0;
    white-space: nowrap;
    border-radius: 10px 10px 10px 0px;
    background-color: #DBE5ED;
    color: #7c8894;
    padding: 5px 10px;
    font-size: 14px;
    display: none;
}

.left_box {
    background: #f2f2f200;
    border-radius: 20px;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.16);
    padding: 20px;
}

.form_control_search {
	height: 45.28px;
	border-radius: 66px;
	opacity: 1;
	font-size: 15px;
	background: #fff;
	width: 100%;
	color: black;
	padding: 0 25px;
	border: 1px solid #eeeeee;
}

input.form_controls {
	height: 52.28px;
	border-radius: 10px;
	border: none;
	opacity: 1;
	font-size: 15px;
	background: #f5f5f5;
	width: 100%;
	color: black;
    padding: 10px;
}

.chat_tab li {
    max-width: 284px;
    width: 100%;
    margin: 0 10px;
}

.chat_tab li button {
    width: 100%;
    height: 60px;
    font-size: 22px;
    color: #000;
    background-color: #e5e5e5 !important;
}

.chat_tab li button:hover {
    color: #000;
}

.chat .nav-pills .nav-link.active,
.chat .nav-pills .show>.nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: #cd1716 !important;
}


.cd_menu {
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 10px;
    border: none;
}

.send.message .msg small {
    font-size: 11px;
    color: #AFBBC6;
    display: block;
    text-align: left;
}

.send .user_img {
    margin-left: 10px;
}


/* /chat */



@media (max-width: 767.98px) {

    /* chat */
    #mobi .chat_list {
        width: 0;
        position: absolute;
        top: 0;
        left: 0;
        background-color: white;
        overflow: hidden;
        transition: all 0.3s;
        opacity: 0;
    }

    #mobi.showChat .chat_list {
        width: 100%;
        opacity: 1;
    }

    #mobi .chat_list i {
        cursor: pointer;
    }

    #mobi.showChat .left_box {
        display: block;
        width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.175);
        border-radius: 15px;
        opacity: 1;
    }

    .hide_chat {
        transition: all 0.3s;
        border-radius: 15px;
    }

    .chat_border {
        border: none;
        padding: 0 10px;
    }

    #mobi.showChat .hide_chat {
        width: 0;
        opacity: 0;
        overflow: hidden;
        border: none;
    }

    .hide_chat i {
        cursor: pointer;
    }

    .rigth_box {
        border-left: 0px solid rgba(0, 0, 0, 0.175);
    }

    /* /chat */
}