/**
 * Styles for the settings screen.
 * @package advanced-editor-tools
 */

body.settings_page_tinymce-advanced {
	background: #ededed;
	color: #000;
}

.advanced-editor-tools h4 {
	font-size: 1.1em;
}

.settings-toggle {
	display: inline-block;
	padding: 12px 16px 12px 6px;
	margin: 0 6px -1px 0;
	border: 1px solid #ccc;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	cursor: pointer;
}

.rtl .settings-toggle {
	padding: 12px 6px 12px 16px;
	margin: 0 0 -1px 6px;
}

.settings-toggle:focus {
	outline: none;
}

#classic-editor,
#block-editor {
	padding: 0 18px 18px;
	border: 1px solid #ccc;
}

.classic-active .settings-toggle.classic,
.block-active .settings-toggle.block {
	border-bottom-color: #f8f9f9;
	background-color: #f8f9f9;
}

.classic-active #block-editor,
.classic-active .block .arrow-open,
.classic-active .classic .dashicons-arrow-down,
.block-active #classic-editor,
.block-active .classic .arrow-open,
.block-active .block .dashicons-arrow-down {
	display: none;
}

.wrap.advanced-editor-tools {
	max-width: 760px;
	margin: 16px 24px 0 16px;
}

.rtl .wrap.advanced-editor-tools {
	margin: 16px 16px 0 24px;
}

#classic-editor,
#block-editor {
	margin-bottom: 45px;
	background-color: #f8f9f9;
}

.toolbar-block-wrap {
	display: inline-block;
}

/* Block editor buttons */
#toolbar_block {
	display: inline-block;
	vertical-align: text-top;
}

.toolbar-wrap {
	margin: 8px 0;
}

.toolbar-wrap.highlighted ul,
.toolbar-block-wrap.highlighted,
.tma-block-dropdown-toolbar-inner-wrap.highlighted {
	background-color: #e4f2fd;
}

.toolbar-block-wrap {
	margin: 0;
}

#toolbar_block {
	border: 0;
}

.tma-down-addow-wrap {
	padding: 16px 13px 0;
	display: inline-block;
	box-sizing: border-box;
	vertical-align: text-top;
}

span.tma-down-addow::after {
	content: "";
	pointer-events: none;
	display: block;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 5px solid #444;
}

.tma-block-dropdown-toolbar-wrap {
	position: relative;
	margin: 3px 0 0 36px;
	height: auto;
	width: 260px;
	box-shadow: 0 3px 30px rgba(25, 30, 35, 0.16);
	border: 1px solid #e2e4e7;
	background: #fff;
}

.rtl .tma-block-dropdown-toolbar-wrap {
	margin: 3px 72px 0 0;
}


/* Drop-down arrow */
.tma-block-dropdown-toolbar-arrow::before {
	top: -8px;
	border: 8px solid #e2e4e7;
}

.tma-block-dropdown-toolbar-arrow::after {
	top: -6px;
	border: 8px solid #fff;
}

.tma-block-dropdown-toolbar-arrow::before,
.tma-block-dropdown-toolbar-arrow::after {
	content: "";
	position: absolute;
	height: 0;
	width: 0;
	line-height: 0;

	border-bottom-style: solid;
	border-left-color: transparent;
	border-right-color: transparent;
	border-top: none;
	margin-left: -10px;

	left: 235px;
}

.rtl .tma-block-dropdown-toolbar-arrow::before,
.rtl .tma-block-dropdown-toolbar-arrow::after {
	left: auto;
	right: 226px;
}

.tma-block-dropdown-toolbar-inner-wrap {
	height: 100%;
	width: 100%;
}

ul.toolbar-block-dropdown {
	padding: 7px 0;
	margin: 0;
	height: 100%;
	width: 100%;
	min-height: 36px;
}

ul.toolbar-block-dropdown > li {
	display: block;
	margin: 0 0 4px;
	width: auto;
	height: 40px;
	cursor: move;
	outline: none;
}

ul.toolbar-block-dropdown > li:hover {
	color: #191e23;
	border: none;
	box-shadow: none;
	background: #f3f4f5;
}

