/* The disclosure is present on every protected form, so the v3 badge may be
 * hidden using Google's permitted visibility-only approach. */
.grecaptcha-badge {
	visibility: hidden;
}

.policolor-recaptcha-notice {
	align-items: flex-start;
	box-sizing: border-box;
	color: #68706b;
	display: flex;
	font-family: inherit;
	font-size: 11px;
	font-weight: 400;
	gap: 0.4rem;
	line-height: 1.45;
	margin: 12px 0 0;
	max-width: 100%;
	padding: 0;
	text-align: left;
	width: 100%;
}

.policolor-recaptcha-notice__icon {
	color: #777f79;
	display: inline-flex;
	flex: 0 0 auto;
	height: 14px;
	width: 1rem;
}

.policolor-recaptcha-notice__icon svg {
	height: 100%;
	width: 100%;
}

.policolor-recaptcha-notice__legal {
	display: inline;
}

.policolor-recaptcha-notice__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.content p.policolor-recaptcha-notice {
	font-size: 11px;
	line-height: 1.45;
}

.woocommerce .policolor-recaptcha-notice {
	margin: 12px 0 0;
}

.policolor-recaptcha-notice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.policolor-recaptcha-notice a:focus,
.policolor-recaptcha-notice a:hover {
	color: #252a27;
}

.policolor-recaptcha-status {
	color: #9d2f2f;
	font-size: 0.8125rem;
	line-height: 1.45;
	margin: 0.5rem 0 0;
}

/* WooCommerce applies its own bordered form panel after the theme stylesheet.
 * The account page already supplies the rounded outer card. */
.woocommerce .login-register-tab form.login,
.woocommerce .login-register-tab form.register {
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

/* Core WordPress login forms render the hook after the password/email field.
 * Flex ordering keeps the disclosure after the submit controls while keeping
 * it inside the form, including in the Nextend popup. */
#loginform,
#registerform,
#lostpasswordform,
#resetpassform {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 0;
	overflow: visible;
}

#loginform .policolor-recaptcha-notice,
#registerform .policolor-recaptcha-notice,
#lostpasswordform .policolor-recaptcha-notice,
#resetpassform .policolor-recaptcha-notice {
	margin-top: 12px;
	order: 10;
}

#loginform .policolor-recaptcha-status,
#registerform .policolor-recaptcha-status,
#lostpasswordform .policolor-recaptcha-status,
#resetpassform .policolor-recaptcha-status {
	order: 11;
}

@media (max-width: 600px) {
	.policolor-recaptcha-notice {
		align-items: flex-start;
		font-size: 11px;
	}

	.policolor-recaptcha-notice__legal {
		display: block;
	}
}
