#czatix-app .czx-gate,
#czatix-app .czx-ban,
#czatix-app .czx-blocked {
  position: fixed;
  z-index: 70;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(420px, calc(100% - 32px));
  max-width: 420px;
  height: max-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow: visible;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: inherit;
  isolation: isolate;
}

#czatix-app .czx-gate::before,
#czatix-app .czx-ban::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: auto;
}

#czatix-app .czx-ban,
#czatix-app .czx-blocked {
  z-index: 80;
  border-color: var(--danger);
}

#czatix-app .czx-blocked h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.czx-gate h1,
.czx-ban h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.czx-gate p,
.czx-ban p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.czx-gate h1 + p {
  margin-bottom: 20px;
}

.czx-ban p + p {
  margin-top: 10px;
}

.czx-gate label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.czx-gate input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.czx-gate input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.czx-gate input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}

.czx-gate input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset;
}

.czx-gate .czx-btn,
.czx-gate button[type="submit"] {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.czx-gate .czx-btn:hover,
.czx-gate button[type="submit"]:hover {
  background: color-mix(in srgb, var(--blue) 86%, #000);
}

.czx-gate .czx-btn:focus-visible,
.czx-gate button[type="submit"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.czx-gate .czx-btn:disabled,
.czx-gate button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.czx-gate .czx-err,
.czx-gate p[role="alert"] {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.czx-gate .czx-err:empty {
  display: none;
}

.czx-ban a {
  color: var(--blue);
  font-weight: 650;
}
