.chat {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* background: #c8e8d6;*/
  font-family: "proxima-nova", "Source Sans Pro", sans-serif;
  /*font-size: 1em;*/
  letter-spacing: 0.1px;
  color: #32465a;
  text-rendering: optimizeLegibility;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
  -webkit-font-smoothing: antialiased;
}

#frame {
  width: 100%;
/*   min-width: 360px;
  max-width: 1100px; */
  height: 92vh;
  min-height: 300px;
  max-height: 720px;
  background: #E6EAEA;
  margin: 30px 0px 70px 0px;      box-shadow: 0px 0px 6px #e4e2e2;
}
@media screen and (max-width: 360px) {
  #frame {
    width: 100%;
    height: 100vh;
  }
}
#frame #sidepanel {
  float: left;
  min-width: 280px;
  max-width: 340px;
  width: 40%;
  height: 100%;
  background: #fbfff8;
  color: #333;
  overflow: hidden;
  position: relative;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel {
    width: 58px;
    min-width: 58px;    width: 40%;
  }
  #frame {    height: 72vh;}
#frame .content .contact-profile img {
    width: 36px!important;
    height: 36px!important;
    margin: 12px 12px 0 0px!important;
}
#frame .content .contact-profile p {
    font-size: 13px;
    text-transform: capitalize;
}
  
  
}
#frame #sidepanel #profile {
    width: 100%;
    padding: 8px 10px 2px 15px;
    background-color: #77ab3d;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile {
    width: 100%;
    margin: 0 auto;
    padding: 5px 0 0 0;
    background: #77ab3d;
  }
}
#frame #sidepanel #profile.expanded .wrap {
  height: 210px;
  line-height: initial;
}
#frame #sidepanel #profile.expanded .wrap p {
  margin-top: 20px;
}
#frame #sidepanel #profile.expanded .wrap i.expand-button {
  -moz-transform: scaleY(-1);
  -o-transform: scaleY(-1);
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}
#frame #sidepanel #profile .wrap {
  height: 49px;
  line-height: 49px;
  overflow: hidden;
  -moz-transition: 0.3s height ease;
  -o-transition: 0.3s height ease;
  -webkit-transition: 0.3s height ease;
  transition: 0.3s height ease;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap {
    height: 55px;
  }
}
#frame #sidepanel #profile .wrap img {
  width: 44px;
  border-radius: 50%;
  padding: 1px;
  border: 2px solid #e74c3c;
 height: 44px;
  float: left;
  cursor: pointer;
  -moz-transition: 0.3s border ease;
  -o-transition: 0.3s border ease;
  -webkit-transition: 0.3s border ease;
  transition: 0.3s border ease;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap img {
    width: 40px;  height: 40px;
    margin-left: 9px;
    margin-top: 5px;
  }
}
#frame #sidepanel #profile .wrap img.online {
  border: 2px solid #2ecc71;
}
#frame #sidepanel #profile .wrap img.away {
  border: 2px solid #f1c40f;
}
#frame #sidepanel #profile .wrap img.busy {
  border: 2px solid #e74c3c;
}
#frame #sidepanel #profile .wrap img.offline {
  border: 2px solid #95a5a6;
}
#frame #sidepanel #profile .wrap p {
  float: left;
  margin-left: 15px; font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap p {
    display: none;
  }
}
#frame #sidepanel #profile .wrap i.expand-button {
  float: right;
  margin-top: 23px;
  font-size: 0.8em;
  cursor: pointer;
  color: #435f7a;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap i.expand-button {
    display: none;
  }
}
#frame #sidepanel #profile .wrap #status-options {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 150px;
  margin: 70px 0 0 0;
  border-radius: 6px;
  z-index: 99;
  line-height: initial;
  background: #435f7a;
  -moz-transition: 0.3s all ease;
  -o-transition: 0.3s all ease;
  -webkit-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options {
    width: 58px;
    margin-top: 57px;
  }
}
#frame #sidepanel #profile .wrap #status-options.active {
  opacity: 1;
  visibility: visible;
  margin: 75px 0 0 0;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options.active {
    margin-top: 62px;
  }
}
#frame #sidepanel #profile .wrap #status-options:before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #435f7a;
  margin: -8px 0 0 24px;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options:before {
    margin-left: 23px;
  }
}
#frame #sidepanel #profile .wrap #status-options ul {
  overflow: hidden;
  border-radius: 6px;
}
#frame #sidepanel #profile .wrap #status-options ul li {
  padding: 15px 0 30px 18px;
  display: block;
  cursor: pointer;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 35px 22px;
  }
}
#frame #sidepanel #profile .wrap #status-options ul li:hover {
  background: #496886;
}
#frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 5px 0 0 0;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
    width: 14px;
    height: 14px;
  }
}
#frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -3px 0 0 -3px;
  background: transparent;
  border-radius: 50%;
  z-index: 0;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    height: 18px;
    width: 18px;
  }
}
#frame #sidepanel #profile .wrap #status-options ul li p {
  padding-left: 12px;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #profile .wrap #status-options ul li p {
    display: none;
  }
}
#frame #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
  background: #2ecc71;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
  border: 1px solid #2ecc71;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
  background: #f1c40f;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
  border: 1px solid #f1c40f;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
  background: #e74c3c;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
  border: 1px solid #e74c3c;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
  background: #95a5a6;
}
#frame #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
  border: 1px solid #95a5a6;
}
#frame #sidepanel #profile .wrap #expanded {
  padding: 100px 0 0 0;
  display: block;
  line-height: initial !important;
}
#frame #sidepanel #profile .wrap #expanded label {
  float: left;
  clear: both;
  margin: 0 8px 5px 0;
  padding: 5px 0;
}
#frame #sidepanel #profile .wrap #expanded input {
  border: none;
  margin-bottom: 6px;
  background: #32465a;
  border-radius: 3px;
  color: #f5f5f5;
  padding: 7px;
  width: calc(100% - 43px);
}
#frame #sidepanel #profile .wrap #expanded input:focus {
  outline: none;
  background: #435f7a;
}
#frame #sidepanel #search {
    border-top: 1px solid #77ab3d;
    border-bottom: 1px solid #cee8ba;
    font-weight: 300;
    padding: 10px;
    background-color: #e4f3da;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #search {
   /*  display: none; */
  }
}
#frame #sidepanel #search label {
  position: absolute;
  margin: 10px 0 0 20px;color: #888;
}
#frame #sidepanel #search input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    padding: 10px 0 10px 46px;
   /*  width: calc(100% - 25px); */
    background: #fff;
    color: #000000;
    border-radius: 20px;
    border: 1px solid #daecc6 !important;
}
#frame #sidepanel #search input:focus {
  outline: none;
  background: #ffffff;
  border: 1px solid #d4d4d4 !important;
}
#frame #sidepanel #search input::-webkit-input-placeholder {
  color: #f5f5f5;
}
#frame #sidepanel #search input::-moz-placeholder {
  color: #f5f5f5;
}
#frame #sidepanel #search input:-ms-input-placeholder {
  color: #f5f5f5;
}
#frame #sidepanel #search input:-moz-placeholder {
  color: #f5f5f5;
}
#frame #sidepanel #contacts {
  height: calc(100% - 107px);
  overflow-y: scroll;
  overflow-x: hidden;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #contacts {
    height: calc(100% - 149px);
    overflow-y: scroll;
    overflow-x: hidden;
  }
  #frame #sidepanel #contacts::-webkit-scrollbar {
    display: none;
  }
}
#frame #sidepanel #contacts.expanded {
  height: calc(100% - 334px);
}
#frame #sidepanel #contacts::-webkit-scrollbar {
  width: 8px;
  background: #77ab3d;
}
#frame #sidepanel #contacts::-webkit-scrollbar-thumb {
  background-color: #e6eaea;
}
#frame #sidepanel #contacts ul li.contact {
  position: relative;
  padding: 7px 0 7px 0;
  font-size: 0.9em;
  cursor: pointer; border-bottom: 1px solid #ddf3c7;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #contacts ul li.contact {
    padding: 6px 0 0px 4px;
  }
  .date_time {
    font-size: 9px!important;
}
}
#frame #sidepanel #contacts ul li.contact:hover {
  background: #f7f7d0;
}
#frame #sidepanel #contacts ul li.contact.active {
    background: #f7f7d0;
 /*  border-right: 5px solid #435f7a; */
}
#frame #sidepanel #contacts ul li.contact.active span.contact-status {
  border: 0px solid #32465a !important;
}
#frame #sidepanel #contacts ul li.contact .wrap {
  width: 88%;
  margin: 0 auto;
  position: relative;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #contacts ul li.contact .wrap {
    width: 100%;
  }
}
#frame #sidepanel #contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: 4px 0 0 -1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 0px solid #2c3e50;
    background: #95a5a6;
}
#frame #sidepanel #contacts ul li.contact .wrap span.online {
  background: #2ecc71;
}
#frame #sidepanel #contacts ul li.contact .wrap span.away {
  background: #f1c40f;
}
#frame #sidepanel #contacts ul li.contact .wrap span.busy {
  background: #e74c3c;
}
#frame #sidepanel #contacts ul li.contact .wrap span.unread {
    background: #77ab3d;
    border: 1px solid #77ab3d;
    position: relative;
    left: 10px;
    /* border: 0px; */
    margin-top: 7px;
    line-height: 7px;
    padding: 8px 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-align: right !important;
    float: right;
    display: inline-table;
}

