.local-captcha {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--soft-line, #d7e2e7);
  border-radius: 8px;
  background: var(--surface-alt, #f5f9fa);
  color: var(--ink, #173c4b);
}

.local-captcha *,
.local-captcha *::before,
.local-captcha *::after {
  box-sizing: border-box;
}

.local-captcha__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.local-captcha__header strong {
  font-size: 14px;
}

.local-captcha__refresh {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line, #c7d6dc);
  border-radius: 7px;
  background: #fff;
  color: var(--brand, #0e7490);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.local-captcha__refresh:hover,
.local-captcha__refresh:focus-visible {
  border-color: var(--brand, #0e7490);
  outline: none;
  background: #edf8fa;
}

.local-captcha__refresh:disabled {
  cursor: wait;
  opacity: .55;
}

.local-captcha__hint {
  margin: 5px 0 9px;
  color: var(--muted, #5e7480);
  font-size: 12px;
  line-height: 1.45;
}

.local-captcha__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 112px);
  align-items: end;
  gap: 10px;
}

.local-captcha__picture {
  overflow: hidden;
  height: 64px;
  border: 1px solid var(--line, #c7d6dc);
  border-radius: 7px;
  background: #fff;
}

.local-captcha__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.local-captcha__field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.local-captcha__field span {
  color: var(--muted, #5e7480);
  font-size: 12px;
  font-weight: 750;
}

.local-captcha__field input {
  width: 100%;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--line, #c7d6dc);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--ink, #173c4b);
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 2px;
  text-align: center;
}

.local-captcha__field input:focus {
  border-color: var(--brand, #0e7490);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .14);
}

.local-captcha__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.local-captcha__status {
  margin: 7px 0 0;
  color: var(--muted, #5e7480);
  font-size: 12px;
  line-height: 1.45;
}

.local-captcha__status--error {
  color: #9f2f36;
  font-weight: 750;
}

@media (max-width: 360px) {
  .local-captcha__body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-captcha__refresh {
    transition: none;
  }
}
