/* Виджет капчи */
.sx-gate {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.sx-gate__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sx-gate__box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--lightBorderColor, #6B7380);
  border-radius: 10px;
  background: var(--bodyColor, #1E2328);
  color: var(--textColor, #F1F3F7);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.sx-gate__box:hover {
  border-color: var(--pi-accent-fg, #A8D47E);
}

.sx-gate__box:disabled {
  cursor: default;
}

.sx-gate__box:focus-visible {
  outline: 2px solid var(--pi-accent-fg, #A8D47E);
  outline-offset: 2px;
}

.sx-gate__check {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--lightBorderColor, #6B7380);
  border-radius: 7px;
  background: var(--pi-surface, #252A30);
  color: transparent;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.sx-gate__check svg {
  transform: scale(.4);
  transition: transform .25s cubic-bezier(.32, 1.6, .5, 1);
}

.sx-gate__text {
  flex: 1;
  min-width: 0;
}

.sx-gate[data-state="work"] .sx-gate__check {
  border-color: var(--lightBorderColor, #6B7380);
  border-top-color: var(--pi-accent-fg, #A8D47E);
  border-radius: 50%;
  animation: rcSpin .7s linear infinite;
}

@keyframes rcSpin {
  to { transform: rotate(360deg); }
}

.sx-gate[data-state="done"] .sx-gate__box {
  border-color: rgba(168, 212, 126, .45);
  background: rgba(168, 212, 126, .12);
}

.sx-gate[data-state="done"] .sx-gate__check {
  border-color: var(--pi-accent, #356325);
  background: var(--pi-accent, #356325);
  color: #fff;
}

.sx-gate[data-state="done"] .sx-gate__check svg {
  transform: scale(1);
}

.sx-gate[data-state="error"] .sx-gate__box {
  border-color: #FF9A9A;
}

.sx-gate[data-state="error"] .sx-gate__text {
  color: #FF9A9A;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .sx-gate[data-state="work"] .sx-gate__check {
    animation-duration: 2s;
  }
}

.sx-notes__form .sx-gate,
.sx-claim--form .sx-gate,
#abuse-form .sx-gate {
  max-width: none;
  margin-top: 12px;
}
