@font-face {
    font-family: 'bold-builder';
    src:
        url('../../fonts/bold-builder.ttf?ysrbvss') format('truetype'),
        url('../../fonts/bold-builder.woff?ysrbvss') format('woff'),
        url('../../fonts/bold-builder.svg?ysrbvss#bold-builder') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Colors */
@set borderRadius 5px;
@set borderRadiusUp 5px 5px 0 0;
@set borderRadiusDown 0 0 5px 5px;
@set borderRadiusLeft 5px 0 0 5px;
@set borderRadiusRight 0 5px 5px 0;


/* Colors */
@set lightFontColor #222;
@set darkFontColor #fff;
@set accentColor #2196f3;
@set accentBright #38a1f4;
@set accentDark #0367B4;

@set alternateColor #ff7f00;
@set alternateBright #FFB918;
@set alternateDark #F9AD00;

@set contrastFontColor #fff;
@set paleBgColor #f2f8ff;
@set innerBorderColor #eee;
@set dragColor #d4e7f6;
@set iconCircle #b2b2b2;
@set orderCircle #bbb;
@set rowBorder #e0e0e0;
@set foldedColor #eee;

/* Mixins */

@mixin dialog-main {
	font-family: "Source Sans Pro", Arial, Helvetica, sans-serif !important;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 350px;
	background: $(darkFontColor);
	z-index: 99998;
	transform: translate3d(-100%, 0, 0);
	transition: transform .27s, box-shadow .27s, opacity .27s;
	pointer-events: none;
	opacity: 0;
}

@mixin dialog-main-open {
	transform: translate3d(0, 0, 0);
	box-shadow: 0 0 5rem 0;
	pointer-events: all;
	opacity: 1;
}

@mixin dialog-header {
	padding: 1em;
	font-size: 16px;
	line-height: 1.1;
	position: relative;
	display: flex;
	align-items: center;
	background: $(accentColor);
	color: $(contrastFontColor);
}

@mixin dialog-close {
	flex-basis: 2em;
	cursor: pointer;
	color: #fff;
	text-align: center;
	vertical-align: middle;
	border-radius: 50%;
	box-shadow: 0 0 0.8em 0.01em rgba(0,0,0,0.05);
	transition: background 300ms ease, box-shadow 300ms ease;
	padding-left: 1em;
}

@mixin dialog-bottom-mixin {
	all: initial; 
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	font-size: 13px;
	color: #777;
	border-top: 1px solid #ccc;
	display: flex;
	/* margin-right: 12px; */
}

.bt_bb_fe_wrap {
	position: relative;
	min-height: 60px;
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
	&:before {
		border-width: 2px;
		border-style: dashed;
		border-color: #0085ba;
		border-radius: $(borderRadius);
		bottom: 1em;
		content: "";
		display: block;
		left: 1em;
		position: absolute;
		right: 1em;
		top: 1em;
		z-index: 2;
		pointer-events: none;
		transition: 300ms ease opacity;
		.bt_bb_fe_preview_toggle & {
			opacity: 0;
		}
	}
	.bt_bb_fe_preview_toggle & {
		 min-height: auto;
	}
	/*body:not(.bt_bb_fe_preview_toggle) & .bt_bb_floating_image {
		pointer-events: none;
	}*/
}

.bt_bb_fe_count {
	position: absolute;
	z-index: 11000;
	top: .5em;
	left: .5em;
	text-align: center;
	width: 40px;
	height: 40px;
	color: $(darkFontColor);
	line-height: 40px;
	vertical-align: middle;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
	align-content: center;
	cursor: pointer;
    font: normal 16px/1 bold-builder;
    transition: all 270ms ease;
	pointer-events: initial;
	.rtl & {
		left: auto;
		right: 2.5em;
	}
    .bt_bb_fe_count_inner {
    	position: absolute;
		z-index: 4;
		border-radius: 50%;
		color: $(darkFontColor);
		width: 18px;
		height: 18px;	
		font-weight: 700;	
		line-height: 18px;
		font-size: 14px;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
		text-align: center;
		top: 0;
		right: 0;
		margin: -6px -6px 0 0;
		background-color: $(iconCircle);
		transition: all 270ms ease;
		.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
			left: 0;
			right: auto;
			margin-right: 0;
			margin-left: -6px;
		}
    }
	&:after {
		content: "";
		display: block;
		position: absolute;
		background: $(accentColor);
		box-shadow: 0 0 1em 0 rgb(0 0 0 / 20%);
		width: 40px;
		height: 40px;
		left: 0;
		top: 0;
		z-index: 3;
		border-radius: 50%;
	    transition: all 270ms ease;
	}
    &:before {
    	display: block;
    	line-height: 1;
		content: '\f142';
		font-family: FontAwesome;
		z-index: 4;
		padding: 1em 35px;
    }
    &:hover {
		&:after {
			background-color: $(alternateColor);
		}
    	.bt_bb_fe_count_inner {
			background-color: $(lightFontColor);
		}
    }
	.bt_bb_fe_preview_toggle & {
		opacity: 0;
		pointer-events: none;
	}
}

