#chat * {
  box-sizing: border-box;
}
#chat *:before, #chat *:after {
  box-sizing: inherit;
}


/* chat mini */
#chat_mini{
	transition: all 0.3s ease;
	display: none;
	position: fixed;
	right: 20px; bottom: 0;
	z-index: 99;
	
	padding: 7px 10px 0;
	width: 40px;
	height: 30px;
	background: #fff;
	border: 2px solid #cdd1d7;
	border-bottom: 0;
	color: #333;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	-webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
	box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
}
#chat_mini .open{
	position: absolute;
	top: 7px; right: 5px;
	
	width: 16px;
	height: 16px;
	border-radius: 3px;
	color: #777;
	text-align: center;
	cursor: pointer;
}
#chat_mini:hover .open{
	color: #333;
}
#chat_mini b{
	display: none;
}
#chat_mini.unread{
	display: block;
	width: 150px;
	border-color: #F35958;
	color: #F35958;
}
#chat_mini.unread b{
	display: inline-block;
	margin: 0 0 0 10px;
}
#chat_mini.active,
#chat_mini.inactive.unread{
	display: block;
}
#chat_mini.inactive{
	display: none;
}

/* chat */
#chat{
	position: fixed;
	right: 40px; bottom: 20px;
	z-index: 99;
	width: 600px;
	height: 500px;
	background: #fff;
	border-radius: 5px;
	-webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
	box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
}
#chat.noscroll{
	right: 57px;
}
#chat .close,
#chat .mini{
	position: absolute;
	right: 3px; top: 10px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 3px;
	color: #777;
	text-align: center;
	cursor: pointer;
}
#chat .close .fa,
#chat .mini .fa{
	margin: 0;
	position: absolute;
	top: 1px; left: 3px;
}
#chat .close:hover{
	color: #333;
}
#chat .mini{
	right: 22px;
}
#chat .mini:hover{
	color: #333;
}
/**/
#chat_partner{
	float: left;
	width: 200px;
	height: 500px;
	background: #ddd;
	border-radius: 5px 0 0 5px;
	overflow: hidden;
}
/**/
#chat_phead{
	width: 100%;
	height: 40px;
	background: #eee;
	border-bottom: solid 1px #ddd;
	border-right: solid 1px #ddd;
}
#chat_phead a{
	display: block;
	float: left;
	padding: 8px 0 0;
	width: 40%;
	height: 40px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	text-align: center;
}
#chat_phead a.active{
	background: #ddd;
}
#chat_phead b{
	display: block;
	float: left;
	padding: 8px 0 0;
	width: 20%;
	height: 40px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
#chat_phead b:hover,
#chat_phead a:hover{
	background: #ccc;
}
/**/
#chat_pfoot{
	padding: 0;
	width: 100%;
	height: 60px;
	background: #eee;
	border-right: solid 1px #ddd;
	overflow: hidden;
	text-align: left;
}
#chat_pfoot a{
	position: relative;
	display: block;
	padding: 20px 5px 0 20px;
	height: 60px;
	font-size: 12px;
	color: #333;
	text-decoration: none;
	overflow: hidden;
}
#chat_pfoot a:hover{
	background: rgba(48, 166, 230, 0.3);
}
#chat_pfoot a:after{
	content: '';
	position: absolute;
	left: 5px; top: 24px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
}
#chat_pfoot a.act_0:after,
#chat_pfoot a.act_4:after{ /* kijelentkezve */
	background: #ccc;
}
#chat_pfoot a.act_1:after{ /* belépve de inaktív */
	background: #30A6E6;
}
#chat_pfoot a.act_2:after{ /* belépve aktív */
	background: #00b38d;
}
#chat_pfoot a.act_3:after{ /* elfoglalt */
	background: #ff0000;
}

/**/
#chat_plist{
	padding: 5px 0;
	width: 100%;
	text-align: left;
}
#chat_plist a{
	position: relative;
	display: block;
	padding: 8px 5px 8px 20px;
	font-size: 12px;
	color: #333;
	text-decoration: none;
	overflow: hidden;
}
#chat_plist a:hover{
	background: rgba(48, 166, 230, 0.3);
}
#chat_plist a:after{
	content: '';
	position: absolute;
	left: 5px; top: 12px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
}
#chat_plist a.act_0:after,
#chat_plist a.act_4:after{ /* kijelentkezve */
	background: #ccc;
}
#chat_plist a.act_1:after{ /* belépve de inaktív */
	background: #30A6E6;
}
#chat_plist a.act_2:after{ /* belépve aktív */
	background: #00b38d;
}
#chat_plist a.act_3:after{ /* elfoglalt */
	background: #ff0000;
}
#chat_plist a.unread{
	font-weight: bold;
}
#chat_plist a.conf{
	color: #e06100;
}
#chat_plist a.conf:after{
	background: #ff7800;
}


