/* 极验行为验证 4.0 前台适配
 * 极验弹窗与按钮样式由官方 SDK 提供，这里只处理宿主表单的布局
 */

.gt-slot {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
}

/* 原位替换：极验按钮占据原「验证码」控件的位置，
 * 去掉原胶囊输入框的灰底、边框与内边距 */
.uc-auth-field-captcha.gt-inplace,
.uc-auth-field.gt-inplace,
.field.gt-inplace {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.uc-auth-field-captcha.gt-inplace:focus-within,
.field.gt-inplace:focus-within {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.uc-auth-field-captcha.gt-inplace > label,
.field.gt-inplace > label {
  display: none !important;
}

.uc-auth-field-captcha.gt-inplace > .uc-auth-input,
.uc-auth-field-captcha.gt-inplace > img.js-captcha,
.field.gt-inplace .captcha-row .input,
.field.gt-inplace .captcha-row img.js-captcha {
  display: none !important;
}

/* 发帖/回帖宿主：.captcha-row 改为块级，极验按钮占满 */
.field.gt-inplace .captcha-row.gt-row {
  display: block;
  gap: 0;
}

.field.gt-inplace .captcha-row.gt-row .gt-slot {
  margin: 0;
}

.gt-slot .geetest_holder,
.gt-slot .geetest_box {
  width: 100% !important;
  box-sizing: border-box;
}

.gt-slot .geetest_btn,
.gt-slot .geetest_radar_btn {
  width: 100% !important;
  box-sizing: border-box;
}
