/* All of this is counteracting either code that was custom-built to work with the old theme or is happening because the CF7 shortcode doesn't play nicely with the Block Editor. */

.wpcf7 :is(input:not([type=button]):not([type=checkbox]):not([type=file]):not([type=radio]):not([type=submit]):not([type=image]):not([readonly]), select, textarea) {
	background: rgba(153,153,153,0.2);
	border-color: var(--wp--preset--color--neutral-dark) !important;
	color: var(--wp--preset--color--foreground) !important;
}

body.dark_mode .wpcf7 :is(input:not([type=button]):not([type=checkbox]):not([type=file]):not([type=radio]):not([type=submit]):not([type=image]):not([readonly]), select, textarea) {
	color: var(--wp--preset--color--background) !important;
}

.wpcf7 input:is([type=checkbox], [type=radio]) {
	display: inline-block;
	margin-right: 0.5em;
	transform: scale(1.5);
}

.wpcf7 :is(label :is(input + br, span > br:first-child), .currency-symbol + br) { display: none; }

.wpcf7 .req-asterisk { margin-left: 0 !important; }