.container__chat{
    background-color: #fff;
    
}
.container__list__chat {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  min-height: calc(100vh - 120px);
}

.people-list {
  min-width: 260px;
  width: 260px;
  float: left;
  background-color: #fff;
  position: relative;
  z-index: 2;
  border-radius: 1rem;
  margin-right: 1rem;
}
.people-list > p{
    padding: 0.5rem 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.people-list > p span{
    background-color: #EDF2F7;
    color: #000000;
    border-radius: 1rem;
    display: inline-block;
    margin-left: 1rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
}
.people-list .search {
  padding: 20px;
}
.people-list input {
  border-radius: 1rem;
  border: none;
  padding: 14px;
  color: rgba(0, 0, 0, 0.4);
  background: #F3F3F3;
  width: 100%;
  font-size: 14px;

}
.people-list .fa-search {
  position: relative;
  left: -25px;
}
.people-list ul {
  padding: 20px 10px;
  max-height: 600px;
  overflow-y: auto;
  list-style: none;
}
.people-list ul li {
  padding: 10px 10px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  -webkit-transition: all linear 0.25rem;
  -o-transition: all linear 0.25rem;
  transition: all linear 0.25rem;
  cursor: pointer;
}
.people-list ul li.active,
.people-list ul li:hover{
    background-color: #F6F6F7;
}
.people-list img {
  float: left;
  border-radius: 50%;
  max-width: 50px;
  height: 50px;
}

.people-list .sinFoto{
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: #E38968;
  color: white;
}

.people-list .about {
  float: left;
  margin-top: 8px;
}
.people-list .about {
  padding-left: 8px;
}
.people-list .status {
  color: #92959E;
}

.chat {
  width: 100%;
  float: left;
  background: #fff;
  border-radius: 1rem;
  color: #434651;
  position: relative;
  z-index: 2;
  border-radius: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.chat .chat-header {
  padding: 20px;
  border-bottom: 2px solid white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.chat .chat-header img {
  float: left;
  border-radius: 50%;
  width: 100px;
  height: 89px;
}
.chat .chat-header .chat-about {
  float: left;
  padding-left: 10px;
  margin-top: 6px;
}
.chat .chat-header .chat-with {
  font-weight: bold;
  font-size: 16px;
}
.chat .chat-header .chat-num-messages {
  color: #92959E;
}
.chat .chat-header .fa-star {
  float: right;
  color: #D8DADF;
  font-size: 20px;
  margin-top: 12px;
}
.chat .chat-history {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 2px solid white;
  overflow-y: auto;
  height: auto;
  max-height: calc(100vh - 350px);
}
.chat .chat-history ul{
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.chat .chat-history li{
  margin-bottom: 12px;
}
.chat .chat-history .message-data {
  margin-bottom: 15px;
}
.chat .chat-history .message-data-time {
  color: #a8aab1;
  padding-left: 6px;
}
.chat .chat-history .message {
  color: white;
  padding: 18px 20px;
  line-height: 26px;
  font-size: 16px;
  border-radius: 7px;
  margin-bottom: 30px;
  width: 90%;
  position: relative;
}

.chat .chat-history .my-message {
  background: #F1F1F1;
  color: #3E3322;
  border-radius: 12px;
  width: 350px;
  padding-left: 20px;
  margin-left: 65px;
}
.chat .chat-history .my-message .message__time{
  color: #939393;
  margin-bottom: 0;
  font-size: 0.75rem;
}
.chat .chat-history .other-message {
  background: #7B7B7B;
  color: #fff;
  display: inline-block;
  width: 350px;
  border-radius: 12px;
  padding-right: 20px;
  margin-right: 20px;
}
.chat .chat-history .other-message .message__time{
    color: #fff;
    margin-bottom: 0;
    font-size: 0.75rem;
}

.chat .chat-message {
  padding: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.chat .chat-message textarea {
  width: 100%;
  border: none;
  padding: 10px 20px;
  font: 14px/22px "Lato", Arial, sans-serif;
  border-radius: 0.5rem 0 0 0.5rem;
  resize: none;
  height: 48px;
  border-left: 2px solid #E2E8F0;
  border-top: 2px solid #E2E8F0;
  border-bottom: 2px solid #E2E8F0;
}
.chat .chat-message button{
    border-radius:0 0.5rem 0.5rem 0;
}
.chat .chat-message .fa-file-o, .chat .chat-message .fa-file-image-o {
  font-size: 16px;
  color: gray;
  cursor: pointer;
}

.chat-history .profile-image {
  width: 50px; 
  height: 40px;
  float: left;
  margin-right: 10px; 
}

.chat-history .profile-image img {
  border-radius: 50%; 
  width: 50px;
  height:50px;
}

.chat-history .profile-image.hidden {
  display: none; 
}

.online, .offline, .me {
  margin-right: 3px;
  font-size: 10px;
}

.online {
  color: #86BB71;
}

.offline {
  color: #E38968;
}

.me {
  color: #94C2ED;
}

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

.align-right {
  text-align: right;
}

.float-right {
  float: right;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
.back__chat{
    display: none;
}

@media screen and (max-width: 640px){
    .chat{
        display: none;
    }
    .people-list{
        width: 100%;
        margin-right: 0;
    }
    .container__list__chat{
        height: auto;
    }
    .container__account.is__chat{
        padding-left: 0;
        padding-right: 0;
    }
    .people-list ul,
    .people-list .search,
    .people-list > p{
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .back__chat{
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        margin-right: 1rem;
    }
    .chat .chat-header img{
        max-width: 50px;
        height: auto;
    }
    .chat .chat-history .my-message {
      width: 150px;
    }
    .chat .chat-history .other-message {
      width: 150px;
    }
    .close{
      display: none;
    }
}