ul.toolbar-block-dropdown .tma-components-icon-button {
	width: 100%;
}

ul.toolbar-block-dropdown span {
	vertical-align: middle;
}

.block-button-name {
	display: inline-block;
	vertical-align: middle;
}

.tma-components-toolbar *,
.tma-block-dropdown-toolbar-wrap * {
	box-sizing: border-box;
}

.tma-components-toolbar {
	border: 1px solid #e2e4e7;
	margin: 0;
	background-color: #fff;
	line-height: 1px;
	min-height: 36px;
	font-size: 0pt;
}

.tma-components-toolbar > li {
	display: inline-block;
	margin: 0;
	width: 36px;
	height: 36px;
	cursor: move;
}

.tma-components-toolbar .block-button-name {
	display: none;
}

.tma-components-icon-button {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	padding: 3px;
	outline: none;
	width: 36px;
	height: 36px;
	border: none;
	background: none;
	color: #555d66;
	overflow: hidden;
	border-radius: 4px;
	-webkit-appearance: none;
}

.tma-components-icon-button .dashicons,
.tma-components-icon-button .mce-ico {
	display: inline-block;
	padding: 5px;
	border-radius: 4px;
	height: 30px;
	width: 30px;
	outline: none;
	overflow: hidden;
}

.tma-components-icon-button .mce-ico:before {
	font-size: 20px;
	margin: 2px;
	display: block;
}

.tma-components-icon-button:hover > span {
	color: #555d66;
	box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;
}

.toolbar-block-dropdown .tma-components-icon-button:hover > span {
	box-shadow: none;
}

.toolbar-side-wrap,
.panel-block-colors {
	width: 260px;
	border: 1px solid #ddd;
	background-color: #fff;
}

.panel-title {
	padding: 15px;
	font-weight: 600;
	background-color: #f8f9f9;
	margin-bottom: 5px;
}

.panel-title span {
	color: #191e23;
	float: right;
}

.rtl .panel-title span {
	float: left;
}

.toolbar-unused-wrap {
	width: 350px;
}

.block-toolbar-unused {
	min-height: 72px;
}

.toolbar-block-title {
	margin: 1.2em 0 0.6em;
}

.block-toolbar-side {
	border-color: transparent;
	margin: 0 12px 10px;
	min-height: 37px;
}

.highlighted .block-toolbar-side {
	border-color: #e2e4e7;
}

.panel-block-colors-wrap {
	margin-top: 40px;
}

.panel-block-colors {
	float: left;
}

.rtl .panel-block-colors {
	float: right;
}

.panel-block-colors-settings {
	margin-left: 280px;
	width: auto;
	clear: none;
}

.rtl .panel-block-colors-settings {
	margin-left: 0;
	margin-right: 280px;
}

.panel-block-colors-settings__text {
	border-top: 40px solid transparent;
}

.panel-block-colors-settings__background {
	border-top: 60px solid transparent;
}

.panel-block-text-color p,
.panel-block-background-color p {
	margin: 10px 16px 5px;
	color: #555d66;
}

.panel-block-text-color.disabled,
.panel-block-background-color.disabled {
	opacity: 0.3;
}
/* Block editor buttons end */

.classic-blocks-title-h4 {
	margin: 40px 0 1.1em;
}
/*
.tadv-submit-top {
	margin: 0 -36px;
}
*/
form#tadvadmin {
	margin-top: 24px;
}

.tadv-more-plugins label {
	font-weight: bold;
	padding: 0 10px;
}

.advanced-options label {
	font-weight: 600;
}

.advanced-editor-tools label {
	vertical-align: baseline;
}

.advanced-editor-tools input[type="checkbox"] {
	vertical-align: text-bottom;
}

.advanced-options {
	margin: 40px 0;
}

.advanced-options div {
	margin: 1.2em 0;
}

.advanced-options p {
	margin-left: 22px;
	margin-top: 5px;
}

.advanced-options .tadv-help {
	margin: 1em 0;
}

.advanced-options h3 {
	margin-top: 15px;
}

