/* Externalise (passe 2) — bloc inline #34 — position inchangee */

/* G6M_LOGIN_CAPTCHA_FIX_V405
   Fix empty/oversized Cloudflare Turnstile on login.
   - Remove decorative empty frame
   - Stop forcing flex/size on Turnstile host (breaks CF render)
   - Let native widget size itself; center only
*/

html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has(.cf-turnstile),
html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has([data-xf-init="turnstile"]),
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"],
html#XF[data-template="login"] .g6m397-col--form .g6m404-captcha,
html#XF[data-template="login"] .g6m397-col--form .g6m405-captcha {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: center !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	gap: 0 !important;
	overflow: visible !important;
}

html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has(.cf-turnstile) > dt,
html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has([data-xf-init="turnstile"]) > dt,
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"] > dt {
	display: none !important;
}

html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has(.cf-turnstile) > dd,
html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has([data-xf-init="turnstile"]) > dd,
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"] > dd {
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 auto !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
	border: 0 !important;
}

/* CRITICAL: do NOT force display:flex on Turnstile host — CF needs normal block flow */
html#XF[data-template="login"] .g6m397-col--form form.block .cf-turnstile,
html#XF[data-template="login"] .g6m397-col--form form.block [data-xf-init="turnstile"],
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"] [data-xf-init="turnstile"],
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"] .cf-turnstile {
	display: block !important;
	width: max-content !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	overflow: visible !important;
	line-height: normal !important;
}

/* Fixed CF footprint — height:auto caused white 1px gaps around the widget */
html#XF[data-template="login"] .g6m397-col--form form.block .cf-turnstile iframe,
html#XF[data-template="login"] .g6m397-col--form form.block [data-xf-init="turnstile"] iframe,
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"] iframe {
	display: block !important;
	max-width: 100% !important;
	width: 300px !important;
	min-width: 0 !important;
	min-height: 65px !important;
	height: 65px !important;
	margin: 0 auto !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Kill leftover decorative frames from older login locks (v390–v402) */
html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has(.cf-turnstile),
html#XF[data-template="login"] .g6m397-col--form form.block .formRow:has([data-xf-init="turnstile"]),
html#XF[data-template="login"] .g6m397-col--form form.block .formRow[context="xf_login"],
html#XF[data-template="login"] .g6m397-col--form .g6m405-captcha,
html#XF[data-template="login"] .g6m397-col--form .g6m404-captcha,
html#XF[data-template="login"] .g6m397-col--form .g6m402-captcha {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html#XF[data-template="login"] .g6m397-col--form form.block [data-xf-init="turnstile"] > div,
html#XF[data-template="login"] .g6m397-col--form form.block .cf-turnstile > div {
	background: transparent !important;
	margin: 0 auto !important;
}

/* END G6M_LOGIN_CAPTCHA_FIX_V405 */

