.bm-box-border {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.bm-box-border__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bm-f-on-surface-variant, #464555);
}

.bm-box-border__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--bm-f-outline-variant, rgba(119, 117, 135, 0.35));
	border-radius: 8px;
	background: var(--bm-f-surface, #fff);
	cursor: pointer;
	text-align: left;
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
}

.bm-box-border__toggle:hover,
.bm-box-border__toggle.is-open {
	border-color: var(--bm-f-primary, #3525cd);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--bm-f-primary, #3525cd) 25%, transparent);
}

.bm-box-border__preview {
	flex: 0 0 auto;
	width: 36px;
	height: 28px;
	box-sizing: border-box;
	border-radius: 4px;
	background: var(--bm-f-surface-low, #f2f3ff);
}

.bm-box-border__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bm-box-border__meta-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--bm-f-on-surface, #131b2e);
	line-height: 1.2;
}

.bm-box-border__meta-sub {
	font-size: 11px;
	color: var(--bm-f-on-surface-variant, #646970);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bm-box-border__popover {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 240px;
	max-width: 300px;
}

.bm-box-border__popover--width-axial,
.bm-box-border__popover--width-sides {
	min-width: 280px;
	max-width: 320px;
}

.bm-box-border__popover-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bm-f-on-surface-variant, #464555);
}

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

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

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

.bm-box-border__width-link.components-button,
.bm-box-border .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-box-border__width-link.components-button:hover,
.bm-box-border__width-link.components-button:focus,
.bm-box-border .component-box-control__linked-button:hover,
.bm-box-border .component-box-control__linked-button:focus {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wp-admin-theme-color, #007cba);
}

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

.bm-box-border__width-link .dashicon,
.bm-box-border__width-link svg {
	width: 24px;
	height: 24px;
}

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

.bm-box-border__width-grid .bm-style-field,
.bm-box-border__width-grid .components-base-control {
	min-width: 0;
	margin-bottom: 0;
}

.bm-box-border__color-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.bm-box-border__color-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--bm-f-on-surface, #131b2e);
}
