.sp-chat-main{
  z-index: 100;
  position: fixed;
  bottom: 0;
  right: 0;
  width:100%;
}
.sp-chat-bubble {
  position: absolute;
  bottom:0;
  right:0;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  -webkit-box-shadow: 0 0 50px 0 rgb(0 0 0 / 6%);
  box-shadow: 0 0 50px 0 rgb(0 0 0 / 6%);
  overflow: hidden;
  margin: 20px;
  -webkit-backface-visibility: hidden;
  -webkit-transition: all .3s;
  transition: all .3s;
  cursor: pointer;
  background-color:#f1974a;
}
.sp-chat-icon{
  width: 35px;
  margin: 14px;
}
.sp-chat-message{
  position: absolute;
  bottom: 0;
  right: 84px;
  margin-bottom: 29px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 1px 1px 1px silver;
}

.messenger-tab p 
{
  display: block;
  text-align: center;
  position: relative;
  top: 5px;
}
/*-------------------Chat-------------------*/
.main-messenger {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow: hidden;
  height: 100vh;
}
.messener-panel {
  width: 25%;
  background-color: #fbfbfb!important;
}
.messenger-content {
  width: 75%;
  height: 100vh;
}

/*---------*/
.user-header {
  background: #3b6d94;
  min-height: 8vh;
}
.user-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.user-header span {
  color: white;
  vertical-align: top;
  position: relative;
  top: 17px;
  margin-right: 16px;
}
.messenger-header {}
.messenger-header .search {
  float: left;
  margin-top: 20px;
  margin-left: 20px;
}
.messenger-header .search i {
  color: white;
  font-size: 23px;
  cursor: pointer;
}
.search input {
  width: 50px;
  transition: all 0.3s ease;
  min-height: 25px;
  border-radius: 7px;
  border: none;
  background-color: #2c5f84;
  opacity: 0.8;
}
.search input:focus {
  width: 150px;
  background-color: #f1f3f5;
  outline: none;
  opacity: 1;
}
.messenger-tab {
  color: #000;
  box-shadow: 0 3px 3px -1px rgba(0, 0, 0, .18);
  min-height: 35px;
  background-color: white;
}
.messenger-tab li {
  float: right;
  width: 25%;
  min-height: 35px;
  cursor: pointer;
}
.messenger-tab li p {
  text-align: center;
  margin-top: 10px;
}
.messenger-tab .active {
  border-bottom: 2px solid #43c89e;
}
.messenger-chat {}
.messenger-chat ul {
  overflow: scroll;
  overflow-x: hidden;
  height: 100vh;
}
.messenger-chat ul li {
  cursor: pointer;
  position: relative;
  min-height: 70px;
  border-bottom: 1px solid #e9eaf1;
  display: flex;
}
.messenger-chat ul li span {
  position: absolute;
  left: 10px;
  font-size: 14px;
  top: 10px;
}
.messenger-chat ul li img {
  width: 100%;
  height: 50px;
  border-radius: 50%;
  margin: 5px;
  max-width: 50px;
  border:1.5px solid #cbcbcb;
  padding: 2px;
}
.messenger-chat ul li.active {
  background-color: #e9eaf1!important;
}
.messenger-chat ul li .chat-log {
  width: 24%;
  width: 70px;
  text-align: center;
}
.messenger-chat ul li .chat-txt {
  float: right;
  width: 65%;
}
.messenger-chat ul li .chat-noti {
  position: absolute;
  right: 10px;
  top: 6px;
  color: #777;
}
.messenger-chat ul li .chat-noti p{
  font-size: 10px;
}
.content-header {
  background: #2c5f84;
  min-height: 8vh;
}
#DivMessage {
  height: 70vh;
  overflow: scroll;
  overflow-x: hidden;
}

