/**
 *
 * @package phpBB Extension - mChat
 * @copyright (c) 2016 dmzx - http://www.dmzx-web.net
 * @copyright (c) 2016 kasimi
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
 *
 */

#mChat {
	position: absolute;
	visibility: hidden;
}

#mChat + .inner li.header dd {
	width: 0;
}

.mchat-wrapper {
	margin-bottom: 18px;
}

.mchat-wrapper:nth-child(3) {
	margin-top: 0 !important;
}

.mchat-ucp fieldset hr:first-child, .mchat-ucp fieldset hr:last-child, .mchat-ucp fieldset hr + hr {
	display: none;
}

#mchat-body {
	border-radius: 0;
	width: 100% !important;
}

#mchat-confirm textarea {
	width: 100%;
	height: 100px;
}

#mchat-messages {
	overflow: auto;
	width: 100%;
}

.mchat-message-wrapper {
	overflow: hidden;
	margin: 2px 0;
}

.mchat-message-header {
	float: left;
	font-size: 1.1em;
	line-height: 16px;
}

.mchat-message {
	padding: 6px 18px;
	overflow: hidden;
}

.mchat-message:after {
	background-color: #EEE;
	clear: both;
	content: "";
	display: block;
	height: 1px;
	margin: 6px 0 0;
	width: auto;
}

.mchat-message:last-child:after {
	display: none;
}

.mchat-avatar {
	float: left;
	width: 30px;
	height: 30px;
	margin: 5px 18px 5px 0;
}

.mchat-avatar-default {
	height: 30px;
	width: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 100%;
	background-color: rgba(0, 0, 0, 0.05);
}

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {

	.mchat-buttons > li {
		padding: 0 8px !important;
	}

}

.mchat-avatar a, .mchat-avatar img {
	display: block;
	height: 30px;
	width: 30px;
	border-radius: 100%;
}

.mchat-message + .mchat-message {
	padding-top: 0;
}

.mchat-message .mchat-buttons li {
	opacity: .3;
	overflow: visible;
}

.mchat-message:hover .mchat-buttons li {
	opacity: .6;
}

.mchat-message .mchat-buttons li:hover {
	opacity: 1;
}

.mchat-buttons {
	float: right;
	list-style: none;
	margin-top: 1px;
}

.mchat-buttons i {
	font-size: 14px;
}

.mchat-buttons i span {
	display: none;
}

.mchat-message-wrapper .mchat-buttons > li {
	float: left;
	margin: 0 0 0 12px;
}

.mchat-button {
	margin-left: 3px;
}

.mchat-button.fa {
	font-size: 12pt;
}

.mchat-button span {
	display: block;
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.mchat-icon:before {
	content: '';
	background-image: url("./images/message_icons.png");
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
	display: block;
	float: right;
}

.mchat-icon-mention:before      { background-position: -2px -2px; }
.mchat-icon-edit:before         { background-position: -22px -2px; }
.mchat-icon-pm:before           { background-position: -42px -2px; }
.mchat-icon-quote:before        { background-position: -62px -2px; }
.mchat-icon-like:before         { background-position: -82px -2px; }
.mchat-icon-delete:before       { background-position: -102px -2px; }
.mchat-icon-permissions:before  { background-position: -122px -2px; }
.mchat-icon-ip:before           { background-position: -142px -2px; }

.mchat-text {
	clear: both;
	overflow: hidden;
	font-size: 1.3em;
	line-height: 20px;
	word-break: break-all;
}

.mchat-text strong {
	font-weight: bold !important;
}

.mchat-text li {
	display: list-item !important;
	list-style-type: inherit !important;
	list-style-position: inside;
}

.mchat-text ul, .mchat-text ol {
	list-style-position: inside;
}

.mchat-text ul {
	list-style-type: disc;
}

.mchat-text ol {
	list-style-type: decimal;
}

.mchat-text ul ul {
	list-style-type: circle;
}

.mchat-text blockquote {
	margin-bottom: 5px;
}

.mchat-text blockquote, .mchat-text .codebox, .mchat-text ul, .mchat-text ol {
	margin-top: 5px;
	margin-left: 1em;
}

.mchat-mention strong {
	color: inherit !important;
}

.mchat-mention {
	cursor: pointer;
	width: 16px;
	height: 16px;
}

#mchat-no-message {
	font-size: 1.2em;
}

