.wysiwyg{
	vertical-align: top;
	padding-left: 1px;
	display: block;
	text-align: center;
	border-radius: 5px;
	height: 40px;
	margin: 10px;
	width: auto;
}

.wysiwyg > button{
	height: 40px;
	width: 40px;
	margin: 0;
	font-size: 20px;
	padding: 8px;
	background: white;
	display: inline-block;
	border: 1px solid #E9E9E9;
	border-radius: 0;
	color: #777;
	background-repeat: no-repeat;
	vertical-align: middle;
	cursor: pointer;
	margin-left: -5px;
	background-position: center;
	font-weight: normal;
	box-shadow: none;
}

.wysiwyg > button:first-child{
	border-radius: 4px 0 0 4px;
}

.wysiwyg > button:last-child{
	border-radius: 0 4px 4px 0;
}

.wysiwyg > .wAdd{
	background-image: url('attach.png');
}

.wysiwyg > .wB{
	font-weight: bold;
}

.wysiwyg > .wPx{
	font-size: 14px;
	padding: 11px 0;
}

.wysiwyg > .wClr{
	padding: 0;
}

.wysiwyg > .wClr > div{
	display: block;
	width: 20px;
	height: 20px;
	margin: 5px 10px;
	background-color: black;
	border-radius: 4px;
}

#tipSizes{
	width: 60px;
}

#tipSizes > div{
	text-align: center;
}

#tipPalette{
	width: 152px;
	height: 32px;
	padding: 0;
	cursor: crosshair;
}

.wysiwyg > .wU{
	text-decoration: underline;
}

.wysiwyg > .wI{
	font-style: italic;
}

.wysiwyg > .wSmile{
	background-image: url('smile.png');
}

.wysiwyg > .active{
	background-color: #EEE;
}

#tipSmiles{
	width: 185px;
}

#tipSmiles > img{
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

#tipSmiles > img:hover{
	border-color: #BBB;
}

#msgCountB{
	padding: 5px 15px;
}

#msgCountB > h2{
	color: #777;
}

#msgCount{
	color: red
}

#msgB{
	display: none;
}

#msgsChat{
	height: 400px;
	overflow-y: scroll;
	display: none;
}

#msgsCtrl{
	text-align: center;
	background-color: #F6F6F6;
	padding: 10px;
	display: none;
}

#msgText,#msgCtrl{
	width: 375px;
	height: 60px;
	margin: 4px auto;
	color: #666;
	font-weight:  normal;
}

#msgText{
	resize: none;
	cursor: text;
	font-weight: normal;
	text-align: left;
	overflow-y: scroll;
}

#msgCtrl{
	height: 40px;
	width: 375px;
	text-align: right;
}


#msgSend{
	height: 20px;
	padding: 2px 15px;
	margin: 0;
	border: 0;
	background: #999;
}

.avatar{
	float: left;
	background: transparent url('avatar.png') no-repeat center;
	width: 90px;
	height: 90px;
	margin-right: 10px;
	background-size: cover;
}

#msgsCtrl{
	height: 210px;
	padding: 10px;
}

#msgsEmpty{
	color: red;
	padding: 20px 10px;
	font-size: 20px;
	font-weight: bold;
}

#deleteMsgs{
	display: none;
	float: right;
	cursor: pointer;
	color: #0099CC;
	background: transparent url('trash.png') no-repeat right center;
	height: 12px;
	padding-right: 18px;
	font-size: 11px;
	margin-top: -20px;
	margin-right: 8px;
}

#msgs{
    margin-top: 5px;
}

#msgs > div, #bMsgL > div{
	position: relative;
	height: 100px;
	padding: 5px 0;
	cursor: pointer;
	color: #999;
	border-bottom: 1px solid #EEE;
}

#msgs .del{
	display: block;
	position: absolute;
	background: transparent url('x.png') no-repeat right top;
	width: 14px;
	opacity: 0.8;
	height: 12px;
	top: 5px;
	right: 5px;
	cursor: pointer;
}

#msgs > .msg.active > .del{
	background-image: url('q.png');
}

#msgs .del:hover{
	opacity: 1;
}

#msgs > div:last-child, #bMsgL > div:last-child{
	border-bottom: 0;
}

#msgs > div:hover, #bMsgL > div:hover{
	background-color: #F6F6F6;
}

#msgs > div.active{
	background-color: #999;
	color: white;
}

#msgs > div.active > .username{
	color: white;
}

#msgs > div.unseen > .username, #bMsgL > div.unseen > .username{
	font-weight: bold;
}

#bMsgL{
	
}

.username{
	display: inline-block;
	color: #0099CC;
	font-size: 16px;
	margin-top: 2px;
}

.date{
	color: #CFCFCF;
	font-size: 11px;
}

.text{
	padding: 4px 5px 3px 0;                 
}

#msgsChat > div{
	padding: 5px 0;
	color: #888;
	width: 400px;
	margin: 2px auto;
	margin-bottom: 10px;
	display: block;
	position: relative;
}

#msgsChat .date{
	position: absolute;
	top: 10px;
	right: -160px
}

#msgsChat .username{
	font-size: 14px;
}

#msgsChat .text{
	padding: 2px 5px 1px 0;  
	margin-left: 50px;
	font-size: 12px;               
}

#msgsChat .avatar{
	width: 40px;
	height: 40px;           
}
