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

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

.mchat-nav-link {
	margin-left: 2px;
}

.mchat-nav-caret {
	margin-left: 5px;
}

.mchat-header .list-inner {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	   -ms-flex-align: center;
	      align-items: center;
	-webkit-box-pack: start;
	   -ms-flex-pack: start;
	 justify-content: start;
}

.mchat-wrapper li.header dd {
	width: 0;
}

#mchat-body {
	position: relative;
	overflow: hidden;
	width: 100%;
}

#mchat-body * {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

#mchat-main {
	position: relative;
}

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

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

#mchat-messages {
	overflow: auto;
}



.mchat-message-header {
    width: 100%;
    border-radius: 20px 20px 0px 0px;
    height: 20px;
    margin-top: -10px;
    padding: 10px 0px;
    line-height: 0px;
    padding-left: 30px;
    margin-bottom: 5px;
    position: relative;
    color: var(--accent-all);
    text-transform: uppercase;
    font-weight: bold;
    /* letter-spacing: 1px; */
}

.mchat-message {
padding: 5px !important;
    margin: 0 auto;
    width: 100%;
    border-radius: 20px;
    position: relative;
}



.mchat-avatar {float: left;width: 55px;height: 55px;position: absolute;top: 50%;transform: translate(10px, -50%);z-index: 2;background: var(--white);border-radius: 100%;}

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



.mchat-wrapper .mchat-buttons {
	float: right;
	list-style: none;
	margin-top: 1px;
	position: absolute;
	z-index: 2;
	right: -30px;
	top: 2px;
}

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

ul.mchat-buttons i {
    font-size: 15px;
    color: var(--accent-all);
}

.mchat-wrapper .mchat-buttons .icon {
	font-size: 12pt;
}

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

.mchat-text {clear: both;padding: 0 5px 1px;font-size: 13px;margin-left: 30px;text-align: justify;position: relative;width: 94%;}

.mchat-text .postlink {
	display: unset;
}

.mchat-text .text-strong {
	color: unset;
}

.mchat-notification-message .mchat-text {
	font-style: italic;
}

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

.mchat-text img {
	max-width: 100%;
}

.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, .mchat-text .codebox, .mchat-text ul, .mchat-text ol {
	margin-bottom: 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;
}

#mchat-character-count.invisible {
	visibility: hidden;
}

#mchat-panel {
	text-align: center;
	max-height: none;
	overflow: hidden;
	padding: 5px;
	margin: 0;
	border-radius: 0;
	background: var(--c);
	border-radius: 0px 0px 15px 15px;
}

#mchat-panel:not(.mchat-panel-content) {
	display: none;
}

#mchat-form {
	clear: both;
}

.mchat-controls {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	margin: 5px 0;
}

.mchat-avatars .mchat-controls {
	margin: 10px 43px;
}

.mchat-input-container {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	position: relative;
	max-width: 100%;
	border-radius: 20px;
	padding: 0;
}

#mchat-input {
	font-size: 1.2em;
	padding: 6px 6px 5px;
	min-width: 100%;
	border-radius: 20px !important;
	overflow: hidden;
	resize: none;
	border: none;
	border-right: 35px solid transparent;
	background-color: inherit;
	background: var(--w);
}

#mchat-input:focus, .mchat-input-control > *:focus {
	outline: none;
}

.mchat-single-line {
	white-space: nowrap;
}

.mchat-input-error {
	border-color: #F00 !important;
}

.mchat-input-control {
	position: absolute;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	width: 30px;
	height: 100%;
	top: 0;
	right: 0;
}

.mchat-input-control button {
 	background: transparent;
	border: 0;
}



#mchat-status {
	display: inline;
	margin-left: 6px;
	text-indent: 0;
}

.mchat-status {
	position: absolute;
	top: calc(50% - 1px);
	-webkit-transform: translateY(-50%);
	    -ms-transform: translateY(-50%);
	        transform: translateY(-50%);
	text-indent: 0;
}

.fa-spin::before {
	padding-left: 2px;
}

.mchat-button-add {
	margin: 3px 0 0 3px;
	padding: 5px;
	display: none;
}

.mchat-input-control button .icon {
	font-size: 15px;
	color: var(--accent-all);
}

#mchat-exceed-character-count {
	color: #F00;
	font-weight: bold;
}

.mchat-panel-buttons {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	margin-left: 5px;
}

.mchat-panel-buttons .button:not(:last-child) {
	margin-right: 5px;
}

.mchat-panel-buttons .icon {
	font-size: 16px;
}

.mchat-button-is-down {
	border-style: inset;
}

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

#mchat-bbcodes {
	display: none;
}

#mchat-bbcodes #format-buttons,
#mchat-bbcodes #format-postingbuttons {
	margin: 0 0 5px;
}

#mchat-colour {
	display: none;
}

#mchat-bbcodes #colour_palette {
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

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

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

#mchat-bbcodes #colour_palette a {
	cursor: pointer;
}

#mchat-bbcodes #colour_palette td a.remember-color {
	position: relative;
	-webkit-box-shadow: 0 0 2px 2px #F00;
	        box-shadow: 0 0 2px 2px #F00;
}

#mchat-smilies {
	padding: 0;
}

#mchat-legend {
	clear: both;
	margin: 10px 0;
}

.mchat-static, #mchat-stats, #mchat-whois, #mchat-refresh, #mchat-legend {
	text-align: left;
	font-size: 1.1em;
}

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

.mchat-copyright.footer-row {
	font-size: 10px;
	line-height: 1.8;
	margin: 0;
}

.footer-row + br {
	display: none;
}

.mchat-static {
	padding: 5px 5px 7px !important;
}


/* 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;
}

/* mchat */
.mchat-wrapper {
    background: var(--g);
    margin-top: 20px;
    border-radius: 20px;
}


.mchat-avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  object-position: top;
  border-radius: 100%;
  border: 2px solid var(--accent-all);
  /* padding: 3px; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mchat-message-wrapper {
    margin-top: 6px;
    margin: 0 auto;
    background: var(--white);
    width: 90%;
    border-radius: 20px;
    position: relative;
    padding: 10px 0px;
}


.mchat-message {
    width: 95%;
    margin-left: 40px;
}

.mchat-message {
    background: var(--w);
    margin-top: 10px !important;
}

ul#mchat-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

span.mchat-time {
    text-transform: lowercase;
    font-weight: normal;
    color: var(--b);
}

.mchat-message-header {
    color: var(--b);
}

ul.mchat-buttons svg {
    width: 18px;
    height: 18px;
    fill: var(--b);
}

