/**** Chat Popup Layout******/

.msg_box {
  position: fixed;
  bottom: -2px;
  width: 250px;
  background: white;
  border-radius: 5px 5px 0px 0px;
  z-index: 1000;
}

.msg_head {
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px 5px 0px 0px;
  height: 40px;
  border: 1px solid rgb(211, 219, 230);
}

.msg_body {
  width: 100%;
  background: white;
  height: 200px;
  font-size: 12px;
  padding: 15px;
  overflow: auto;
  overflow-x: hidden;
  font-family: 'Open Sans';
}

.closeconv img,
.moreconv img {
  opacity: 0.5;
}

.minimize {
  float: right;
  cursor: pointer;
  padding-right: 5px;
}

.msg-left {
  position: relative;
  background-color: #f5f6fa;
  padding: 10px;
  min-height: 10px;
  margin-bottom: 5px;
  margin-right: 10px;
  border-radius: 5px;
  word-break: break-word;
  max-width: 85%;
  width: max-content;
}

.msg-right {
  padding: 10px;
  min-height: 15px;
  margin-bottom: 5px;
  position: relative;
  max-width: 85%;
  border-radius: 5px;
  background-color: #263752;
  color: #ffffff;
  word-break: break-all;
  display: block;
  margin-left: auto;
  max-width: 85%;
  width: max-content;
}

.sidebar-user-box,
#sidebar-user-box-head {
  font-size: 15px;
  font-family: Calibri;
  font-weight: bold;
  cursor: pointer;
}

.sidebar-user-box {
  height: 50px;
  background: rgb(243, 247, 250);
}

.sidebar-user-box:hover {
  background-color: white;
}

.slider-username {
  float: left;
  font-size: 13px;
  max-width: 85px;
  color: #434b5a;
  font-family: 'Open Sans';
}

#chat-sidebar {
  width: 200px;
  right: 0px;
  border: 1px solid rgb(211, 219, 230);
  z-index: 1000000;
  background: rgb(243, 247, 250);
  color: white;
  position: fixed;
  bottom: -3px;
  box-shadow: 0 0 10px 1px #bac4d566;
  border-radius: 5px 5px 0px 0px;
}

.status_user {
  font-size: 9px;
  color: gray;
}

.connected {
  color: green;
}

.nbunreadmsg {
  display: inline-block;
  line-height: 16px;
  background-color: #eb6f5b;
  min-width: 16px;
  height: 16px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  position: absolute;
  padding: 0 3px;
  margin-left: 5px;
  font-size: 12px;
  font-weight: normal;
}

#slider-username {
  font-family: 'Open Sans';
  font-size: 12px;
  color: #1f2d49;
}

#searchusermsg {
  border-radius: 2px;
  border: none;
  padding: 0 10px;
  width: 80%;
  outline: 0;
  height: 40px;
  box-sizing: border-box;
  background-color: white;
  color: rgba(0, 0, 0, 0.9);
  float: left;
  font-family: 'Open Sans';
}

#logosearchchat {
  width: 15px !important;
  float: right !important;
  margin-right: 10px !important;
  border-radius: 0px !important;
  height: 35px;
}

.lastmsg {
  color: #434b5a;
  font-weight: normal;
}

@media screen and (min-width: 800px) {
  #divimgbigger {
    border-radius: 10px;
    width: auto;
  }

  .msg_input {
    width: 100%;
    height: 43px;
    resize: none;
    padding-left: 5px;
    padding-top: 11px;
    border: 1px solid white;
    border-top: 1px solid #e9eef5;
    -webkit-box-sizing: border-box;
    resize: none;
    padding-bottom: 0px;
  }

  .closeconv,
  .moreconv {
    margin-top: 8px;
    margin-right: 10px;
    float: right;
    cursor: pointer;
  }

  .profileicon {
    height: inherit;
    width: 25%;
    position: relative;
    float: left;
  }

  .zonestatusconnected {
    margin-top: -7px;
  }

  #listusersconv {
    margin-bottom: 30px;
    margin-top: 40px;
  }

  #chat-sidebar {
    max-height: 80%;
  }

  #listusersconv {
    width: 190px;
  }

  #chat-sidebar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  #searchusermsg {
    font-size: 13px;
  }
}

