.custom-captcha-wrap {
  width: 100%;
  max-width: 302px;
  margin: 8px auto;
}

.custom-captcha {
  width: 302px;
  max-width: 100%;
  height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #fafafa;
  user-select: none;
  font-family: Helvetica, Arial, sans-serif;
}

.custom-captcha-check {
  width: 24px;
  height: 24px;
  border: 2px solid #555;
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-captcha-check:hover {
  border-color: #00838f;
}

.custom-captcha-check.is-loading {
  pointer-events: none;
  border-color: #aaa;
}

.custom-captcha-check.is-verified {
  border-color: #00a06a;
  background: #00a06a;
  pointer-events: none;
}

.custom-captcha-check-mark {
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.15s ease;
}

.custom-captcha-check.is-verified .custom-captcha-check-mark {
  transform: rotate(45deg) scale(1);
}

.custom-captcha-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d3d3d3;
  border-top-color: #00838f;
  border-radius: 50%;
  animation: captcha-spin 0.7s linear infinite;
  display: none;
}

.custom-captcha-check.is-loading .custom-captcha-spinner {
  display: block;
}

.custom-captcha-check.is-loading .custom-captcha-check-mark {
  display: none;
}

.custom-captcha-label {
  font-size: 14px;
  font-weight: 400;
  color: #424242;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.custom-captcha-check.is-verified + .custom-captcha-label {
  color: #424242;
}

.custom-captcha-brand {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 2px;
}

.custom-captcha-brand-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
}

.custom-captcha.is-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.custom-captcha-error {
  display: none;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  text-align: left;
}

.custom-captcha-error.show {
  display: block;
}

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