/**
 * Bold Blocks SVG Block — selective fill/stroke overrides.
 *
 * Upstream paints fill/stroke on every SVG descendant with !important.
 * These rules restore intentional fill="none" / fill="transparent" and
 * limit Stroke color to elements that already declare a stroke attribute.
 *
 * Covers both:
 * - Frontend class hooks (.svg-fill-color / .svg-stroke-color)
 * - Editor inline-style hooks ([style*="--svg--fill-color:"] etc.)
 */

/* -------------------------------------------------------------------------
 * Fill: keep fill="none" and fill="transparent" empty when Fill color is set.
 * ------------------------------------------------------------------------- */
.wp-block-boldblocks-svg-block .svg-fill-color [fill="none"],
.wp-block-boldblocks-svg-block .svg-fill-color [fill="none"] *,
.wp-block-boldblocks-svg-block .svg-fill-color [fill="transparent"],
.wp-block-boldblocks-svg-block [style*="--svg--fill-color:"] [fill="none"],
.wp-block-boldblocks-svg-block [style*="--svg--fill-color:"] [fill="none"] *,
.wp-block-boldblocks-svg-block [style*="--svg--fill-color:"] [fill="transparent"] {
	fill: none !important;
}

/* -------------------------------------------------------------------------
 * Stroke: cancel the blanket svg * stroke, then re-apply only where intended.
 * Leave upstream color: var(--svg--stroke-color) alone so currentColor fills
 * still pick up the Stroke setting when authors use it that way.
 * ------------------------------------------------------------------------- */
.wp-block-boldblocks-svg-block .svg-stroke-color svg,
.wp-block-boldblocks-svg-block .svg-stroke-color svg *,
.wp-block-boldblocks-svg-block [style*="--svg--stroke-color:"] svg,
.wp-block-boldblocks-svg-block [style*="--svg--stroke-color:"] svg * {
	stroke: unset;
}

.wp-block-boldblocks-svg-block .svg-stroke-color [stroke]:not([stroke="none"]),
.wp-block-boldblocks-svg-block [style*="--svg--stroke-color:"] [stroke]:not([stroke="none"]) {
	stroke: var(--svg--stroke-color) !important;
}
