.aipak-captcha {
	display: block;
	padding: 8px 10px;
	background: #f5f7f6;
	border: 1px solid #d7d6d2;
	border-radius: 0;
}

.aipak-captcha-line {
	display: grid;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 40px;
	align-items: center;
	gap: 12px;
}

.aipak-captcha-image {
	display: block;
	width: 100%;
	height: 54px;
	object-fit: contain;
	background: #f2f8ff;
	border: 1px solid #d7d6d2;
	box-sizing: border-box;
	user-select: none;
}

.aipak-captcha-media {
	display: block;
}

.aipak-captcha-refresh {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	color: #092f69;
	background: #fff;
	border: 1px solid #cbd6e4;
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.aipak-captcha-refresh:hover,
.aipak-captcha-refresh:focus-visible {
	background: #08aee0;
	border-color: #08aee0;
	color: #fff;
	outline: 0;
	transform: rotate(20deg);
}

.aipak-captcha.is-refreshing .aipak-captcha-image {
	opacity: .5;
}

.aipak-captcha.is-refreshing .aipak-captcha-refresh svg {
	animation: aipak-captcha-spin .7s linear infinite;
}

.aipak-captcha-refresh:disabled {
	cursor: wait;
	opacity: .7;
}

.aipak-captcha-status {
	display: block;
	min-height: 0;
	margin-top: 5px;
	color: #b42318;
	font-size: 10px;
}

.aipak-captcha-status:empty {
	display: none;
}

@keyframes aipak-captcha-spin {
	to { transform: rotate(360deg); }
}

.aipak-captcha .aipak-captcha-answer[type="text"] {
	width: 100%;
	height: 52px;
	padding: 5px 9px;
	box-sizing: border-box;
	color: #12151f;
	background: #fff;
	border: 1px solid #d7d6d2;
	border-radius: 0;
	direction: ltr;
	font: 700 17px Vazirmatn, Manrope, sans-serif;
	outline: 0;
	text-align: center;
}

@media (max-width: 420px) {
	.aipak-captcha-line {
		grid-template-columns: minmax(0, 1fr) 76px 40px;
		gap: 8px;
	}

	.aipak-captcha-image {
		height: 48px;
	}
}

.aipak-captcha .aipak-captcha-answer[type="text"]:focus {
	border-color: #08bdf2;
	box-shadow: 0 0 0 3px rgba(8, 189, 242, .11);
}

.aipak-captcha .aipak-captcha-answer[type="text"]:disabled {
	cursor: not-allowed;
	opacity: .55;
}