/**/
#chat_window{
	float: right;
	width: 400px;
	background: #fff;
	border-radius: 0 5px 5px 0;
	overflow: hidden;
}
#chat_head{
	padding: 9px 40px 0 10px;
	width: 100%;
	height: 40px;
	
	background: #eee;
	border-bottom: solid 1px #ddd;
	overflow: hidden;
	text-align: left;
	cursor: move;
}
#chat_head span{
	display: inline-block;
	margin: 0 3px 0 0;
	padding: 2px 5px;
	background: rgba(48, 166, 230, 0.3);
	border-radius: 3px;
	font-size: 11px;
}
/**/
#chat_body{
	width: 100%;
	height: 400px;
	overflow: auto;
}
#chat_body .crow{
	padding: 5px;
	width: 100%;
	overflow: hidden;
}
#chat_body .crow:after{
	content: "\0020"; display: block; height: 0; clear: both; visibility: hidden;
}
#chat_body .crow a.more{
	font-size: 12px;
	text-decoration: underline;
}
#chat_body .name{
	position: relative;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: bold;
	text-align: left;
}
#chat_body .name.atRight{
	text-align: right;
}
#chat_body .name:after{
	position: absolute;
	left: 15px; bottom: -10px;
	content: '';
	width: 0; height: 0;
	border-style: solid;
	border-width: 0 8px 10px 8px;
	border-color: transparent transparent #eee transparent;
}
#chat_body .name.atRight:after{
	left: auto; right: 15px;
	border-color: transparent transparent #a0f7c4 transparent;
}

#chat_body .msg{
	padding: 8px;
	width: 300px;
	background: #eee;
	border-radius: 5px;
	font-size: 13px;
	text-align: left;
	overflow: hidden;
}
#chat_body .msg b{
	display: block;
	font-size: 11px;
	color: #777;
}
#chat_body .msg.atRight b{
	text-align: right;
}
#chat_body .msg.atRight{
	float: right;
	background: #a0f7c4;
}
#chat_body .msg.unread{
	background: #30A6E6;
	color: #fff;
}
#chat_body .msg.unread b{
	color: #fff;
}
#chat_body .msg img.emoji{
	width: 24px;
}


/**/
#chat_footer{
	position: relative;
	padding: 7px 0 0 5px;
	width: 100%;
	height: 60px;
	background: #eee;
	overflow: hidden;
	text-align: left;
}
#chat_footer textarea{
	padding: 3px 10px;
	width: 88%;
	height: 44px;
	resize: none;
	border-radius: 5px;
	font-size: 13px;
	color: #333;
}
#chat_footer .textarea{
	padding: 3px 10px;
	width: 88%;
	height: 44px;
	background: #fff;
	resize: none;
	border-radius: 5px;
	font-size: 13px;
	color: #333;
	overflow: auto;
}
#chat_footer .textarea:empty:before{
  content: attr(placeholder);
  display: block; /* For Firefox */
}
#chat_footer .textarea img.emoji{
	width: 16px;
}
#chat_footer .emojiButton{
	position: absolute;
	right: 7px; top: 12px;
	width: 32px;
	height: 32px;
	background: url(emoji/smiling.png) no-repeat;
	cursor: pointer;
}
#emojiC{
	display: none;
	position: absolute;
	left: 0; top: 0;
	padding: 15px 10px 0;
	width: 100%;
	height: 60px;
	background: rgba(255, 255, 255, 0.75);
}
#emojiC img{
	cursor: pointer;
}
#emojiC a{
	position: absolute;
	right: 7px; top: 0;
	width: 16px;
	height: 16px;
	background: #ddd;
	border-radius: 3px;
	color: #777;
	text-align: center;
	cursor: pointer;
}
#emojiC a:hover{
	color: #333;
}
#emojiC a .fa{
	margin: 0;
	position: absolute;
	top: 1px; left: 3px;
}