// editor general styles

// ub-common package component styles
@import "../library/ub-common/Components/editor";

// Upsell related styles
@import "./styles/Upsell/UpsellEditor.scss";

// Saved styles related styles
@import "./styles/SavedStyles/SavedStylesEditor.sass";

.ub-show-custom-label {
	.components-base-control__label {
		visibility: hidden;
	}
	> .components-base-control__field {
		> .components-base-control__label {
			visibility: visible;
			position: absolute;
		}
	}
}

/**
 * Inside a ToolsPanel WordPress zeroes the range control's bottom margin, but
 * inside a PanelBody it does not, and those extra 16px push the side indicator
 * of the spacing control below its slider.
 */
.ub-spacing-control {
	.spacing-sizes-control__wrapper,
	.preset-input-control__wrapper {
		.components-range-control {
			margin-bottom: 0;
		}
	}
}
