html.bot-gate-pending,
html.bot-gate-pending body {
  overflow: hidden !important;
  background: #f4f7fc !important;
}

html.bot-gate-pending body > :not(#bot-verification-gate):not(script) {
  visibility: hidden !important;
}

#bot-verification-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  overflow: auto;
  background:
    radial-gradient(circle at 50% 8%, rgba(49, 177, 240, .18), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bot-gate-card {
  width: min(100%, 390px);
  box-sizing: border-box;
  padding: 34px 22px 28px;
  border: 1px solid rgba(116, 149, 187, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 50px rgba(40, 76, 119, .14);
  text-align: center;
}

.bot-gate-logo {
  display: block;
  width: auto;
  max-width: 210px;
  height: 72px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.bot-gate-title {
  margin: 0;
  color: #17263d;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 1.45;
}

.bot-gate-description {
  margin: 10px 0 24px;
  color: #77869b;
  font-size: 14px !important;
  line-height: 1.65;
}

.bot-gate-widget {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
}

.bot-gate-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 13px !important;
  line-height: 1.6;
}

.bot-gate-status.is-error {
  color: #d14343;
}

.bot-gate-retry {
  display: none;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #22b8e8, #2789e6);
  color: #fff;
  font-size: 15px !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(39, 137, 230, .24);
}

.bot-gate-retry.is-visible {
  display: block;
}

@media (max-width: 420px) {
  #bot-verification-gate {
    align-items: stretch;
    padding-left: 14px;
    padding-right: 14px;
  }

  .bot-gate-card {
    align-self: center;
    padding: 30px 16px 24px;
  }
}
