/**
 * Frontend CAPTCHA styles.
 */

.wmcaptcha_box.wm-sc-captcha {
	clear: both;
	margin: 0 0 1em;
}

.wm-sc-captcha label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.wm-sc-captcha .wmcaptcha_fieldbox,
.wm-sc-captcha .wm-sc-captcha__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.wm-sc-captcha .wmcaptcha_fieldbox_input {
	flex: 0 1 150px;
	min-width: 120px;
}

.wm-sc-captcha .wm-sc-captcha__input {
	width: 100%;
	box-sizing: border-box;
}

.wm-sc-captcha .wmcaptcha_fieldbox_img,
.wm-sc-captcha .wm-sc-captcha__image-wrap {
	display: inline-block;
	line-height: 0;
	vertical-align: middle;
}

.wm-sc-captcha .wm-sc-captcha__image {
	display: block;
	max-width: none;
	box-sizing: content-box;
}

.wm-sc-captcha .refresh_image,
.wm-sc-captcha .wm-captcha-refresh,
.wm-sc-captcha [data-wm-sc-refresh] {
	cursor: pointer;
}

.wm-sc-captcha .wm-sc-captcha__refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	line-height: 1.4;
	cursor: pointer;
}

.wm-sc-captcha .wm-sc-captcha__refresh img {
	display: block;
	max-height: 32px;
	width: auto;
}

.wm-sc-captcha .wmcaptcha_fieldbox_clearfix,
.wm-sc-captcha .wmcaptcha_clearfix {
	clear: both;
	display: block;
}

.wm-sc-captcha[data-loading="1"] {
	opacity: 0.65;
	pointer-events: none;
}

@media (max-width: 480px) {
	.wm-sc-captcha .wmcaptcha_fieldbox_input {
		flex: 1 1 100%;
	}
}