.div-img {
  height: inherit;
  width: 25%;
  float: left;
  display: block;
}

.picturemsgprofile {
  margin-top: 2px;
}

#logochat {
  width: 18px !important;
  height: 18px !important;
  float: left !important;
  margin-right: 10px !important;
  border-radius: 0px !important;
}

.discussionmsgzone {
  width: 80%;
  height: inherit;
  margin-left: 20%;
}

.namediscussiontime {
  height: 100%;
}

.usernamedisc {
  height: 100%;
  width: 80%;
  float: left;
  position: relative;
}

.divnameuser {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

#sidebar-user-box-head {
  padding: 10px;
  border-radius: 5px 5px 0px 0px;
}

.divnameuser span {
  color: #434b5a;
  font-family: 'Open Sans';
  font-size: 12px;
}

.timelastmsg {
  width: 11%;
  height: 100%;
  position: relative;
  float: left;
  text-align: right;
}

.divtimedisc {
  margin: 0;
  width: 100%;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.divtimedisc span {
  font-size: 10px;
  color: #434b5a;
  font-weight: normal;
  font-family: 'Open Sans';
}

.lastmsgdisc {
  height: 20%;
}

.lastmsguser {
  height: 100%;
  width: 80%;
  float: left;
  position: relative;
}

.lastmsg {
  height: 100%;
  width: 100%;
  float: left;
}

.lastmsgcenter {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.lastmsgcenter span {
  color: gray;
  font-family: 'Open Sans';
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 11px;
  font-weight: normal;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  width: 80%;
  display: inline-block;
  width: 109px;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  height: 13px;
}

.zonenbnread {
  height: 100%;
  width: 0px;
  margin-left: 75%;
  position: relative;
}

.nbunreadmsg {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.nicknameuser {
  height: 14px;
  width: 100%;
}

.usernamedisc {
  font-family: 'Open Sans';
  font-weight: bold;
}

.msg-left .usernamedisc {
  color: #434b5a;
}

.usernameconversation {
  height: 100%;
  width: 100%;
  float: left;
  position: relative;
  text-align: right;
  font-weight: bold;
  font-family: 'Open Sans';
}

.msg-right .msgdisc {
  word-break: break-word;
}

.msg-left .usernameconversation {
  text-align: left;
}

.zonestatusconnected {
  height: 12px;
  width: 12px;
  background: white;
  border-radius: 50%;
  margin-top: -7px;
  left: 30px;
  position: absolute;
}

.statusconnected {
  height: 9px;
  width: 9px;
  background: rgb(57, 231, 195);
  border-radius: 50%;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  position: absolute;
}

.picturediscuprofile {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.divimgconv {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.conversationtitle {
  position: relative;
  height: inherit;
  width: 100%;
  position: relative;
}

.titleuserconv {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #263752;
}

.iconcloseconv {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: rgb(156, 162, 170);
}

#divsearchuserconv {
  position: fixed;
  bottom: 0;
  width: inherit;
  border-top: 1px solid #e9eef5;
  background: white;
  z-index: 100000;
  overflow-x: hidden;
}

#chat-sidebar:hover {
  overflow-y: scroll;
  overflow-x: unset;
}

#chat-sidebar::-webkit-scrollbar {
  width: 5px;
}

/* Track */
#chat-sidebar::-webkit-scrollbar-track {
  background: inherit;
}

/* Handle */
#chat-sidebar::-webkit-scrollbar-thumb {
  background: #9ca7ba;
}

/* Handle on hover */
#chat-sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca7ba;
}

#nbunreadtotal {
  font-size: 0.5rem;
  font-weight: bold;
  color: #e9eef5;
  background: #eb6f5b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 10px;
  right: -2px;
}

#slider-username #nbunreadtotal {
  font-size: 10px;
  width: 16px;
  height: 16px;
  right: 10px;
}

#sidebar-user-box-head {
  position: fixed;
  width: inherit;
  background: white;
  z-index: 1000;
  border-bottom: 1px solid #e9eef5;
}

#chat-sidebar {
  margin-right: 30px;
  overflow: hidden;
}

#headanddisc * {
  box-sizing: border-box;
}