/* Preview toggler */
.bt_bb_fe_preview_toggler {
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	font-weight: normal;
	position: fixed;
	right: 50px;
	bottom: 50px;
	display: flex;
	text-align: center;
	background-color: $(accentColor);
	text-transform: capitalize;
	color: #fff;
	cursor: pointer;
	border-radius: 20px;
	border: none;
	font-size: 13px;
	line-height: 36px;
	height: auto;
	box-shadow: 0 0 0.75em 0 rgba(0,0,0,.2);
	padding: 0 16px 0 0;
	transition: all 270ms ease;
	height: 40px;
	overflow: hidden;
	opacity: .5;
	z-index: 100;
	align-items: center;
	&.bt_bb_fe_preview_toggler_footer {
		position: fixed;
		right: auto;
		left: 50px;
		bottom: 50px;
		opacity: 0;
		pointer-events: none;
		transition: opacity .27s;
		&:after {
			display: none;
		}
		&:before {
			content: "\e922";
			font-family: 'bold-builder';
		}
		&:hover {
			color: #fff;
		}
		.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
			left: auto;
			right: 50px;
		}
	}
	.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
		right: auto;
		left: 50px;
	}
	.rtl & {
		padding: 0 0 0 16px;
	}
	&:hover {
		opacity: 1;
		box-shadow: 0 0 1em 0 rgba(0,0,0,.2);
	}
	&:before {
		font-family: FontAwesome;
		content: "\f070";
		width: 40px;
		background: rgba(0,0,0,.1);
		line-height: 40px;
		opacity: .7;
		font-size: 18px;
		z-index: 1;
		margin-right: 10px;
		.rtl & {
			margin-left: 10px;
			margin-right: 0;
		}
	}
	.bt_bb_fe_preview_toggle &:not(.bt_bb_fe_preview_toggler_footer) {
		font-size: 0;
		opacity: .8;
		padding: 0;
		&:hover {
			opacity: 1;
		}
		&:before {
			content: "\f06e";
			opacity: 1;
			margin-right: 0 !important;
			margin-left: 0 !important;
		}
	}
}

.bt_bb_fe_show_preview_toggler_footer .bt_bb_fe_preview_toggler_footer {
	opacity: .5;
	pointer-events: all;
}

.bt_bb_fe_show_preview_toggler_footer .bt_bb_fe_preview_toggler_footer:hover {
	opacity: 1;
}

/* == FE editor 4.0.0 == */

