/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */
#chatPanel {
	position: fixed;
	z-index: var(--chat-zindex);
	bottom: 0px;
	width: var(--chat-width);
	height: var(--chat-height);

	#chatPopup {
		height: 100%;

		.control.block{
			.label {
				display: inline-block;
				width: 70px;
				padding-inline-start: 5px;
			}
			i::before {
				content: "\f107";
			}
		}
	}

	&.closed #chatPopup .control.block i::before {
		content: "\f106";
	}
}
#chat {
	height: calc(100% - 20px);

	.chat-toolbar.btn-toolbar .dropdown-menu {
		min-width: unset;

		&.btns-only li {
			display: inline-block;
		}
	}

	#chatTabs {
		padding: 0;
		height: calc(100% - var(--chat-tools-height) - var(--chat-msg-height) - var(--buffer-size));

		.nav.nav-tabs .nav-item {
			max-height: var(--chat-tabs-height);
			height: var(--chat-tabs-height);
			overflow: hidden;

			.nav-link {
				padding: 1px 0.9rem;

				.close-chat {
					padding: 2px;
					line-height:.5em
				}
			}
		}
		.tab-content {
			height: calc(100% - var(--chat-tabs-height));

			.tab-pane.messageArea {
				overflow-y: auto;
				padding: 0 5px;
				position: relative;
			}
		}
	}

	.messageArea {
		.msg-row.need-moderation {
			background-color: var(--bs-warning);
		}
		.time {
			margin-inline-end: 5px;
			font-style: italic;
			font-size: smaller;
		}
		.user-row {
			background-size: 38px, 38px;
			background-repeat: no-repeat;
			padding-inline-start: 40px;
			min-height: 40px;
		}
		.icons {
			display: none;
			position: absolute;
			z-index: 1;
			margin-inline-start: 50px;

			div {
				display: inline-block;
				vertical-align: super;
				margin-inline-end: 2px;
			}
		}
		.from {
			margin-inline-start: 5px;
			margin-inline-end: 5px;
			font-weight: bold;
		}
		.date-row {
			text-align: center;
			font-style: italic;
			padding: 5px 0;
		}
	}
	.chat-tool-icon, .chat.btn {
		font-size: 1.1em;
		max-height: var(--chat-tools-height);
	}
	.chat-tool-icon {
		background-repeat: no-repeat;
		background-position: center;
		background-size: 16px;
		display: inline-block;

		&.list {
			background-image: url(images/list.png);
		}
		&.send-ctrl {
			background-image: url(images/key_ctrl.png);
			background-position: 0px 0px;
			background-size: 25px;
		}
		&.sound i::before {
			content: '\f028';
		}
		&.sound-mute i::before {
			content: '\f6a9';
		}
	}
	.chat-btn {
		display: inline-block;
	}
	.send {
		width: 16px;
		padding-inline-start: 0;
		padding-inline-end: 0;
		margin-inline-end: 0;
		margin-inline-start: 0;
	}
	.tool-container {
		min-height: var(--chat-tools-height);
	}
}
#chatMessage {
	width: calc(100% - 16px);
	height: var(--chat-msg-height);
	max-height: var(--chat-msg-height);

	.wysiwyg-editor {
		min-height: 70px;
		max-height: 70px;
	}
}
.emt {
	font-size: 10pt;
}
.chat-msg-container {
	position: relative;
}
.chat-toolbar .font-huge, .wysiwyg-toolbar .font-huge {
	font-size: x-large;
}
.chat-toolbar .font-small, .wysiwyg-toolbar .font-small {
	font-size: small;
}
.chat-toolbar .font-tiny, .wysiwyg-toolbar .font-tiny {
	font-size: small;
}
.chat-toolbar .chat-btn.bold, .wysiwyg-toolbar .tool-btn.bold {
	font-weight: bold;
}
.chat-toolbar .chat-btn.italic, .wysiwyg-toolbar .tool-btn.italic {
	font-style: italic;
}
.chat-toolbar .chat-btn.strike, .wysiwyg-toolbar .tool-btn.strike {
	text-decoration: line-through;
}
.chat-toolbar .chat-btn.under, .wysiwyg-toolbar .tool-btn.under {
	text-decoration: underline;
}
.chat-delete.confirmation {
	z-index: calc(var(--chat-zindex) + 1);
}

/* room mode */
.main.room #chatPanel {
	margin: 0 !important;
	inset-inline-end: 0px;
	top: var(--room-menu-height);

	#chat form {
		position: absolute;
		bottom: 0px;
		width: 100%;
	}
	.control.block i::before {
		content: "\f105";
	}

	&.closed #chatPopup {
		#chat {
			display: none;
		}
		.control.block {
			height: 100% !important;

			i::before {
				content: "\f104";
			}
			.label {
				transform: rotate(90deg);
				transform-origin: -15% 68% 0;
				position: absolute;
				top: 0;
				inset-inline-end: -67px;
			}
		}
	}
}

@import "cssemoticons";
