

.wa-fc {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
}

/* max-width was a fixed 360px - narrower than a Turnstile-style field and, worse, WIDER than
   .altcha-main's own 320px vendor default below, so .wa-fc__brand (position:absolute against THIS
   box) sat past the visible card's real right edge. 100% removes both problems: the widget now
   tracks the host field's width, and matches --altcha-max-width so the two boxes share one edge. */
.wa-fc.wa-fc--show {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  margin: 0.75rem 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.wa-fc {
  --altcha-color-base: #ffffff;
  --altcha-color-base-content: #16181d;
  --altcha-color-text: #4b5563;
  --altcha-color-neutral: #e5e7eb;
  --altcha-border-color: #e5e7eb;
  --altcha-color-border: #e5e7eb;
  --altcha-border-width: 1px;
  --altcha-border-radius: 12px;
  --altcha-color-primary: #2563eb;
  --altcha-color-primary-content: #ffffff;
  --altcha-color-success: #16a34a;
  --altcha-color-error: #dc2626;
  --altcha-spinner-color: #2563eb;
  --altcha-checkbox-border-color: #9ca3af;
  --altcha-shadow: none;
  /* Vendor default is a fixed 320px, narrower than the surrounding form fields and narrower than
     .wa-fc's own box above - that mismatch is what pushed .wa-fc__brand outside the visible card
     (operator screenshot 10.08.2026). 100% makes the card track its host field, Turnstile-style. */
  --altcha-max-width: 100%;

  --wa-fc-accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
  .wa-fc {
    --altcha-color-base: #1c1f26;
    --altcha-color-base-content: #e6e8ec;
    --altcha-color-text: #aab1bd;
    --altcha-color-neutral: #2b303a;
    --altcha-border-color: #343b47;
    --altcha-color-border: #343b47;
    --altcha-color-primary: #5b8cff;
    --altcha-spinner-color: #5b8cff;
    --altcha-checkbox-border-color: #5a6472;
    --wa-fc-accent: #5b8cff;
  }
}

.wa-fc .altcha-logo,
.wa-fc .altcha-footer {
  display: none !important;
}

.wa-fc .altcha {
  width: 100%;
  max-width: 100%;
  border: 0;
  background: none;
  padding: 0;
}

.wa-fc .altcha-main {
  position: relative;
}

.wa-fc .altcha-checkbox-wrap {
  padding-right: 2.25rem;
}

.wa-fc__brand {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  display: block;
}
.wa-fc__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  max-width: 1.25rem;
  max-height: 1.25rem;
}

.wa-fc__brand--shield {
  background-color: var(--wa-fc-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 5v6c0 5 3.4 8.4 8 11 4.6-2.6 8-6 8-11V5l-8-3z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 4 5v6c0 5 3.4 8.4 8 11 4.6-2.6 8-6 8-11V5l-8-3z'/></svg>") center / contain no-repeat;
}

.wa-fc__foot {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--altcha-color-text);
  opacity: 0.9;
}
.wa-fc__foot a {
  color: var(--altcha-color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wa-fc__foot a:hover {
  color: var(--altcha-color-primary);
}