body:not(.bt_bb_fe_preview_toggle) .bt_bb_wrapper:first-child .bt_bb_section *:not(.bt_bb_fe_edit_box):not(.bt_bb_fe_before) {
	pointer-events: none;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit_box,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_before {
	pointer-events: all !important; /* fix for some themes, e.g. kosa */
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit { /* bt_bb_icon fix */
	pointer-events: all !important; 
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit:not(.bt_bb_floating_image) { /* .bt_bb_floating_image is absolute (e.g. nifty theme) */
	position: relative;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit_box:not(.bt_bb_floating_image) {
	position: relative;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_editing_box:not(.bt_bb_floating_image) {
	position: relative;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit_box:hover {
	cursor: pointer;
}

.bt_bb_fe_before {
	content: '';
	position: absolute;
	top: -5px;
	bottom: -5px;
	left: -5px;
	right: -5px;
	width: auto;
	height: auto;
    visibility: visible;
	/* box-shadow: inset 0px 0px 0px 2px steelblue; */
	border: 2px dotted steelblue;
	opacity: .5;
	&:hover {
		background: lightblue;
	}
	.bt_bb_section > & {
		top: 0px;
		bottom: 0px;
		left: 0px;
		right: 0px;	
	}
	.bt_bb_fe_editing_box > & {
		top: 0px;
		bottom: 0px;
		left: 0px;
		right: 0px;	
	}
	/*.bt_bb_separator > &,
	.bt_bb_separator_v2  > & {
		top: 0px;
		bottom: 0px;
		left: 0px;
		right: 0px;	
	}*/
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_fe_editing_box > .bt_bb_fe_before {
	display: block;
}

/* fix: bt_bb_separator */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_separator.bt_bb_top_spacing_none.bt_bb_bottom_spacing_none.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_separator.bt_bb_top_spacing_none.bt_bb_bottom_spacing_none.bt_bb_fe_editing_box > .bt_bb_fe_before {
	min-height: 20px;
	top: -10px;
}

/* fix: bt_bb_separator_v2 */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_separator_v2.bt_bb_top_spacing_none.bt_bb_bottom_spacing_none.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_separator_v2.bt_bb_top_spacing_none.bt_bb_bottom_spacing_none.bt_bb_fe_editing_box > .bt_bb_fe_before {
	min-height: 20px;
	top: -10px;
}

body.logged-in.bt_bb_plugin_active:not(.bt_bb_fe_preview_toggle):not(.bt_bb_fe_preview_toggle) .bt_bb_separator_v2:before {
	position: absolute;
	top: -10px;
	bottom: -10px;
	left: 0px;
	right: 0px;
}

/* fix: bt_bb_slider */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_slider.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_slider.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 11;
}

/* fix: bt_bb_button */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_button.bt_bb_fe_edit_box .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_button.bt_bb_fe_editing_box .bt_bb_fe_before {
	z-index: 1;
}

/* fix: bt_bb_icon */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_icon.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_icon.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_icon.bt_bb_fe_edit > .bt_bb_icon_holder[data-ico-="&#x;"]:before {
    content: "-";
    color: red;
    font-family: FontAwesome;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_icon.bt_bb_fe_edit > .bt_bb_icon_holder {
    min-height: 10px;
}

/* fix: bt_bb_section */
/*body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}*/
/*body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}
body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_edit_box > .bt_bb_background_image_holder_wrapper,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_editing_box > .bt_bb_background_image_holder_wrapper {
	z-index: 0;
}
body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_edit_box > .bt_bb_port,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_section.bt_bb_fe_editing_box > .bt_bb_port {
	z-index: 2;
}*/

/* fix: bt_bb_headline override, e.g. kosa theme */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_headline.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_headline.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}

/* fix: bt_bb_image */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_image.bt_bb_fe_edit_box > .bt_bb_fe_before, 
body:not(.bt_bb_fe_preview_toggle) .bt_bb_image.bt_bb_fe_editing_box > .bt_bb_fe_before {
	/* fix: transform: scale3d */
	z-index: 1;
	/* fix: rounded images */
	border-radius: inherit;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_image.bt_bb_fe_edit {
    min-width: 2em;
    min-height: 2em;
}

/* fix: bt_bb_progress_bar */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_progress_bar.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_progress_bar.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}

/* fix: bt_bb_counter */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_counter_holder.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_counter_holder.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}

/* fix: bt_bb_video */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_video.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_video.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 4;
}

/* fix: bt_bb_masonry_image_grid */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_masonry_image_grid.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_masonry_image_grid.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 1;
}

body:not(.bt_bb_fe_preview_toggle) .bt_bb_masonry_image_grid.bt_bb_fe_edit {
    min-width: 2em;
    min-height: 2em;
}

/* fix: bt_bb_slider */

body:not(.bt_bb_fe_preview_toggle) .bt_bb_slider.bt_bb_fe_edit {
    min-width: 2em;
    min-height: 2em;
}

/* fix: video shortcode (and other shortcodes?) in bt_bb_text */
body:not(.bt_bb_fe_preview_toggle) .bt_bb_text.bt_bb_fe_edit_box > .bt_bb_fe_before,
body:not(.bt_bb_fe_preview_toggle) .bt_bb_text.bt_bb_fe_editing_box > .bt_bb_fe_before {
	z-index: 4;
}

#bt_bb_fe_dialog {
	@include dialog-main();
	.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
		left: auto;
		right: 0;
		transform: translate3d(100%, 0, 0);
	} 
	> div {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
	}
}

#bt_bb_fe_dialog_main {
	display: flex;
    flex-direction: column;
	z-index: 1;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: $(darkFontColor);
	.bt_bb_dialog_header {
		@include dialog-header();
		.bt_bb_dialog_close {
			@include dialog-close();
			&:after {
				background: $(accentDark);
				width: 2.667em;
				height: 2.667em;
				content: '\e900';
				font: normal 12px/2.667em bold-builder;
				display: block;
				border-radius: 50%;
				transition: background 300ms ease,box-shadow 300ms ease;
			}
			&:hover:after {
				background: $(alternateColor);
				box-shadow: 0 0 0.8em 0.01em rgba(0,0,0,0.25);
			}
		}
		#bt_bb_fe_dialog_switch {
			position: fixed;
			top: 4em;
			height: 8em;
			/* bottom: 4em; */
			left: 100%;
			right: -2em;
			transition: all 300ms ease;
			background: rgba(255,255,255,.75);
			color: $(lightFontColor);
			cursor: pointer;
			z-index: 0;
			padding: .5em;
			line-height: 1;
			text-align: center;
			display: flex;
			align-items: center;
			border-radius: 0 $(borderRadius) $(borderRadius) 0;
			.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
				right: auto;
				left: -2em;
				right: 100%;
				border-radius: $(borderRadius) 0 0 $(borderRadius);
				.fa {
					font-size: 18px;
					&:before {
						content: "\f100";
					}
				}
			}
			.fa {
				transition: transform 300ms ease;
				width: 1em;
				&:before {
					content: "\f101";
				}
			}
			&:hover {
				background: rgba(255,255,255,.9);
				padding: .5em .75em;
				right: -3em;
				.fa {
					transform: translateX(3px);
				}
				.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
					left: -3em;
				}
			}
		}
		.bt_bb_dialog_header_text {
			flex-basis: 100%;
		}
	}
	#bt_bb_fe_dialog_content {
		/* padding: 1rem; */
		overflow-y: auto;
		flex-grow: 1;
		border-bottom: 1px solid rgba(0,0,0,.05);
		padding-bottom: 1em;
		overscroll-behavior: contain;
	}
	#bt_bb_fe_dialog_tinymce_container {
		padding: 1rem;
		flex-grow: 100;
		border-bottom: 1px solid rgba(0,0,0,.05);
		display: none;
		.bt_bb_fe_tinymce_editor & {
			display: block;
		}
		button {
			font-family: "Source Sans Pro", Arial, Helvetica, sans-serif !important;
			background: #f0f0f1;
			color: #646970;
			text-transform: none;
			font-weight: normal;
			background-color: #f6f7f7;
		}
		textarea {
			background-color: #fff;
			color: #2c3338;
		}
	}
}

