.chatpeople_list {
  display: none;
  border: 1px solid #dfdfdf;
  position: fixed;
  bottom: 0;
  right: 0;
  max-width: 240px;
  width: 100%;
  height: calc(100vh - 140px);
  background: #fff;
  z-index: 9999;
  box-shadow: 0px 0px 12px 0px #00000026;
	flex-direction: column;
}
.chatpeople_list.open{
  display: flex;
}
.chat_peo_header{
	width: 100%;
	height: 70px;
	background: var(--maincolor);
  /* display: grid;
  grid-auto-flow: row;
  align-items: center;
  justify-content: space-between; */
  padding: 0 10px;
  color: #fff;
}
.top_ch_title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.chpeo_srch {
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 7px;
  display: flex;
}
.chpeo_srch input{
  width: 100%;
  height: 23px;
  padding: 4px 10px;
}
.chpeo_srch .btn{
  background: #fff;
  border: 0;
  border-radius: 0;
  height: 25px;
  width: 40px;
}
.top_ch_title h3{
  font-size: 16px;
  color: #fff;
}
.ch_btn {
  width: 76%;
  text-align: end;
  display: flex;
  justify-content: end;
}
.ch_btn span{
  cursor: pointer;
  color: #fff;
}
.chat_peo_body{
  width: 100%;
  height: 100%;
	flex: 1;
	overflow-y: scroll;
    overflow-x: hidden;
	background:#f3f3f3;
}

.chat_peo_body ul li{
  display: flex;
  width: 100%;
  align-items: center;
  margin: 5px 0;
  padding: 2px 8px;
  cursor: pointer;
  position: relative;
}
.chat_peo_body ul li:hover{
  background: #e9e9e9;
}
.chat_peo_body ul li .badge{
  position: absolute;
  right: 0;
  border-radius: 50px;
}
.btn_openchat .badge {
  position: absolute;
  right: 21px;
  bottom: 29px;
  font-size: 10px;
  border-radius: 50px;
}
.pf_img{
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.pf_img img{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #cbcbcb;
  object-fit: cover;
  object-position: center center;
}
.pf_img span{
  position: absolute;
  bottom: 7px;
  width: 10px;
  height: 10px;
  margin: auto;
  right: 0px;
  z-index: 1;
  font-size: 10px;
}
.pf_list h6 {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-top: 0;
}
.pf_list p {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}


.chat_multiple_group {
  position: fixed;
  right: 250px;
  bottom: 0;
  /* display: flex;
  align-items: flex-end; */
  display: grid;
  grid-auto-columns: auto;
  gap: 10px;
  z-index: 99;
  height: auto;
  max-height: 100vh;
  overflow: auto;
}
@media screen and (min-width: 1600px) {
  .chat_multiple_group {
    grid-template-areas: "a a a a a";
  }
}
@media screen and (min-width: 1300px) and (max-width: 1599px)  {
  .chat_multiple_group {
      grid-template-areas: "a a a a";
  }
}
@media screen and (min-width: 992px) and (max-width: 1299px)  {
  .chat_multiple_group {
      grid-template-areas: "a a a";
  }
}
@media screen and (min-width: 577px) and (max-width: 991px)  {
  .chat_multiple_group {
      grid-template-areas: "a a";
  }
}

@media screen and (max-width: 576px)  {
  .chat_multiple_group {
      grid-template-areas: "a";
  }
}

.chat_box{
  display: none;
  border: 1px solid #dfdfdf;
    /* position: fixed;
    bottom: 0;
    right: 250px; */
    max-width: 240px;
    min-width: 240px;
    width: 100%;
    height: 380px;
    background: #fff;
    z-index: 9999;
    margin: 0 3px;
    box-shadow: 0px 0px 12px 0px #00000026;
    flex-direction: column;
    flex-flow: column;
}
.chat_box.open{
  display: flex;
}
.chat_box.maxmin {
  transform: translate(0px, 343px);
}
.chat_head{
  width: 100%;
  height: 37px;
  background: var(--maincolor);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 7px;
  color: #fff;
}
.chat_body{
  width: 100%;
  height: 100%;
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #f3f3f3;
  padding: 5px;
  display: flex;
  flex-direction: column-reverse;
}
.chat_footer{
  width: 100%;
	height: 50px;
	background: #ffffff;
  display: flex;
  overflow: hidden;
}
.chat_head_peo {
  width: 80%;
  display: flex;
  align-items: center;
  color: #fff;
}
.chat_head_peo .pf_img {
  position: relative;
  width: 32px;
  height: 30px;
  margin-right: 10px;
}
.chat_head_peo .pf_img img {
  width: 30px;
  height: 30px;
}
.pf_nm h6 {
  color: #fff;
}
.btn_cht {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: end;
}
.btn_cht span{
  font-size: 13px;
    margin-left: 10px;
    cursor: pointer;
    width: 12px;
}
.send_chat {
  width: 100%;
  position: relative;
  margin: 3px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 6px;
}
.send_chat textarea{
  border: 0;
  width: 100%;
  height: 100%;
}
.send_chat textarea:focus,.send_chat textarea:hover{
  border: 0;
  outline: 0;
}
.send_chat button{
  width: 30px;
  min-width: 30px;
  height: 30px;
  background: var(--maincolor);
  color: #fff;
  border-radius: 50%;
}

.msg-body h6 {
  text-align: center;
  font-weight: normal;
  font-size: 12px;
  line-height: 1.5;
  color: #acacac;
  background: #f0f0f8;
  display: inline-block;
  padding: 0 5px;
  margin-bottom: 0;
}
.divider {
  position: relative;
  z-index: 1;
  text-align: center;
}

.divider:after {
  display: block;
  content: "";
  clear: both;
  position: absolute;
  top: 9px;
  left: 0;
  border-top: 1px solid #d9d9d9;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.msg-body {
  display: table-row;
  vertical-align: bottom;
}

.msg-body ul {
  overflow: hidden;
  position: relative;
}

.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: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 #e9e9e9 transparent;
-webkit-transform: rotate(-37deg);
-ms-transform: rotate(-37deg);
transform: rotate(-37deg);
}

.msg-body ul li.sender p {
  color: #000;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  padding: 8px;
  background: #e9e9e9;
  display: inline-block;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  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: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 #1dadda transparent;
-webkit-transform: rotate(37deg);
-ms-transform: rotate(37deg);
transform: rotate(37deg);
}

.msg-body ul li.repaly p {
  color: #fff;
  line-height: 1.2;
  padding: 8px;
  font-size: 11px;
  font-weight: 400;
  background: #1dadda;
  display: inline-block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-bottom: 0;
}

.msg-body ul li.repaly p b {
display: block;
color: #1dadda;
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: #9f9f9f;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
}

li.repaly .time {
margin-right: 20px;
}
.btn_openchat{
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 20px;
  right: 10px;
  background: #17a2b8;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
}
@media only screen and (max-width : 576px) {
  .chatpeople_list {
    border: 0px solid #dfdfdf;
    max-width: 100%;
    width: 100%;
    height: 100vh;
  }
  .chat_multiple_group{
    right: 0;
    height: 100vh;
    display: block;
    z-index: 99999;
  } 
  .chat_box {
      border: 0px solid #dfdfdf;
      max-width: 100%;
      min-width: 100%;
      width: 100%;
      right: 0;
      height: 100vh;
      margin: 0px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
  }
  .maxminbtn {
      display: none;
  }

}