/*
	Backend CSS for Block Editor

    Created on : 15.10.2018, 15:32:20
    Author     : günter
*/

body.block-editor-page.avia-advanced-editor-enabled.avia-wp54-fix .block-editor-editor-skeleton__content,
body.block-editor-page.avia-advanced-editor-enabled.avia-wp55-fix .interface-interface-skeleton__content {
	position: relative;
}

body.block-editor-page .edit-post-meta-boxes-area #avia_alb_actions {
	display: none;
}

body.block-editor-page .edit-post-header__settings .avia-builder-button {
	margin: 0 10px 0 3px;
}

body.block-editor-page #avia_alb_actions h2:hover {
	cursor: pointer;
}

body.block-editor-page #avia_builder #postdivrich_wrap_builder_meta {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled .edit-post-visual-editor {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled .edit-post-header .edit-post-header-toolbar {
	visibility: hidden;
}

body.block-editor-page.avia-advanced-editor-enabled .components-popover.nux-dot-tip {
	display: none;
}

body.block-editor-page #normal-sortables .postbox:last-child {
	margin-bottom: 0;
}

body.block-editor-page.avia-advanced-editor-enabled #normal-sortables .postbox#avia_builder:first-child {
	margin-top: 0;
	width: 100%;
	padding-bottom: 24px;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_builder #post-body-content {
	width: 100%;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_builder .avia-builder-main-wrap {
	width: 100%;
}

body.block-editor-page.avia-advanced-editor-enabled .avia-template-save-button-container {
	bottom: 16px;
	right: 25px;
}

/*
 * The metabox area is a scroll container that the block editor lays out with no height of its own,
 * so the builder inside it would be clipped to nothing. Taking it out of the flow lets it size to
 * the builder instead. Nothing to do with fullscreen - avia-block-editor-expand is on every block
 * editor page.
 */
body.block-editor-page.avia-advanced-editor-enabled.avia-block-editor-expand .edit-post-layout__metaboxes {
	position: absolute;
	width: 100%;
}

/*
 * The sidebar used to be compensated for here with a hardcoded width. It no longer has to be:
 * the bar is positioned against .edit-post-meta-boxes-main, whose own width already excludes the
 * settings sidebar. The rules that did it keyed off .is-sidebar-opened, a class current WordPress
 * no longer renders, so they had stopped applying anyway.
 * https://kriesi.at/support/topic/enfold-5-6-8-block-editor-cannot-open-sidebar-settings-with-avia-active/
 */

body.block-editor-page.avia-advanced-editor-enabled.avia-block-editor-expand .avia-template-save-button-container {
	right: -12px;
}

body.block-editor-page.avia-advanced-editor-enabled.avia-block-editor-expand .edit-post-text-editor {
	display: none;
}

body.block-editor-page #avia_builder #post-body-content {
	height: 40px;
}

body.block-editor-page #avia_builder #post-body-content {
	position: relative;
	z-index: 100;
}

body.block-editor-page #avia_builder .avia_inner_shortcode textarea {
	display: none;
}

body.block-editor-page .edit-post-meta-boxes-area #avia_alb_actions .av-metabox-no-editing,
body.block-editor-page.avia-advanced-editor-enabled .edit-post-meta-boxes-area #avia_alb_actions .av-metabox-no-editing {
	display: none;
}

/* hide gutenberg elements when editing the pretty permalink */
body.block-editor-page.avia-edit-permalink .edit-post-layout .editor-block-list__layout,
body.block-editor-page.avia-edit-permalink .edit-post-layout .editor-writing-flow__click-redirect {
	display: none;
}

body.block-editor-page.avia-edit-permalink .edit-post-header .edit-post-header-toolbar {
	visibility: hidden;
}


/* improve visual appearance in backend. added 4.5.1 by kriesi */
body.block-editor-page.avia-advanced-editor-enabled #poststuff #avia_builder .hndle {
	box-sizing: content-box;
}

