/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Global
# Themes Specific
    # Twentytwenty
/*--------------------------------------------------------------


/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
.form-row.woo-comment-captcha {
  clear: both;
  margin: 0;
  margin-top: 15px;
  display: block;
  clear: both;
}

label[for="comment_captcha"] {
  display: block !important;
}

button[disabled],
input[disabled] {
  cursor: default !important;
  opacity: .4;
}

/*--------------------------------------------------------------
## Twentytwenty
--------------------------------------------------------------*/
.theme-twentytwenty #review_form .woo-comment-captcha {
  max-width: 58rem;
  margin: auto;
}

/* css for disable create account button with buddyboss on registeration page */
.register-page .signup-form #signup_submit:disabled {
  color: var(--bx-color-fg-muted, var(--reign-site-alternate-text-color, #767676)) !important;
  opacity: .4 !important;
}
/*--------------------------------------------------------------
## ALTCHA - follow the theme
ALTCHA draws in the page, so it takes the theme's form colours
(BuddyX / BuddyX Pro tokens, then Reign's, then the theme.json
palette, then ALTCHA's default).
Dark mode is the site's explicit toggle only, never
the OS setting; color-scheme darkens its native checkbox.
--------------------------------------------------------------*/
altcha-widget {
  --altcha-color-border: var(--bx-color-input-border, var(--reign-form-border-color, #a0a0a0));
  --altcha-color-border-focus: var(--bx-color-input-focus-border, var(--reign-form-focus-border-color, currentColor));
  --altcha-color-active: var(--bx-color-accent, var(--reign-accent-color, var(--wp--preset--color--primary, #0078d4)));
  --altcha-color-error-text: var(--reign-color-error-text, color-mix(in srgb, var(--bx-color-error, #f23939) 70%, currentColor));
}

[data-bx-mode="dark"] altcha-widget,
.buddyx-dark-theme altcha-widget {
  color-scheme: dark;
}

/* ALTCHA "requires HTTPS" notice: warning hue from the theme, surface mixed
   from it so it reads in light and dark mode alike. */
.wbc-altcha-warning {
  --wbc-warning: var(--bx-color-warning, var(--reign-color-warning, #dba617));
  padding: 10px;
  background: color-mix(in srgb, var(--wbc-warning) 14%, transparent);
  border: 1px solid var(--wbc-warning);
  border-radius: 4px;
  color: var(--reign-color-warning-text, color-mix(in srgb, var(--wbc-warning) 45%, currentColor));
}

/*--------------------------------------------------------------
## Widget size
The normal reCAPTCHA v2 and hCaptcha widgets are drawn at 89% so they sit
inside typical form widths. Keyed on data-size, so a widget switched to
compact (by the site setting or by wbc-captcha-theme.js on a narrow form)
is never scaled.
--------------------------------------------------------------*/
.wbc_recaptcha_field .g-recaptcha[data-size="normal"],
.wbc_hcaptcha_field .h-captcha[data-size="normal"] {
  transform: scale(0.89);
  transform-origin: 0 0;
}

.wbc_hcaptcha_field {
  text-align: center;
}

/* Space below the widget, as the other form rows have. These wrappers used to
   borrow it from the core "input" class, whose padding pushed them past narrow
   forms. */
.wbc_hcaptcha_field,
.wbc_altcha_field {
  margin-bottom: 16px;
}

.wbc_hcaptcha_field .h-captcha[data-size="normal"] {
  display: inline-block;
}
