/* Frontend BM editor shell — FAB + sidebar + hover chrome */

.bm-fe-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #3525cd;
	color: #fff;
	box-shadow: 0 8px 24px rgba(19, 27, 46, 0.28);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bm-fe-fab:hover {
	background: #2a1ca8;
	transform: translateY(-1px);
}

.bm-fe-fab.is-active {
	background: #131b2e;
}

.bm-fe-fab .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 1;
}

/* wpLink modal above FE shell (99999). */
html.bm-fe-editing #wp-link-backdrop {
	z-index: 160000 !important;
}

html.bm-fe-editing #wp-link-wrap {
	z-index: 160001 !important;
}

.bm-fe-shell {
	position: fixed;
	top: 32px;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: min(420px, 100vw);
	background: #faf8ff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	/* Shared with body bottom padding so scroll content clears the save bar. */
	--bm-fe-shell-pad-x: 20px;
	--bm-fe-footer-height: 3.75rem;
}

/* Page inset while the docked panel is maximized (not minimized / popout). */
html.bm-fe-editing {
	--bm-fe-panel-width: 420px;
}

html.bm-fe-editing.bm-fe-panel-open {
	box-sizing: border-box;
	width: 100%;
	overflow-x: clip;
	transition:
		padding-left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
		padding-right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 783px) {
	html.bm-fe-editing.bm-fe-panel-open.bm-fe-panel-dock-right {
		padding-right: var(--bm-fe-panel-width);
	}

	html.bm-fe-editing.bm-fe-panel-open.bm-fe-panel-dock-left {
		padding-left: var(--bm-fe-panel-width);
	}
}

@media (prefers-reduced-motion: reduce) {
	html.bm-fe-editing.bm-fe-panel-open {
		transition: none;
	}
}

.bm-fe-shell--dock-right {
	right: 0;
	left: auto;
	border-left: 1px solid #c7c4d8;
	border-right: none;
	box-shadow: -8px 0 28px rgba(19, 27, 46, 0.12);
}

.bm-fe-shell--dock-left {
	left: 0;
	right: auto;
	border-right: 1px solid #c7c4d8;
	border-left: none;
	box-shadow: 8px 0 28px rgba(19, 27, 46, 0.12);
}

.bm-fe-shell--popout,
body.admin-bar .bm-fe-shell--popout {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: none;
	box-shadow: none;
}

.bm-fe-shell--popout .bm-fe-shell__body {
	flex: 1 1 auto;
	min-height: 0;
}

.bm-fe-popout-body,
.bm-fe-popout-html,
.bm-fe-popout-root {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #faf8ff;
}

.bm-fe-popout-bar {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 10px 14px;
	border: 1px solid #c7c4d8;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(19, 27, 46, 0.18);
	transform: translateX(-50%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bm-fe-popout-bar__text {
	font-size: 13px;
	font-weight: 600;
	color: #131b2e;
}

.bm-fe-popout-bar__actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.admin-bar .bm-fe-popout-bar {
	bottom: 28px;
}

.bm-fe-shell.is-minimized {
	top: auto;
	bottom: 0;
	height: auto;
	max-height: none;
}

body.admin-bar .bm-fe-shell {
	top: 46px;
}

body.admin-bar .bm-fe-shell.is-minimized {
	top: auto;
}

@media screen and (max-width: 782px) {
	body.admin-bar .bm-fe-shell {
		top: 46px;
	}

	body.admin-bar .bm-fe-shell.is-minimized {
		top: auto;
	}
}

.bm-fe-shell--hint {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.bm-fe-shell--hint .bm-fe-shell__body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 22px;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(53, 37, 205, 0.08), transparent 55%),
		#faf8ff;
}

.bm-fe-hint {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 22px;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	padding: 22px 20px 24px;
	border: 1px solid #e2e7ff;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(19, 27, 46, 0.08);
}

.bm-fe-hint__pointer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
}

.bm-fe-hint__hand-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	filter: drop-shadow(0 10px 18px rgba(53, 37, 205, 0.16));
}

.bm-fe-hint--point-left .bm-fe-hint__hand-wrap {
	animation: bm-fe-hint-nudge-left 1.7s ease-in-out infinite;
}

.bm-fe-hint--point-right .bm-fe-hint__hand-wrap {
	animation: bm-fe-hint-nudge-right 1.7s ease-in-out infinite;
}

.bm-fe-hint__hand {
	display: block;
	width: 88px;
	height: 88px;
	flex-shrink: 0;
	transform-origin: center;
}

/* SVG points left by default; flip when the panel is on the left. */
.bm-fe-hint--point-right .bm-fe-hint__hand {
	transform: scaleX(-1);
}

.bm-fe-hint__copy {
	text-align: center;
}

.bm-fe-hint__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #3525cd;
}

