.human-check {
  --human-success: #23613d;
  margin-block-start: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule, var(--journal-rule, #c9c6bd));
  border-radius: 4px;
  background: var(--surface, var(--journal-surface, #fff));
  color: var(--ink, var(--journal-ink, #131619));
  transition: border-color 160ms ease, background-color 160ms ease;
}

.human-check-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
}

.human-check--compact .human-check-body {
  grid-template-columns: 1fr;
}

.human-check--compact .human-provider {
  justify-self: start;
}

.human-check-title {
  margin: 0;
  font: 720 clamp(1.05rem, 2vw, 1.3rem)/1.15 "Archivo", sans-serif;
  letter-spacing: -0.025em;
}

.human-check-intro {
  max-width: 42ch;
  margin: 0.4rem 0 0;
  color: var(--muted, var(--journal-muted, #555d66));
  font-size: 0.875rem;
  line-height: 1.5;
}

.human-provider {
  justify-self: end;
  width: min(100%, 18.75rem);
  min-width: 0;
}

.human-provider-mount {
  display: flex;
  width: 100%;
  min-height: 4.1rem;
  align-items: center;
  overflow: visible;
}

.human-provider-mount > * {
  max-width: 100%;
}

.human-check-feedback {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 1.5rem;
  margin-block-start: 0.6rem;
}

.human-check-status {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted, var(--journal-muted, #555d66));
  font-size: 0.8rem;
  line-height: 1.4;
}

.human-check-status::before {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-block-start: 0.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.human-check-status[data-type="success"] {
  color: var(--human-success);
}

.human-check-status[data-type="success"]::before {
  background: currentColor;
}

.human-check-status[data-type="error"] {
  color: var(--orange-dark, var(--journal-orange-dark, #b93815));
}

.human-check-retry {
  flex: 0 0 auto;
  margin-inline-start: auto;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: 650 0.8rem/1 "Archivo", sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.human-check-retry:hover:not(:disabled) {
  color: var(--cobalt-pressed, var(--journal-cobalt-pressed, #153bb8));
}

.human-check-retry:active:not(:disabled) {
  transform: translateY(1px);
}

.human-check-retry:disabled {
  cursor: wait;
  opacity: 0.55;
}

.human-check.is-loading,
.human-check.is-active {
  border-color: var(--rule, var(--journal-rule, #c9c6bd));
}

.human-check.is-loading .human-check-status::before,
.human-check.is-active .human-check-status::before {
  background: var(--cobalt, var(--journal-cobalt, #2455f4));
}

.human-check.is-verified {
  border-color: var(--rule, var(--journal-rule, #c9c6bd));
}

.human-check.is-error {
  border-color: var(--orange-dark, var(--journal-orange-dark, #b93815));
}

.human-honeypot {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .human-check-body {
    grid-template-columns: 1fr;
  }

  .human-provider {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .human-check-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .human-provider-mount {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 359px) {
  .human-provider {
    width: 9.375rem;
  }

  .human-provider-mount {
    min-height: 8.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .human-check,
  .human-check-retry {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .human-check.is-verified,
  .human-check.is-error,
  .human-check.is-loading,
  .human-check.is-active {
    border-color: CanvasText;
  }
}
