/* chat */

#mobi {
    font-family: "DM Sans", sans-serif;
}

/* left user list box */


.left_box {
    height: 600px;
}

.left_box .form_group {
    padding: 1rem;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
}

.left_box .form_group i {
    position: absolute;
    top: 1.8125rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

.user_list::-webkit-scrollbar {
    display: none;
}

.user_list {
    margin-top: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 0;
    height: calc(100% - 82px);
    padding: 1rem;
}

.user_list h5 {
    font-size: 1rem;
    /* margin: 0 .3125rem; */
    font-weight: 700;
    display: flex;
}

.user_list p {
    font-size: .75rem;
    margin: .125rem 0 0 !important;
    display: flex;
    justify-content: space-between;
    margin-top: 1.875rem;
    color: #AAAAAA;
}

.user_list .list-group-item.active p {
    color: white;
}

.user_list .list-group-item {
    padding: .625rem .9375rem;
    background: #fff;
    border-color: transparent;
    box-shadow: 0px 1px 6px #00000029;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 10px;
}

.user_list .list-group-item:hover {
    background: #e4f5ff;
}

.user_list .list-group-item.active {
    background-color: var(--theme);
    border-color: var(--theme);
}

.user_list small {
    font-size: .625rem;
    font-weight: 400;
}

.user_img {
    max-width: 3.125rem;
    width: 100%;
    height: 3.125rem;
    position: relative;
    margin-right: .625rem;
}

.user_img i {
    position: absolute;
    bottom: 0rem;
    right: 0rem;
    font-size: .625rem;

}

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;
    color: #AAAAAA;
}

.user_list .list-group-item.active small {
    color: white;
}

/* Right chet box  */

.rigth_box_chat {
    height: 100%;
    position: relative;
    background: #fff;
    box-shadow: 0px 5px 22px #00000029;
    border-radius: 10px;
    padding: 0rem 0rem;
    height: 600px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.chat_head {
	padding: 1rem;
	display: flex;
	justify-content: start;
	align-items: center;
	min-height: 4.2656rem;
}

.chat_head img {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.chat_head h5 {
    font-size: 1rem;
    margin-left: 0.125rem;
    font-weight: 600;
}

.chat_head .btn-group {
    margin-left: auto;
}

.chat_body::-webkit-scrollbar {
    display: none;
}

.chat_body {
	padding: 1.5rem;
	height: calc(100% - 8.0625rem);
	overflow-y: auto;
	margin-bottom: 0rem;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.message {
    display: flex;
    justify-content: start;
    align-items: start;
    width: 100%;
    margin-bottom: 1.875rem;
    max-width: 300px;
    flex-direction: column;
}



.message img {
    max-width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}


.message .msg {
    margin: 0;
    padding: 0.825rem 1.4rem;
    background-color: #efefef;
    color: #000;
    font-size: .9375rem;
    border-radius: 0;
    max-width: 100%;
    position: relative;
    min-width: 4.0625rem;
    font-weight: 500;
    z-index: 0;
    margin-bottom: 10px;
}

.received .msg {
    background-color: var(--theme);
    color: #fff;
}

.received .msg.first_mssg {
    border-radius: 30px 30px 30px 10px;
}

.received .msg.last_mssg {
    border-radius: 10px 30px 30px 30px;
}

.message small {
    width: 100%;
    font-size: 0.6rem;
    text-align: left;
    display: block;
    color: #000;
}

.message.send small {
    text-align: right;
}

.message .msgpik {
    width: 100%;
    max-width: 6.25rem;
    height: 6.25rem;
    border-radius: .5rem;
    object-fit: cover;
}

.send {
    margin-left: auto;
}

.send .msg {
    margin-left: auto;
    margin-bottom: 10px;
}

.send .msg.first_mssg {
    border-radius: 30px 30px 10px 30px;
}

.send .msg.last_mssg {
    border-radius: 30px 10px 30px 30px;
}

.send .msg h5 {
    color: #fff;
}

.send .msg small,
.send .msg p {
    color: #fff;
    margin: .375rem 0 0 auto;
}

.chat_footer {
	display: flex;
	justify-content: start;
	align-items: center;
	padding: 2px 4px 0px 0px;
	position: absolute;
	width: calc(100% - 50px);
	bottom: 1rem;
	left: 50%;
	background: white;
	margin: auto;
	transform: translate(-50%);
	box-shadow: 0px 1px 6px #00000029;
	border-radius: 15px;
	overflow: hidden;
}

.chat_footer .input_group label i {
    width: 1.875rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.chat_footer input {
    border: none;
}

.chat_footer button {
    max-width: 41px;
    height: 41px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: var(--theme);
    width: 100%;
    padding: 0 .125rem 0rem 0rem;
    font-size: 1rem;
    font-weight: 500;
}

.chat_footer .input_group i {
    color: #ddd;
    font-size: 1.65rem;
}

.left_box {
    background: #fff;
    box-shadow: 0px 5px 22px #00000029;
    border-radius: 10px;
}

.form_control {
    background-color: #fff;
    height: 3.125rem;
    padding: .625rem 1.25rem;
    color: #000;
    font-size: .875rem;
    font-weight: 500;
    width: 100%;
    border: .0625rem solid #E1E1E1;
    border-radius: .5rem;
}

.form_control:focus {
    outline: none;
    box-shadow: none;
}

.chat_tab li {
    max-width: 17.75rem;
    width: 100%;
    margin: 0 .625rem;
}

.chat_tab li button {
    width: 100%;
    height: 3.75rem;
    font-size: 1.375rem;
    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;
}


.chat_b_top {
    padding: .625rem 1rem 0;
}

.chat_b_top span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .875rem;
    font-weight: 700;
    color: black;
}

.chat_b_top a {
    /*! padding: .625rem .9375rem; */
    font-size: 1.625rem;
    font-weight: 500;
    /*! background-color: #000; */
    color: black;
    border-radius: .625rem;
    text-decoration: none;
    margin-left: .625rem;
    line-height: 1.625rem;
}


.chat_drop_btn {
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
    padding: 0 1.25rem;
    cursor: pointer;
}

/* /chat */



@media (max-width: 991.98px) {

    /* chat */
    #mobi .chat_list {
        width: 0;
        position: absolute;
        top: 0;
        left: 0;
        /* background-color: white; */
        overflow: hidden;
        transition: all 0.3s;
        opacity: 0;
    }

    .left_box {
        border-right: .0625rem solid #e1e1e1;
        padding: 0 .625rem;
    }

    .chat_border {
        border: none;
        padding: 0 .625rem;
    }

    .rigth_box_chat {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 8;
        width: 100%;
        transform: translate(-50%);
        display: none;
    }

    .showChat .rigth_box_chat {
        display: block;
    }

    .showChat .right_ssbox {
        height: 0 !important;
    }

    .chat_footer {
        border-right: .0625rem solid #fff;
        border-left: 1px solid #E1E1E1;
    }




    .left_box .form_group {
        padding: 1rem 0;
    }

    .chat_b_top {
        padding: .625rem 0rem 0;
    }

    .message .msgpik {
        max-width: 5rem;
        height: 5rem;
    }

}