.bm-gutenberg-wysiwyg {
	margin-bottom: 16px;
}

/*
 * Nested → direct child of column/group only (not any Group ancestor).
 * Top-level alignfull → max-width:none; root-padding margins from core / theme-agnostic.
 */
.editor-styles-wrapper .wp-block-column > .wp-block[class*='wp-block-joc-blockora-morph-'],
.editor-styles-wrapper .wp-block-group > .wp-block[class*='wp-block-joc-blockora-morph-'],
.block-editor-block-list__layout .wp-block-column > .wp-block[class*='wp-block-joc-blockora-morph-'],
.block-editor-block-list__layout .wp-block-group > .wp-block[class*='wp-block-joc-blockora-morph-'] {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.editor-styles-wrapper .is-root-container > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
.editor-styles-wrapper .is-root-container > [class*='wp-block-joc-blockora-morph-'].alignfull,
.editor-styles-wrapper .is-root-container > .wp-block[data-align='full'] > [class*='wp-block-joc-blockora-morph-'],
.block-editor-block-list__layout.is-root-container > .wp-block[class*='wp-block-joc-blockora-morph-'].alignfull,
.block-editor-block-list__layout.is-root-container > [class*='wp-block-joc-blockora-morph-'].alignfull,
.block-editor-block-list__layout.is-root-container > .wp-block[data-align='full'] > [class*='wp-block-joc-blockora-morph-'] {
	max-width: none;
	width: auto;
}

.block-editor-block-list__insertion-point,
.block-editor-block-list__insertion-point-inserter {
	z-index: 60 !important;
}

/*
 * Inserter library tags (My Library / JBM Library).
 * Label text (`content`) is injected from inserterLibraryTags.js for i18n.
 * Core cannot style part of a block title, so we use a ::before chip.
 */
.block-editor-block-types-list__item[class*='editor-block-list-item-joc-blockora-morph-'] {
	.block-editor-block-types-list__item-title {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		line-height: 1.25;
	}

	.block-editor-block-types-list__item-title::before {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		max-width: 100%;
		padding: 2px 6px;
		border-radius: 999px;
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0.04em;
		line-height: 1.2;
		text-transform: uppercase;
		white-space: nowrap;
		box-sizing: border-box;
	}
}

/* My Library chip */
.block-editor-block-types-list__item[class*='editor-block-list-item-joc-blockora-morph-']:not(
		[class*='editor-block-list-item-joc-blockora-morph-lib-']
	)
	.block-editor-block-types-list__item-title::before {
	color: #0f766e;
	background: #ccfbf1;
	border: 1px solid color-mix(in srgb, #0f766e 22%, transparent);
}

/* JBM Library chip */
.block-editor-block-types-list__item[class*='editor-block-list-item-joc-blockora-morph-lib-']
	.block-editor-block-types-list__item-title::before {
	color: #3525cd;
	background: #e8e7ff;
	border: 1px solid color-mix(in srgb, #3525cd 22%, transparent);
}

/* Slash / quick inserter autocomplete rows */
.components-autocomplete__result[class*='editor-block-list-item-joc-blockora-morph-'] {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 4px;
}

.components-autocomplete__result[class*='editor-block-list-item-joc-blockora-morph-']::before {
	display: inline-flex;
	align-items: center;
	order: -1;
	flex: 0 0 auto;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	box-sizing: border-box;
}

.components-autocomplete__result[class*='editor-block-list-item-joc-blockora-morph-']:not(
		[class*='editor-block-list-item-joc-blockora-morph-lib-']
	)::before {
	color: #0f766e;
	background: #ccfbf1;
	border: 1px solid color-mix(in srgb, #0f766e 22%, transparent);
}

.components-autocomplete__result[class*='editor-block-list-item-joc-blockora-morph-lib-']::before {
	color: #3525cd;
	background: #e8e7ff;
	border: 1px solid color-mix(in srgb, #3525cd 22%, transparent);
}

.bm-gutenberg-wysiwyg .bm-field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.bm-gutenberg-wysiwyg .bm-wysiwyg-field .wp-editor-wrap {
	border: 1px solid #949494;
	border-radius: 2px;
	overflow: visible;
	background: #fff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.bm-gutenberg-wysiwyg .bm-wysiwyg-field .wp-editor-tools {
	padding: 4px 6px 0;
}

.bm-gutenberg-wysiwyg .bm-wysiwyg-field .wp-editor-container {
	border: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.bm-gutenberg-wysiwyg .bm-wysiwyg-field .mce-tinymce,
.bm-gutenberg-wysiwyg .bm-wysiwyg-field .mce-edit-area,
.bm-gutenberg-wysiwyg .bm-wysiwyg-field .mce-edit-area iframe,
.bm-gutenberg-wysiwyg .bm-wysiwyg-field textarea.wp-editor-area {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.bm-gutenberg-wysiwyg .bm-wysiwyg-field iframe {
	min-height: 120px !important;
}

/*
 * wpLink modal must sit above the block sidebar / canvas chrome.
 * (Inline TinyMCE link UI is disabled for Blockora Morph WYSIWYGs.)
 */
body.block-editor-page #wp-link-backdrop {
	z-index: 160000 !important;
}

body.block-editor-page #wp-link-wrap {
	z-index: 160001 !important;
}

/* Rich-text TextWysiwyg modal (portaled) — lift TinyMCE color panels. */
body.bm-text-wysiwyg-modal-open .mce-floatpanel,
body.bm-text-wysiwyg-modal-open .mce-menu,
body.bm-text-wysiwyg-modal-open .mce-popover,
body.bm-text-wysiwyg-modal-open .mce-window {
	z-index: 100250 !important;
}

body.bm-text-wysiwyg-modal-open #wp-link-backdrop {
	z-index: 100255 !important;
}

body.bm-text-wysiwyg-modal-open #wp-link-wrap {
	z-index: 100260 !important;
}

.bm-gutenberg-preview {
	/* Allow click-to-select styleable elements; navigation is blocked in JS. */
	position: relative;
	pointer-events: auto;
}

/* Hero templates clip overflow — that also hides selection rings. Keep them visible in-editor. */
.bm-gutenberg-preview .bm-hero {
	overflow: visible !important;
}

.bm-gutenberg-preview a,
.bm-gutenberg-preview button:not(.bm-el-deselect),
.bm-gutenberg-preview [role='button']:not(.bm-el-deselect) {
	cursor: default;
}

/* Styleable cue: pointer only until hover; selected uses chrome. */
.bm-gutenberg-preview [data-bm-el][data-bm-styleable='true'] {
	cursor: pointer;
	/* Do not zero box-shadow here — it would wipe badge/card shadows on the
	   styleable host. Selection uses outline only. */
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.12s ease;
}

.bm-gutenberg-preview [data-bm-el][data-bm-styleable='true']:hover {
	outline-color: rgba(53, 37, 205, 0.45);
}

.bm-gutenberg-preview [data-bm-el][data-bm-selected='true'] {
	outline-color: transparent;
}

.bm-gutenberg-preview .bm-el-chrome--float {
	pointer-events: none !important;
	z-index: 9999 !important;
}

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

.bm-gutenberg-el-hit > img,
.bm-gutenberg-el-hit > video,
.bm-gutenberg-el-hit > iframe,
.bm-gutenberg-el-hit > embed,
.bm-gutenberg-el-hit > object {
	max-width: 100%;
}

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

/* Selection chrome — attached to the selected element (admin-style). */
.bm-gutenberg-preview .bm-el-chrome {
	position: absolute;
	inset: -2px;
	box-sizing: border-box;
	border: 2px solid var(--wp-admin-theme-color, #007cba);
	border-radius: inherit;
	pointer-events: none;
	z-index: 30;
}

.bm-gutenberg-preview .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;
}

.bm-gutenberg-preview .bm-el-chrome .bm-el-chrome__tools.is-inside {
	top: 0;
	right: 0;
	transform: none;
}



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




.bm-gutenberg-preview .bm-el-chrome .bm-el-chrome__tools.is-inside .bm-el-deselect {
	border-radius: 0 0 0 2px;
}


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


.bm-gutenberg-inspector-tabs {
	--bm-ed-primary: #3525cd;
	--bm-ed-primary-container: #4f46e5;
	--bm-ed-on-primary: #ffffff;
	--bm-ed-surface: #faf8ff;
	--bm-ed-surface-low: #f2f3ff;
	--bm-ed-surface-container: #eaedff;
	--bm-ed-surface-high: #e2e7ff;
	--bm-ed-on-surface: #131b2e;
	--bm-ed-on-surface-variant: #464555;
	--bm-ed-outline: #c7c4d8;
	padding: 4px 0 16px;
}

/*
 * Brand the native Gutenberg block card (title + description) when a
 * Blockora Morph block is selected. Scoped via :has() so other blocks stay stock.
 */
.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs),
.editor-sidebar:has(.bm-gutenberg-inspector-tabs),
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) {
	--bm-ed-primary: #3525cd;
	--bm-ed-primary-container: #4f46e5;
	--bm-ed-on-primary: #ffffff;
	--bm-ed-surface-low: #f2f3ff;
	--bm-ed-surface-container: #eaedff;
	--bm-ed-surface-high: #e2e7ff;
	--bm-ed-on-surface: #131b2e;
	--bm-ed-on-surface-variant: #464555;
	--bm-ed-outline: #c7c4d8;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 12px 16px 4px;
	padding: 12px 14px;
	border-radius: 12px;
	background:
		linear-gradient(
			145deg,
			var(--bm-ed-surface-low, #f2f3ff) 0%,
			var(--bm-ed-surface-container, #eaedff) 100%
		);
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 65%, transparent);
	box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-flex,
.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-h-stack,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-flex,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-h-stack,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-flex,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .components-h-stack {
	gap: 12px !important;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px !important;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 9px;
	background: var(--bm-ed-primary, #3525cd);
	color: var(--bm-ed-on-primary, #fff);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 28%, transparent);
	overflow: hidden;
	box-sizing: border-box;
	align-self: center;
	line-height: 0;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon svg,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon svg,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon svg {
	display: block;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	min-height: 20px;
	flex-shrink: 0;
	fill: currentColor;
}

/* Lucide / stroke SVGs — core `.has-colors svg { fill: currentColor }` breaks them */
.block-editor-block-icon svg.bm-block-identity-icon--svg,
.block-editor-block-icon.has-colors svg.bm-block-identity-icon--svg,
.block-editor-block-types-list__item-icon svg.bm-block-identity-icon--svg,
.block-editor-block-card svg.bm-block-identity-icon--svg,
.components-autocomplete__result svg.bm-block-identity-icon--svg,
.block-editor-inserter__panel-content svg.bm-block-identity-icon--svg,
.block-editor-block-icon .bm-block-identity-icon--svg svg,
.block-editor-block-icon.has-colors .bm-block-identity-icon--svg svg,
.block-editor-block-types-list__item-icon .bm-block-identity-icon--svg svg,
.block-editor-block-card .bm-block-identity-icon--svg svg,
.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .bm-block-identity-icon--svg svg,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .bm-block-identity-icon--svg svg,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .bm-block-identity-icon--svg svg {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2 !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	width: 24px !important;
	height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: visible !important;
	color: inherit;
	box-sizing: border-box;
}

.block-editor-block-icon.has-colors svg.bm-block-identity-icon--svg *,
.block-editor-block-types-list__item-icon svg.bm-block-identity-icon--svg *,
.components-autocomplete__result svg.bm-block-identity-icon--svg *,
.block-editor-inserter__panel-content svg.bm-block-identity-icon--svg * {
	fill: none !important;
	stroke: inherit;
}

.block-editor-block-icon .bm-block-identity-icon--emoji,
.block-editor-block-types-list__item-icon .bm-block-identity-icon--emoji,
.components-autocomplete__result .bm-block-identity-icon--emoji {
	line-height: 1;
	font-size: 18px;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicon,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicon,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicon,
.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicons,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicons,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card .block-editor-block-icon .dashicons {
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	font-size: 20px !important;
	line-height: 20px !important;
	flex-shrink: 0;
	color: inherit !important;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__title,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__title,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__title {
	margin: 0;
	color: var(--bm-ed-on-surface, #131b2e);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__description,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__description,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .block-editor-block-card__description {
	margin: 4px 0 0;
	color: var(--bm-ed-primary, #3525cd);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Soften the default PanelBody chrome around BM controls */
.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs),
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs),
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs) {
	border-top: 0;
	margin-top: 0;
}

.block-editor-block-inspector:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs) > .components-panel__body-title .components-button,
.editor-sidebar:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs) > .components-panel__body-title .components-button,
.interface-complementary-area:has(.bm-gutenberg-inspector-tabs) .components-panel__body:has(.bm-gutenberg-inspector-tabs) > .components-panel__body-title .components-button {
	color: var(--bm-ed-on-surface, #131b2e);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bm-inspector-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.bm-inspector-brand__logo {
	display: block;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 7px;
	object-fit: contain;
	background: #fff;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 14%, transparent);
}

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

.bm-gutenberg-style-group {
	/* Card chrome comes from .bm-inspector-card */
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.bm-gutenberg-style-group__title {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bm-ed-on-surface-variant, #464555);
}

.bm-gutenberg-style-group .bm-style-field {
	margin-bottom: 0;
}

.bm-gutenberg-elements {
	margin-bottom: 0;
}

/* Tabs / breakpoints / element picker: src/shared/inspector-chrome.css (via shared-ui.css) */

.bm-style-field__spacing-row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 8px;
	align-items: flex-start;
}

.bm-style-field__spacing-col .components-base-control {
	margin-bottom: 0;
}

.bm-style-field__spacing-col .components-base-control__label,
.bm-style-field__spacing-col .components-input-control__label {
	display: none !important;
}

.bm-style-field__spacing-col--preset .bm-searchable-select,
.bm-style-field__spacing-col--unit .components-input-control__container {
	min-height: 40px !important;
}

.bm-style-field--box-spacing {
	margin-bottom: 12px;
}

.bm-style-field--box-spacing .components-base-control__label {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bm-box-spacing {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bm-box-spacing__toolbar {
	display: flex;
	justify-content: flex-end;
	margin-top: -28px;
	margin-bottom: -4px;
}

.bm-box-spacing__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 28px !important;
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	color: #646970 !important;
}

.bm-box-spacing__link.is-linked,
.bm-box-spacing__link.is-axial,
.bm-box-spacing__link.is-sides,
.bm-box-spacing__link[aria-pressed='true'] {
	color: var(--wp-admin-theme-color, #007cba) !important;
}

.bm-box-spacing__link .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

.bm-box-spacing__row {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

.bm-box-spacing__row .bm-style-field__spacing-row {
	min-width: 0;
}

.bm-box-spacing__axis-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	min-height: 40px;
	color: #50575e;
}

.bm-box-spacing__axis-icon svg {
	display: block;
}

.bm-box-spacing__row .components-unit-control-wrapper,
.bm-box-spacing__row .components-input-control {
	width: 100%;
}

.bm-color-dropdown {
	display: block;
	width: 100%;
}

.bm-color-dropdown__toggle {
	display: flex !important;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: flex-start;
}

.bm-color-dropdown__panel {
	min-width: 260px;
}

/* Owner variant picker on library block insert (click + drag). */
/* Modal `className` lands on the frame itself, so the doubled class is what
 * outranks the component's own width/max-height media queries. */
.components-modal__frame.jocbm-variant-insert-modal {
	width: 90vw;
	max-width: 90vw;
	height: 95vh;
	max-height: 95vh;
}

.jocbm-variant-insert-modal .components-modal__content {
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 0;
}

.jocbm-variant-insert-modal__stage {
	overflow: hidden;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #f0f0f1;
}

.jocbm-variant-insert-modal__stage-head {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid #dcdcde;
	background: #fff;
}

.jocbm-variant-insert-modal__active-title {
	min-width: 0;
	overflow: hidden;
	color: #1d2327;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jocbm-variant-insert-modal__preview {
	display: block;
	padding: 0.75rem;
	background: #f0f0f1;
}

.jocbm-variant-insert-modal__preview .bm-preview-layers__frame {
	display: block;
	position: relative;
	width: 100%;
	height: clamp(18rem, 42vh, 26rem);
	min-height: 550px;
	overflow: hidden;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.jocbm-variant-insert-modal__preview .bm-preview-layers__frame.is-scrollable {
	cursor: ns-resize;
	overscroll-behavior: contain;
}

.jocbm-variant-insert-modal__preview .bm-preview-layers__frame.is-scrollable .bm-preview-layers__iframe {
	pointer-events: none;
}

.jocbm-variant-insert-modal__rail-wrap {
	margin-top: 0.8rem;
}

.jocbm-variant-insert-modal__rail {
	display: flex;
	align-items: stretch;
	gap: 0.7rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.2rem 0.15rem 0.65rem;
	scrollbar-width: thin;
}

.jocbm-variant-insert-modal__card,
.jocbm-library-variant-switcher__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	padding: 0.45rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	outline: none;
}

.jocbm-variant-insert-modal__card {
	flex: 0 0 11.5rem;
	width: 11.5rem;
}

.jocbm-variant-insert-modal__card:hover,
.jocbm-variant-insert-modal__card.is-selected,
.jocbm-variant-insert-modal__card:focus-visible,
.jocbm-library-variant-switcher__card:hover,
.jocbm-library-variant-switcher__card.is-selected,
.jocbm-library-variant-switcher__card:focus-visible {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.jocbm-library-variant-switcher__card.is-pending:not(.is-selected) {
	border-color: #9a6700;
	box-shadow: 0 0 0 1px #9a6700;
}

.jocbm-variant-insert-modal__thumb,
.jocbm-library-variant-switcher__thumb {
	display: block;
	width: 100%;
}

.jocbm-variant-insert-modal__thumb .bm-preview-layers__frame {
	display: block;
	position: relative;
	width: 100%;
	height: 6rem;
	overflow: hidden;
	border-radius: 6px;
	background: #f0f0f1;
}

.jocbm-library-variant-switcher__thumb .bm-preview-layers__frame {
	display: block;
	position: relative;
	width: 100%;
	height: 5.5rem;
	overflow: hidden;
	border-radius: 6px;
	background: #f0f0f1;
}

.jocbm-variant-insert-modal__preview .bm-preview-layers__scaler,
.jocbm-variant-insert-modal__thumb .bm-preview-layers__scaler,
.jocbm-library-variant-switcher__thumb .bm-preview-layers__scaler {
	display: block;
	transform-origin: top left;
	/* These previews never animate, so a composited layer only costs sharpness. */
}

.jocbm-variant-insert-modal__preview .bm-preview-layers__iframe,
.jocbm-variant-insert-modal__thumb .bm-preview-layers__iframe,
.jocbm-library-variant-switcher__thumb .bm-preview-layers__iframe {
	display: block;
	width: 1280px;
	max-width: none;
	border: 0;
	background: #fff;
	pointer-events: none;
}

.jocbm-variant-insert-modal__badge,
.jocbm-library-variant-switcher__badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #646970;
}

.jocbm-variant-insert-modal__title,
.jocbm-library-variant-switcher__title {
	font-size: 12px;
	line-height: 1.3;
	color: #1d2327;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jocbm-variant-insert-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	position: sticky;
	z-index: 2;
	bottom: 0;
	margin: 1rem -2rem 0;
	padding: 1rem 2rem;
	border-top: 1px solid #dcdcde;
	background: #fff;
	box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 782px) {
	.jocbm-variant-insert-modal__preview .bm-preview-layers__frame {
		height: clamp(14rem, 38vh, 21rem);
		min-height: 0;
	}

	.jocbm-variant-insert-modal__card {
		flex-basis: 9.5rem;
		width: 9.5rem;
	}
}

.jocbm-library-variant-switcher__intro {
	margin: 0 0 0.75rem;
	color: #646970;
	font-size: 12px;
	line-height: 1.4;
}

.jocbm-library-variant-switcher__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

/* —— Variant settings tab (peer of Page / Block) —— */

/*
 * The tab adopts core's emotion classes at runtime, so only add what core
 * cannot know: the active underline and a sane fallback if adoption fails.
 */
.jocbm-variant-settings-tab {
	position: relative !important;
	isolation: isolate;
	overflow: hidden;
	border: 0 !important;
	border-radius: 0 !important;
	background:
		linear-gradient(
			135deg,
			rgba(53, 37, 205, 0.94) 0%,
			rgba(79, 70, 229, 0.88) 56%,
			rgba(91, 75, 216, 0.82) 100%
		) !important;
	color: #fff !important;
	box-shadow:
		inset 1px 0 0 rgba(255, 255, 255, 0.12),
		inset -1px 0 0 rgba(20, 12, 115, 0.12) !important;
	backdrop-filter: blur(10px) saturate(1.25);
	-webkit-backdrop-filter: blur(10px) saturate(1.25);
	cursor: pointer;
	transition:
		background 180ms ease,
		box-shadow 180ms ease !important;

	&:not([class*='css-']) {
		appearance: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 12px;
		border: 0;
		font-size: 13px;
		line-height: 1.2;
	}

	/* Moving light stays on its own pseudo-layer; tab text is never transformed. */
	&::before {
		content: '';
		position: absolute;
		z-index: 0;
		top: -90%;
		bottom: -90%;
		left: -65%;
		width: 48%;
		pointer-events: none;
		background: linear-gradient(
			90deg,
			transparent,
			rgba(255, 255, 255, 0.52),
			transparent
		);
		transform: skewX(-20deg);
		animation: jocbm-variant-tab-glow 3.4s ease-in-out infinite;
	}

	&:hover {
		color: #fff !important;
		background:
			linear-gradient(
				135deg,
				rgba(45, 31, 187, 0.97) 0%,
				rgba(79, 70, 229, 0.92) 56%,
				rgba(109, 92, 246, 0.86) 100%
			) !important;
		box-shadow:
			inset 1px 0 0 rgba(255, 255, 255, 0.16),
			inset -1px 0 0 rgba(20, 12, 115, 0.16) !important;
	}

	&.is-active {
		background:
			linear-gradient(
				135deg,
				rgba(45, 31, 187, 0.99) 0%,
				rgba(79, 70, 229, 0.94) 58%,
				rgba(109, 92, 246, 0.9) 100%
			) !important;
		box-shadow:
			inset 0 -3px 0 rgba(255, 255, 255, 0.85),
			inset 1px 0 0 rgba(255, 255, 255, 0.14),
			inset -1px 0 0 rgba(20, 12, 115, 0.14) !important;
		font-weight: 600;
	}
}

.jocbm-variant-settings-tab__label {
	position: relative;
	z-index: 1;
}

@keyframes jocbm-variant-tab-glow {
	0%,
	18% {
		left: -65%;
		opacity: 0;
	}

	30% {
		opacity: 0.95;
	}

	62% {
		left: 120%;
		opacity: 0.8;
	}

	72%,
	100% {
		left: 120%;
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jocbm-variant-settings-tab::before {
		animation: none;
		opacity: 0;
	}
}

/*
 * Overlay inside the sidebar: covers whatever core renders below the tab strip
 * so we never have to hide core panels by class name. `top` is set inline from
 * the measured tab-strip height.
 */
.jocbm-variant-settings-host {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	overflow: auto;
	padding: 16px;
	background: #fff;
}

body.jocbm-variant-tab-active {
	.interface-complementary-area,
	.editor-sidebar,
	.edit-post-sidebar {
		position: relative;
	}

	.jocbm-variant-settings-host {
		display: block;
	}

	/* Only one tab should read as active while the overlay is up. */
	.editor-sidebar__panel-tabs [role='tab']:not(.jocbm-variant-settings-tab),
	.edit-post-sidebar__panel-tabs [role='tab']:not(.jocbm-variant-settings-tab) {
		box-shadow: none !important;
		font-weight: 400 !important;

		&::after,
		&::before {
			opacity: 0 !important;
		}
	}
}

.jocbm-library-variant-switcher {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.jocbm-library-variant-switcher__head {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 14px;
	border: 1px solid rgba(53, 37, 205, 0.14);
	border-radius: 12px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(91, 75, 216, 0.15),
			transparent 45%
		),
		linear-gradient(145deg, #f7f6ff 0%, #eef1ff 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.jocbm-library-variant-switcher__brand {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}

.jocbm-library-variant-switcher__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 7px 18px -9px rgba(53, 37, 205, 0.65);

	img {
		display: block;
		width: 36px;
		height: 36px;
		object-fit: contain;
	}
}

.jocbm-library-variant-switcher__head-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.jocbm-library-variant-switcher__eyebrow {
	font-size: 9px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #5b4bd8;
}

.jocbm-library-variant-switcher__heading {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25;
	color: #17133f !important;
}

.jocbm-library-variant-switcher__count {
	align-self: center;
	padding: 4px 7px;
	border: 1px solid rgba(53, 37, 205, 0.13);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #5b4bd8;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.jocbm-library-variant-switcher__head
	.jocbm-library-variant-switcher__intro {
	margin: 0;
	color: #5d5a73;
}

/* —— Block browser (left panel + toolbar logo) —— */

.jocbm-block-browser-toolbar-slot {
	display: inline-flex;
	align-items: center;
	margin-left: 0;
	margin-inline-end: 8px;
}

.jocbm-block-browser-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	color: inherit;

	img {
		display: block;
		width: 32px;
		height: 32px;
		object-fit: contain;
		pointer-events: none;
	}

	&:hover,
	&:focus-visible,
	&.is-active {
		background: transparent;
		box-shadow: none;
		outline: none;
	}

	&.is-active img {
		opacity: 1;
		filter: none;
	}
}

.jocbm-block-browser-host {
	display: flex;
	flex-shrink: 0;
	width: 0;
	height: 100%;
	min-height: 0;
	align-self: stretch;
	overflow: hidden;
	visibility: hidden;
	transition:
		width 280ms cubic-bezier(0.2, 0, 0, 1),
		visibility 0s linear 280ms;
}

body.jocbm-block-browser-open .jocbm-block-browser-host {
	width: 360px;
	visibility: visible;
	transition:
		width 280ms cubic-bezier(0.2, 0, 0, 1),
		visibility 0s linear 0s;
}

.jocbm-block-browser {
	display: flex;
	flex-direction: column;
	flex: 0 0 360px;
	width: 360px;
	max-width: 100%;
	height: 100%;
	min-height: 0;
	background: #fff;
	border-right: 1px solid #e0e0e0;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
	z-index: 2;
	transform: translateX(-24px);
	opacity: 0;
	pointer-events: none;
	transition:
		transform 280ms cubic-bezier(0.2, 0, 0, 1),
		opacity 180ms ease;

	/*
	 * Drop the transform entirely once open. Keeping a transform (even
	 * translateX(0)) or `will-change` holds the panel on a composited layer,
	 * which disables subpixel text antialiasing and reads as blurry.
	 */
	&.is-open {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jocbm-block-browser-host,
	body.jocbm-block-browser-open .jocbm-block-browser-host,
	.jocbm-block-browser {
		transition-duration: 0.01ms;
	}
}

.jocbm-block-browser__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid #e8e8e8;
}

.jocbm-block-browser__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;

	img {
		flex-shrink: 0;
		border-radius: 4px;
	}

	strong {
		font-size: 13px;
		font-weight: 600;
		color: #1d2327;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.jocbm-block-browser__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: #646970;
	cursor: pointer;

	&:hover {
		color: #1d2327;
		background: #f0f0f0;
	}

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

.jocbm-block-browser__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 0 0.75rem;
	border-bottom: 1px solid #e8e8e8;
}

.jocbm-block-browser__tab {
	appearance: none;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	padding: 0.65rem 0.25rem;
	margin-bottom: -1px;
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	cursor: pointer;

	&.is-active {
		color: #1d2327;
		border-bottom-color: #1d2327;
	}

	&:hover {
		color: #1d2327;
	}
}

.jocbm-block-browser__filters {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.75rem;
	border-bottom: 1px solid #e8e8e8;

	.components-base-control {
		min-width: 0;
		margin-bottom: 0;
	}

	.components-base-control__field,
	.components-input-control__container {
		height: 100%;
		margin: 0;
	}
}

.jocbm-block-browser__search input,
.jocbm-block-browser__category select {
	height: 42px !important;
	min-height: 42px !important;
	border-radius: 10px !important;
	font-size: 12px !important;
}

.jocbm-block-browser__search input {
	padding: 0 0.7rem !important;
	border-color: #d6d3eb !important;
	background: #fff !important;

	&:hover {
		border-color: #9d95dd !important;
	}

	&:focus {
		border-color: #5b4bd8 !important;
		box-shadow: 0 0 0 1px #5b4bd8 !important;
	}
}

.jocbm-block-browser__category .components-input-control__container {
	border-radius: 10px;
	background:
		linear-gradient(135deg, rgba(91, 75, 216, 0.09), rgba(91, 75, 216, 0.02)),
		#fff;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;

	&:hover {
		background:
			linear-gradient(135deg, rgba(91, 75, 216, 0.14), rgba(91, 75, 216, 0.04)),
			#fff;
	}
}

.jocbm-block-browser__category select {
	padding-left: 0.7rem !important;
	padding-right: 2rem !important;
	border-color: #b9b3e5 !important;
	background: transparent !important;
	color: #3525cd !important;
	font-weight: 600 !important;

	&:focus {
		border-color: #5b4bd8 !important;
		box-shadow: 0 0 0 1px #5b4bd8 !important;
	}
}

.jocbm-block-browser__category .components-input-control__suffix {
	right: 0.45rem;
	color: #5b4bd8;
}

.jocbm-block-browser__list {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jocbm-block-browser__empty,
.jocbm-block-browser__hint {
	margin: 0;
	padding: 0.5rem 0.75rem 0.85rem;
	font-size: 12px;
	line-height: 1.4;
	color: #646970;
}

.jocbm-block-browser__hint {
	border-top: 1px solid #e8e8e8;
	flex-shrink: 0;
}

.jocbm-block-browser__card {
	position: relative;
	/* Never shrink: the column flex container would otherwise squash the
	   aspect-ratio media once the list overflows. */
	flex: 0 0 auto;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	user-select: none;

	&.is-draggable {
		cursor: grab;
	}

	&.is-draggable:active {
		cursor: grabbing;
	}

	&.is-locked,
	&.is-disabled {
		opacity: 0.55;
		cursor: not-allowed;
	}
}

.jocbm-block-browser__card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f6f7f7;
}

.jocbm-block-browser__badge,
.jocbm-block-browser__variants,
.jocbm-block-browser__lock {
	position: absolute;
	z-index: 3;
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #fff;
	background: rgba(29, 35, 39, 0.72);
	backdrop-filter: blur(6px);
}

.jocbm-block-browser__badge {
	left: 0.5rem;
	bottom: 0.5rem;
}

.jocbm-block-browser__badge.is-primary {
	background: rgba(53, 37, 205, 0.82);
}

.jocbm-block-browser__badge.is-success {
	background: rgba(0, 120, 70, 0.82);
}

.jocbm-block-browser__badge.is-secondary {
	background: rgba(114, 47, 147, 0.82);
}

.jocbm-block-browser__badge.is-warning {
	background: rgba(158, 90, 0, 0.85);
}

.jocbm-block-browser__badge.is-tertiary {
	background: rgba(0, 100, 130, 0.82);
}

.jocbm-block-browser__variants {
	right: 0.5rem;
	bottom: 0.5rem;
	background: rgba(53, 37, 205, 0.78);
}

.jocbm-block-browser__lock {
	top: 0.5rem;
	right: 0.5rem;
	background: rgba(158, 90, 0, 0.9);
}

.jocbm-block-browser__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.55rem 0.65rem 0.65rem;
}

.jocbm-block-browser__card-title {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #1d2327;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jocbm-block-browser__card-meta {
	font-size: 11px;
	color: #646970;
}

/* Live thumbs inside the browser (admin styles are scoped to .joc-blockora-morph-app). */
.jocbm-block-browser .bm-lib-thumb {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #fff;
}

.jocbm-block-browser .bm-lib-thumb__chrome {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	height: 1.15rem;
	padding: 0 0.55rem;
	background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.jocbm-block-browser .bm-lib-thumb__dot {
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: #c7c4d8;

	&:nth-child(1) {
		background: #f87171;
	}

	&:nth-child(2) {
		background: #fbbf24;
	}

	&:nth-child(3) {
		background: #34d399;
	}
}

.jocbm-block-browser .bm-lib-thumb__viewport {
	position: absolute;
	inset: 1.15rem 0 0;
	overflow: hidden;
	background: #fff;
}

.jocbm-block-browser .bm-lib-thumb__frame-wrap {
	position: absolute;
	inset: 1.15rem 0 0;
}

.jocbm-block-browser .bm-lib-thumb__slide .bm-lib-thumb__frame-wrap {
	inset: 0;
}

.jocbm-block-browser .bm-lib-thumb__frame-wrap .bm-lib-thumb__viewport {
	inset: 0;
}

.jocbm-block-browser .bm-lib-thumb__carousel-viewport {
	position: absolute;
	inset: 1.15rem 0 0;
	overflow: hidden;
	background: #fff;
}

.jocbm-block-browser .bm-lib-thumb__track {
	display: flex;
	height: 100%;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.jocbm-block-browser .bm-lib-thumb__track {
		transition: none;
	}
}

.jocbm-block-browser .bm-lib-thumb__slide {
	position: relative;
	flex: 0 0 auto;
	height: 100%;
	overflow: hidden;
}

.jocbm-block-browser .bm-lib-thumb__slide-placeholder {
	position: absolute;
	inset: 0;
	background: #fff;
}

.jocbm-block-browser .bm-lib-thumb__pips {
	position: absolute;
	right: 0.45rem;
	bottom: 0.35rem;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 0.22rem;
	padding: 0.15rem 0.28rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	pointer-events: none;
}

.jocbm-block-browser .bm-lib-thumb__pip {
	width: 0.28rem;
	height: 0.28rem;
	border-radius: 50%;
	background: rgba(53, 37, 205, 0.28);
}

.jocbm-block-browser .bm-lib-thumb__pip.is-active {
	background: #3525cd;
}

.jocbm-block-browser .bm-lib-thumb__scaler {
	position: absolute;
	top: 0;
	left: 0;
	width: 1280px;
	height: 800px;
	transform-origin: top left;
	pointer-events: none;
	/* No `will-change` — it pins a composited layer and softens the preview. */
}

.jocbm-block-browser .bm-lib-thumb__frame {
	display: block;
	width: 1280px;
	min-height: 800px;
	height: 800px;
	border: 0;
	background: #fff;
	pointer-events: none;
}

body.jocbm-block-browser-dragging {
	cursor: grabbing !important;
}

/* Drag chip — cloned into <body>, so it must not be nested under the panel. */
.jocbm-block-browser__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 16rem;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);

	img {
		display: block;
		border-radius: 3px;
	}

	span {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.jocbm-block-browser__drag-clone {
	pointer-events: none;
}
