/* LUAP signup CAPTCHA v3: remove duplicate legacy divider; standard widget. */
/* The intro has its own divider. The legacy Mailchimp wrapper was painting
   a second hand-drawn line directly over the Email Address row. */
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .mailchimp-newsletter-mergefields {
  background: none !important;
  background-image: none !important;
  display: flow-root;
}

/* Use Google's standard-width checkbox, RIGHT-ALIGNED above the submit button.
   No label, field or input styles are changed here. */
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row {
  display: block;
  float: none !important;
  clear: both;
  box-sizing: border-box;
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  height: auto;
  margin: 22px 0 0 auto !important;
  padding: 0 !important;
  opacity: 1;
  overflow: visible;
  visibility: visible;
  transition: opacity 220ms ease;
}
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row .g-recaptcha {
  display: block;
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  margin: 0 0 0 auto;
}
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row .luap-signup-error {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  width: 100%;
}
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row.luap-has-error .luap-signup-error {
  display: block;
}

/* Right-aligned submit, below the CAPTCHA, with room for its full height. */
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .form-actions {
  display: flow-root;
  clear: both;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  text-align: right;
}
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .form-actions #mc-embedded-subscribe,
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .form-actions #mc-embedded-subscribe:focus {
  margin: 0 !important;
}

/* After completion fade the WHOLE widget away and close its space.
   The response token stays in the DOM for Drupal's server-side verification. */
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row.luap-captcha-completed {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}
body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.page-signup form#mailchimp-signup-subscribe-page-signup-form .luap-recaptcha-row {
    transition: none;
  }
}