.bm-fe-hint__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #131b2e;
}

.bm-fe-hint__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #50575e;
}

@keyframes bm-fe-hint-nudge-left {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-10px);
	}
}

@keyframes bm-fe-hint-nudge-right {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bm-fe-hint__hand-wrap {
		animation: none !important;
	}
}

.bm-fe-shell__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px 10px 16px;
	border-bottom: 1px solid #e2e7ff;
	background: #fff;
	flex-shrink: 0;
}

.bm-fe-shell__title {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	color: #131b2e;
}

.bm-fe-shell__logo {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 6px;
	object-fit: contain;
	background: #fff;
}

.bm-fe-shell__title-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bm-fe-shell__tools {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;

	.bm-gutenberg-seg-btn {
		width: 30px;
		height: 30px;
		padding: 0;
		border-radius: 6px;

		.dashicons {
			font-size: 18px;
			width: 18px;
			height: 18px;
		}
	}
}

.bm-fe-shell__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #50575e;
	cursor: pointer;
}

.bm-fe-shell__tool:hover {
	background: #f2f3ff;
	color: #131b2e;
}

.bm-fe-shell__tool.is-active {
	background: #ebe8ff;
	color: #3525cd;
}

.bm-fe-shell__tool .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

/* Compact dock left/right menu — do not inherit panel width. */
.bm-fe-shell__dock-dropdown {
	display: inline-flex;
}

.bm-fe-shell__dock-menu.components-popover,
.components-popover.bm-fe-shell__dock-menu {
	z-index: 1000100;
}

.bm-fe-shell__dock-menu .components-popover__content,
.bm-fe-shell__dock-menu.components-dropdown__content,
.components-dropdown__content.bm-fe-shell__dock-menu {
	min-width: 0 !important;
	width: auto !important;
	max-width: 140px;
	padding: 4px;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(19, 27, 46, 0.16);
}

.bm-fe-shell__dock-menu-inner {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 108px;
	width: max-content;
	max-width: 132px;
}

.bm-fe-shell__dock-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 6px 10px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #131b2e;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
}

.bm-fe-shell__dock-option .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	flex-shrink: 0;
	color: #50575e;
}

.bm-fe-shell__dock-option:hover {
	background: #f2f3ff;
}

.bm-fe-shell__dock-option.is-active {
	background: #ebe8ff;
	color: #3525cd;
}

.bm-fe-shell__dock-option.is-active .dashicons {
	color: #3525cd;
}

.bm-fe-shell__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 12px var(--bm-fe-shell-pad-x, 20px) 24px;
	box-sizing: border-box;
	/* Sticky Design breakpoint bar uses --bm-ed-surface from inspector chrome. */
	--bm-ed-surface: #faf8ff;
}

/*
 * Same element also carries .bm-gutenberg-inspector-tabs, whose Gutenberg rules
 * set padding: 4px 0 16px and wipe L/R. Re-assert FE shell gutters + footer clearance.
 */
.bm-fe-shell__body.bm-gutenberg-inspector-tabs {
	padding: 12px var(--bm-fe-shell-pad-x, 20px) var(--bm-fe-footer-height, 3.75rem);
}

.bm-fe-shell__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-height: var(--bm-fe-footer-height, 3.75rem);
	padding: 12px var(--bm-fe-shell-pad-x, 20px);
	border-top: 1px solid #e2e7ff;
	background: #fff;
	flex-shrink: 0;
	box-sizing: border-box;
}

.bm-fe-shell.is-minimized .bm-fe-shell__footer {
	border-top: none;
	box-shadow: 0 -6px 20px rgba(19, 27, 46, 0.1);
}

.bm-fe-shell.is-minimized .bm-fe-shell__title {
	margin-right: auto;
}

.bm-fe-shell__footer .bm-fe-shell__tools {
	margin-right: 0;
}

.bm-fe-shell.is-minimized .bm-fe-shell__footer .bm-fe-shell__tools {
	margin-right: 0;
}

.bm-fe-shell__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.bm-fe-shell__status {
	margin-right: auto;
	font-size: 12px;
	color: #2e7d32;
}

.bm-fe-shell__footer .bm-fe-shell__status {
	margin-right: 0;
	margin-left: auto;
}

/* Edit-mode hover / selection (BM wrappers only) */
html.bm-fe-editing [data-bm-edit='1'] {
	cursor: pointer;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.12s ease;
}

/* Device preview: shrink page body without resizing the browser window. */
html.bm-fe-editing.bm-fe-viewport-tablet,
html.bm-fe-editing.bm-fe-viewport-mobile {
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(53, 37, 205, 0.06), transparent 50%),
		#d9dce8;
	/*
	 * Real @media never fires while the browser window stays wide, so desktop
	 * root-padding would leave huge gutters inside a 480/1024 body. Match
	 * typical theme.json mobile/tablet padding for the preview.
	 */
	--wp--style--root--padding-left: 1.25rem;
	--wp--style--root--padding-right: 1.25rem;
}

