.chat_wrap_content {
	width:100%;
	min-height:40px;
	padding:5px 0;
	display:table-row;
}
.chat_wrap_wrap {
	width:98% !important;
	height:auto;
	display:table;
	padding:5px 1%;
}
.chat_avatar {
	width:45px;
	height:100%;
	display:table-cell;
}
.chat_avatar_wrap, .chat_avatar_wrap2{
	width:36px;
	height:36px;
	border-radius:18px;
	overflow:hidden;
}
.chat_avatar_wrap img, .chat_avatar_wrap2 img {
	width:36px;
	height:auto;
	display:block;
	vertical-align:middle;
}
.chat_name {
	display:table-cell;
	width:auto;
	vertical-align:top;
	line-height:24px;
}
.chat_name p {
	padding-top:7px;
}
.chat_name img {
	vertical-align:middle;
}
#show_chat .fancybox-video img, #show_chat .fancybox-vimeo img, #show_chat .fancybox img{
	position:relative;
	margin-bottom:-12px;
}
#show_chat li:first-child {
	border-top:none;
}
#show_chat li:last-child {
	border-bottom:none;
}
#show_chat li {
	position:relative;
}
.logs_date {
	font-size:10px;
	position:absolute;
	top:0;
	left:0; /*Edited from right */
	margin-left:8px; /*Edited from right */
	margin-top:-4px;
}
.delete_log {
	position:absolute;
	bottom:0;
	left:0; /* Edited from left to right */
	margin-bottom:2px;
	margin-left:8px; /* Edited from left to right */
}
.emo_chat {
	margin-bottom:-6px;
}
#menu_private {
	width:100%;
	height:34px;
	padding:3px 0;
	display:none;
}
.hide_this {
	display:none;
}
#menu_private_options {
	width:auto;
	height:100%;
	float:right;
}
#menu_private_options img {
	height:100%;
	width:auto;
	float:right;
	display:block;
	margin-right:8px;
}
.private_friend {
	padding-left:10px;
	font-weight:bold;
	font-size:15px;
}

/* Reverse message order */
.chat_messages, #messages, .messages_list {
    display: flex !important;
    flex-direction: column-reverse !important;
}

/* Message input area layout */
#input_area, .input_area {
    display: flex !important;
    align-items: center;
}
#message_input, .message_input {
    flex: 1;
    padding: 10px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
}
#send_button, .send_button {
    padding: 10px 20px;
    border: none;
    background: #0cf;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}
#send_button:hover, .send_button:hover {
    opacity: 0.9;
}