#frame #sidepanel #contacts ul li.contact .wrap img {
  width: 40px;    height: 40px;
  border-radius: 50%;
  float: left;
  margin-right: 10px;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #contacts ul li.contact .wrap img {
    margin-right: 0px;
  }
}
#frame #sidepanel #contacts ul li.contact .wrap .meta {
  padding: 0px 0 0 0;
}
@media screen and (max-width: 735px) {
 #frame #sidepanel #contacts ul li.contact .wrap .meta {
   /*  display: none; */
     display: inline-block;
    line-height: 13px;
    padding-top: 5px;
       padding-left: 3px;
 }
#frame .content .messages ul li p {
  font-size: 12px;
}
#frame #sidepanel #contacts ul li.contact .wrap span.unread {
	    margin-top: 0px;
		font-size: 11px;
}
#frame #sidepanel #search {
    padding: 5px;

}
  #frame #sidepanel #contacts ul li.contact .wrap .meta .name {
    font-size: 11px;
    text-align: left;
}
#frame #sidepanel #contacts ul li.contact .wrap img {
    width: 20px;
    height: 20px;
}
#frame #sidepanel #search input {
    padding: 10px 0 10px 14px;    font-size: 12px;
}
#frame #sidepanel #search .fa{    display: none;}
}
#frame #sidepanel #contacts ul li.contact .wrap .meta .name {
  font-weight: 600;     text-transform: capitalize;    margin-bottom: 0px;   font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
