/* Anti-Spam WP - front-end styles. */

.asw-recaptcha {
	clear: both;
	margin: 10px 0 15px;
}

.asw-recaptcha .asw-recaptcha-widget {
	display: flex;
	justify-content: flex-start;
}

.asw-recaptcha.asw-align-center .asw-recaptcha-widget {
	justify-content: center;
}

.asw-recaptcha.asw-align-right .asw-recaptcha-widget {
	justify-content: flex-end;
}

.asw-recaptcha.asw-align-center {
	text-align: center;
}

.asw-recaptcha.asw-align-right {
	text-align: right;
}

/* Invisible widgets with a fixed badge take no room in the form. */
.asw-recaptcha.asw-recaptcha-fixed {
	margin: 0;
}

.asw-recaptcha-fixed .grecaptcha-badge {
	z-index: 9999;
}

/* Badge hidden in favour of the legal notice. */
.asw-recaptcha-hidden .grecaptcha-badge {
	visibility: hidden !important;
}

.asw-recaptcha-legal {
	font-size: 80%;
	opacity: 0.8;
	padding: 5px 0;
}

.asw-recaptcha.asw-recaptcha-fixed.asw-recaptcha-hidden {
	margin: 5px 0 10px;
}

.asw-recaptcha-error {
	color: #dc3232;
	font-size: 90%;
	margin-top: 5px;
}

/* Native WordPress login screen: make room for the checkbox widget. */
body.login #login:has(.asw-recaptcha-v2_cbx) {
	width: 352px;
}

body.login .asw-recaptcha {
	margin: 0 0 16px;
}
