.chat-head, .contact .name {
    text-transform: capitalize;
}
.form-container .btn, .chat-popup .material-icons {
  font-size: 15px;
}
.close {
  font-size: 20px;
  cursor: pointer;  
}
.hidden {
    display: none !important;
}
#sidepanel-btn {
    display: flex;
}
#sidepanel-btn img {
    margin-top: 110px;
}
.preview {
  font-size: 12px;
}
#search .fa-search {
  color: #fff;
}
#search input {
  color: #fff;
  font-size: 14px;
}
.chat-listing .meta p {
  font-size: 13px;
  margin: 0 !important;
}
.chat-listing p {
    color: #ffffff;
    //font-size: 1em;
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;     
}
.chat-listing {
  z-index: 999;
  font-family: "proxima-nova", "Source Sans Pro", sans-serif;     
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    position: fixed;
    background: burlywood;
}
/* end chat-listing */
.green {
  background: #80bf80 !important;
}
#messages {
  min-height: 299px;
  max-height: 299px;
  overflow-y: scroll;
}

.darker {
  float: right;
  /*text-align: right;*/
  /*border-radius: 20px 0 20px 0;*/
  border-radius: 17px;
  /*background-color: #0465ac;*/
  background-color: #ddd;
}
.white {
  color: #fff;
}
.lighter {
  float: left;
  /*border-radius: 0 20px 0 20px;*/
  border-radius: 17px;
  background-color: #f1f1f1;
}
.darker, .lighter {
  border: 2px solid #dedede;
  margin: 5px 0;
  width: 80%;
  padding: 0 15px 0;
  border-color: #ccc;
}

.mycontainer::after {
  content: "";
  clear: both;
  display: table;
}

.mycontainer img {
  float: left;
  max-width: 60px;
  width: 100%;
  margin-right: 20px;
  border-radius: 50%;
}

.mycontainer img.right {
  float: right;
  margin-left: 20px;
  margin-right:0;
}

.time-right {
  padding: 0 15px 0;
  float: right;
  color: #aaa;
}
.black {
  color: #000;
}
.time-right, .time-left {
  font-size: 12px;
}

.time-left {
  float: left;
  color: #999;
}


.btn {  box-sizing: border-box; }
.chat-head-div {
  /*background-color: #fff;*/
  padding: 7px 10px 0 10px;
  /*border-bottom: 1px solid;*/
  box-shadow: 0 0 4px 0px #ddd;
  /*padding-top: 6px;*/
} 
.chat-popup ::-webkit-scrollbar {
    width: 8px;
}
 
.chat-popup ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
.chat-popup ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
.chat-head { 
 display: inline-block;
 margin-bottom: 10px;
 font-size: 16px;
}
/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  border: none;
  cursor: pointer;
  opacity: 0.7;
  position: fixed;
  bottom: 23px;
  right: 28px;  
}

/* The popup chat - hidden by default */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 999;
  background-color: white;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;  
}

/* Full-width textarea */
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 8px 0;
  border: none;
  background: #f1f1f1;
  resize: none;
  border-radius: 5px;
}

