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

.bm-intel-spacing__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 24px;
}

.bm-intel-spacing__title {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	color: #1e1e1e;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Match Gutenberg BoxControl linked button (borderless icon). */
.bm-intel-spacing__link.components-button,
.bm-intel-spacing .component-box-control__linked-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px !important;
	width: 24px !important;
	height: 24px !important;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 2px;
	background: transparent !important;
	box-shadow: none !important;
	color: #1e1e1e;
}

.bm-intel-spacing__link.components-button:hover,
.bm-intel-spacing__link.components-button:focus,
.bm-intel-spacing .component-box-control__linked-button:hover,
.bm-intel-spacing .component-box-control__linked-button:focus {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wp-admin-theme-color, #007cba);
}

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

.bm-intel-spacing__link .dashicon,
.bm-intel-spacing__link svg {
	width: 24px;
	height: 24px;
}

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

.bm-intel-spacing__row .bm-style-field__spacing-row {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.bm-intel-spacing__row > .bm-spacing-side-icon {
	justify-self: center;
	align-self: start;
}

/* Gutenberg BoxControl side preview strokes. */
.bm-spacing-side-icon {
	box-sizing: border-box;
	display: block;
	width: 26px;
	height: 26px;
	position: relative;
	padding: 4px;
	color: #1e1e1e;
	flex-shrink: 0;
}

.bm-spacing-side-icon__view {
	box-sizing: border-box;
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	transform: scale(1.05);
	transform-origin: center center;
}

.bm-spacing-side-icon__stroke {
	box-sizing: border-box;
	display: block;
	pointer-events: none;
	position: absolute;
	background-color: currentColor;
	opacity: 0.3;
}

.bm-spacing-side-icon__stroke.is-focused {
	opacity: 1;
}

.bm-spacing-side-icon__stroke--top,
.bm-spacing-side-icon__stroke--bottom {
	height: 2px;
	left: 3px;
	right: 3px;
}

.bm-spacing-side-icon__stroke--top {
	top: 0;
}

.bm-spacing-side-icon__stroke--bottom {
	bottom: 0;
}

.bm-spacing-side-icon__stroke--left,
.bm-spacing-side-icon__stroke--right {
	width: 2px;
	top: 3px;
	bottom: 3px;
}

.bm-spacing-side-icon__stroke--left {
	left: 0;
}

.bm-spacing-side-icon__stroke--right {
	right: 0;
}

.bm-inspector-card .bm-intel-spacing + .bm-intel-spacing {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid #e2e4e7;
}