.tadv-more-plugins {
	margin-bottom: 30px;
}

.tadv-submit .button-large {
	float: right;
}

.rtl .tadv-submit .button-large {
	float: left;
}

#tadv-import-error {
	height: 22px;
}

.import-file {
	margin: 2em 0;
}

#tadv-confirm-uninstall {
	display: none;
	background: #FFFFE0;
	border: 1px solid #E6DB55;
	padding: 8px;
}

#tadv-confirm-uninstall .button {
	margin: 0 5px;
}

.tadv-import-export {
	max-width: 800px;
	min-width: 320px;
}

#tadv-import {
	width: 100%;
	height: 200px;
	padding: 8px 12px;
}

ul.container,
.unused {
	position: relative;
}

.tadvitem i.mce-ico {
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	vertical-align: middle;
	margin: 0;
	padding: 0;
	color: #555;
}

.tadvitem i.mce-ico.mce-i-ltr,
.tadvitem i.mce-ico.mce-i-tadv_mark {
	font-family: tinymce;
	font-size: 16px;
	vertical-align: text-top;
}

.tadvitem i.mce-ico.mce-i-ltr:before {
	content: "\e02f";
}

.tadvitem i.mce-ico.mce-i-tadv_mark:before {
	content: "\e01a";
}

.tadvitem i.mce-ico.mce-i-tadv_mark {
	text-shadow: none;
	background: #ddd;
}

.tadvitem.mce-listbox i.mce-caret {
    right: 6px;
}

.rtl .tadvitem.mce-listbox i.mce-caret {
    right: auto;
	left: 6px;
}

.tadv-mce-menu.mce-menubar {
	margin-bottom: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-bottom: 0;
	opacity: 0.4;
	filter: alpha(opacity=40);
}

.tadv-mce-menu.enabled {
	opacity: 1;
	filter: alpha(opacity=100);
}

.tadv-mce-menu.mce-menubar .mce-menubtn:hover {
	background: transparent;
	border-color: transparent;
}

/* Menubar fix... */
.mce-menubar .mce-menubtn button span {
	font-size: 13px;
}

.tadv-mce-menu.mce-menubar .mce-menubtn:hover button span {
	color: #000;
}

.tadv-mce-menu .mce-btn .mce-caret {
	margin-left: 1px;
	margin-top: 6px;
	border-top-color: #555;
}

#tadvadmin .mce-menubar .mce-menubtn:hover .mce-caret {
	border-top-color: #000;
}

.tadv-mce-menu * {
	cursor: default;
}

.tadvzones,
.unused {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#tadvadmin p.submit {
	padding-right: 10px;
}

#tadvadmin #save {
	float: right;
}

.tadvdropzone {
	padding: 2px 4px;
	margin: 0 0 10px;
	background-color: #fff;
	border: 1px solid #bbb;
}

.unuseddiv .highlighted,
.tadvdropzone.highlighted {
	background-color: #e4f2fd;
	color: #000;
	border-color: #aaa;
}

.tadvdropzone .descr {
	display: none;
}

.tadvdropzone .mce-menubtn .descr {
	padding: 0;
	font-size: 13px;
}

.tadvdropzone .tadvmodule .tadvitem {
	border: 1px solid transparent;
	display: block;
	margin: 1px 2px;
	padding: 2px 3px;
	width: 20px;
	height: 20px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
}

.tadvdropzone .tadvmodule .tadvitem.mce-widget {
	width: auto;
	height: 20px;
	border-color: #ccc;
	background-color: #fff;
	cursor: move;
}

.tadvdropzone.mce-toolbar .mce-btn .the-button {
	padding: 2px 3px 0;
}

.tadvdropzone .tadvmodule .tadvitem:hover {
	border-color: #999;
	background-image: none;
}

.tadvdropzone ul {
	height: 30px;
	width: 100%;
	margin: 0;
	padding: 1px 0 0;
	line-height: 1;
}

.unuseddiv {
	margin: 0 -5px;
}

.unuseddiv > p {
	margin: 16px 5px 6px;
}