#frame #sidepanel #contacts ul li.contact .wrap .meta .preview {
  margin: 0px 0 0 0;
  padding: 0 0 1px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;color: #77ab3d;
  text-overflow: ellipsis;
  -moz-transition: 1s all ease;
  -o-transition: 1s all ease;

  -webkit-transition: 1s all ease;
  transition: 1s all ease;    font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
#frame #sidepanel #contacts ul li.contact .wrap .meta .preview span {
  position: initial;
  border-radius: initial;
  background: none;
  border: none;
  padding: 0 2px 0 0;
  margin: 0 0 0 1px;
  opacity: .8;
}
#frame #sidepanel #bottom-bar {
  position: absolute;
  width: 100%;
  bottom: 0;
}
#frame #sidepanel #bottom-bar button {
  float: left;
  border: none;
  width: 50%;
  padding: 10px 0;
  background: #32465a;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 0.85em;
  font-family: "proxima-nova",  "Source Sans Pro", sans-serif;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #bottom-bar button {
    float: none;
    width: 100%;
    padding: 15px 0;
  }
}
#frame #sidepanel #bottom-bar button:focus {
  outline: none;
}
#frame #sidepanel #bottom-bar button:nth-child(1) {
  border-right: 1px solid #2c3e50;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #bottom-bar button:nth-child(1) {
    border-right: none;
    border-bottom: 1px solid #2c3e50;
  }
}
#frame #sidepanel #bottom-bar button:hover {
  background: #435f7a;
}
#frame #sidepanel #bottom-bar button i {
  margin-right: 3px;
  font-size: 1em;
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #bottom-bar button i {
    font-size: 1.3em;
  }
}
@media screen and (max-width: 735px) {
  #frame #sidepanel #bottom-bar button span {
    display: none;
  }
}
#frame .content {
  float: right;
  width: 60%;
  height: 100%;
  overflow: hidden;
  position: relative;    margin-top: 0px;    background-color: #fdfdfd;
}
@media screen and (max-width: 735px) {
  #frame .content {
   /*  width: calc(100% - 58px);
    min-width: 250px !important;   */  font-size: 14px !important;    margin-top: 0px;
  }
}
@media screen and (min-width: 900px) {
  #frame .content {
    width: calc(100% - 340px);
  }
}
#frame .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f7f7d0;
    box-shadow: 0px 0px 4px #b9b9b9;
}
#frame .content .contact-profile img {
  width: 40px; height: 40px;
  border-radius: 50%;
  float: left;
  margin: 9px 12px 0 9px;
}
#frame .content .contact-profile p {
  float: left;    font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
      font-weight: 600;
    text-transform: capitalize;
}
#frame .content .contact-profile .social-media {
  float: right;    font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
