/* Altcha PoW widget */
#captcha.altcha {
  display: block;
  width: 100%;
  max-width: 360px;
  text-align: left;
  margin: 0.25rem auto;
  padding: 0;
  border: 0;
  font-size: 1rem;
  line-height: 1.4;
}

#captcha.altcha legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mk-altcha-widget {
  --altcha-icon-color: #68727c;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d9dee3;
  border-radius: 8px;
  background: #fff;
  color: #39434d;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.mk-altcha-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f5;
  color: var(--altcha-icon-color);
}

.mk-altcha-icon svg {
  width: 18px;
  height: 18px;
  display: none;
}

.mk-altcha-widget[data-altcha-state="pending"] .mk-altcha-spinner,
.mk-altcha-widget:not([data-altcha-state]) .mk-altcha-spinner {
  display: block;
  animation: mk-altcha-spin 1s linear infinite;
}

.mk-altcha-widget[data-altcha-state="verified"] .mk-altcha-check {
  display: block;
}

.mk-altcha-widget[data-altcha-state="failed"] .mk-altcha-error {
  display: block;
}

.mk-altcha-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.mk-altcha-copy small {
  margin-top: 1px;
  color: #8a929a;
  font-size: 0.7rem;
  line-height: 1.2;
}

.mk-altcha-widget .altcha-status {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.mk-altcha-brand {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  color: var(--altcha-icon-color);
}

.mk-altcha-brand svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mk-altcha-widget[data-altcha-state="verified"] {
  --altcha-icon-color: #198754;
  border-color: #8acba9;
  background: #f7fcf9;
  color: #146c43;
  box-shadow: 0 1px 3px rgba(25, 135, 84, 0.08);
}

.mk-altcha-widget[data-altcha-state="verified"] .mk-altcha-icon {
  background: #dff3e8;
}

.mk-altcha-widget[data-altcha-state="failed"] {
  --altcha-icon-color: #dc3545;
  border-color: #e4a5ab;
  background: #fff8f8;
  color: #b02a37;
}

.mk-altcha-widget[data-altcha-state="failed"] .mk-altcha-icon {
  background: #f8dfe1;
}

@keyframes mk-altcha-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  #captcha.altcha {
    max-width: none;
  }

  .mk-altcha-brand {
    display: none;
  }
}

.gh-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
