.wp-block-mcb-mermaid.mcb-mermaid-block {
	margin-block: 1.5rem;
}

.mcb-mermaid-output {
	overflow-x: auto;
	text-align: center;
}

.mcb-mermaid-output svg {
	max-width: 100%;
	height: auto;
}

.mcb-mermaid-source {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: auto;
	padding: 1rem;
	border: 1px solid currentColor;
	border-radius: 0.375rem;
	white-space: pre;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mcb-mermaid-error {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid currentColor;
	font-weight: 600;
}

.mcb-mermaid-caption {
	margin-top: 0.75rem;
	font-size: 0.9em;
	text-align: center;
}
