.custom-all-captcha-field {
	margin: 0 0 18px;
}

form p.custom-all-captcha-field {
	margin-bottom: 10px !important;
}

.custom-all-captcha-field label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.caac-control {
	display: inline-grid;
	grid-template-columns: minmax(150px, auto) minmax(90px, 1fr);
	align-items: stretch;
	width: min(100%, 460px);
	height: 54px;
	min-height: 54px;
	overflow: hidden;
	border: 1px solid #b8c2cc;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.caac-control.has-reset-button {
	grid-template-columns: minmax(150px, auto) minmax(90px, 1fr) 38px;
}

.caac-challenge-row {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 54px;
	padding: 0;
	border-right: 1px solid #d8dee5;
	background: #f8fafc;
}

.caac-text-captcha {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	width: 100%;
	min-width: 170px;
	height: 54px;
	margin: 0;
	padding: 0 12px;
	overflow: hidden;
	vertical-align: middle;
	border: 0;
	border-radius: 0;
	background:
		radial-gradient(circle at var(--caac-dot-one, 18% 28%), rgba(255, 255, 255, 0.88) 0 2px, transparent 3px),
		radial-gradient(circle at var(--caac-dot-two, 82% 40%), rgba(24, 49, 83, 0.2) 0 1px, transparent 3px),
		repeating-linear-gradient(var(--caac-stripe-angle, 135deg), rgba(122, 31, 61, 0.11) 0 2px, transparent 2px 7px),
		linear-gradient(var(--caac-bg-angle, 115deg), var(--caac-bg-one, #eef6ff) 0%, var(--caac-bg-two, #fff3df) 52%, var(--caac-bg-three, #edf8ee) 100%);
	box-shadow: inset 0 0 18px rgba(24, 49, 83, 0.13);
	user-select: none;
}

.caac-math-captcha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 54px;
	padding: 0 12px;
	color: #183153;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	white-space: nowrap;
}

.caac-text-captcha::before,
.caac-text-captcha::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
}

.caac-text-captcha::before {
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
		linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
	background-size: 13px 11px;
	opacity: 0.45;
}

.caac-text-captcha::after {
	background: repeating-linear-gradient(72deg, transparent 0 8px, rgba(0, 0, 0, 0.13) 9px, transparent 10px 17px);
	mix-blend-mode: multiply;
	opacity: 0.24;
}

.caac-text-captcha-char {
	position: relative;
	z-index: 2;
	display: inline-block;
	color: var(--caac-color);
	font-size: 25px;
	line-height: 1;
	letter-spacing: var(--caac-spacing);
	text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.85), -1px 1px 0 rgba(24, 49, 83, 0.2);
	transform: translateY(var(--caac-offset)) rotate(var(--caac-rotate)) scale(var(--caac-scale));
}

.caac-noise-line {
	position: absolute;
	z-index: 3;
	left: 8px;
	right: 8px;
	height: 2px;
	pointer-events: none;
	background: rgba(24, 49, 83, 0.45);
	transform-origin: center;
}

.caac-noise-line-one {
	top: 17px;
	transform: rotate(-7deg);
}

.caac-noise-line-two {
	bottom: 15px;
	background: rgba(122, 31, 61, 0.35);
	transform: rotate(8deg);
}

.caac-refresh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 54px;
	padding: 0;
	margin: 0;
	border: 0;
	border-left: 1px solid #d8dee5;
	border-radius: 0;
	background: #f8fafc;
	color: #1d2327;
	line-height: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.caac-refresh-icon {
	display: block;
	margin: auto;
	transform: rotate(-25deg);
	transition: transform 0.2s ease;
}

.caac-refresh-button:hover,
.caac-refresh-button:focus {
	border-color: #2271b1;
	color: #0a4b78;
}

.caac-refresh-button:hover .caac-refresh-icon,
.caac-refresh-button:focus .caac-refresh-icon {
	transform: rotate(55deg);
}

.caac-refresh-button.is-loading {
	cursor: wait;
	opacity: 0.7;
}

.caac-refresh-button.is-loading .caac-refresh-icon {
	animation: caac-spin 0.7s linear infinite;
}

@keyframes caac-spin {
	to {
		transform: rotate(335deg);
	}
}

.custom-all-captcha-field .caac-answer-field {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100% !important;
	min-height: auto !important;
	max-height: none !important;
	padding: 0 12px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	outline: 0;
	font-size: 16px;
	line-height: 54px;
	appearance: none;
	-webkit-appearance: none;
}

.custom-all-captcha-field input.caac-answer-field,
.custom-all-captcha-field input[name="caac_captcha_answer"] {
	height: 100% !important;
	min-height: auto !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}

.custom-all-captcha-field .caac-answer-field:focus {
	box-shadow: inset 0 0 0 2px #2271b1;
}

.custom-all-captcha-field .required {
	color: #b32d2e;
}

@media (max-width: 420px) {
	.caac-control {
		grid-template-columns: 1fr 38px;
		height: 108px;
	}

	.caac-control.has-no-reset-button {
		grid-template-columns: 1fr;
	}

	.caac-challenge-row {
		grid-column: 1 / 2;
		height: 54px;
		border-bottom: 1px solid #d8dee5;
	}

	.caac-refresh-button {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.custom-all-captcha-field .caac-answer-field {
		grid-column: 1 / 2;
		height: 54px;
	}
}