/* When the textarea gets focus, do something */
.form-container textarea:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/send button */
.form-container .btn {
  display: inline-block;  
  background-color: #4CAF50;
  color: white;
  //padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}

.mywidth {
  min-width: 0;
  max-width: 0;
  width: 0;
  transition: 0.5s;
}

.chat-listing #sidepanel {
  float: left;
  width: 0;
  height: 100%;
  background: #2c3e50;
  color: #f5f5f5;
  overflow: hidden;
  position: relative;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel {
    width: 58px;
    min-width: 58px;
  }
}
.chat-listing #sidepanel #profile {
  width: 80%;
  margin: 25px auto;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #profile {
    width: 100%;
    margin: 0 auto;
    padding: 5px 0 0 0;
    background: #32465a;
  }
}
.chat-listing #sidepanel #profile.expanded .wrap {
  height: 210px;
  line-height: initial;
}
.chat-listing #sidepanel #profile.expanded .wrap p {
  margin-top: 20px;
}
.chat-listing #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";
}
.chat-listing #sidepanel #profile .wrap {
  height: 60px;
  line-height: 60px;
  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) {
  .chat-listing #sidepanel #profile .wrap {
    height: 55px;
  }
}
.chat-listing #sidepanel #profile .wrap img {
  width: 50px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid #e74c3c;
  height: auto;
  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) {
  .chat-listing #sidepanel #profile .wrap img {
    width: 40px;
    margin-left: 4px;
  }
}
.chat-listing #sidepanel #profile .wrap img.online {
  border: 2px solid #2ecc71;
}
.chat-listing #sidepanel #profile .wrap img.away {
  border: 2px solid #f1c40f;
}
.chat-listing #sidepanel #profile .wrap img.busy {
  border: 2px solid #e74c3c;
}
.chat-listing #sidepanel #profile .wrap img.offline {
  border: 2px solid #95a5a6;
}
.chat-listing #sidepanel #profile .wrap p {
  float: left;
  margin-left: 15px;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #profile .wrap p {
    display: none;
  }
}
.chat-listing #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) {
  .chat-listing #sidepanel #profile .wrap i.expand-button {
    display: none;
  }
}
.chat-listing #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) {
  .chat-listing #sidepanel #profile .wrap #status-options {
    width: 58px;
    margin-top: 57px;
  }
}
.chat-listing #sidepanel #profile .wrap #status-options.active {
  opacity: 1;
  visibility: visible;
  margin: 75px 0 0 0;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #profile .wrap #status-options.active {
    margin-top: 62px;
  }
}
.chat-listing #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) {
  .chat-listing #sidepanel #profile .wrap #status-options:before {
    margin-left: 23px;
  }
}
.chat-listing #sidepanel #profile .wrap #status-options ul {
  overflow: hidden;
  border-radius: 6px;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li {
  padding: 15px 0 30px 18px;
  display: block;
  cursor: pointer;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 35px 22px;
  }
}
.chat-listing #sidepanel #profile .wrap #status-options ul li:hover {
  background: #496886;
}
.chat-listing #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) {
  .chat-listing #sidepanel #profile .wrap #status-options ul li span.status-circle {
    width: 14px;
    height: 14px;
  }
}
.chat-listing #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) {
  .chat-listing #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    height: 18px;
    width: 18px;
  }
}
.chat-listing #sidepanel #profile .wrap #status-options ul li p {
  padding-left: 12px;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #profile .wrap #status-options ul li p {
    display: none;
  }
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
  background: #2ecc71;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
  border: 1px solid #2ecc71;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
  background: #f1c40f;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
  border: 1px solid #f1c40f;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
  background: #e74c3c;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
  border: 1px solid #e74c3c;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
  background: #95a5a6;
}
.chat-listing #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
  border: 1px solid #95a5a6;
}
.chat-listing #sidepanel #profile .wrap #expanded {
  padding: 100px 0 0 0;
  display: block;
  line-height: initial !important;
}
.chat-listing #sidepanel #profile .wrap #expanded label {
  float: left;
  clear: both;
  margin: 0 8px 5px 0;
  padding: 5px 0;
}
.chat-listing #sidepanel #profile .wrap #expanded input {
  border: none;
  margin-bottom: 6px;
  background: #32465a;
  border-radius: 3px;
  color: #f5f5f5;
  padding: 7px;
  width: calc(100% - 43px);
}
.chat-listing #sidepanel #profile .wrap #expanded input:focus {
  outline: none;
  background: #435f7a;
}
.chat-listing #sidepanel #search {
  border-top: 1px solid #32465a;
  border-bottom: 1px solid #32465a;
  font-weight: 300;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #search {
    display: none;
  }
}
.chat-listing #sidepanel #search label {
  position: absolute;
  margin: 10px 0 0 20px;
}
.chat-listing #sidepanel #search input {
  font-family: "proxima-nova",  "Source Sans Pro", sans-serif;
  padding: 10px 0 10px 46px;
  width: calc(100% - 25px);
  border: none;
  background: #32465a;
  color: #f5f5f5;
}
.chat-listing #sidepanel #search input:focus {
  outline: none;
  background: #435f7a;
}
.chat-listing #sidepanel #search input::-webkit-input-placeholder {
  color: #f5f5f5;
}
.chat-listing #sidepanel #search input::-moz-placeholder {
  color: #f5f5f5;
}
.chat-listing #sidepanel #search input:-ms-input-placeholder {
  color: #f5f5f5;
}
.chat-listing #sidepanel #search input:-moz-placeholder {
  color: #f5f5f5;
}
.chat-listing #sidepanel #contacts {
  height: calc(100% - 177px);
  overflow-y: scroll;
  overflow-x: hidden;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #contacts {
    height: calc(100% - 149px);
    overflow-y: scroll;
    overflow-x: hidden;
  }
  .chat-listing #sidepanel #contacts::-webkit-scrollbar {
    display: none;
  }
}
.chat-listing #sidepanel #contacts.expanded {
  height: calc(100% - 334px);
}
.chat-listing #sidepanel #contacts::-webkit-scrollbar {
  width: 8px;
  background: #2c3e50;
}
.chat-listing #sidepanel #contacts::-webkit-scrollbar-thumb {
  background-color: #243140;
}
.chat-listing #sidepanel #contacts ul li.contact {
  position: relative;
  padding: 10px 0 15px 0;
  font-size: 0.9em;
  cursor: pointer;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #contacts ul li.contact {
    padding: 6px 0 46px 8px;
  }
}
.chat-listing #sidepanel #contacts ul li.contact:hover {
  background: #32465a;
}
.chat-listing #sidepanel #contacts ul li.contact.active {
  background: #32465a;
  border-right: 5px solid #435f7a;
}
.chat-listing #sidepanel #contacts ul li.contact.active span.contact-status {
  border: 2px solid #32465a !important;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap {
  width: 88%;
  margin: 0 auto;
  position: relative;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #contacts ul li.contact .wrap {
    width: 100%;
  }
}
.chat-listing #sidepanel #contacts ul li.contact .wrap span {
  position: absolute;
  left: 0;
  margin: -2px 0 0 -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #2c3e50;
  background: #95a5a6;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap span.online {
  background: #2ecc71;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap span.away {
  background: #f1c40f;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap span.busy {
  background: #e74c3c;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap img {
  width: 40px;
  border-radius: 50%;
  float: left;
  margin-right: 10px;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #contacts ul li.contact .wrap img {
    margin-right: 0px;
  }
}
.chat-listing #sidepanel #contacts ul li.contact .wrap .meta {
  //padding: 5px 0 0 0;
  padding: 0;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #contacts ul li.contact .wrap .meta {
    display: none;
  }
}
.chat-listing #sidepanel #contacts ul li.contact .wrap .meta .name {
  font-weight: 600;
}
.chat-listing #sidepanel #contacts ul li.contact .wrap .meta .preview {
  margin: 5px 0 0 0;
  padding: 0 0 1px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -moz-transition: 1s all ease;
  -o-transition: 1s all ease;
  -webkit-transition: 1s all ease;
  transition: 1s all ease;
}
.chat-listing #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: .5;
}
.chat-listing #sidepanel #bottom-bar {
  position: absolute;
  width: 100%;
  bottom: 0;
}
.chat-listing #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) {
  .chat-listing #sidepanel #bottom-bar button {
    float: none;
    width: 100%;
    padding: 15px 0;
  }
}
.chat-listing #sidepanel #bottom-bar button:focus {
  outline: none;
}
.chat-listing #sidepanel #bottom-bar button:nth-child(1) {
  border-right: 1px solid #2c3e50;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #bottom-bar button:nth-child(1) {
    border-right: none;
    border-bottom: 1px solid #2c3e50;
  }
}
.chat-listing #sidepanel #bottom-bar button:hover {
  background: #435f7a;
}
.chat-listing #sidepanel #bottom-bar button i {
  margin-right: 3px;
  font-size: 1em;
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #bottom-bar button i {
    font-size: 1.3em;
  }
}
@media screen and (max-width: 735px) {
  .chat-listing #sidepanel #bottom-bar button span {
    display: none;
  }
}
#chat-popup span.contact-status {
    /*border: 1px solid #32465a !important;*/
    width: 8px;
    background-color: lightgrey;
    height: 8px;
    display: inline-flex;
    vertical-align: text-top;
    border-radius: 50%;
}