/*
 * Theme buttons — generic pill button.
 * theme.json (styles.elements.button) owns the core Button block colors;
 * this file makes non-block buttons (.theme-button — Gravity Forms etc.)
 * match, and adds the interaction states theme.json can't express.
 */

.theme-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	border: 1px solid var(--wp--preset--color--black, #000);
	border-radius: 999px;
	background-color: var(--wp--preset--color--black, #000);
	color: var(--wp--preset--color--white, #fff);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body, 18px);
	font-weight: 500;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s, color .3s;
}

.theme-button:hover,
.theme-button:focus-visible {
	background-color: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--black, #000);
}

/* Keep the core Button block's hover flip legible on white backgrounds */
.wp-block-button__link {
	border: 1px solid var(--wp--preset--color--black, #000);
	transition: background-color .3s, color .3s;
}

.theme-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--black, #000);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.theme-button,
	.wp-block-button__link {
		transition: none;
	}
}