#frame .content .contact-profile .social-media i {
  margin-left: 14px;
  cursor: pointer;
}
#frame .content .contact-profile .social-media i:nth-last-child(1) {
  margin-right: 20px;
}
#frame .content .contact-profile .social-media i:hover {
  color: #435f7a;
}
#frame .content .messages {
  height: auto;
  min-height: calc(100% - 93px);
  max-height: calc(100% - 93px);
 overflow-y: scroll !important;
  /*overflow-y: scroll !important;
  max-height: 600px;*/
  overflow-x: hidden;    width: 100%;
}
@media screen and (max-width: 735px) {
  #frame .content .messages {
    max-height: calc(100% - 105px);
  }
}
#frame .content .messages::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
#frame .content .messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}
#frame .content .messages ul li {
  display: inline-block;
  clear: both;
  float: left;
  margin:0px 15px 0px 15px;
  width: calc(100% - 25px);
  font-size: 0.9em;
}
#frame .content .messages ul li:nth-last-child(1) {
  margin-bottom: 20px;
}
#frame .content .messages ul li.sent img {
  margin: 26px 9px 26px 0;
}
#frame .content .messages ul li.sent p {
  background: #77ab3d;
  color: #f5f5f5; border-radius: 11px 11px 11px 0px;    font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
#frame .content .messages ul li.replies img {
  float: right;
  margin: 28px 9px 26px 9px;
}
#frame .content .messages ul li.replies p {
  background: #f1f1f1;
  float: right;    border-radius: 11px 11px 0px 11px;    font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}