.unused li,
.tadvdropzone li {
	margin: 0;
	padding: 0;
	border: none;
	display: inline-block;
	cursor: move;
	vertical-align: top;
}

.unused li {
	margin: 4px;
}

.unused {
	margin: 0;
	min-height: 36px;
}

.unused .tadvmodule .tadvitem {
	display: block;
	height: 24px;
	width: 140px;
	border: 1px solid #bbb;
	background-color: #fff;
	margin: 2px 1px 1px;
	padding: 5px 4px 0;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background-image: none;
	box-shadow: none;
}

.unused .tadvmodule .descr {
	display: inline;
	font-size: 12px;
	line-height: 20px;
}

.unused .tadvmodule .the-button .descr {
	padding: 0 4px;
	font-size: 13px;
}

.tadvdropzone #formatselect,
.tadvdropzone #styleselect,
.tadvdropzone #fontsizeselect,
.tadvdropzone #fontselect {
	width: 115px;
}

div.tadv-error {
	color: #ff0000;
	font-weight: bold;
	height: 26px;
	line-height: 26px;
	display: none;
}

.wp-adv-error #wp-adv-error-message {
	visibility: visible;
}

.wp-adv-error #wp_adv .tadvitem {
	border-color: red;
}

.tadv-placeholder {
	vertical-align: bottom;
	display: inline-block;
	position: static;
	visibility: hidden;
}

.tadvdropzone .tadv-placeholder {
	height: 28px;
}

.tadv-error {
	color: #d54e21;
}

.tadv-block-editor-toolbars-wrap {
	max-width: 650px;
}

.tadv-mce-menu.tadv-block-editor.mce-menubar {
	background-image: url(images/toolbar-actions.png);
	background-position: right;
	background-repeat: no-repeat;
	background-size: 84px 37px;
}

.rtl .tadv-mce-menu.tadv-block-editor.mce-menubar {
	background-image: url(images/toolbar-actions-rtl.png);
	background-position: left;
}

.tadv-block-editor .mce-menubtn {
	margin: 7px 0 6px;
}

.tadv-block-editor.tadvdropzone {
	height: 60px;
}

#toolbar_classic_block {
	height: 60px;
}

.tadv-popout-help {
	padding: 1px 18px;
	background-color: #fff;
	margin: 8px 0;
	border: 1px solid #e8e8e8;
}

.tadv-popout-help ol {
	padding: 0;
	margin: 1em;
}

.tadv-popout-help-close {
	float: right;
	margin: 1px -16px;
}

.rtl .tadv-popout-help-close {
	float: left;
}

.tadv-popout-help-toggle,
.tadv-popout-help-close {
	cursor: pointer;
}

.tadv-mark .dashicons-editor-textcolor {
	background-color: #fff9c0;
	background-clip: content-box;
}

.tadv-block-editor > div.mce-container-body {
	margin-right: 80px;
}

.rtl .tadv-block-editor > div.mce-container-body {
	margin-right: 0;
	margin-left: 80px;
}

.rtl .the-button {
	direction: rtl;
	text-align: right;
}

.tadv-block-placeholder {
	background: #fff;
	vertical-align: middle;
}

/* Block toolbar */
.tma-block-toolbar-wrap.editor-block-toolbar {
	white-space: nowrap;
	overflow-wrap: break-word;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.8;
	color: #191e23;

	display: flex;
	flex-grow: 1;

	width: auto;
	overflow: inherit;
	border-right: none;
	border-left: 1px solid #b5bcc2;
}

.tma-block-toolbar-wrap.editor-block-toolbar * {
	box-sizing: inherit;
}

.tma-block-toolbar-wrap div.components-toolbar {
	border-top: 1px solid #b5bcc2;
	border-bottom: 1px solid #b5bcc2;
	border-right: 1px solid #b5bcc2;

	margin: 0;
	background-color: #fff;
	display: flex;
	flex-shrink: 0;
}

.tma-block-toolbar-wrap div.components-toolbar > div {
	display: flex;
}

.tma-block-toolbar-wrap .block-editor-block-switcher {
	position: relative;
	height: 36px;
}