#bt_bb_fe_add_section_to_top, #bt_bb_fe_add_section_to_bottom, #bt_bb_fe_add_section_to_clipboard {
	cursor: pointer;
}

body.bt_bb_fe_dialog_on:not(.bt_bb_fe_preview_toggle) #bt_bb_fe_dialog {
	@include dialog-main-open();
}

.bt_bb_fe_tinymce_editor #bt_bb_fe_dialog_content {
	/* display: none; */
}

#qt_bt_bb_fe_dialog_tinymce_toolbar {
	display: none;
}

#bt_bb_fe_dialog_bottom {
	@include dialog-bottom-mixin();
	
}

/* Scrollbar styling */

#bt_bb_fe_dialog_main #bt_bb_fe_dialog_content::-webkit-scrollbar {
	background-color: rgba(0,0,0,0.1);
	width: 12px;
	&:hover {
		background-color: rgba(0,0,0,0.2);
	}
}
#bt_bb_fe_dialog_main #bt_bb_fe_dialog_content::-webkit-scrollbar-thumb {
	background-color: rgba(0,0,0,0.2);
	transition: background-color 200ms ease;
	cursor: pointer;
	&:hover {
		background-color: rgba(0,0,0,0.4);
	}
} 
#bt_bb_fe_dialog_main #bt_bb_fe_dialog_content::-webkit-scrollbar-button {
	display: none;
}