#mchat-character-count {
	float: right;
	padding: 5px 0 0;
}

#mchat-panel {
	max-height: initial;
	overflow-y: auto;
	padding: 18px;
	margin: 0;
	border-radius: 0;
	border-top: 1px solid #f0f0f0;
	background-color: #fcfcfc;
}

#mchat-form {
	clear: both;
}

#mchat-input {
	cursor: text;
	width: 100% !important;
	font-size: 1.3em;
}

.mchat-input-control {
	float: right;
	margin-top: 6px;
}

#mchat-buttons {
	padding-bottom: 6px;
	padding-top: 6px;
}

#mchat-bbcodes {
	padding: 0 0 6px;
	display: none;
}

#mchat-bbcodes #format-buttons {
	background-color: transparent;
	margin: 0;
	padding: 0;
	border: none;
}

#mchat-bbcodes #colour_palette label {
	display: none;
}

#mchat-bbcodes #colour_palette table {
	margin: 0 auto 5px;
}

#mchat-smilies {
	padding: 0 0 6px;
}

#mchat-status-icons {
	position: relative;
	display: inline-block;
	vertical-align: text-top;
}

#mchat-status-icons i {
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	float: left;
}

#mchat-status-icons i.fa {
	font-size: 12pt;
}

#mchat-status-error {
	display: none;
	cursor: help;
}

#mchat-status-ok {
	display: none;
	cursor: help;
}

#mchat-status-load {
	display: none;
	cursor: wait;
}
#mchat-status-paused {
	cursor: help;
}

#mchat-legend {
	clear: both;
}

#mchat-whois {
	font-size: 1.3em;
	line-height: 1.7;
}

#mchat-refresh, #mchat-refresh, #mchat-legend {
	font-size: 1.3em;
	line-height: 1.7;
	margin: 0 0 18px;
}

#mchat-panel > #mchat-whois {
	float: left;
}

.mchat-copyright {
	position: relative;
	top: 1px;
	font-weight: bold;
	font-size: 1.1em;
	cursor: help;
}

.mchat-static {
	padding: 9px 18px 9px !important;
}

#mchat-colour {
	display: none;
}

/* Compatibility with Advanced BBCode Box extension */

#mchat-panel #abbc3_buttons {
	margin: 0 !important;
	padding-bottom: 5px;
}

#mchat-panel #abbc3_buttons .abbc3_buttons_row {
	margin: 0 auto !important;
}

/* Compatibility with Collapsible Categories extension */

.mchat-category {
	display: none;
	height: 0;
}

.mchat-collapse {
	display: none;
	line-height: 0;
}

.hidden-category + .forabg #mchat-body .topiclist.forums {
    display: block;
}

/* More */
.mchat-body {
	border-color: #EEE;
	box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.03);
	border-radius: 2px;
	border-style: solid;
	border-width: 1px;
	margin: 0 0 18px;
}

.mchat-header {
	background-color: #455A64;
	color: #fafafa;

	border-radius: 2px 2px 0 0;
	display: block;
	font-size: 1.3em;
	font-weight: 600;
	line-height: 1.5;
	padding: 11px 18px;
}

.mchat-header a {
	color: #fafafa;
}

#mchat-body {
	background-color: #FFF;
	width: 100%;
}

#mchat-user-sound {
	margin-left: 18px;
}

#mchat-confirm .button {
	font-size: 13px;
}

.mchat-nav-item-enabled .mchat-nav-item-disabled,
.mchat-nav-item-disabled .mchat-nav-item-enabled {
	display: none;
}

.variant-2 #mchat-body {
	background-color: #2E3A40;
}

.variant-2 #mchat-panel {
    border-top-color: #29343A;
    background-color: #222D32;
}

.variant-3 #mchat-body {
	background-color: #2F2F2F;
}

.variant-3 #mchat-panel {
    border-top-color: #292929;
    background-color: #222222;
}
