/**
 * Shared Fields / Customize / Order inspector chrome.
 * Used by Gutenberg, frontend editor, and admin Content Editor.
 */

.bm-gutenberg-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-on-surface: #131b2e;
	--bm-ed-on-surface-variant: #464555;
	--bm-ed-outline: #c7c4d8;
}

.bm-gutenberg-tabs .components-tab-panel__tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 4px;
	margin: 0 0 16px;
	padding: 4px;
	border-radius: 12px;
	background: var(--bm-ed-surface-container, #eaedff);
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 70%, transparent);
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bm-ed-on-surface-variant, #464555) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	opacity: 0.85;
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item:hover {
	color: var(--bm-ed-on-surface, #131b2e) !important;
	background: color-mix(in srgb, #fff 55%, transparent) !important;
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item.is-active {
	background: var(--bm-ed-primary, #3525cd) !important;
	color: var(--bm-ed-on-primary, #fff) !important;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 28%, transparent) !important;
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item.is-active .dashicons {
	opacity: 1;
}

.bm-gutenberg-tabs .components-tab-panel__tabs-item::after {
	display: none !important;
}

.bm-gutenberg-breakpoints-bar {
	position: sticky;
	top: 47px;
	z-index: 6;
	margin: 0 0 12px;
	padding: 4px 0 10px;
	background: var(--bm-ed-surface, #faf8ff);
	box-shadow: 0 10px 14px -12px rgba(19, 27, 46, 0.18);
}

.bm-gutenberg-breakpoints {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	margin: 0 0 10px;
	padding: 4px;
	border-radius: 12px;
	background: var(--bm-ed-surface-low, #f2f3ff);
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 70%, transparent);
}

.bm-gutenberg-seg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px;
	margin: 0;
	padding: 6px 8px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--bm-ed-on-surface-variant, #464555);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bm-gutenberg-seg-btn .dashicons {
	width: 15px;
	height: 15px;
	font-size: 15px;
	line-height: 1;
	opacity: 0.8;
}

.bm-gutenberg-seg-btn:hover {
	color: var(--bm-ed-on-surface, #131b2e);
	background: color-mix(in srgb, #fff 70%, transparent);
}

.bm-gutenberg-seg-btn.is-active {
	background: var(--bm-ed-primary, #3525cd);
	color: var(--bm-ed-on-primary, #fff);
	box-shadow: 0 3px 10px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 26%, transparent);
}

.bm-gutenberg-seg-btn.is-active .dashicons {
	opacity: 1;
}

.bm-gutenberg-breakpoint-hint {
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--bm-ed-surface-container, #eaedff);
	color: var(--bm-ed-on-surface-variant, #464555);
	font-size: 12px;
	line-height: 1.4;
}

.bm-gutenberg-elements {
	margin-bottom: 18px;
}

.bm-gutenberg-elements__list {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 6px;
	margin-top: 8px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.bm-gutenberg-elements__sortable {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	margin-top: 4px;
}

.bm-gutenberg-elements__list-static {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	margin-top: 4px;
}

.bm-gutenberg-elements__list-static .bm-gutenberg-element-btn,
.bm-gutenberg-elements__list > .bm-gutenberg-element-btn {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
}

.bm-drop-slot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	height: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	background: transparent;
	pointer-events: none;
	transition: height 0.12s ease;
}

.bm-drop-slot.is-visible {
	height: 18px;
	pointer-events: auto;
}

.bm-drop-slot__line {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: transparent;
	transition: background 0.12s ease, box-shadow 0.12s ease, height 0.12s ease;
}

.bm-drop-slot.is-visible .bm-drop-slot__line {
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 18%, transparent);
}

.bm-drop-slot.is-active {
	height: 28px;
}

.bm-drop-slot.is-active .bm-drop-slot__line {
	height: 3px;
	background: var(--bm-ed-primary, #3525cd);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 18%, transparent);
}

.bm-drop-slot__label {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bm-ed-primary, #3525cd);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

.bm-gutenberg-elements__list > .bm-slides-list {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.bm-gutenberg-element-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	flex: 1 1 calc(50% - 3px);
	width: auto;
	max-width: 100%;
	min-width: 0;
	min-height: 32px;
	margin: 0;
	padding: 6px 8px 6px 10px;
	border: 1px solid var(--bm-ed-outline, #c7c4d8);
	border-radius: 8px;
	background: var(--bm-ed-surface, #faf8ff);
	color: var(--bm-ed-on-surface, #131b2e);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bm-gutenberg-elements__order-hint {
	margin: 6px 0 0;
	padding: 0;
	color: var(--bm-ed-on-surface-variant, #646970);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.45;
}

.bm-gutenberg-element-btn--sortable {
	flex: 1 1 100%;
	width: 100%;
	cursor: grab;
	padding-left: 6px;
	gap: 8px;
	margin: 3px 0;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--bm-ed-surface, #faf8ff) 92%, #fff) 0%,
		var(--bm-ed-surface-low, #f2f3ff) 100%
	);
	border-color: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 14%, var(--bm-ed-outline, #c7c4d8));
	box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent);
}

.bm-gutenberg-element-btn--sortable:active {
	cursor: grabbing;
}

.bm-gutenberg-element-btn--sortable.is-dragging {
	opacity: 0.45;
	border-style: dashed;
}

.bm-gutenberg-element-btn__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 12%, transparent);
	color: var(--bm-ed-primary, #3525cd);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.bm-gutenberg-element-btn__handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-gutenberg-element-btn__handle .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: inherit;
	opacity: 0.75;
}

.bm-gutenberg-element-btn--sortable:hover .bm-gutenberg-element-btn__handle {
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 10%, transparent);
	color: var(--bm-ed-primary, #3525cd);
}

.bm-gutenberg-element-btn .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
	color: var(--bm-ed-primary, #3525cd);
	opacity: 0.7;
	flex-shrink: 0;
}

.bm-gutenberg-element-btn:hover {
	border-color: var(--bm-ed-primary, #3525cd);
	background: var(--bm-ed-surface-low, #f2f3ff);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 12%, transparent);
}

.bm-gutenberg-element-btn.is-selected {
	border-color: var(--bm-ed-primary, #3525cd);
	background: var(--bm-ed-surface-low, #f2f3ff);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 35%, transparent),
		0 2px 8px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 12%, transparent);
}

.bm-gutenberg-element-btn.is-selected .bm-gutenberg-element-btn__label {
	color: var(--bm-ed-primary, #3525cd);
	font-weight: 700;
}

.bm-gutenberg-element-btn.is-selected .bm-gutenberg-element-btn__action {
	opacity: 1;
}

.bm-gutenberg-element-btn:hover .dashicons {
	opacity: 1;
}

.bm-gutenberg-element-btn:focus-visible {
	outline: 2px solid var(--bm-ed-primary, #3525cd);
	outline-offset: 2px;
}

.bm-gutenberg-element-btn__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bm-gutenberg-element-btn__action {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	margin-left: auto;
	color: var(--bm-ed-primary, #3525cd);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	opacity: 0.85;
}

.bm-gutenberg-element-btn__action .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
	color: inherit;
	opacity: 1;
}

.bm-gutenberg-element-btn:hover .bm-gutenberg-element-btn__action {
	opacity: 1;
}

.bm-gutenberg-element-btn.is-element-hidden {
	opacity: 0.42;
	border-style: dashed;
	background: color-mix(in srgb, var(--bm-ed-surface, #faf8ff) 70%, transparent);
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-gutenberg-element-btn.is-element-hidden .dashicons {
	opacity: 0.45;
}

.bm-gutenberg-element-btn.is-element-hidden .bm-gutenberg-element-btn__action {
	opacity: 0.7;
}

.bm-gutenberg-element-btn__badge {
	flex-shrink: 0;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bm-ed-on-surface-variant, #646970);
	background: color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 35%, transparent);
}

.bm-design-subtabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin: 0 0 12px;
	padding: 4px;
	border-radius: 12px;
	background: var(--bm-ed-surface-container, #eaedff);
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 70%, transparent);
}

.bm-design-subtabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--bm-ed-on-surface-variant, #464555);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bm-design-subtabs__btn:hover {
	color: var(--bm-ed-on-surface, #131b2e);
	background: color-mix(in srgb, #fff 55%, transparent);
}

.bm-design-subtabs__btn.is-active {
	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);
}

.bm-design-subtabs__btn:focus-visible {
	outline: 2px solid var(--bm-ed-primary, #3525cd);
	outline-offset: 2px;
}

.bm-gutenberg-elements__slide {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 100%;
	width: 100%;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bm-ed-outline, rgba(0, 0, 0, 0.08));
}

.bm-gutenberg-elements__slide:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bm-gutenberg-elements__slide-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
}

.bm-gutenberg-elements__slide-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.15rem 0 0.5rem;
	border-bottom: 1px solid var(--bm-ed-outline, rgba(0, 0, 0, 0.08));
	margin-bottom: 0.35rem;
}

.bm-gutenberg-elements__back {
	flex-shrink: 0;
	min-height: 28px !important;
}

.bm-gutenberg-elements__slide-nav-title {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.bm-gutenberg-elements__slide-nav-title .bm-inspector-card__title {
	margin: 0;
}

.bm-gutenberg-elements__slide-layout {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-gutenberg-elements__section-label {
	display: block;
	margin: 0.25rem 0 0.15rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-gutenberg-elements__slide-layout-styles {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 55%, transparent);
}

.bm-gutenberg-elements__slide-style-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bm-gutenberg-elements__slide-style-group + .bm-gutenberg-elements__slide-style-group {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 40%, transparent);
}

.bm-gutenberg-elements__slide-layout-styles .bm-gutenberg-elements__section-label {
	margin-top: 0;
}

.bm-gutenberg-elements__slide-btn {
	align-items: center;
}

.bm-gutenberg-elements__slide-btn-meta {
	margin-left: auto;
	margin-right: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-gutenberg-elements__slide-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bm-ed-on-surface-variant, #646970);
	padding: 0.1rem 0.15rem;
}

.bm-gutenberg-elements__slide-remove {
	flex-shrink: 0;
	min-width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	justify-content: center !important;
}

/* —— Slides list (Design → Slides) —— */
.bm-slides-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.bm-slides-list__hint {
	margin: 0;
	padding: 0 2px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--bm-ed-on-surface-variant, #464555);
}

.bm-slides-list {
	--bm-ed-primary: #3525cd;
	--bm-ed-surface: #faf8ff;
	--bm-ed-surface-low: #f2f3ff;
	--bm-ed-on-surface: #131b2e;
	--bm-ed-on-surface-variant: #464555;
	--bm-ed-outline: #c7c4d8;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.bm-slides-list__item {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 52px;
	padding: 6px;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 75%, transparent);
	border-radius: 12px;
	background: linear-gradient(
		135deg,
		var(--bm-ed-surface, #faf8ff) 0%,
		var(--bm-ed-surface-low, #f2f3ff) 100%
	);
	box-shadow: 0 1px 2px color-mix(in srgb, #131b2e 4%, transparent);
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		opacity 0.12s ease,
		transform 0.12s ease,
		background 0.15s ease;
}

.bm-slides-list__item.is-draggable {
	cursor: grab;
}

.bm-slides-list__item.is-draggable:active {
	cursor: grabbing;
}

.bm-slides-list__item:hover {
	border-color: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 45%, transparent);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 14%, transparent);
}

.bm-slides-list__item.is-dragging {
	opacity: 0.55;
	transform: scale(0.985);
	cursor: grabbing;
}

.bm-slides-list__item.is-drop-target {
	border-color: var(--bm-ed-primary, #3525cd);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 22%, transparent);
}

.bm-slides-list__handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 32px;
	color: var(--bm-ed-on-surface-variant, #777587);
	line-height: 1;
	cursor: grab;
	user-select: none;
	pointer-events: none;
}

.bm-slides-list__handle .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	opacity: 0.65;
}

.bm-slides-list__item:hover .bm-slides-list__handle .dashicons {
	opacity: 1;
	color: var(--bm-ed-primary, #3525cd);
}

.bm-slides-list__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: var(--bm-ed-primary, #3525cd);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 28%, transparent);
}

.bm-slides-list__delete {
	flex: 0 0 26px !important;
	min-width: 26px !important;
	width: 26px !important;
	height: 26px !important;
	padding: 0 !important;
	justify-content: center !important;
	border-radius: 8px !important;
	color: var(--bm-ed-on-surface-variant, #646970) !important;
}

.bm-slides-list__delete:hover {
	color: #b32d2e !important;
	background: color-mix(in srgb, #b32d2e 10%, transparent) !important;
}

.bm-slides-list__delete-spacer {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
}

.bm-slides-list__main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 2px 4px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: inherit;
	overflow: hidden;
}

.bm-slides-list__main:hover {
	background: color-mix(in srgb, #fff 55%, transparent);
}

.bm-slides-list__main:focus-visible {
	outline: 2px solid var(--bm-ed-primary, #3525cd);
	outline-offset: 1px;
}

.bm-slides-list__title-block {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

.bm-slides-list__title-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.bm-slides-list__title {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bm-ed-on-surface, #131b2e);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bm-slides-list__preview {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--bm-ed-on-surface-variant, #646970);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bm-slides-list__preview--desc {
	font-weight: 400;
	opacity: 0.9;
}

.bm-slides-list__layout {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	padding: 2px 6px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 12%, transparent);
	color: var(--bm-ed-primary, #3525cd);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bm-slides-list__chevron {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	font-size: 16px;
	opacity: 0.45;
	color: var(--bm-ed-on-surface-variant, #646970);
}

.bm-slides-list__main:hover .bm-slides-list__chevron {
	opacity: 1;
	color: var(--bm-ed-primary, #3525cd);
}

.bm-slides-list__move {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 0;
}

.bm-slides-list__icon-btn {
	min-width: 24px !important;
	width: 24px !important;
	height: 20px !important;
	padding: 0 !important;
	justify-content: center !important;
	color: var(--bm-ed-on-surface-variant, #646970) !important;
}

.bm-slides-list__icon-btn:hover:not(:disabled) {
	color: var(--bm-ed-primary, #3525cd) !important;
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 10%, transparent) !important;
}

.bm-slides-list__icon-btn .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
}

.bm-gutenberg-elements__add-slide-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 55%, transparent);
}

.bm-gutenberg-elements__add-slide {
	width: 100%;
	justify-content: center !important;
}

/* —— Style scope gate (library vs instance) —— */
.bm-style-scope-stack,
.bm-element-toolbar__styles {
	position: relative;
}

.bm-style-scope-stack.is-gated,
.bm-element-toolbar__styles.is-gated {
	min-height: 140px;
}

.bm-style-scope-stack.is-gated > :not(.bm-style-scope-gate),
.bm-element-toolbar__styles.is-gated > :not(.bm-style-scope-gate) {
	filter: blur(2.5px);
	opacity: 0.35;
	pointer-events: none;
	user-select: none;
}

.bm-style-scope-gate {
	position: relative;
	z-index: 6;
}

.bm-style-scope-gate--full {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8px 12px 16px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--bm-ed-surface, #faf8ff) 55%, transparent);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.bm-style-scope-gate__card {
	width: 100%;
	max-width: 280px;
	padding: 16px 14px;
	border: 1px solid var(--bm-ed-outline, #c7c4d8);
	border-radius: 12px;
	background: var(--bm-ed-surface, #faf8ff);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 14%, transparent);
	text-align: center;
}

.bm-style-scope-gate__title {
	display: block;
	margin: 0 0 8px;
	color: var(--bm-ed-on-surface, #131b2e);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.bm-style-scope-gate__desc {
	margin: 0 0 14px;
	color: var(--bm-ed-on-surface-variant, #464555);
	font-size: 12px;
	line-height: 1.45;
}

.bm-style-scope-gate__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.bm-style-scope-gate__btn {
	justify-content: center !important;
	align-items: center !important;
	gap: 0.4em !important;
	width: 100%;
	min-height: 36px;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

.bm-style-scope-gate__btn--edit.components-button.is-secondary {
	box-sizing: border-box;
	border: 1.5px solid color-mix(in srgb, var(--bm-ed-primary, #3525cd) 42%, var(--bm-ed-outline, #c7c4d8)) !important;
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 7%, var(--bm-ed-surface, #faf8ff)) !important;
	color: var(--bm-ed-primary, #3525cd) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.bm-style-scope-gate__btn--edit.components-button.is-secondary:hover,
.bm-style-scope-gate__btn--edit.components-button.is-secondary:focus {
	border-color: var(--bm-ed-primary, #3525cd) !important;
	background: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 14%, var(--bm-ed-surface, #faf8ff)) !important;
	color: var(--bm-ed-primary, #3525cd) !important;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 16%, transparent) !important;
}

.bm-style-scope-gate__btn-icon {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	margin: 0;
}

.bm-style-scope-gate--banner {
	position: relative;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
	padding: 12px;
	border: 1px solid color-mix(in srgb, var(--bm-ed-primary, #3525cd) 28%, var(--bm-ed-outline, #c7c4d8));
	border-radius: 10px;
	background: var(--bm-ed-surface-low, #f2f3ff);
}

.bm-style-scope-gate__banner-text {
	margin: 0;
	color: var(--bm-ed-on-surface, #131b2e);
	font-size: 12px;
	line-height: 1.45;
}

.bm-style-scope-gate__banner-msg {
	margin: 0;
	color: var(--bm-ed-primary, #3525cd);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* —— Style scope confirm dialog —— */
.bm-scope-confirm {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}

.bm-scope-confirm__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, #131b2e 42%, transparent);
}

.bm-scope-confirm__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 360px;
	padding: 20px 18px 16px;
	border: 1px solid var(--bm-ed-outline, #c7c4d8);
	border-radius: 12px;
	background: var(--bm-ed-surface, #faf8ff);
	box-shadow: 0 16px 40px color-mix(in srgb, #131b2e 22%, transparent);
	text-align: center;
}

.bm-scope-confirm--warning .bm-scope-confirm__card {
	border-color: color-mix(in srgb, #b45309 35%, var(--bm-ed-outline, #c7c4d8));
}

.bm-scope-confirm__notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, #b45309 40%, transparent);
	border-radius: 8px;
	background: color-mix(in srgb, #fef3c7 88%, #fff);
	color: #92400e;
	text-align: left;
}

.bm-scope-confirm__notice-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
	color: #b45309;
}

.bm-scope-confirm__notice-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bm-scope-confirm__title {
	display: block;
	margin: 0 0 10px;
	color: var(--bm-ed-on-surface, #131b2e);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.bm-scope-confirm__desc {
	margin: 0 0 18px;
	color: var(--bm-ed-on-surface-variant, #464555);
	font-size: 13px;
	line-height: 1.5;
}

.bm-scope-confirm__remember {
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid var(--bm-ed-outline, #c7c4d8);
	border-radius: 8px;
	background: color-mix(in srgb, var(--bm-ed-surface, #faf8ff) 88%, #131b2e);
	text-align: left;
}

.bm-scope-confirm__remember .components-base-control__help {
	margin-top: 4px;
	margin-bottom: 0;
	font-size: 12px;
	line-height: 1.4;
}

.bm-scope-confirm__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
}

@media (min-width: 480px) {
	.bm-scope-confirm__actions {
		flex-direction: row;
		justify-content: flex-end;
	}
}

.bm-scope-confirm__btn {
	justify-content: center !important;
}
