.bm-shadow-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.bm-shadow-fields__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
}

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

.bm-shadow-fields__toggle {
	margin: 0 !important;
}

.bm-shadow-fields__toggle .components-base-control__field {
	margin-bottom: 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bm-shadow-fields__toggle .components-form-toggle {
	margin-right: 0;
}

.bm-shadow-fields__toggle .components-toggle-control__label {
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: var(--bm-f-on-surface-variant, #464555);
}

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

.bm-shadow-fields__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 18px 16px;
	border: 1px solid color-mix(in srgb, var(--bm-ed-outline, #c7c4d8) 70%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--bm-ed-surface-low, #f2f3ff) 55%, #fff);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-shadow-fields__box:hover,
.bm-shadow-fields__box.is-open,
.bm-shadow-fields__box:focus-visible {
	border-color: color-mix(in srgb, var(--bm-ed-primary, #3525cd) 35%, var(--bm-ed-outline, #c7c4d8));
	outline: none;
}

.bm-shadow-fields__box:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bm-ed-primary, #3525cd) 22%, transparent);
}

.bm-shadow-fields__box-surface {
	display: block;
	width: 100%;
	max-width: 160px;
	height: 36px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e4e7;
}

.bm-shadow-fields__popover {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 260px;
	max-width: 300px;
}

.bm-shadow-fields__popover-title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #50575e;
}

.bm-shadow-fields__popover .components-base-control {
	margin-bottom: 0;
}

.bm-shadow-fields__color {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
	border-top: 1px solid #e2e4e7;
}

.bm-shadow-fields__color-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #50575e;
}

.bm-shadow-fields__color-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bm-shadow-fields__color-value {
	font-size: 12px;
	font-weight: 500;
	color: #50575e;
	word-break: break-all;
}

.bm-shadow-fields__color .components-circular-option-picker,
.bm-shadow-fields__color .components-color-palette {
	width: 100%;
}
