.chats {
   z-index: 85;
}
.chat, .chats{
	display: none;
	position: fixed;
	width: 320px;
	height: 600px;
	right: 30px;
	bottom: 30px;
	background-color: #232530;
	border-radius:10px;
	border: 1px solid #53597E;
	overflow: hidden;
	color: white;
}

.chats .title,
.chat .title{
	 width: 100%;
	 text-align: center;
	 padding: 10px 0px 10px 0px;
	 background-color: #313444;
	 
	 
}

.chats .search,
.chat .search{
	 width: 100%;
	 background-color: #202020;
     padding: 5px 0px 17px 0px;
}

 

.chats .close,
.chat  .close{
	position: absolute;
	right:0;
	top: 5px;
	width: 40px;
	height: 40px;
	background: url('../img/admin/close.svg') 0px 0px  no-repeat; 
	background-size: 30px 30px;
	opacity: 0.5;
   filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0.5);
   -moz-opacity: 0.5;
   -khtml-opacity: 0.5;
	cursor: pointer;
}

.chats .close:hover,
.chat  .close:hover{
   opacity: 1;
   filter:progid:DXImageTransform.Microsoft.Alpha(opacity=1);
   -moz-opacity: 1;
   -khtml-opacity: 1;
}


.chats .input,
.chat .input{
  position: relative;
  width: 90%;
  height: 42px;
  border: 2px solid #50577A;
  border-radius: 8px;	
  margin:15px 0 0 5%;
}

.chats .input .name,
.chat .input .name{
   position: absolute;
   left: 25px;
   top:-17px;
   background: #202020;
   padding: 5px 12px 5px 10px;
   font: 13px Opensansb;
   color: #9b9fa8;
}

.chats .input INPUT,
.chat .input INPUT{
   background: #202020;
   border: 0;
   margin: 5px 0 0 5px;
   display: block;
   color: white;
   width: 94%;
   height: 32px;
   padding-left: 5px;
   font: 13px Opensans;
}

.chats .contacts,
.chat .contacts{
    display: none;
}

.chats .contacts .list,
.chat .contacts .list{
    overflow-y: auto;
	overflow-x: hidden;
	height: 470px;
}

.chats .contacts .contact,
.chat .contacts .contact{
   cursor: pointer;
   width: 100%;
   padding: 5px 0 5px 0;
    
}

.chats .contacts .contact:hover,
.chat .contacts .contact:hover{
   background-color: #343746;
}

.chats .contacts .contact .img,
.chat .contacts .contact .img{
   width: 60px;
   float: left;
   margin: 0px 0px 0px 10px;
}

.chats .contacts .contact .rinfo,
.chat .contacts .contact .rinfo{
   float: left; 
   margin:4px 0px 0px 10px;
}

 
.chats .contacts .contact .lastmess,
.chat .contacts .contact .lastmess{
    font-size: 11px;
	margin: 6px 0px 0px 0;
	color: #6F7582;
}

.chats .search .input INPUT:focus,
.chat .search .input INPUT:focus{
    outline:none;
}

.chats ::-webkit-scrollbar,
.chat ::-webkit-scrollbar {
    width: 5px;
	height: 5px;
    background-color: black;
}

.chats ::-webkit-scrollbar-thumb,
.chat ::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: #2B8BE4;
	border-radius:5px;
}

.chats .messages,
.chat .messages{
    display: none;
}

.chats .messages .topcontact,
.chat .messages .topcontact{
	 padding: 5px 0 5px 0;
	 background-color: #202020;
}

.chats .messages .topcontact .back,
.chat .messages .topcontact .back{
	 display: block;
	 width: 30px;
	 height: 30px;
	 background: url('../img/chat/back.svg') 0px 0px  no-repeat;
	float:left;
	background-size: 18px 18px;
	margin: 13px 0px 0px 11px;
	opacity: 0.6;
   filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0.6);
   -moz-opacity: 0.6;
   -khtml-opacity: 0.6;
	cursor: pointer;
}

.chats .messages .topcontact .back:hover,
.chat .messages .topcontact .back:hover{
	opacity: 0.9;
   filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0.9);
   -moz-opacity: 0.9;
   -khtml-opacity: 0.9;
	cursor: pointer;
}

.chats .messages .topcontact .img,
.chat .messages .topcontact .img{
   width: 60px;
   float: left;
   margin: 2px 0px 0px 10px;
}

.chats .messages .topcontact .rinfo,
.chat .messages .topcontact .rinfo{
   float: left; 
   margin:4px 0px 0px 0px;
}

.chats .messages .topcontact .name,
.chat .messages .topcontact .name{
   font-size: 14px;
}

.chats .messages .topcontact .online,
.chat .messages .topcontact .online{
    font-size: 12px;
	color: rgb(147,147,147);
	margin-top: 3px;
}

.chats .messages .list,
.chat .messages .list{
	width: 100%;
    overflow-y: auto;
	overflow-x: hidden;
	height: 450px;
	position: relative;
	font-size: 13px;
	line-height: 20px;
}

.chats .messages .to,
.chat .messages .to{
	margin: 8px 0px 0px 10px;
    padding: 10px 15px 10px 15px;
	border-radius: 20px;
	background-color: #444B73;
	width: 75%; 
}

.chats .messages .from,
.chat .messages .from{
	float: right;
	margin: 8px 10px 0px 0px;
    padding: 10px 15px 10px 15px;
	border-radius:20px;
	background-color: #2D3355;
	width: 75%;
}

.chats .messages .addmessage,
.chat .messages .addmessage{
	width: 100%;
	height: 60px;
	background-color: #30323E;
	position: relative;
}

 
.chats .messages .addmessage TEXTAREA,
.chat .messages .addmessage TEXTAREA{
	 display: block;
	 float: left;
	 padding: 12px 15px 5px 15px;
     background-color: #30323E;
	 color: white;
     width: calc(100% - 60px);
	 max-width: calc(100% - 60px);
	 min-width: calc(100% - 60px);
	 margin: 5px 10px 0px 0px;
	 font:  14px Opensans;
	 height: 40px;
	 max-height: 40px;
	 min-height: 40px;
	 resize: none;
	 border: 0;
}

.chats .messages .addmessage TEXTAREA:focus,
.chat .messages .addmessage TEXTAREA:focus{
    outline:none;
}

.chats .messages .addmessage .send,
.chat .messages .addmessage .send{
   display: block;
   width: 42px;
   height: 42px;
   float: left;
   background: #2B8BE4 url('../img/chat/send.svg') 12px 12px  no-repeat;
   border-radius: 10px;
   margin: 6px 0px 0px 0px;
   cursor: pointer;
}

.chats ::-webkit-input-placeholder,
.chat  ::-webkit-input-placeholder { 
    color:    #898CA7;
}

.chats :-moz-placeholder,
.chat  :-moz-placeholder,
.chats ::-moz-placeholder,
.chat  ::-moz-placeholder { 
   color:    #898CA7;
   opacity:  1;
}

.chats  :-ms-input-placeholder,
.chats  ::-ms-input-placeholder,
.chats  ::placeholder,
.chat  :-ms-input-placeholder,
.chat  ::-ms-input-placeholder,
.chat  ::placeholder {
   color:    #898CA7;
}

