
.message_container {
left: 200px;
margin: 0 auto;
}


.message_box {
width: 100%;
background: #fff;
overflow: hidden;
position: relative;
vertical-align: bottom;
box-shadow: 0 6px 10px -4px rgba(0,0,0,.15);
height: calc(100vh - 150px);

}



/* width */
.message_box ::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.message_box ::-webkit-scrollbar-track {

  border-radius: 5px;
  background: #fff;
}

/* Handle */
.message_box  ::-webkit-scrollbar-thumb {
  background: #7d8694;
  border-radius: 5px;
}


.contacts_box {
    z-index: 100;
    position: absolute;
    padding: 0;
    height: 100%;
    width: 27%;
    float: left;
    border-right: 1px solid #ced1d7;
    transition: 0.5s;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #fff;
}



.contacts_box .row{
margin: 0;
}



/* width */
.contacts_box ::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.contacts_box ::-webkit-scrollbar-track {

  border-radius: 2px;
  background: #fff;
}

/* Handle */
.contacts_box  ::-webkit-scrollbar-thumb {
  background: #7d8694;
  border-radius: 5px;
}

.contacts_search_box {
  border-bottom: 2px solid #eee;
  padding: 13px 0;
}


#close_contacts_bar {
  display: none;
  font-size: 25px;
  line-height: 45px;
  width: 40px;
  margin-left: 20px;
  color: #7d8694;
  cursor: pointer;
}


.contacts_list {

  height: calc(100% - 70px);
  overflow-y: scroll;
  overflow-x: hidden;
}

.contact_picture_san {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ccc;
  float: left;
  vertical-align: top;
  overflow: hide !important;
  background-size: cover !important;
}

.contact_text_san {
  float: right;
  width: calc(100% - 60px);
  vertical-align: top;
  padding-right: 10px;
}


.contact_item_box {
  cursor: pointer;
  padding: 10px 5px;
  width: 100%;
line-height: 18px;
  float: left;
  border-bottom: 1px solid #eee;
}

.contact_item_box:hover {
background: #eee;
}

.contact_name_san {
  line-height: 15px;
  font-size: 14px;
  max-width: 70%;
}

.latest_message_time {
  font-size: 12px;
  float: right;
  color: grey;
  font-weight: normal;
  display: inline-block;

}


.latest_message {
  font-size: 12px;
  width: 100%;
  margin-top: 2px;
}


.latest_message .message_read{
  color: #737373;
}

.chat_box {
  float: right;
  width: 73%;
  height: 100%;
  position: relative;
  background: #fff;
}

.chat_box .row{
margin: 0;
}

.story_header {
  padding: 5px;
  margin: 0 -25px;
  border-bottom: 3px solid  #f5f5f5;
}


#open_contacts_bar {
    cursor: pointer;
    color: #666;
    font-size: 35px;
    line-height: 45px;
    margin-right: 20px;
    display: none;
    vertical-align: bottom;
    color: #7d8694;
}

#open_contacts_bar i {
cursor: pointer;
}


#receiver_picture {
  vertical-align: top;
  display: inline-block;
}

#receiver_picture img{
border-radius: 50%;
}

#receiver_picture .account_icon {
  width: 45px;
  margin-right: 5px;
}

#receiver_names {
  font-size: 17px;
  line-height: 15px;
  font-weight: 300;
  margin-left: 10px;
  margin-top: 5px;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  font-family: 'Roboto', sans-serif;
}

.contacts_profile_link {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: bold;
}

#chat_search_word {
  float: right;
}


.story_box {
height: calc(100% - 180px);
overflow-y: scroll;
overflow-x: hidden;

}


.controls_box textarea{
border: none;
font-size: 20px;
}

.controls_box {

  width: 100%;
  position: absolute;
  bottom: 0;

  padding: 0;
  background: #fff;
  border-top: 1px solid #ccc;
  margin: 5px 0;
}

#message_text {
  width: 98%;
  color: #444;
  resize: none;
}

#message_text:focus {
outline: none;
}


#attachment_box {
  position: relative;
  font-size: 20px;
  text-align: left;
}

#attachment_box i{
cursor: pointer;
}

#attachment {
  display: none;
}

.right_text {
  text-align: right;
}


.message_unread {
  color: #333;
  font-weight: bold;
}



.text-area {
  max-height: 250px;
}


#send_message {
  color: #4080ff;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  margin-right: 20px;
}


#message {
  font-size: 20px;
}


.chat_item .row {
  margin: 0;
}

.receiver_box {
  float: left;
  width: 70%;

}

.sender_box {
  float: right;
  width: 70%;
}

.sender_box a, .sender_box a:visited{
color: #fff;
}

.sender_box .chat_item_text {

display: inline-block;
width: 88%;
display: inline-block;
  color: #fff;
  background: #3ca4ff;
  padding: 6px 15px;
  display: inline-block;
  border-top-right-radius:20px;
  border-bottom-right-radius:  2px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.sender_box .chat_item_pic {
margin-left: 10px;
width: 9%;
background: #ccc;
display: inline-block;
}

.receiver_box .chat_item_text {

display: inline-block;
width: 88%;
display: inline-block;
background: #f1f1f1;
padding: 6px 15px;
border-top-right-radius:20px;
border-bottom-right-radius:  20px;
border-top-left-radius: 20px;
border-bottom-left-radius: 2px;
}

.receiver_box .chat_item_text a{
color: #333;
}

.receiver_box .chat_item_pic {
margin-right: 10px;
width: 9%;
background: #ccc;
display: inline-block;
}

.chat_item .account_icon {
  width: 100%;
}
.chat_item .account_icon img {
width: 100%;
}


.receiver_box .chat_item_time {
color: #666;
}

.chat_item_box {
  width: 100%;
  font-size: 17px;
  display: block;
  margin-bottom: 15px;
}

.chat_item_time {
  font-weight: bold;
  font-size: 13px;
  text-align: right;
}


@media (max-width: 767px) {

.top_bar {
  padding-left: 20px;
  padding-right: 20px;
}

.top_bar_mobile_icon {
display: inline-block;
}


.sidebar_close_icon {
display: inline-block;
}

#close_contacts_bar {
display: inline-block;

}

  #close_contacts_bar i{
cursor: pointer;
  }

  #open_contacts_bar {
display: inline-block;
  }

  .contacts_box {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
    background: #fff;
    width: 0;
  }


  .chat_box {
    float: none;
    margin: 0 auto;
    width: 100%;
  }

}