/* Add Section */

#bt_bb_fe_add_section {
	position: fixed;
    z-index: 100;
    right: 50px;
    bottom: 106px;
    transition: all 270ms ease;
	opacity: .5;
	.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
		right: auto;
		left: 50px;
	}
}

#bt_bb_fe_add_section:hover {
    opacity: 1;
}

.bt_bb_fe_preview_toggle #bt_bb_fe_add_section {
	opacity: 0;
	pointer-events: none;
}

#bt_bb_fe_add_section:before {
	content: attr(data-icon-code);
	font-family: FontAwesome;
	background: #12b800;
	color: $(darkFontColor);
	border-radius: 50%;
	font-size: 16px;
    width: 40px;
    height: 40px;
	cursor: pointer;
	display: flex;
    align-items: center;
    justify-content: center;
	box-shadow: 0 0 0.75em 0 rgb(0 0 0 / 20%);
}

#bt_bb_fe_add_section_dialog {
	@include dialog-main();
	display: flex;
	flex-direction: column;
	width: 800px;
	/* transform: translate3d(-100%, 0, 0); */
	.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
		left: auto;
		right: 0;
		transform: translate3d(100%, 0, 0);
	} 
	.bt_bb_add_section_header {
		@include dialog-header();
		.rtl & {
			text-align: right;
		}
		input[type="search"]#bt_bb_fe_add_section_search {
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
			box-shadow: 0 0 0 transparent;
			border-radius: $(borderRadius);
			border: 1px solid #8c8f94;
			background-color: #fff;
			color: #2c3338;
			min-height: 30px;
			width: 100%;
			max-width: 100%;
			height: 2.88em;
			display: block;
			margin: 0;
			margin-top: -.25em;
			margin-bottom: -.25em;
			padding: 0 1.1em;
			font-size: 13.2px;
			line-height: 1.15;
		}
		#bt_bb_fe_add_section_close {
			@include dialog-close();
			order: 3;
			&:after {
				background: $(accentDark);
				width: 2.667em;
				height: 2.667em;
				content: '\e900';
				font: normal 12px/2.667em bold-builder;
				display: block;
				border-radius: 50%;
				transition: background 300ms ease,box-shadow 300ms ease;
			}
			&:hover:after {
				background: $(alternateColor);
				box-shadow: 0 0 0.8em 0.01em rgba(0,0,0,0.25);
			}
		}
		#bt_bb_fe_add_section_switch {
			position: fixed;
			top: 4em;
			height: 6em;
			/* bottom: 4em; */
			left: 100%;
			right: -2em;
			transition: all 300ms ease;
			background: rgba(255,255,255,.75);
			color: $(lightFontColor);
			cursor: pointer;
			z-index: 0;
			padding: .5em;
			line-height: 1;
			text-align: center;
			display: flex;
			align-items: center;
			border-radius: 0 $(borderRadius) $(borderRadius) 0;
			.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
				right: auto;
				left: -2em;
				right: 100%;
				border-radius: $(borderRadius) 0 0 $(borderRadius);
				.fa {
					&:before {
						content: "\f100";
					}
				}
			}
			.fa {
				transition: transform 300ms ease;
				width: 1em;
				&:before {
					content: "\f101";
				}
			}
			&:hover {
				background: rgba(255,255,255,.9);
				padding: .5em .75em;
				right: -3em;
				.fa {
					transform: translateX(3px);
				}
				.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
					left: -3em;
				}
			}
		}
		.bt_bb_add_section_header_text {
			flex-basis: 100%;
		}
	}
	#bt_bb_add_section_iframe_parent {
		flex-grow: 1;
		border-bottom: 1px solid rgba(0,0,0,.05);
		height: 100%;
	}

	#bt_bb_add_section_iframe_parent iframe {
		border: none;
		transform-origin: 0 0;
		transform: scale(0.4);
		width: 250%;
		height: 250%;
		max-width: none; /* override 2017 theme */
		margin: 0; /* override 2017 theme */
	}
}

.bt_bb_fe_add_section_toggle #bt_bb_fe_add_section_dialog {
	@include dialog-main-open();
	.rtl:not(.bt_bb_fe_dialog_switch_side)&, .bt_bb_fe_dialog_switch_side:not(.rtl)& {
		transform: translate3d(0, 0, 0);
	} 
}

