.qiyun-captcha-wrap {
  display: grid;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 14px;
}

.qiyun-captcha-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.qiyun-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  min-height: 0;
}

.qiyun-captcha-row.elementor-field-group {
  margin-bottom: 0;
  padding: 0;
}

.qiyun-captcha-wrap--elementor {
  margin-top: 8px;
  margin-bottom: 14px;
}

.qiyun-captcha-wrap--wpforms {
  margin-top: 10px;
  margin-bottom: 14px;
}

.qiyun-captcha-wrap--cf7 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.qiyun-captcha-wrap--fluentform {
  margin-top: 10px;
  margin-bottom: 14px;
}

.qiyun-captcha-wrap--forminator {
  margin-top: 10px;
  margin-bottom: 16px;
}

.qiyun-captcha-wrap--ninjaforms {
  margin-top: 0;
  margin-bottom: 14px;
}

.wpforms-container .qiyun-captcha-wrap {
  margin-top: 10px;
  margin-bottom: 14px;
}

.wpforms-container .qiyun-captcha-row {
  width: auto;
}

/*
 * WPForms applies a broad reset to every descendant, which can collapse the
 * CAPTCHA button and fill to 0px. Restore only the geometry required by the
 * puzzle control with higher specificity.
 */
div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-progress {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: 0;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-handle {
  position: absolute !important;
  top: 6px !important;
  left: 5px !important;
  display: inline-flex !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon {
  position: absolute !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.qiyun-captcha-media {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.qiyun-captcha-image-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.qiyun-captcha-image {
  display: block;
  width: 140px;
  height: 44px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c4ccd7;
  background: #f4f7fb;
}

.qiyun-captcha-input-wrap {
  width: auto;
}

.qiyun-captcha-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  text-transform: none;
}

.qiyun-captcha-row > .qiyun-captcha-input {
  flex: 1 1 120px;
}

@media (max-width: 480px) {
  .qiyun-captcha-row {
    gap: 8px;
  }

  .qiyun-captcha-image {
    width: 140px;
    height: 44px;
  }

  .qiyun-captcha-row > .qiyun-captcha-input {
    flex: 1 1 auto;
    width: auto;
  }
}

/*
 * WPForms loads a descendant reset after this stylesheet and clears
 * background, border, dimensions, and spacing from every nested element.
 * Keep the CAPTCHA presentation self-contained inside the WPForms wrapper.
 */
div.wpforms-container-full .qiyun-captcha-wrap--puzzle {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 10px 0 16px !important;
  padding: 10px 10px 11px !important;
  border: 1px solid #e1e7ee !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 3px 12px rgba(30, 41, 59, 0.06) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 18px !important;
  gap: 8px !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-title {
  display: block !important;
  width: auto !important;
  color: #344054 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-refresh {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #667085 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 18px !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-control {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 1px solid #d0d7e2 !important;
  border-radius: 23px !important;
  background-color: #f5f7fa !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: inset 0 1px 2px rgba(30, 41, 59, 0.06), 0 1px 2px rgba(30, 41, 59, 0.03) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-progress {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: 0;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  background: rgba(24, 119, 242, 0.1) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track-label {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 52px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 46px !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-handle {
  position: absolute !important;
  top: 6px !important;
  left: 5px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #1267d6 !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: #1877f2 !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12), 0 2px 5px rgba(24, 119, 242, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 3 !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transform: translate(-50%, -50%) !important;
}

/*
 * WPForms sets display on nested SVGs with !important. Keep the hidden
 * attribute authoritative so the arrow and check can never render together.
 */
div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden],
.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon:not([hidden]),
.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-handle {
  border-color: #ffffff !important;
  color: #1877f2 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.14), 0 3px 8px rgba(24, 119, 242, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-title {
  color: #0b6fa4 !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-track {
  border-color: #1877f2 !important;
  background-color: #1877f2 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(11, 111, 164, 0.13), inset 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-progress {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-track-label {
  visibility: hidden !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

div.wpforms-container-full .qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-icon {
  color: #1877f2 !important;
  stroke: #1877f2 !important;
}

.qiyun-captcha-wrap--puzzle {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  box-sizing: border-box;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 10px 10px 11px;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(30, 41, 59, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Keep WooCommerce account CAPTCHA geometry compact on wide account columns. */
.woocommerce .qiyun-captcha-wrap--puzzle {
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
}

/* Match the rendered source directly; WooCommerce themes do not all expose
 * the same body/ancestor class on the account page. */
.qiyun-captcha-wrap--woocommerce.qiyun-captcha-wrap--puzzle,
.qiyun-captcha-wrap[data-qiyun-captcha-source="woocommerce"].qiyun-captcha-wrap--puzzle {
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.wpcf7 .qiyun-captcha-wrap--puzzle {
  display: grid;
}

.qiyun-captcha-puzzle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  gap: 8px;
}

.qiyun-captcha-puzzle-title {
  color: #344054;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
}

.qiyun-captcha-puzzle-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #7b8794;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.qiyun-captcha-puzzle-refresh:hover,
.qiyun-captcha-puzzle-refresh:focus-visible {
  color: #0b6fa4;
  background: #f1f5f8;
  outline: none;
}

.qiyun-captcha-puzzle-refresh:active {
  transform: rotate(-20deg);
}

.qiyun-captcha-puzzle-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 18 / 7;
  border: 1px solid #a9b8c5;
  border-radius: 4px;
  background: #eef3f7;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.qiyun-captcha-puzzle-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.qiyun-captcha-puzzle-stage.is-ready .qiyun-captcha-puzzle-background {
  opacity: 1;
}

.qiyun-captcha-puzzle-piece {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(2, 16, 36, 0.28));
  transform: translateX(0);
  transition: opacity 180ms ease;
  will-change: transform;
}

.qiyun-captcha-puzzle-stage.is-ready .qiyun-captcha-puzzle-piece {
  opacity: 1;
}

.qiyun-captcha-puzzle-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  pointer-events: none;
  background: rgba(238, 243, 247, 0.88);
  opacity: 1;
  transition: opacity 180ms ease;
}

.qiyun-captcha-puzzle-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(11, 111, 164, 0.18);
  border-top-color: #0b6fa4;
  border-radius: 50%;
  content: "";
  animation: qiyun-captcha-puzzle-spin 700ms linear infinite;
}

.qiyun-captcha-puzzle-stage.is-ready .qiyun-captcha-puzzle-loading {
  opacity: 0;
}

.qiyun-captcha-puzzle-control {
  position: relative;
  padding-top: 0;
}

.qiyun-captcha-puzzle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  min-height: 46px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #d0d7e2;
  border-radius: 23px;
  background: #f5f7fa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 1px 2px rgba(30, 41, 59, 0.06), 0 1px 2px rgba(30, 41, 59, 0.03);
  touch-action: none;
  user-select: none;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-loading .qiyun-captcha-puzzle-track {
  cursor: wait;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-loading .qiyun-captcha-puzzle-track:not(.is-ready) {
  background-image: none !important;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-loading .qiyun-captcha-puzzle-track::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(24, 119, 242, 0.18);
  border-top-color: #1877f2;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: qiyun-captcha-puzzle-loading-spin 650ms linear infinite;
}

.qiyun-captcha-puzzle-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  pointer-events: none;
  background: rgba(24, 119, 242, 0.1);
  transition: width 90ms ease-out;
}

.qiyun-captcha-wrap.qiyun-captcha-is-dragging [data-qiyun-captcha-fill] {
  transition: none !important;
}

.qiyun-captcha-puzzle-track-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 52px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 46px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transition: opacity 140ms ease, color 140ms ease;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-dragging .qiyun-captcha-puzzle-track-label {
  opacity: 0.42;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-title {
  color: #0b6fa4;
}

.qiyun-captcha-puzzle-handle {
  position: absolute;
  top: 6px;
  left: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #1267d6;
  border-radius: 50%;
  color: #ffffff;
  background: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12), 0 2px 5px rgba(24, 119, 242, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: grab;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease-out;
  touch-action: none;
  user-select: none;
}

.qiyun-captcha-puzzle-handle:hover,
.qiyun-captcha-puzzle-handle:focus-visible,
.qiyun-captcha-puzzle-handle:active,
.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-dragging .qiyun-captcha-puzzle-handle {
  border-color: #0d5fc7;
  background: #0d6ee8;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.14), 0 4px 9px rgba(24, 119, 242, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  outline: none;
}

.qiyun-captcha-puzzle-handle:focus-visible {
  outline: 2px solid rgba(24, 119, 242, 0.35);
  outline-offset: 3px;
}

.qiyun-captcha-puzzle-handle:active,
.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-dragging .qiyun-captcha-puzzle-handle {
  cursor: grabbing;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-dragging .qiyun-captcha-puzzle-handle,
.qiyun-captcha-wrap:not(.qiyun-captcha-wrap--puzzle).qiyun-captcha-is-dragging .qiyun-captcha-slider-handle {
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
}

.qiyun-captcha-puzzle-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: block;
  width: 18px;
  height: 18px;
  color: #ffffff !important;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1 !important;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.qiyun-captcha-puzzle-icon[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-icon--arrow {
  display: none !important;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-icon--check {
  display: block !important;
}

.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-track {
  border-color: #1877f2;
  background-color: #1877f2;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(11, 111, 164, 0.13), inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-progress {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.16);
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-track-label {
  visibility: hidden;
  color: #ffffff;
  font-weight: 600;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-verifying .qiyun-captcha-puzzle-track {
  border-color: #6f9fba;
  background-color: #e5f0f6;
  background-image: none !important;
  cursor: wait;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-verifying .qiyun-captcha-puzzle-track-label {
  color: #0b6fa4;
  font-weight: 600;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-verifying .qiyun-captcha-puzzle-handle {
  cursor: wait;
  box-shadow: 0 0 0 4px rgba(11, 111, 164, 0.12), 0 3px 8px rgba(11, 111, 164, 0.22), 0 1px 2px rgba(15, 23, 42, 0.14);
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-verifying .qiyun-captcha-puzzle-handle::after {
  position: absolute;
  right: -22px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(11, 111, 164, 0.22);
  border-top-color: #0b6fa4;
  border-radius: 50%;
  content: "";
  animation: qiyun-captcha-puzzle-check-spin 700ms linear infinite;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-handle {
  border-color: #ffffff;
  color: #1877f2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.14), 0 3px 8px rgba(24, 119, 242, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14);
  animation: qiyun-captcha-puzzle-success-glow 360ms ease-out;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-icon {
  color: #1877f2 !important;
  stroke: #1877f2;
}

.qiyun-captcha-puzzle-status {
  min-height: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 18px;
}

.qiyun-captcha-puzzle-status:empty {
  display: none;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-is-success .qiyun-captcha-puzzle-status {
  color: #0b6fa4;
}

.qiyun-captcha-wrap--puzzle.qiyun-captcha-has-error .qiyun-captcha-puzzle-track {
  border-color: #c24135;
  background: #fff1ef;
}

/* Keep the image CAPTCHA row identical across native and plugin forms. */
.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-row {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-media,
.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-image-button {
  display: block !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex: 0 0 140px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-image-button {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-image-loading {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.58) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"].qiyun-captcha-is-loading .qiyun-captcha-image-loading {
  opacity: 1 !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-image-spinner {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  box-sizing: border-box !important;
  border: 2px solid rgba(24, 119, 242, 0.25) !important;
  border-top-color: #1877f2 !important;
  border-radius: 50% !important;
  animation: qiyun-captcha-image-spin 650ms linear infinite !important;
}

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-image {
  display: block !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  object-fit: cover !important;
}

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

.qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-input,
.login .qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] input.qiyun-captcha-input,
.woocommerce .qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] input.qiyun-captcha-input {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 20px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.login .qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-row,
.woocommerce .qiyun-captcha-wrap[data-qiyun-captcha-mode="image"] .qiyun-captcha-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/*
 * Host form styles must not be able to resize the slider handle or its SVG.
 * This is especially important on wp-login.php, where WordPress resets every
 * descendant and mobile browsers apply button sizing differently.
 */
.qiyun-captcha-wrap--puzzle,
.qiyun-captcha-wrap--puzzle * {
  box-sizing: border-box;
}

.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-control,
.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-handle,
.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-handle,
.woocommerce .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-handle {
  display: inline-flex !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 32px !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  transform-origin: center center !important;
}

.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon,
.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon,
.woocommerce .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon {
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden],
.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden],
.woocommerce .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden] {
  display: none !important;
}

/* Native WordPress login/register forms are only 320px wide by default. */
.login .qiyun-captcha-wrap--puzzle {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 12px 0 16px !important;
  padding: 8px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-control {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track {
  display: flex !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-track-label {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 48px !important;
  font-size: 12px !important;
  line-height: 46px !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-refresh {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.login .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-status {
  margin: 5px 0 0 !important;
  padding: 0 !important;
}

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

@keyframes qiyun-captcha-puzzle-success-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 111, 164, 0.26), 0 2px 8px rgba(11, 111, 164, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14);
  }
  60% {
    box-shadow: 0 0 0 7px rgba(11, 111, 164, 0.10), 0 3px 8px rgba(11, 111, 164, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(11, 111, 164, 0.14), 0 3px 8px rgba(11, 111, 164, 0.24), 0 1px 2px rgba(15, 23, 42, 0.14);
  }
}

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

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

@media (max-width: 480px) {
  .qiyun-captcha-wrap--puzzle {
    width: 100%;
    max-width: 360px;
    padding: 8px 9px 9px;
    border-radius: 6px;
  }

  .qiyun-captcha-puzzle-track {
    height: 46px;
    min-height: 46px;
  }

  .qiyun-captcha-puzzle-track-label {
    padding-right: 52px;
    padding-left: 52px;
    font-size: 12px;
    line-height: 46px;
  }

  .qiyun-captcha-puzzle-handle {
    top: 6px;
    width: 32px;
    height: 32px;
  }
}

.qiyun-captcha-wrap--slider {
  margin-top: 10px;
  margin-bottom: 14px;
}

.qiyun-captcha-slider {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.qiyun-captcha-slider-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(174, 187, 204, 0.92);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.9);
  box-shadow: inset 0 1px 4px rgba(30, 41, 59, 0.08), 0 4px 14px rgba(30, 41, 59, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: none;
}

.qiyun-captcha-slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 119, 242, 0.18), rgba(31, 166, 138, 0.26));
  transition: width 90ms ease-out;
}

.qiyun-captcha-slider-label {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 62px;
  overflow: hidden;
  color: #526174;
  font-size: 13px;
  font-weight: 600;
  line-height: 52px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.qiyun-captcha-slider-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 7px;
  color: #ffffff;
  background: #1877f2;
  box-shadow: 0 5px 12px rgba(24, 119, 242, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  cursor: grab;
  line-height: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease-out;
  touch-action: none;
  user-select: none;
}

.qiyun-captcha-slider-handle:hover,
.qiyun-captcha-slider-handle:focus-visible {
  background: #125fc2;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12), 0 8px 18px rgba(24, 119, 242, 0.28);
  outline: none;
}

.qiyun-captcha-slider-handle:active,
.qiyun-captcha-is-dragging .qiyun-captcha-slider-handle {
  cursor: grabbing;
  box-shadow: 0 0 0 5px rgba(24, 119, 242, 0.14), 0 8px 18px rgba(24, 119, 242, 0.3);
}

.qiyun-captcha-slider-arrow,
.qiyun-captcha-slider-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.qiyun-captcha-slider-check {
  display: none;
}

.qiyun-captcha-slider-handle [hidden] {
  display: none;
}

.qiyun-captcha-is-success .qiyun-captcha-slider-track {
  border-color: rgba(31, 166, 138, 0.62);
}

.qiyun-captcha-is-success .qiyun-captcha-slider-fill {
  width: 100% !important;
  background: linear-gradient(90deg, rgba(31, 166, 138, 0.22), rgba(31, 166, 138, 0.38));
}

.qiyun-captcha-is-success .qiyun-captcha-slider-handle {
  background: #1fa68a;
  animation: qiyun-captcha-slider-success 300ms ease-out;
}

.qiyun-captcha-is-success .qiyun-captcha-slider-arrow {
  display: none;
}

.qiyun-captcha-is-success .qiyun-captcha-slider-check {
  display: inline-flex;
}

.qiyun-captcha-slider-status {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  line-height: 18px;
}

.qiyun-captcha-is-success .qiyun-captcha-slider-status {
  color: #147d64;
}

.qiyun-captcha-has-error .qiyun-captcha-slider-track {
  border-color: rgba(180, 35, 24, 0.48);
}

.qiyun-captcha-wrap--license-error {
  margin: 12px 0;
}

.qiyun-captcha-license-error {
  padding: 9px 11px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 6px;
  color: #b42318;
  background: #fff7f7;
  font-size: 13px;
  line-height: 1.45;
}

@keyframes qiyun-captcha-slider-success {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .qiyun-captcha-slider-track {
    height: 50px;
    min-height: 50px;
  }

  .qiyun-captcha-slider-label {
    padding-right: 58px;
    padding-left: 58px;
    font-size: 12px;
    line-height: 50px;
  }

  .qiyun-captcha-slider-handle {
    top: 3px;
    left: 3px;
    width: 44px;
    height: 44px;
  }
}

/*
 * Final state guard: the icon carrying [hidden] must never paint, including
 * when a form plugin adds a success-state display rule later in the cascade.
 */
div.wpforms-container-full .qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden],
.qiyun-captcha-wrap--puzzle .qiyun-captcha-puzzle-icon[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
