* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: arial;
}

.fixed-positioning {
  position: fixed;
  bottom: 0;
  right: 90px;
  z-index: 9999;
}

.chat-box {
  width: 350px;
/*   border-radius: 3px; */
  box-shadow: -10px 10px 50px -10px rgba(0,0,0,0.4);
  background: #fff;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  color: #fff;
  background: #00a1ff;
}

.chat-header button {
  color:#fff;
  background: transparent;
  padding: 3px;
  border: 1px solid #fff;
  border-radius: 3px;
  cursor:pointer;
}

.chat-content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  /*transition: 1s ease-in-out;*/
}

.chat-content.active {
  padding: 15px 15px;
}

.chat-title {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
    line-height: 19px;
}

.chat-form {
  padding: 5px;
}

.chat-box input,
.chat-box textarea,
.chat-box label,
.chat-box button[type=submit], .chat-box button[type=button] {
  display: block;
  width: 100%
}

.chat-box input,
.chat-box textarea {
  padding: 10px 15px;
  border-radius: 3px;
  border: 1px solid #b7b5b5;
  margin-bottom: 15px;
}

.chat-box textarea {
  min-height: 50px;
}

.chat-box label {
  color: #928f8f;
  font-size: 13px;
  margin-bottom: 2px;
}

.chat-box label span {
  color: #f00;
}

.chat-box button[type=submit], .chat-box button[type=button] {
  -webkit-appearance: none;
  border-radius: 2px;
  background-clip: padding-box;
  background-color: #aecf5f!important;
  box-shadow: 0 2px 0 rgba(0,0,0,.1), inset 0 -3px 0 rgba(129,163,48,.3);
  font-size: 14px;
  color: #fff;
  padding: 9px 6px 11px;
  width: 100%;
  border: 0;
  cursor: pointer;
}
.chat{
    display: flex;
    align-items: flex-start;
	margin-bottom:10px;
}
.chat .user-photo{
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
}
.chat .user-photo img{
    width: 100%;
}
.chat .chat-mesgae{
    width: 100%;
    height: 80px;
    padding: 15px;
    margin: 5px 10px 0;
    background-color: #1ddced;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
}
.friend .chat-message{
    
    margin-top: 0;
    margin-left: 10px;
	font-size:12px;
	    line-height: 16px;
		width:calc(100% - 36px);
		text-align:justify;
		    background: #f1f1f1;
    padding: 5px;
	-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;


color:#111;
}
.self .chat-message{
    order: -1;
   
    margin-top: 0;
    margin-right: 5px;
	font-size:12px;
	    line-height: 16px;
		width:calc(100% - 36px);
	text-align:justify;
	    background: #f1f1f1;
    padding: 5px;
	-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
color:#111;
}
.chatlogs: : -webkit-scrollbar{
    width: 10px;
}
.chatlogs: : -webkit-scrollbar-thumb{
    border-radius: 5px;
    background: rgba( 0, 0 , 0, .1);
}
.chat-title{
    background-color: black;
    color: white;
    padding: 5px;
}

#chatlogs{
	max-height:400px;
	overflow:auto;	
}