@media only screen and (max-width: 900px) {
	#bt_bb_fe_add_section_dialog {
		width: auto;
	}
}

.bt_bb_fe_add_section_toggle #bt_bb_fe_add_section_dialog {
	opacity: 1;
	pointer-events: all;
}

/* Add section button*/

body.bt_bb_fe_add_section {
	background: #fff !important;
}

body.bt_bb_fe_add_section:before {
	display: none !important; /* override 2017 theme */
}

body.bt_bb_fe_add_section:after {
	display: none !important; /* override 2017 theme */
}

body.bt_bb_fe_add_section {
	section.bt_bb_section:hover:after, section.bt_bb_fe_add_section_selected:after {
		background: lightblue;
		opacity: .5;
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		cursor: pointer;
		z-index: 10;
	}

	/* Works on Chrome, Edge, and Safari */
	&::-webkit-scrollbar {
	  width: 40px;
	}

	&::-webkit-scrollbar-track {
	  background: lightgray;
	}

	&::-webkit-scrollbar-thumb {
	  background-color: gray;
	  /* border-radius: 20px; */
	  border: 3px solid lightgray;
	}/**/
	
	.bt_bb_fe_count {
		display: none;
	}
}

#bt_bb_fe_add_section_bottom > div {
	opacity: .5;
	background: #2196f3;
	pointer-events: none;
	display: inline-block;
	margin-left: .5em;    
	margin-right: .5em;    
	padding: .95em 1.25em;
    color: #fff;
	box-shadow: 0 0 0.75em 0 rgb(0 0 0 / 20%);
    transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
    border-radius: $(borderRadius);
	&:hover {
		box-shadow: 0 0 1em 0 rgb(0 0 0 / 20%);
		background: #0367B4;
	}
	span {
		line-height: 1.4;
	}
}

#bt_bb_fe_add_section_bottom > div i {
	margin-right: 0.5em;
}

#bt_bb_fe_add_section_bottom {
	@include dialog-bottom-mixin();
    text-align: center;
}

.bt_bb_fe_add_section_selected_body #bt_bb_fe_add_section_bottom > div {
	opacity: 1;
	pointer-events: all;
}
    
/* Add Section ] */

#bt_bb_fe_save {
	display: block;
	position: fixed;
    right: 50px;
	transform: translate3d(90px, 0, 0);
    bottom: 50px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	z-index: 100;
	background: red;
	box-shadow: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 270ms;    
	text-align: center;
    color: $(darkFontColor);
	.rtl:not(.bt_bb_fe_dialog_switch_side) &, .bt_bb_fe_dialog_switch_side:not(.rtl) & {
		right: auto;
		left: 50px;
		transform: translate3d(-90px,0,0);
	}
	&:hover {
		animation: pulse-animation 1s infinite;
	}
	&:before {
		font-family: bold-builder;
		content: "\e928";
	}
	.bt_bb_fe_save_on & {
		transform: translate3d(0, 0, 0);
		box-shadow: 0 0 0.75em 0 rgb(0 0 0 / 20%);
		.rtl:not(.bt_bb_fe_dialog_switch_side)&, .bt_bb_fe_dialog_switch_side:not(.rtl)& {
			transform: translate3d(0px,0,0);
		}
	}
	.bt_bb_fe_saving & {
		animation: pulse-animation 1s infinite;
	}
}

.bt_bb_fe_save_on #bt_bb_fe_preview_toggler {
	transform: translate3d(-56px, 0, 0);
	.rtl:not(.bt_bb_fe_dialog_switch_side)&, .bt_bb_fe_dialog_switch_side:not(.rtl)& {
		transform: translate3d(56px, 0, 0);
	}
}
@keyframes pulse-animation {
	0% {
		box-shadow: inset 0 0 0 0px rgba(0, 0, 0, 0.3), 0 0 0.75em 0 rgb(0 0 0 / 20%);
	}
	100% {
		box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0), 0 0 0.75em 0 rgb(0 0 0 / 20%);

	}
}

