/*
 * 插件挂载区布局；极验仅允许「横向铺满」相关规则（与输入框/登录钮同宽），
 * 不设颜色/圆角/遮罩；勿对 canvas、svg 等设 width:100% 以免拉扁挑战图。
 */

.mf-geetest-scene {
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

/* 行布局：验证码区域不超出父级；列在 flex 内可收缩 */
.mf-geetest-scene.form-group.row {
	max-width: 100%;
}

.mf-geetest-field-wrap {
	min-width: 0;
	max-width: 100%;
}

/* 非弹窗：与 col-sm-8 对齐；弹窗内由主题 global.css 覆盖 */
@media (min-width: 576px) {
	.mf-geetest-scene.form-group.row > .col-sm-8.mf-geetest-field-wrap {
		flex: 0 0 66.666667%;
		max-width: 66.666667%;
	}
}

.mf-geetest-scene--stack label {
	margin-bottom: 0.35rem;
}

.mf-geetest-inner {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	box-sizing: border-box;
	flex: 0 0 auto;
	align-self: stretch;
}

.form-group.row.mf-geetest-scene > [class*="col-"] {
	min-width: 0;
}

.mf-geetest-mount {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	min-height: 44px;
	box-sizing: border-box;
	overflow: visible;
	position: relative;
}

.mf-geetest-mount > div:first-child {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mf-geetest-mount .geetest_holder,
.mf-geetest-mount .geetest_btn_box,
.mf-geetest-mount .geetest_embed {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.modal-body .mf-geetest-inner,
.modal-body .mf-geetest-mount {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
}

.nq-auth-verify {
	width: 100%;
	max-width: 100%;
}

.nq-auth-verify .mf-geetest-scene,
.nq-auth-verify .mf-geetest-inner,
.nq-auth-verify .mf-geetest-mount {
	width: 100%;
	max-width: 100%;
}

.input-group ~ .mf-geetest-mount,
.input-group + .mf-geetest-legacy {
	width: 100%;
	max-width: 100%;
	margin-top: 0.5rem;
}

/* 会员中心登录卡片与 Toast / 弹窗的层级（非极验组件外观） */
.nq-auth {
	position: relative;
	z-index: 12050 !important;
}

.modal.show,
.modal.fade.show {
	z-index: 2147483647 !important;
}

.modal-backdrop.show {
	z-index: 2147483635 !important;
	opacity: 1 !important;
	background: rgba(15, 23, 42, 0.44) !important;
	background-color: rgba(15, 23, 42, 0.44) !important;
	-webkit-backdrop-filter: blur(10px) saturate(1.05);
	backdrop-filter: blur(10px) saturate(1.05);
	transform: translateZ(0);
}

.nq-auth .mf-geetest-inner,
.nq-auth .mf-geetest-mount {
	position: relative;
	z-index: 25;
}