/*------------------------------*/
.messanger-area {
  background: url('/themes/panel/images/3-min.png');
  height: 72vh;
  overflow: scroll;
  overflow-x: hidden;
}
.messanger-type {
  background: #ebeff1;
  height: 25vh;
  overflow: hidden;
  position: relative;
}
.messanger-type textarea {
  font-size: 15px;
  width: 90%;
  max-width: 100%;
  height: 70px;
  padding: 7px;
  resize: none;
  border: none;
  border-radius: 15px;
  outline: none;
  background-color: #fff;
  box-sizing: border-box;
  display: block;
  margin: auto;
  border: 1px solid #dadada;
  margin-top: 20px;
}
.messanger-type textarea:disabled {
  cursor: no-drop;
}
.messanger-type button {
  background: #40ae54;
  cursor: pointer;
  border: none;
  color: white;
  font-size: 13px;
  border-radius: 7px;
  float: left;
  margin-left: 20px;
  margin-top: 5px;
  padding: 3px 20px;
}
.messanger-type button:disabled {
  cursor: no-drop;
}
.post-message {
  border-radius: 15px 2px 15px 15px;
  background-color: white;
  margin: 10px auto;
  position: relative;
  line-height: 25px;
  max-width: 90%;
  min-height: 50px;
}
.post-message.selected {
  background-color: #f2f5fa;
}
.post-message-i {
  cursor: pointer;
}
.message {
  position: relative;
  overflow: auto;
  padding:7px;
}
.message-header{
  display:none; 
}
.message-header i{
  position: absolute;
  left: 10px;
  top: 6px;
  color: #999;
}
.post-message:hover .message-header{
  display: initial; 
}
.message-header .savedate {
  position: absolute;
  right: 50px;
  top: 0px;
  color: #999;
  transition: all 0.5s ease 
}
.message-header .savedate span{
  font-size: 11px;
}
.orgi-image {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.postaddition {
  position: absolute;
  left: -35px;
  top: 0px;
  box-shadow: 2px 2px 7px 0 hsla(220, 9%, 75%, .3);
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}
.post-message>img {
  width: 30px;
  position: absolute;
  right: -32px;
  border-radius: 50%;
  height: 30px;
  top: -6px;
}
.message-body {
  margin-top: 15px;
}
.message-body img {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: auto;
}
.message-body p{
  overflow-wrap: break-word;
}
.message-body video {
  width: 70%;
  margin: auto;
  display: block;
  margin-bottom: 20px;
}
.message-body audio {
  width: 50%;
  display: block;
  margin: 0px auto 20px;
  height: 34px;
}
.message-body audio:focus {
  outline: none;
}
.message-footer {
  position: absolute;
  right: 12px;
  bottom: 0px;
  color: #4e9fbb;
}
#Chatbox i{
  color:#999; 
}
.attach-icon {
  font-size: 21px;
  position: absolute;
  top: 20px;
  right: 10px;
  cursor: pointer;
}
.att-result {
  display: none;
}
.show-att-result {
  display: block !important;
  background-color: #adc2dc;
  float: right;
  margin-top: 12px;
  padding: 3px 13px;
  border-radius: 20px;
  cursor: pointer;
}
.emojiicon {
  position: relative;
}
#divEmoji {
  z-index: 55555;
  position: absolute;
  width: 400px;
  background-color: #48b1a9;
  min-height: 108px;
  bottom: 20px;
  display: none;
}
.divEmojishow {
  display: block !important;
}
.main-emoji li {
  float: left;
}
.notif-circle {
  background-color: red;
  color: white;
  animation: auto;
  text-align: center;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  padding: 4px;
  position: absolute;
  top: 20px;
}

.chat-txt p {
  overflow: hidden;
  line-height: 28px;
  text-align: left;
  color: #444;
  font-size: 12px;
  padding-top: 4px;
  width: 100%;
  height: 35px;
}
.last-chat-text{
  color: #bbbaba !important;
  padding: 0 !important;
  font-size: 9px !important;
}
.unread {
  text-align: center;
  background-color: #4ea0ba;
  color: white;
}
.nonresult {
  float: left;
  width: 100%;
  background-color: white;
  box-shadow: 0 10px 30px rgba(50, 50, 93, .12), 0 -1px 4px rgba(0, 0, 0, .06);
  border-radius: 3px;
  padding: 5px;
  box-sizing: border-box;
  margin: 7px 0px;
  text-align: center;
}

/*----------------------------------*/
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
}
.loader {
  color: #2c5f84;
  font-size: 11px;
  text-indent: -99999em;
  margin: 55px auto;
  position: relative;
  width: 110px;
  height: 110px;
  box-shadow: inset 0 0 0 1em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before,
.loader:after {
  position: absolute;
  content: '';
}
.loader:before {
  width: 5.2em;
  height: 10.2em;
  background: #f1f3f5;
  border-radius: 10.2em 0 0 10.2em;
  top: -0.1em;
  left: -0.1em;
  -webkit-transform-origin: 5.2em 5.1em;
  transform-origin: 5.2em 5.1em;
  -webkit-animation: load2 2s infinite ease 1.5s;
  animation: load2 2s infinite ease 1.5s;
}
.loader:after {
  width: 5.2em;
  height: 10.2em;
  background: #f1f3f5;
  border-radius: 0 10.2em 10.2em 0;
  top: -0.1em;
  left: 5.1em;
  -webkit-transform-origin: 0px 5.1em;
  transform-origin: 0px 5.1em;
  -webkit-animation: load2 2s infinite ease;
  animation: load2 2s infinite ease;
}
@-webkit-keyframes load2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}