html.bm-fe-editing.bm-fe-viewport-mobile {
	--wp--style--root--padding-left: 1rem;
	--wp--style--root--padding-right: 1rem;
}

html.bm-fe-editing.bm-fe-viewport-tablet body,
html.bm-fe-editing.bm-fe-viewport-mobile body {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--bm-fe-viewport-max, 100%);
	margin-left: auto;
	margin-right: auto;
	min-height: 100vh;
	background: #fff;
	overflow-x: clip;
	box-shadow:
		0 0 0 1px rgba(19, 27, 46, 0.08),
		0 18px 48px rgba(19, 27, 46, 0.14);
	transition: max-width 0.28s cubic-bezier(0.2, 0, 0, 1);
}

html.bm-fe-editing.bm-fe-viewport-desktop body {
	max-width: none;
	box-shadow: none;
	transition: max-width 0.28s cubic-bezier(0.2, 0, 0, 1);
}

/*
 * 100vw breakouts escape the simulated body (vw = real window). During device
 * preview, keep top-level BM full/wide inside the framed body instead.
 */
html.bm-fe-editing.bm-fe-viewport-tablet .wp-site-blocks:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-site-blocks:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-tablet .entry-content:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-tablet .entry-content:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-block-post-content:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-block-post-content:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-site-blocks:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-site-blocks:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .entry-content:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .entry-content:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-block-post-content:not(.has-global-padding) > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-block-post-content:not(.has-global-padding) > [class*='wp-block-joc-blockora-morph-'].alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/*
 * On a phone/tablet frame, Wide ≈ full content width. Still sits inside theme
 * root padding (same as core) — use Full width alignment to bleed edge-to-edge.
 */