.tma-block-toolbar-wrap .components-button {
	display: inline-flex;
	text-decoration: none;
	font-size: 13px;
	margin: 0;
	border: 0;
	cursor: default;
	-webkit-appearance: none;
	background: none;
	outline: none;
}

.tma-block-toolbar-wrap .components-icon-button {
	display: flex;
	align-items: center;
	padding: 8px;
	margin: 0;
	border: none;
	background: none;
	color: #555d66;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.tma-block-toolbar-wrap .components-toolbar__control.components-button {
	display: inline-flex;
	align-items: flex-end;
	margin: 0;
	padding: 3px;
	outline: none;
	position: relative;
	width: 36px;
	height: 36px;
}

.tma-block-toolbar-wrap .components-dropdown-menu {
	padding: 3px;
}

.tma-block-toolbar-wrap div.components-toolbar > div + div {
	margin-left: -3px;
}

.rtl .tma-block-toolbar-wrap div.components-toolbar > div + div {
	margin-left: 0;
	margin-right: -3px;
}

.tma-block-toolbar-wrap .components-dropdown-menu .components-dropdown-menu__toggle {
	width: auto;
	margin: 0;
	padding: 4px;
	border: 1px solid transparent;
	display: flex;
	flex-direction: row;

	/* Always hover... */
	color: #555d66;
	box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;
}

.tma-block-toolbar-wrap .components-dropdown-menu .components-dropdown-menu__toggle .components-dropdown-menu__indicator::after {
	content: "";
	pointer-events: none;
	display: block;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 5px solid currentColor;
	margin: 7px;
}

.components-dropdown-menu .components-dropdown-menu__toggle:hover,
.components-dropdown-menu .components-dropdown-menu__toggle:focus,
.components-dropdown-menu .components-dropdown-menu__toggle:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
	color: #555d66;
	box-shadow: inset 0 0 0 1px #555d66, inset 0 0 0 2px #fff;
}

.tma-block-toolbar-wrap .block-editor-block-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	border-radius: 4px;
}

.tma-block-toolbar-wrap .block-editor-block-icon.has-colors svg {
	fill: currentColor;
}

.tma-block-toolbar-wrap .block-editor-block-icon svg {
	width: 20px;
	height: 20px;
	max-width: 24px;
	max-height: 24px;
}

.tma-block-toolbar-wrap .components-icon-button svg {
	fill: currentColor;
	outline: none;
}

.tma-block-toolbar-wrap .components-toolbar__control.components-button > svg,
.tma-block-toolbar-wrap .components-toolbar__control.components-button > .dashicons {
	padding: 5px;
	border-radius: 4px;
	height: 30px;
	width: 30px;
}

.tma-block-toolbar-wrap .components-toolbar__control .dashicon {
	display: block;
}

.tma-block-toolbar-wrap .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon::after {
	content: "";
	pointer-events: none;
	display: block;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 5px solid currentColor;
	margin-left: 4px;
	margin-right: 2px;
}

.tma-block-toolbar-wrap .block-editor-block-settings-menu__toggle .dashicon {
	transform: rotate(90deg);
}

.tma-block-toolbar-wrap .components-icon-button.block-editor-block-switcher__toggle,
.tma-block-toolbar-wrap .components-icon-button.block-editor-block-switcher__no-switcher-icon {
	width: auto;
	margin: 0;
	display: block;
	height: 36px;
	padding: 3px;
}

.tma-block-toolbar-wrap .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-icon,
.tma-block-toolbar-wrap .components-icon-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform {
	width: 42px;
	height: 30px;
	position: relative;
	margin: 0 auto;
	padding: 3px;
	display: flex;
	align-items: center;
}

.advanced-options .dashicons {
	color: #777;
}

.tadvmodule .the-button {
	margin: 0;
}

/* Fixes for inadequate css changes in 5.3 :( */
#tadvadmin .button,
#tadvadmin .button-primary {
	font-size: 14px;
	line-height: 1.7;
	padding: 2px 10px 3px;
}

span.small-info {
	font-weight: 400;
	font-size: 13px;
}
