/* Novazh Guard CAPTCHA. Logical properties keep it correct in RTL. */
.ng-captcha {
	/* Translucent colors inherit the theme, so the box fits light and dark themes. */
	--ng-bg: rgba(128, 128, 128, 0.08);
	--ng-border: rgba(128, 128, 128, 0.45);
	--ng-btn: transparent;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	margin-block: 0 16px;
	padding: 12px;
	border: 1px solid var(--ng-border);
	border-radius: 6px;
	background: var(--ng-bg);
	color: inherit;
}

.ng-captcha label {
	display: block;
	margin-block-end: 6px;
	color: inherit;
}

.ng-captcha-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-block-end: 8px;
	direction: ltr;
}

.ng-captcha-img {
	display: block;
	width: 160px;
	max-width: 100%;
	height: 50px;
	border-radius: 4px;
	background: #fff;
}

.ng-captcha-refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--ng-border);
	border-radius: 4px;
	background: var(--ng-btn);
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ng-captcha-refresh:focus-visible,
.ng-captcha-code:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.ng-captcha .ng-captcha-code {
	box-sizing: border-box;
	width: 100%;
	max-width: 220px;
	margin: 0;
	font-size: 18px;
	letter-spacing: 3px;
	text-align: center;
	direction: ltr;
}

.ng-captcha-status:not(:empty) {
	display: block;
	margin-block-start: 6px;
	color: #d63638;
}

.ng-captcha-box {
	min-height: 65px;
}

/* wp-login.php inputs are wide; keep the code field compact there too. */
.login .ng-captcha .ng-captcha-code {
	max-width: none;
	margin-block-end: 0;
}

.wp-admin .ng-captcha {
	max-width: 400px;
}