#frame .content .messages ul li img {
  width: 22px;
  border-radius: 50%;
  float: left;
}
#frame .content .messages ul li p {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  max-width: 205px;
  line-height: 130%;
}
@media screen and (min-width: 735px) {
  #frame .content .messages ul li p {
    max-width: 300px;
  }
}
#frame .content .message-input {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 99;
}
#frame .content .message-input .wrap {
  position: relative;
}
#frame .content .message-input .wrap input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    float: left;
    border: none;
    width: calc(100% - 50px);
    padding: 11px 32px 10px 8px;
    font-size: 15px;
    color: #555;
    border: 0px!important;
    border-radius: 0px!important;
     background-color: #fff;
    border: 1px solid #eceaea!important;    height: 43px!important;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap input {
        padding: 8px 2px 8px 8px;    width: calc(100% - 50px)!important;
  }
}
#frame .content .message-input .wrap input:focus {
  outline: none;
}
#frame .content .message-input .wrap .attachment {
  position: absolute;
  right: 60px;
  z-index: 4;
  margin-top: 10px;
  font-size: 1.1em;
  color: #435f7a;
  opacity: .5;
  cursor: pointer;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap .attachment {
    margin-top: 17px;
    right: 65px;
  }
}
#frame .content .message-input .wrap .attachment:hover {
  opacity: 1;
}
#frame .content .message-input .wrap button {
  float: right;
  border: none;
  width: 50px;
  padding: 12px 0;
  cursor: pointer;
  background: #77ab3d;
  color: #f5f5f5;
}
@media screen and (max-width: 735px) {
  #frame .content .message-input .wrap button {
    padding: 16px 0;
  }
}
#frame .content .message-input .wrap button:hover {
  background: #6e9e38;
}
#frame .content .message-input .wrap button:focus {
  outline: none;
}
ol, ul {
    list-style: none;
}
.fa {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font: normal normal normal normal normal normal normal 1 FontAwesome;
}
#frame .content .message-input .wrap .attachment {
    position: absolute;
    right: 60px;
    z-index: 4;
    margin-top: 10px;
    font-size: 1.1em;
    color: #435f7a;
    opacity: .5;
    cursor: pointer;
}
#frame .content .message-input .wrap button {
    float: right;
    border: none;
    width: 50px;
    padding: 14px 0;
    cursor: pointer;
    background: #77ab3d;
    color: #f5f5f5;    box-shadow: 0px 0px 3px #9c9b9bd6;
}
.isTyping {
	font-size:12px;	
}
.badge-notify {
    background: red;
    position: relative;
    top: -20px;
    left: -35px;
}
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    background-color: #999;
    border-radius: 10px;
}
::placeholder {color:#999!important;  text-transform:capitalize!important;   font-family: "Proxima Nova",proxima-nova,"Helvetica Neue",Helvetica,Arial,sans-serif !important;}
input#searching::placeholder {
    color: #999!important;text-transform:capitalize!important; 
}

@media screen and (max-width: 460px) { 
#frame {
    width: 100%!important;
	    min-width: 300px!important;
}
#frame .content {
  /*   min-width: 210px !important;    */    min-width: 60% !important;
    width: 60%;
}
}

div#contacts ul {
    padding: 0px;   /*  width: 60%; */
}
#frame #sidepanel #profile .wrap p.online {
    color: #fff;
}
.date_time {
/*     background-color: transparent!important;
    color: #848484!important;
    padding: 0px !important; */
}
.unread_message span { 
    width: 100%;
    background: #e6eaea;
    border: 1px solid #dedede;
    padding: 5px 14px;
    border-radius: 3px;
}
.fa.fa-angle-double-down {
    position: absolute;
    bottom: 56px;
    border-radius: 24px;
    height: 24px;
    right: 3px;
    width: 24px;
    padding: 3px 5px;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    background-color: #77ab3d;
	
}
.arrow_count {
    position: absolute;
    bottom: 75px;
    border-radius: 24px;
    height: 17px;
    right: 2px;
    width: 17px;
    padding-left: 6px;
    padding-top: 1px;
    padding-bottom: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    background-color: #d21212;
    z-index: 99;
}
img.fcadminmsgimg {
    width: 100% !important;
    border-radius: 0px!important;
    margin-top: 10px !important;
    margin-bottom: 10px!important;
}
li.sent a {
    font-size: 13px;
    color: #000;
}