/**
 * core/icon: core sets height/width:100% which collapses in flex parents.
 * Only override height — keep inline width:NNpx from the block.
 * Never set width:auto !important (that zeroed every icon).
 * Never force color — inherit from block/theme (textColor / currentColor).
 */
.wp-block-icon {
	line-height: 0;
	flex-shrink: 0;
}

.wp-block-icon svg {
	box-sizing: border-box;
	display: block;
	height: auto !important;
	max-width: 100%;
	vertical-align: middle;
}

/* Multi-color brand SVGs keep path fills; currentColor paths still inherit */
.wp-block-icon svg:has([fill]:not([fill="currentColor"]):not([fill="none"])) {
	fill: none;
}

.wp-block-icon.aligncenter {
	display: flex;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
	max-width: 100%;
}