#bt_bb_fe_init_mouseover {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.bt_bb_fe_count {
	/* New style dropdown */
	/*
	> ul {
		all: initial;
		display: block;
		list-style: none;
		padding: 0;
		margin: 0 !important;
		position: absolute;
		top: 0;
		left: 20px;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
		font-size: 17.25px;
		opacity: 0;
		pointer-events: none;
		transition: 200ms opacity ease;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		z-index: 0;
		height: 40px;
		padding: 0 15px 0 35px;
		background: #FFF;
		box-shadow: 0 0 0.9em rgb(0 0 0 / 55%);
		border-radius: 4px;
		align-items: center;
		.rtl & {
			left: auto;
			right: 20px;
			padding: 0 45px 0 15px;
		}
		ul {
			display: none;
		}
		li {
			display: flex;
			white-space: nowrap;
			position: relative;
			padding: 0;
			margin: 0;
			transition: 270ms ease all;
			&:hover {
				color: $(accentColor);
			}
			&.bt_bb_element_menu_delete_parent:hover {
				color: #cf0700;
			}
			span {
				font-size: 0;
				display: block;
				cursor: pointer;
				display: inline-flex;
				&:before {
					content: ' ';
					display: block;
					position: relative;
					float: left;
					height: 23px;
					width: 1px;
					background-color: rgba(0,0,0,0.1);
					margin: -3px 9px -27px 9px;
				}
				&:after {
					font-family: bold-builder;
					font-size: 17.25px;
				}
				&.bt_bb_element_menu_edit:before {
					display: none;
				}
				&.bt_bb_element_menu_edit:after {
					content: '\e92b';
				}
				&.bt_bb_element_menu_edit_be:after {
					content: '\e933';
				}
				&.bt_bb_element_menu_cut:after {
					content: '\e92c';
				}
				&.bt_bb_element_menu_copy:after {
					content: '\e92d';
				}
				&.bt_bb_element_menu_paste:after {
					content: '\e931';
				}
				&.bt_bb_element_menu_delete:after {
					content: '\e94c';
				}
			}
		}
	}
	&:hover > ul {
		opacity: 1;
		pointer-events: initial;
	}
	*/
	/* Old style dropdown */
	> ul {
		all: initial;
		display: block;
		box-shadow: 0 0 1em 0 rgb(0 0 0 / 20%);
		margin: 0 !important;
		position: absolute;
		/* top: 100%; */
		/* left: 0; */
		top: 5px;
		left: 55px;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
		font-size: 13px;
		opacity: 0;
		pointer-events: none;
		transform: translateX(-20px);
		transition: 270ms transform ease, 270ms opacity ease;
		z-index: 4;
		&:before {
			content: "";
			display: block;
			position: absolute;
			border-left: 8px solid transparent;
			border-right: 8px solid transparent;
			border-bottom: 8px solid #FFF;
			/* top: -8px; */
			/* left: 12px; */
			top: 11px;
			left: -12px;
			transform: rotate(-90deg);
		}
		&:after {
			content: "";
			display: block;
			position: absolute;
			left: 0;
			right: 0;
			top: -8px;
			height: 8px;
			background: transparent;
		}
		.rtl & {
			/* left: auto; */
			/* right: 0; */
			left: auto;
			right: 55px;
			&:before {
				left: auto;
				right: -12px;
				transform: rotate(90deg);
			}
		}
		li {
			display: block;
			white-space: nowrap;
			position: relative;
			background: #fff;
			color: #000;  
			padding: 0;
			margin: 0;
			transition: 270ms ease all;
			&:not(:last-child) {
				&:after {
					display: block;
					content: "";
					border-bottom: 1px solid rgba(0,0,0,.07);	
					margin-left: .6em;
					margin-right: .6em;
				}
			}
			&:hover {
				background: $(accentColor);
				color: $(darkFontColor);
				&:after {
					opacity: 0;
				}
			}
			&.bt_bb_element_menu_delete_parent:hover {
				background: #cf0700;
				color: $(darkFontColor);
			}
			span {
				padding: .6em .8em;
				display: block;
				cursor: pointer;
				&:before {
					font-family: bold-builder;
					margin-right: 5px;
				}
				&.bt_bb_element_menu_edit:before {
					content: '\e92b';
				}
				&.bt_bb_element_menu_edit_be:before {
					content: '\e933';
				}
				&.bt_bb_element_menu_cut:before {
					content: '\e92c';
				}
				&.bt_bb_element_menu_copy:before {
					content: '\e92d';
				}
				&.bt_bb_element_menu_paste:before {
					content: '\e931';
				}
				&.bt_bb_element_menu_delete:before {
					content: '\e94c';
				}
			}
			ul {
				position: absolute;
				left: 100%;
				top: 0;
				display: block;
				margin: 0;
				padding: 0;    
				box-shadow: 0 0 1em 0 rgb(0 0 0 / 20%);
				pointer-events: none;
				opacity: 0;
				transition: 270ms opacity ease;
				.rtl & {
					left: auto;
					right: 100%;
				}
			}
			&:hover > ul {
				opacity: 1;
				pointer-events: initial;
			}
		}
	}
	&:hover > ul {
		opacity: 1;
		pointer-events: initial;
		transform: translateX(0);
	}
}

