.wp-block[data-align="center"] > .wp-block-button {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.wp-block[data-align="right"] > .wp-block-button {
	/*!rtl:ignore*/
	text-align: right;
}

.wp-block-button {
	position: relative;
	cursor: text;

	// Increase placeholder opacity to meet contrast ratios.
	&[data-rich-text-placeholder]::after {
		opacity: 0.8;
	}
}

// Display "table" is used because the button container should only wrap the content and not takes the full width.
div[data-type="core/button"] {
	display: table;
}