html.bm-fe-editing.bm-fe-viewport-tablet .wp-site-blocks > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-site-blocks > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .entry-content > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .entry-content > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-block-post-content > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .wp-block-post-content > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-tablet .joc-blockora-morph-content.alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-site-blocks > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-site-blocks > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .entry-content > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .entry-content > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-block-post-content > .wp-block[class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .wp-block-post-content > [class*='wp-block-joc-blockora-morph-'].alignwide,
html.bm-fe-editing.bm-fe-viewport-mobile .joc-blockora-morph-content.alignwide {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

html.bm-fe-editing [data-bm-edit='1']:hover {
	outline-color: rgba(53, 37, 205, 0.45);
}

html.bm-fe-editing [data-bm-edit='1'].is-bm-fe-selected {
	outline-color: #3525cd;
}

html.bm-fe-editing [data-bm-el][data-bm-styleable='true'],
html.bm-fe-editing .bm-card[data-bm-card-index][data-bm-styleable='true'],
html.bm-fe-editing .bm-pricing__card[data-bm-card-index][data-bm-styleable='true'] {
	cursor: pointer;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.12s ease;
}

html.bm-fe-editing [data-bm-el][data-bm-styleable='true']:hover,
html.bm-fe-editing .bm-card[data-bm-card-index][data-bm-styleable='true']:hover,
html.bm-fe-editing .bm-pricing__card[data-bm-card-index][data-bm-styleable='true']:hover {
	outline-color: rgba(53, 37, 205, 0.45);
}

html.bm-fe-editing [data-bm-el][data-bm-selected='true'],
html.bm-fe-editing .bm-card[data-bm-card-index][data-bm-selected='true'],
html.bm-fe-editing .bm-pricing__card[data-bm-card-index][data-bm-selected='true'] {
	outline-color: transparent;
	box-shadow: none;
}

html.bm-fe-editing [data-bm-content-edit='1'],
html.bm-fe-editing .bm-preview-content-edit {
	cursor: text !important;
	outline: 2px solid rgba(53, 37, 205, 0.55) !important;
	outline-offset: 2px;
	min-width: 0.5ch;
}

html.bm-fe-editing [data-bm-content-edit='1']:focus,
html.bm-fe-editing .bm-preview-content-edit:focus {
	outline-color: rgba(53, 37, 205, 0.9) !important;
}

html.bm-fe-editing .bm-el-chrome--float {
	pointer-events: none !important;
	z-index: 9999 !important;
}

html.bm-fe-editing .bm-el-hit {
	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	line-height: 0;
}

html.bm-fe-editing .bm-media-frame,
html.bm-fe-editing .bm-el-hit--media {
	margin-left: var(--bm-mf-media-margin-start, var(--bm-media-margin-inline-start, 0));
	margin-right: var(--bm-mf-media-margin-end, var(--bm-media-margin-inline-end, 0));
}

html.bm-fe-editing .bm-el-hit > img,
html.bm-fe-editing .bm-el-hit > video,
html.bm-fe-editing .bm-el-hit > iframe,
html.bm-fe-editing .bm-el-hit > embed,
html.bm-fe-editing .bm-el-hit > object,
html.bm-fe-editing .bm-media-frame > img,
html.bm-fe-editing .bm-media-frame > video,
html.bm-fe-editing .bm-media-frame > iframe,
html.bm-fe-editing .bm-media-frame > embed,
html.bm-fe-editing .bm-media-frame > object {
	max-width: 100%;
}

html.bm-fe-editing .bm-media-frame > img,
html.bm-fe-editing .bm-media-frame > video,
html.bm-fe-editing .bm-media-frame > iframe,
html.bm-fe-editing .bm-media-frame > embed,
html.bm-fe-editing .bm-media-frame > object,
html.bm-fe-editing .bm-el-hit--media > img,
html.bm-fe-editing .bm-el-hit--media > video,
html.bm-fe-editing .bm-el-hit--media > iframe,
html.bm-fe-editing .bm-el-hit--media > embed,
html.bm-fe-editing .bm-el-hit--media > object {
	margin-left: 0;
	margin-right: 0;
}

html.bm-fe-editing .bm-el-hit__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
	background: transparent;
}

html.bm-fe-editing .bm-el-chrome {
	position: absolute;
	inset: -2px;
	box-sizing: border-box;
	border: 2px solid var(--wp-admin-theme-color, #3525cd);
	border-radius: inherit;
	pointer-events: none;
	z-index: 30;
}

html.bm-fe-editing .bm-el-chrome .bm-el-chrome__tools {
	pointer-events: auto;
	position: absolute;
	top: -2px;
	right: -2px;
	transform: translateY(-100%);
	display: flex;
	flex-direction: row;
	z-index: 31;
}

html.bm-fe-editing .bm-el-chrome .bm-el-chrome__tools.is-inside {
	top: 0;
	right: 0;
	transform: none;
}



html.bm-fe-editing .bm-el-chrome .bm-el-deselect {
	border-radius: 2px 2px 0 0;
	font: 700 14px / 1 system-ui, sans-serif;
}




html.bm-fe-editing .bm-el-chrome .bm-el-chrome__tools.is-inside .bm-el-deselect {
	border-radius: 0 0 0 2px;
}


html.bm-fe-editing .bm-el-chrome .bm-el-deselect.is-inside {
	top: 0;
	right: 0;
	transform: none;
	border: none;
	border-radius: 0 0 0 2px;
}

html.bm-fe-editing .is-bm-collection-dragging [data-bm-collection-drop="1"] {
	outline: 2px dashed rgba(53, 37, 205, 0.28);
	outline-offset: 3px;
	transition: outline-color 0.12s ease, background-color 0.12s ease;
}

html.bm-fe-editing .is-bm-collection-dragging .is-bm-drag-source {
	position: relative !important;
	opacity: 0.42 !important;
	outline: 2px dashed rgba(53, 37, 205, 0.55) !important;
	outline-offset: 3px !important;
	background: rgba(53, 37, 205, 0.05) !important;
	filter: saturate(0.35);
}

html.bm-fe-editing .is-bm-collection-dragging .is-bm-drag-source::after {
	content: "Moving…";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	pointer-events: none;
	font: 700 12px / 1.2 system-ui, sans-serif;
	letter-spacing: 0.02em;
	color: #3525cd;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.55),
		rgba(255, 255, 255, 0.28)
	);
}

html.bm-fe-editing .is-bm-collection-dragging .is-bm-drop-target {
	outline: 2px solid rgba(53, 37, 205, 0.9) !important;
	outline-offset: 3px;
	background: rgba(53, 37, 205, 0.07);
}

html.bm-fe-editing .bm-fe-shell a,
html.bm-fe-editing .bm-fe-fab {
	pointer-events: auto;
}

/* Tabs — add-tab placeholder in canvas preview */
html.bm-fe-editing .bm-tabs__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	flex: 0 0 auto;
	box-sizing: border-box;
	min-width: 2.35rem;
	min-height: 2.35rem;
	margin: 0 0 0 0.15rem;
	padding: 0.35rem 0.55rem;
	border: 1px dashed rgba(15, 23, 42, 0.28);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	position: relative;
	z-index: 6;
}

html.bm-fe-editing .bm-tabs__add:hover,
html.bm-fe-editing .bm-tabs__add:focus-visible {
	color: #0f172a;
	border-color: rgba(15, 23, 42, 0.5);
	background: #fff;
	outline: 2px solid rgba(53, 37, 205, 0.35);
	outline-offset: 2px;
}

html.bm-fe-editing .bm-tabs__add .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	display: block;
}