.bt_bb_element_menu_h {
	display: inline-flex!important;
}

.bt_bb_disable {
	pointer-events: none;
	span {
		opacity: .5;
	}
}

/* Reset WP modals */

/*.media-modal-content * {
	all: initial;
	* {
		all: unset;
	}
}*/

.media-modal-content {
	:any(*, h1, h2, h3, h4) {
		font-weight: initial;
		font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
		letter-spacing: inherit;
		line-height: initial;
		font-size: inherit;
		text-transform: inherit;
		color: inherit;
		border: initial;
		margin: initial;
		padding: initial;
		height: initial;
		text-decoration: initial;
	}
	:any(h1, h2, h3, h4) {
		font-weight: 600;
	}
	.search-form {
		display: block;
	}
	:any(input, input:not([type='checkbox']):not([type='radio'])){
		height: initial;
	}
	.media-attachments-filter-heading {
		font-size: 13px;
		line-height: 1;
	}
	#media-attachment-date-filters {
		font-size: 14px;
		line-height: 2;
		color: #2c3338;
		border-color: #8c8f94;
		box-shadow: none;
		border-radius: $(borderRadius);
		padding: 0 24px 0 8px;
		display: inline-block;
		background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;
		background-size: 16px 16px;
		cursor: pointer;
	}
	.attachment-info * {
		line-height: 1.5;
	}
	img {
		height: initial;
		max-width: initial;
	}
	input[type="text"]:focus, input[type="search"]:focus {
		border-color: #3582c4 !important;
		box-shadow: 0 0 0 1px #3582c4 !important;
		outline: 2px solid transparent !important;
		border-width: 1px !important;
	}
}

.media-modal  {
	button.media-modal-close {
		text-decoration: initial;
	}
}



/* FE - Tabs
----------------------------------------------------------------------------- */
.bt_bb_dialog_header_tools {
	display: flex;
	align-items: center;
	&:has(.bt_bb_group_tab.bt_bb_group_tab_active:only-child) {
		background: $(accentBright);
	}
	.bt_bb_group_tab {
		font-size: 11px;
		text-transform: uppercase;
		padding: 0.85em 1em;
		position: relative;
		text-align: center;
		flex: auto;
		color: $(darkFontColor);
		background: $(accentBright);
		cursor: pointer;
		transition: all 300ms ease 0s;
		max-height: 3em;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		&:hover:not(.bt_bb_group_tab_active) {
			background: #70bbf5;
		}
		&.bt_bb_group_tab_active {
			text-overflow: ellipsis;
			width: auto;
			box-shadow: none;
			color: $(lightFontColor);
			background: $(darkFontColor);
			border-top-left-radius: $(borderRadius);
			border-top-right-radius: $(borderRadius);
			z-index: 10;
			transform: translateY(-5px);
			transition: 0.4s ease-out;
			&:before {
				transform: translate(-50%,-50%) scale(1);
				width: 30%;
			}
			&:only-child {
				max-width: 10em;
				transform: none;
				margin-top: -5px;
			}
		}
		/* Line */
		&:before {
			content: ' ';
			display: block;
			position: absolute;
			right: 0;
			bottom: 0;
			left: 50%;
			transform: translate(-50%,-50%) scale(0);
			height: 0.1rem;
			width: 0;
			background-color: $(alternateColor);
			transition: all 300ms ease;
			transform: scale(0);
		}
	}
}