/* ALTCHA of common/altcha.xhtml, 2026-11-07 altcha-modern (same look as hw-altcha of the sister product): no checkbox, one calm status
   line (common/altcha-status.xhtml, driven by altcha-bb.js) with shield icon, state text and a retry button.
   Colours: the line takes the text colour of the page (currentColor), so it follows every template, light and dark;
   altchaTone=inverse sets white for dark backgrounds. Variant compact = smaller type for tight places (newsletter fields). */
.mv-altcha {
	position: relative;
	max-width: 100%;
}

/* the widget keeps solving the proof of work and writes the hidden field "altcha", but has no UI of its own: out of sight,
   out of the tab order and the accessibility tree (visibility), still in the DOM and in the form */
.mv-altcha altcha-widget {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

/* data-state: unverified | verifying | verified | expired | error; the line height is reserved from the server render */
.mv-altcha__status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .15rem .5rem;
	min-height: 1.5rem;
	font-size: .875em;
	line-height: 1.4;
	color: inherit;
}

.mv-altcha__icon {
	flex: none;
	opacity: .85;
}

.mv-altcha__tick {
	opacity: 0;
}

.mv-altcha__text {
	overflow-wrap: anywhere;
}

.mv-altcha__spin {
	display: none;
	flex: none;
	width: .8rem;
	height: .8rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: mv-altcha-spin .8s linear infinite;
}

.mv-altcha__retry {
	/* 44 px target without a taller line */
	box-sizing: border-box;
	min-height: 44px;
	margin: -10px 0;
	padding: 0 .5rem;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .15em;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.mv-altcha__retry[hidden] {
	display: none;
}

.mv-altcha__retry:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
	border-radius: 4px;
}

.mv-altcha__status[data-state="verifying"] .mv-altcha__spin {
	display: inline-block;
}

.mv-altcha__status[data-state="verified"] .mv-altcha__tick {
	opacity: 1;
}

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

@media (prefers-reduced-motion: reduce) {
	/* no spin: a static half ring still says "in progress" */
	.mv-altcha__spin { animation: none; }
}

/* variant compact (altchaVariant=compact): a small, quiet line under tight forms; text stays 13px for readability */
.mv-altcha--compact {
	display: block;
	margin: 8px 0 10px;
}

.mv-altcha--compact .mv-altcha__status {
	font-size: 13px;
	line-height: 1.3;
}

/* dark backgrounds (altchaTone=inverse) */
.mv-altcha--inverse {
	color: #fff;
}