body.block-editor-page.avia-advanced-editor-enabled #poststuff #avia_builder .hndle span {
	font-size: 20px;
	font-weight: normal;
}

body.block-editor-page.avia-advanced-editor-enabled .edit-post-layout__content .edit-post-visual-editor+.edit-post-layout__metaboxes {
	border-top: none;
	margin-top: -10px;
}

body.block-editor-page.avia-advanced-editor-enabled #poststuff #avia_builder.postbox .handlediv {
	height: 55px;
}

body.block-editor-page.avia-advanced-editor-enabled .avia_meta_box.avia_meta_box_visual_editor {
	margin: 32px 0px;
}

body.block-editor-page.avia-advanced-editor-enabled .avia_meta_box #titlediv #title-prompt-text {
	padding: 4px 10px;
}

body.block-editor-page.avia-advanced-editor-enabled .avia_layout_builder,
body.block-editor-page.avia-advanced-editor-enabled .avia-controll-bar {
	box-sizing: border-box;
	left: 0;
}

body.block-editor-page.avia-advanced-editor-enabled .avia-controll-bar {
	height: 32px;
	line-height: 32px;
}

body.block-editor-page.avia-advanced-editor-enabled div#titlewrap+.inside {
	padding: 3px 0;
	border: none;
	margin: 0;
}

body.block-editor-page.avia-advanced-editor-enabled div#titlewrap input {
	border-color: #dadada;
}

body.block-editor-page.avia-advanced-editor-enabled div#titlewrap+.inside #edit-slug-box {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled .avia-hotkey-info {
	top: 68px;
	right: 25px;
}

body.block-editor-page.avia-advanced-editor-enabled #avia-sort-list-dropdown {
	top: 61px;
	right: 55px;
}

body.block-editor-page.avia-advanced-editor-enabled .edit-post-sidebar__panel-tab[data-label="Block"] {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled .avia_sorthandle {
	box-sizing: content-box;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_builder>.inside {
	border: none;
}

body.block-editor-page.avia-advanced-editor-enabled .edit-post-layout .interface-interface-skeleton__content {
	background: #e6e6e6;
}

body.block-editor-page.avia-advanced-editor-enabled .interface-interface-skeleton__content #avia_builder .postbox-header .handle-actions {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_builder .postbox-header,
body.block-editor-page.avia-advanced-editor-enabled #avia_sc_parser .postbox-header {
	border-bottom: 1px solid #e2e2e2;
	padding: 15px 0;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_sc_parser .postbox-header {
	padding: 5px 0;
}

body.block-editor-page.avia-advanced-editor-enabled #avia_builder>.inside {
	display: block;
}

body.block-editor-page.avia-advanced-editor-enabled .postbox-header .handle-order-higher,
body.block-editor-page.avia-advanced-editor-enabled .postbox-header .handle-order-lower {
	display: none;
}

body.block-editor-page.avia-advanced-editor-enabled .postbox-header .handlediv:focus {
	box-shadow: none;
}

.components-editor-notices__dismissible, .components-editor-notices__pinned {
	z-index: 20000;
}


/* WP v3 block support  v3 adds iframe except blocks < v3 are registered (like Layerslider uses)
 *
 *  @since 6.0.7
 */
body.block-editor-page.avia-block-editor-expand.av-block-v3 .edit-post-meta-boxes-main {
	overflow: unset;
	padding-top: 0;
}

body.block-editor-page.av-block-v3.avia-advanced-editor-enabled .edit-post-meta-boxes-main__presenter{
	display: none;
}

body.block-editor-page.av-block-v3.avia-advanced-editor-enabled .edit-post-visual-editor.is-iframed{
	display: none;
}

body.block-editor-page.av-block-v3.wp-default-editor-enabled .edit-post-visual-editor.is-iframed{
	min-height: 900px;	/* this is only a dummy value - should show complete content if possible */
}

body.block-editor-page.av-block-v3.wp-default-editor-enabled #avia_sc_parser{
	margin-top: 24px;
}

