p {
    font-size: 13px;
    padding: 5px;
    border-radius: 3px;
}

.base_receive p {
    background: #fff9f9;
    font-family: sans-serif;
    letter-spacing: 0.5px;
    font-size: 15px;
    font-weight: 500;
    padding:10px;
    margin-bottom: 0;
}

.base_sent p {
    background: #f7947b;
    font-family: sans-serif;
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 15px;
    font-weight: 500;
    padding:10px;
    margin-bottom: 0;
}
.messages.msg_sent {
    margin-bottom: 10px;
    text-align: right;
}
.messages.msg_receive.text-left {
    margin-bottom: 10px;
}
time {
    font-size: 11px;
    font-family: sans-serif;
    color: #636363;
}
.chat_ib h5 span {
    font-size: 12px;
    float: right;
    font-family: sans-serif;
    color: #888888;
    font-weight: normal;
}
.chat_ib h5{ font-size:15px; color:#464646; margin:0 0 2px 0;font-weight: 600; font-family: sans-serif;}
.chat_ib h5 span{ font-size:13px; float:right;}
.chat_ib p{ font-size:14px; color:#989898; margin:auto;font-weight: 500;}
.chat_img {
  float: left;
  width: 11%;
}
.chat_ib {
  float: left;
  padding: 0 0 0 15px;
  width: 88%;
}
.chat-container {
  
}
.inbox_people {
  float: left;
  overflow: hidden;
  width: 40%;
  margin-top: 32px;
  /* border: 1px solid #f1f1f1; */
  padding-left: 10px;
}
.inbox_msg {
  /*border: 1px solid #c4c4c4;*/
  clear: both;
  overflow: hidden;
  background: #FFF;
  border-radius: 5px;
}
.chat_people{ 
  overflow: hidden;
  clear: both;
  padding: 6px;
  border-radius: 5px;
  background: #fbf9f8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.chat_list {
  margin: 0;
  padding: 18px 16px 10px;
  background: #fff;
  margin-bottom: 12px;
}
.inbox_chat {
    height: 449px;
    overflow-y: auto;
    /*box-shadow: 1px 1px 4px #a0a0a0;*/
    margin-bottom: 4px;
    /*border: 1px solid #f1f1f1;*/
}

/*.active_chat{ 
    background: #ffffff;
    border-left: 3px solid #5e3191;
}*/
/*.active_current_chat {
    background: #ffffff;
    border-left: 3px solid #5e3191;
}*/
.incoming_msg_img {
  display: inline-block;
  width: 6%;
}
.received_msg {
  display: inline-block;
  padding: 0 0 0 10px;
  vertical-align: top;
  width: 92%;
 }
 .received_withd_msg p {
  background: #ffffff  none repeat scroll 0 0;
  border-radius: 3px;
  color: #646464;
  font-size: 14px;
  margin: 0;
  padding: 5px 10px 5px 12px;
  width: 100%;
  font-weight: 500;
}
.time_date {
  color: #747474;
  display: block;
  font-size: 12px;
  margin: 8px 0 0;
}
.received_withd_msg { width: 57%;}
.mesgs {
  float: left;
  padding: 30px 15px 0 25px;
  width: 60%;
  background: #efefef;
  border: 1px solid #f1f1f1;
}

 .sent_msg p {
  background: #5e3191 none repeat scroll 0 0;
  border-radius: 3px;
  font-size: 14px;
  margin: 0;
  color: #fff;
  padding: 5px 10px 5px 12px;
  width: 100%;
  font-weight: 500;
}
.outgoing_msg{ overflow:hidden; margin:26px 0 26px;}
.sent_msg {
  float: right;
  width: 46%;
}
.input_msg_write input {
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
  color: #4c4c4c;
  font-size: 15px;
  min-height: 48px;
  width: 100%;
  padding-left: 15px;
}
.input_msg_write input:focus {
    outline: none;
}
.type_msg {
    border-top: 1px solid #f6ecff;
    position: relative;
    background: #ffffff;
    margin: 10px;
    border-radius: 30px;
}
.msg_send_btn {
    background: #5e3191 none repeat scroll 0 0;
    border: medium none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    height: 35px;
    width: 35px;
    position: absolute;
    right: 15px;
    top: 6px;
}
.messaging { padding: 0;}
.msg_history {
  height: 516px;
  overflow-y: auto;
}
#login-box {
    margin-top: 20px
}

#chat_box {
    position: fixed;
    top: 10%;
    right: 41px;
    width: 27%;
}

.close-chat {
    cursor: pointer;
    margin-right: 17px;
    font-size: 24px;
    color: #626262;
}
.chat_box {
    margin-right: 32px;
    width: 570px;
}

.chat-area {
    height: 356px;
    overflow-y: auto;
    overflow-x: hidden;
}
textarea.form-control.input-sm.chat_input {
    height: 56px;
    margin-bottom: 4px;
    box-shadow: none;
    border-radius: 5px;
    margin-left: 10px;
    background: #f9fafb;
    border-color: #f4f6f7;
}
textarea.form-control.input-sm.chat_input::placeholder {
  color: #494949;
  font-size: 18px;
  font-weight: 600;
  padding-top: 6px;
}
button.btn.btn-sm.btn-chat {
    height: 54px;
    width: 80px;
    margin: auto 5px;
    color: #fff;
    background-color: #e84620;
    border-color: #e84621;
}
.chat-span {
    vertical-align: middle;
    display: inherit;
}
.chat-bx-container {
    /*box-shadow: 1px 1px 5px #cec8c8;*/
    margin-bottom: 4px;
}
.chat-user-title {
    font-size: 18px;
    padding: 10px;
    background: #ffffff;
    color: #626262;
    font-weight: 500;
    border-bottom: 2px solid #ccc;
}
.row.msg_container.base_sent, .row.msg_container.base_receive {
    margin-left:0;
    margin-right: 0;
}
#users li {
    margin-bottom: 5px;
}

#chat-overlay {
  position: absolute;
  right: 0%;
  top: 328px;
  clear: both;
}

.glyphicon-ok {
    color: #42b7dd;
}

.loader {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
.msg_container img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.col-md-2.col-2.avatar {
    text-align:center;
}
#wrapper.toggled .chat_box {
    margin-right: 100px;
    width: 582px !important;
}
.chat_img img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.u-chat-profile {position:relative;}
.u-chat-profile img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
span.fa-online i {
  color: #2ab52a;
  font-size: 16px;
  position: absolute;
  right: 2px;
  bottom: -13px;
}
.chat-user-title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
p.text-online {
  margin-bottom: 0;
  text-align: right;
  text-transform: uppercase;
  color: #2ab52a;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.5px;
}
.top-profile-sec .star-bx:before {
  content:'';
}
a.chat-toggle.active .chat_people {
  background: #dadada;
}
.recent_heading h4 {
    padding-left: 17px;
}