.altcha,
.altcha * {
  box-sizing: border-box;
  font-family: inherit;
}

.altcha {
  position: relative;
  display: none;
  width: 100%;
  color: #111318;
  font-size: 0.88rem;
  line-height: 1.35;
}

.altcha[data-visible],
.altcha[data-display="standard"] {
  display: block;
}

.altcha-main {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(10, 13, 18, 0.16);
  border-radius: 14px;
  background: #f7f8fa;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.altcha-main > div:first-child {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.altcha-checkbox-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.altcha-checkbox-wrap label {
  cursor: pointer;
  font-weight: 610;
}

.altcha-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.altcha-checkbox input {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(10, 13, 18, 0.38);
  border-radius: 5px;
  background: white;
  box-shadow: none;
  cursor: pointer;
}

.altcha-checkbox input:hover {
  border-color: rgba(10, 13, 18, 0.58);
}

.altcha-checkbox input:focus-visible {
  border-color: #0a84ff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.14);
}

.altcha-checkbox input:checked {
  border-color: #0c7c59;
  background: #0c7c59;
}

.altcha-checkbox svg {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 12px;
  height: 9px;
  fill: none;
  opacity: 0;
  pointer-events: none;
  stroke: white;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.altcha-checkbox input:checked + svg {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: opacity 180ms ease, stroke-dashoffset 260ms ease;
}

.altcha-checkbox-spinner {
  position: absolute;
  inset: 1px;
  display: none;
  border: 2px solid rgba(17, 19, 24, 0.5);
  border-right-color: transparent;
  border-radius: 50%;
  animation: altcha-kihilfe-spin 600ms linear infinite;
}

.altcha-checkbox[data-loading="true"] input {
  opacity: 0;
  pointer-events: none;
}

.altcha-checkbox[data-loading="true"] .altcha-checkbox-spinner {
  display: block;
}

.altcha-logo,
.altcha-footer,
.altcha-floating-arrow,
.altcha-main > input[type="hidden"] {
  display: none;
}

.altcha[data-state="verified"] .altcha-main {
  border-color: rgba(12, 124, 89, 0.42);
  background: rgba(12, 124, 89, 0.07);
}

.altcha[data-state="verified"] .altcha-checkbox-wrap label {
  color: #075b42;
}

.altcha-error {
  color: #b3261e;
  font-size: 0.78rem;
}

.altcha-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(179, 38, 30, 0.32);
  border-radius: 10px;
  background: white;
  color: #8f1f19;
  box-shadow: 0 12px 34px rgba(8, 13, 22, 0.14);
  font-size: 0.78rem;
}

.altcha-popover-arrow,
.altcha-popover-close {
  display: none;
}

@keyframes altcha-kihilfe-spin {
  to { transform: rotate(360deg); }
}
