.wc-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  color: var(--text);
  background: rgba(20, 20, 19, 0.42);
}

.wc-gate[hidden] {
  display: none;
}

.wc-gate__panel {
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface, var(--panel));
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.wc-gate__kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-gate h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wc-gate__copy {
  margin: 10px 0 18px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.wc-gate__form {
  display: grid;
  gap: 12px;
}

.wc-gate__field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-weight: 400;
}

.wc-gate__field input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  background: var(--surface, var(--panel));
  font: inherit;
}

.wc-gate__field input:focus-visible,
.wc-gate__submit:focus-visible,
.wc-gate__switch:focus-visible {
  outline: 3px solid rgba(217, 119, 87, 0.28);
  outline-offset: 3px;
}

.wc-gate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--accent-strong, #c15f3c);
  background: transparent;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.wc-gate__submit:hover:not(:disabled) {
  border-color: var(--accent, var(--amber));
  background: rgba(217, 119, 87, 0.06);
}

.wc-gate__submit:disabled {
  cursor: default;
  color: var(--muted);
  opacity: 1;
}

.wc-gate__switch {
  width: fit-content;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--accent-strong, var(--amber));
  background: transparent;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.wc-gate__switch:hover {
  border-color: rgba(20, 20, 19, 0.18);
  background: rgba(20, 20, 19, 0.03);
}

.wc-gate__status {
  min-height: 1.45em;
  margin: 0;
  color: var(--warning);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.wc-gate-locked {
  overflow: hidden;
}

@media (max-width: 520px) {
  .wc-gate {
    align-items: stretch;
    padding: 0;
  }

  .wc-gate__panel {
    min-height: 100%;
    border-radius: 0;
  }
}
