/* chats Elements style css */


.chat_div {
    display: flex;
    justify-content: start;
    align-items: stretch;
    gap: 1rem;
}

.ch_user_list {
    width: 20.625rem;
    position: relative;
}

.ch_list_header {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .625rem;
    padding: .625rem 0;
    border-bottom: 1px solid #70707025;
}


.ch_list_header label {
    color: var(--white);
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .3125rem;
    cursor: pointer;
}

.ch_list_header label i {
    font-size: 1.1875rem;
    color: var(--gray);
}

.ch_list_header label span {
    font-size: .9375rem;
    font-weight: 500;
}

.ch_list_header input:checked+label i {
    color: var(--white);
}

.ch_list_body {
    height: 610px;
    padding-top: .9375rem;
}

.ch_list_link {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
    color: var(--white);
    margin-bottom: 20px;
    cursor: pointer;
}

.chll_img {
    max-width: 3.75rem;
    width: 100%;
    position: relative;
    height: 3.75rem;
}

.chll_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chll_body {
    margin-right: auto;
    max-width: 100%;
    width: 11.875rem;
}

.chll_body h6 {
    font-size: .8125rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    width: 100%;
}

.chll_body p {
    font-size: .625rem;
    color: inherit;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    margin-bottom: 0;
}

.chll_foot small {
    font-size: .5625rem;
}

.chat_right_area {
    width: calc(100% - 20.625rem);
    position: relative;
}

.chat_right_area::before {
    content: '';
    width: 2px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: rgb(255, 255, 255);
    background: #fff0 linear-gradient(180deg, #fff0 0%, #e5e5e5 10%, #e5e5e5 90%, #fff0 100%);
}

.ch_ri_head {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .9375rem;
    position: relative;
    padding: .625rem 1.25rem;
    border-bottom: 3px solid #fff;
}

.ch_bk_btn {
    border: none;
    background-color: var(--transparent);
    color: var(--white);
    font-size: 20px;
    display: none;
}

.chri_img {
    max-width: 3.125rem;
    width: 100%;
    height: 3.125rem;
    position: relative;
}

.chri_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border-radius: 8px;
}

.chri_hd_body {
    margin-right: auto;
}

.chri_hd_body h5 {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0;
}

.chat_drop_btn {
    background-color: var(--transparent);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
}

.ch_ri_body {
    padding: 1.5625rem;
    height: 465px;
    overflow-y: auto;
}

.mssgages {
    display: flex;
    justify-content: flex-end;
    align-items: start;
    gap: .9375rem;
    margin-bottom: 30px;
}

.mssg_area {
    width: fit-content;
    max-width: 70%;
    display: flex;
    justify-content: start;
    align-items: end;
    flex-direction: column;
    gap: 0.325rem;
}

.mssg_area p {
    background-color: var(--black);
    color: var(--white);
    padding: .6875rem 1.288rem;
    min-width: 5.625rem;
    border-radius: 10px 0px 10px 10px;
    width: fit-content;
    margin-bottom: 0;
    font-size: 0.725rem;
}

.mssg_area p:first-child {
    border-radius: 10px 10px 0px 10px;
}

.mssg_area span {
    color: var(--white);
    font-size: .625rem;
}

.mssg_img {
    max-width: 2.1875rem;
    width: 100%;
    height: 2.1875rem;
}

.mssg_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mssgages.received_mess {
    justify-content: start;
}

.received_mess .mssg_area {
    align-items: start;
}

.received_mess .mssg_area p {
    background: var(--white);
    color: var(--black);
    border-radius: 0px 10px 10px 10px;
}

.received_mess .mssg_area p:first-child {
    border-radius: 10px 10px 10px 0px;
}

.ch_fi_foot {
    padding: 1.5625rem;
    position: relative;
}

.ch_fi_foot textarea::-webkit-scrollbar {
    display: none;
}

.ch_fi_foot textarea {
    height: 4.4375rem;
    border-radius: 15px;
    box-shadow: 0px 0px 6px #00000029;
    padding: 24px 64px 24px 24px;
    resize: none;
    font-size: .9375rem;
    font-weight: 500;
    border: none;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ch_fi_foot textarea:focus {
    outline: none;
}

.send_btn {
    background-color: var(--transparent);
    border: none;
    font-size: 1.888rem;
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 2;
}

/*\  chats Elements style css */

/* max width media */
@media (max-width:767.98px) {

    .chat_right_area,
    .opne_chat .ch_user_list {
        display: none;
    }

    .ch_user_list,
    .opne_chat .chat_right_area {
        width: 100%;
        position: relative;
        display: block;
    }

    .chri_img {
        max-width: 2.1875rem;
        height: 2.1875rem;
    }

    .chri_hd_body h5 {
        font-size: .75rem;
    }

    .ch_ri_head {
        border-bottom: 2px solid #fff;
    }

    .ch_ri_body {
        padding: 0.763rem;
    }

    .ch_bk_btn {
        display: block;
    }

    .ch_fi_foot textarea {
        height: 3.4375rem;
        border-radius: 9px;
        padding: 8px 34px 13px 14px;
        font-size: 0.838rem;
        font-weight: 400;
    }

    .send_btn {
        font-size: 1.288rem;
        top: 2.5rem;
        right: 2.3rem;
    }

    .ch_fi_foot {
        padding: 0.763rem;
    }
}

/* \ max width media */