/* Elementor Math Captcha */

/* Riga compatta: "7 + 3 =" [ casella ] ↻  — tutto in linea, allineato a sinistra. */
.emc-captcha {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

/* Messaggio di errore di Elementor: va a capo sotto la riga del captcha. */
.emc-captcha > .elementor-message {
	flex-basis: 100%;
	order: 10;
}

.emc-captcha .emc-question {
	flex: 0 0 auto;
	font-weight: 600;
	font-size: 1.1em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	user-select: none;
	transition: opacity 0.2s;
}

/* Casella piccola: sovrascrive la larghezza 100% che Elementor dà ai campi. */
.elementor-form .elementor-field-group .emc-captcha .emc-answer,
.emc-captcha .emc-answer {
	flex: 0 0 auto;
	width: 80px !important;
	min-width: 0;
	max-width: 80px;
	text-align: center;
}

.emc-captcha .emc-refresh {
	flex: 0 0 auto;
	padding: 4px 8px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: inherit;
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.6;
	cursor: pointer;
}

.emc-captcha .emc-refresh:hover,
.emc-captcha .emc-refresh:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	opacity: 1;
}

.emc-captcha.emc-loading .emc-question {
	opacity: 0.4;
}

.emc-captcha.emc-loading .emc-refresh span {
	display: inline-block;
	animation: emc-spin 0.8s linear infinite;
}

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