/**
 * cis/svg
 *
 * The front end needs no CSS of its own: the icon is printed inline and the site (ACSS) sizes and styles it through the data-icon
 * attributes, and the page classes come from the Etch styles the block registers.
 *
 * Editor canvas only: the block wrapper, the empty state and the <img> fallback. The canvas normally shows the inline <svg> PHP renders,
 * so a page class (size, display, colour, position) applies as on the site. Everything the editor adds to the icon itself is zero
 * specificity (:where), so it can never beat a page class.
 */
.bw-svg-editor.wp-block {
	margin: 0;
	display: flex;
	/* An icon that is absolutely positioned or has pointer-events: none (a watermark) would leave an empty wrapper: keep it selectable. */
	min-inline-size: 1.5rem;
	min-block-size: 1.5rem;
}

:where(.bw-svg-editor .bw-svg-preview) {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
	inline-size: var(--icon-size, 2rem);
}

.bw-svg-editor .bw-svg-editor__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 5rem;
	block-size: 5rem;
	border: 0.0625rem dashed currentColor;
	border-radius: var(--radius-m);
	font-size: var(--text-s);
	text-align: center;
}
