body.peregrine-captcha-open {
	overflow: hidden;
}

.peregrine-captcha[hidden] {
	display: none !important;
}

.peregrine-captcha {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: Montserrat, Arial, sans-serif;
}

.peregrine-captcha__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(2px);
}

.peregrine-captcha__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 32px;
	border: 1px solid rgba(0, 148, 68, 0.28);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	color: #1f2937;
	text-align: center;
}

.peregrine-captcha__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.peregrine-captcha__close:hover,
.peregrine-captcha__close:focus-visible {
	color: #009444;
}

.peregrine-captcha__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #e9f8ef;
	color: #009444;
	font-size: 28px;
	font-weight: 700;
}

.peregrine-captcha h2 {
	margin: 0 28px 10px;
	color: #111827;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.peregrine-captcha #peregrine-captcha-help {
	margin: 0 0 22px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.peregrine-captcha__question {
	margin-bottom: 16px;
	padding: 15px 18px;
	border-radius: 10px;
	background: #f1f8f4;
	color: #111827;
	font-size: 21px;
	font-weight: 700;
}

.peregrine-captcha__label {
	display: block;
	margin-bottom: 7px;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

.peregrine-captcha__answer {
	display: block;
	width: 100%;
	height: 48px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font: inherit;
	font-size: 18px;
	text-align: center;
}

.peregrine-captcha__answer:focus {
	border-color: #009444;
	outline: 3px solid rgba(0, 148, 68, 0.16);
}

.peregrine-captcha__error {
	margin: 12px 0 0;
	color: #b42318;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
}

.peregrine-captcha__actions {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.peregrine-captcha__actions button {
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.peregrine-captcha__cancel {
	flex: 0 0 auto;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #475569;
}

.peregrine-captcha__verify {
	flex: 1 1 auto;
	border: 1px solid #009444;
	background: #009444;
	color: #fff;
}

.peregrine-captcha__verify:hover:not(:disabled),
.peregrine-captcha__verify:focus-visible {
	border-color: #007f3a;
	background: #007f3a;
}

.peregrine-captcha__verify:disabled,
.peregrine-captcha__answer:disabled {
	opacity: 0.62;
	cursor: wait;
}

@media (max-width: 520px) {
	.peregrine-captcha {
		padding: 12px;
	}

	.peregrine-captcha__dialog {
		padding: 28px 20px 22px;
		border-radius: 14px;
	}

	.peregrine-captcha h2 {
		font-size: 21px;
	}

	.peregrine-captcha__actions {
		flex-direction: column-reverse;
	}

	.peregrine-captcha__actions button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.peregrine-captcha *,
	.peregrine-captcha *::before,
	.peregrine-captcha *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