.msg_box * {
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  #loadingimg {
    width: 100%;
  }

  #divimgbigger {
    border-radius: 10px;
  }

  .centericonbottomresponsive {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .msg_footer textarea {
    float: left;
  }

  #headanddisc {
    display: none;
  }

  .msg_input {
    width: 100%;
    height: 60px;
    font-size: 15px;
    resize: none;
    padding-left: 5px;
    padding-top: 11px;
    border: 1px solid white;
    border-top: 1px solid #e9eef5;
    -webkit-box-sizing: border-box;
    resize: none;
    padding-bottom: 0px;
  }

  .msgdisc span {
    font-size: 15px;
  }

  .closeconv,
  .moreconv {
    margin-top: -6px;
    margin-right: 10px;
    float: right;
    cursor: pointer;
  }

  .divimgconv {
    width: 45px;
    height: 45px;
  }

  .zonestatusconnected {
    left: 45px !important;
  }

  .profileicon {
    height: inherit;
    width: 20%;
    position: relative;
    float: left;
  }

  .zonestatusconnected {
    margin-top: -12px;
  }

  #listusersconv {
    margin-bottom: 30px;
    margin-top: 56px;
  }

  .divimgmsg img {
    border-radius: 50%;
    margin-left: 15px;
  }

  #logosearchchat {
    margin-top: 7px;
  }

  #searchusermsg {
    font-size: 20px;
  }

  #logochat {
    display: none;
  }

  #listusersconv {
    height: 80%;
  }

  #headanddisc {
    width: 100%;
    height: 100%;
  }

  #chat-sidebar {
    width: 100%;
    height: 100%;
    /* position: inherit; */
    border: none;
    right: unset;
    bottom: 0;
    border-radius: 0;
  }

  #sidebar-user-box-head {
    text-align: center;
    padding: 15px;
  }

  #slider-username {
    font-size: 19px;
  }

  .zonestatusconnected {
    right: 15px;
    left: unset;
  }

  #chat-sidebar img {
    width: 45px;
    height: 45px;
  }

  .divnameuser span {
    font-size: 16px;
  }

  .divtimedisc span {
    font-size: 13px;
  }

  .lastmsgcenter span {
    font-size: 13px;
  }

  #searchusermsg {
    height: 100%;
  }

  #backbtnmsg {
    float: left;
    margin-top: 5px;
  }

  #backbtnmsg:before {
    font-family: iconfont;
    /* content: "\f713"; */
    content: '\e84d';
    color: #1f2d49;
  }

  .msg_box {
    position: fixed;
    bottom: -0px;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    background: white;
    right: 0px !important;
    z-index: 9999999;
  }

  .msg_head {
    border: none;
  }

  .msg_body {
    height: 100%;
  }

  #divsearchuserconv,
  #sidebar-user-box-head {
    height: 7%;
  }

  .msg_footer {
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgb(211, 219, 230);
    background: white;
    z-index: 100000;
    overflow-x: hidden;
  }

  .lastmsgcenter span {
    height: 15px;
  }

  .msg_footer {
    bottom: 0;
    position: fixed;
  }

  .msg_wrap {
    overflow: auto;
    height: 90%;
  }

  .msg_body {
    height: 90%;
  }

  .msg_head,
  .msg_footer {
    height: 10%;
  }

  .conversationtitle,
  .profileicon {
    margin: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

.msgdisc img {
  cursor: pointer;
}

#logosendimgchat {
  border-top: 1px solid #e9eef5;
  width: 10% !important;
  float: right !important;
  border-radius: 0px !important;
  height: 35px;
  padding-right: 5px;
}

#imgdisc {
  display: none;
}

.tipspending {
  top: 50%;
  margin: 0;
  position: absolute;
  font-size: 10px;
  color: rgb(124 134 152);
  text-decoration: underline;
}

.detailschoice {
  height: auto;
  width: auto;
  background: white;
  position: absolute;
  right: 0;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.selectdetailschoice {
  color: black;
  text-align: right;
  font-size: 10px;
  font-weight: normal;
  padding: 10px;
}

.lookformembertoadd {
  height: 30px;
  width: 100%;
  background: rebeccapurple;
  position: absolute;
  z-index: 11;
}
