.bm-flexible-unit {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	width: 100%;
	min-width: 0;
}

.bm-flexible-unit .components-base-control,
.bm-flexible-unit .components-base-control__field {
	margin-bottom: 0;
}

.bm-flexible-unit__toggle {
	position: static;
	align-self: flex-end;
	z-index: 1;
	line-height: 1;
}

.bm-flexible-unit__toggle-btn.components-button.is-link {
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	font-size: 10px !important;
	line-height: 1.2 !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	opacity: 0.75;
}

.bm-flexible-unit__toggle-btn.components-button.is-link:hover,
.bm-flexible-unit__toggle-btn.components-button.is-link:focus {
	opacity: 1;
	text-decoration: underline !important;
}

.bm-flexible-unit-wrap {
	margin-bottom: 0;
	min-width: 0;
	max-width: 100%;
}

.bm-flexible-unit-wrap .components-base-control__field,
.bm-flexible-unit .components-unit-control-wrapper,
.bm-flexible-unit .components-input-control,
.bm-flexible-unit .components-input-control__container {
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Keep columns top-aligned when toggle sits under the input. */
.bm-style-field__spacing-row {
	align-items: flex-start;
	margin-bottom: 0;
}

.bm-style-field__spacing-col--unit {
	overflow: visible;
	justify-content: flex-start;
}

.bm-style-field__spacing-col--unit .bm-flexible-unit {
	width: 100%;
}

.bm-box-spacing__row,
.bm-style-field--spacing,
.bm-element-toolbar .bm-inspector-card {
	overflow: visible;
}

.bm-element-toolbar__field .bm-flexible-unit,
.bm-element-toolbar__field.bm-flexible-unit-wrap {
	margin-bottom: 0;
}
