/* Comment form Turnstile — light styling only (form themes are almost always light). */
.comment-respond .yoo-sl-turnstile-wrap,
.comment-form .yoo-sl-turnstile-wrap {
  --yoo-comment-turnstile-text: #0f172a;
  --yoo-comment-turnstile-bg: #fff;
  --yoo-comment-turnstile-primary: #eda934;
  --yoo-comment-turnstile-link: #eda934;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 1em;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--yoo-comment-turnstile-text) 10%, transparent);
  background-color: color-mix(in srgb, var(--yoo-comment-turnstile-bg) 94%, var(--yoo-comment-turnstile-primary) 6%);
  color: var(--yoo-comment-turnstile-text);
  box-sizing: border-box;
}

.comment-respond .yoo-sl-turnstile-wrap.is-verified,
.comment-form .yoo-sl-turnstile-wrap.is-verified {
  background-color: color-mix(in srgb, var(--yoo-comment-turnstile-bg) 98%, #16a34a 2%);
  border-color: color-mix(in srgb, #16a34a 12%, transparent);
}

.comment-respond .yoo-sl-turnstile-status,
.comment-form .yoo-sl-turnstile-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  background: transparent;
  color: var(--yoo-comment-turnstile-text);
  text-align: center;
}

.comment-respond .yoo-sl-turnstile-status__icon,
.comment-form .yoo-sl-turnstile-status__icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  color: var(--yoo-comment-turnstile-primary);
  flex: 0 0 auto;
}

.comment-respond .yoo-sl-turnstile-wrap.is-verified .yoo-sl-turnstile-status__icon,
.comment-form .yoo-sl-turnstile-wrap.is-verified .yoo-sl-turnstile-status__icon {
  color: #16a34a;
}

.comment-respond .yoo-sl-turnstile-wrap.is-error .yoo-sl-turnstile-status__icon,
.comment-form .yoo-sl-turnstile-wrap.is-error .yoo-sl-turnstile-status__icon {
  color: #dc2626;
}

.comment-respond .yoo-sl-turnstile-status__spinner,
.comment-form .yoo-sl-turnstile-status__spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid color-mix(in srgb, var(--yoo-comment-turnstile-primary) 25%, transparent);
  border-top-color: var(--yoo-comment-turnstile-primary);
  border-radius: 50%;
  flex: 0 0 auto;
  animation: yoo-comment-turnstile-spin 0.75s linear infinite;
}

.comment-respond .yoo-sl-turnstile-wrap.is-pending .yoo-sl-turnstile-status__spinner,
.comment-form .yoo-sl-turnstile-wrap.is-pending .yoo-sl-turnstile-status__spinner {
  display: inline-block;
}

.comment-respond .yoo-sl-turnstile-wrap.is-error .yoo-sl-turnstile-status__spinner,
.comment-form .yoo-sl-turnstile-wrap.is-error .yoo-sl-turnstile-status__spinner,
.comment-respond .yoo-sl-turnstile-wrap.is-verified .yoo-sl-turnstile-status__spinner,
.comment-form .yoo-sl-turnstile-wrap.is-verified .yoo-sl-turnstile-status__spinner {
  display: none;
}

.comment-respond .yoo-sl-turnstile-wrap.is-error,
.comment-form .yoo-sl-turnstile-wrap.is-error {
  background-color: color-mix(in srgb, var(--yoo-comment-turnstile-bg) 98%, #dc2626 2%);
  border-color: color-mix(in srgb, #dc2626 18%, transparent);
}

.comment-respond .yoo-sl-turnstile-retry,
.comment-form .yoo-sl-turnstile-retry {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--yoo-comment-turnstile-link);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.comment-respond .yoo-sl-turnstile-retry:hover,
.comment-form .yoo-sl-turnstile-retry:hover,
.comment-respond .yoo-sl-turnstile-retry:focus-visible,
.comment-form .yoo-sl-turnstile-retry:focus-visible {
  color: var(--yoo-comment-turnstile-primary);
  outline: none;
}

.comment-respond .yoo-sl-turnstile-retry[hidden],
.comment-form .yoo-sl-turnstile-retry[hidden] {
  display: none !important;
}

@keyframes yoo-comment-turnstile-spin {
  to {
    transform: rotate(360deg);
  }
}

.comment-respond .yoo-sl-turnstile-wrap:not(.yoo-sl-turnstile-wrap--standard):not(.is-challenge-visible):not(.is-error) .yoo-sl-turnstile-host,
.comment-form .yoo-sl-turnstile-wrap:not(.yoo-sl-turnstile-wrap--standard):not(.is-challenge-visible):not(.is-error) .yoo-sl-turnstile-host {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible {
  gap: 12px;
  padding: 8px 10px 10px;
  align-items: center;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-status,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-status {
  width: 100%;
  margin: 0 0 2px;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-status__text,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-status__text {
  unicode-bidi: plaintext;
  text-align: center;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-host,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-host,
.comment-respond .yoo-sl-turnstile-wrap.is-error:not(.is-verified) .yoo-sl-turnstile-host,
.comment-form .yoo-sl-turnstile-wrap.is-error:not(.is-verified) .yoo-sl-turnstile-host,
.comment-respond .yoo-sl-turnstile-wrap--standard .yoo-sl-turnstile-host,
.comment-form .yoo-sl-turnstile-wrap--standard .yoo-sl-turnstile-host {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  padding: 0;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile,
.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-host > div,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible .yoo-sl-turnstile-host > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.comment-respond .yoo-sl-turnstile-wrap.is-challenge-visible iframe,
.comment-form .yoo-sl-turnstile-wrap.is-challenge-visible iframe {
  margin: 0 auto !important;
}

.yoo-comment-form--turnstile.yoo-comment-form--awaiting-turnstile .form-submit input[type="submit"],
.yoo-comment-form--turnstile.yoo-comment-form--awaiting-turnstile #submit {
  opacity: 0.55;
  cursor: not-allowed;
}

