/**
 * @file
 * Webform reCAPTCHA & form actions layout styles.
 */

.webform-submission-form .captcha__element {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  padding-top: 3% !important;
}

.webform-submission-form .g-recaptcha {
  order: 2;
  padding-left: 40% !important;
}

.webform-submission-form .recaptcha-error-message {
  display: block !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 2% auto 0 auto !important;
  padding: 0 !important;
  background-color: transparent !important;
  border: none;
  color: #FF0000;
  font-size: 0.75em;
  font-weight: 400;
  text-align: center;
  box-sizing: border-box !important;
}

/* ATIOL Patient Satisfaction & MyAlcon Pay Registration */

.webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper,
.webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper {
  float: none;
}

.webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper .webform-button--submit,
.webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper .webform-button--submit {
  float: right;
  margin-top: 5%;
}

.webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .captcha-type-challenge--recaptcha .g-recaptcha,
.webform-submission-form.webform-submission-myalcon-pay-registration-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
  text-align: right;
  padding-bottom: 3%;
}

.webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child,
.webform-submission-form.webform-submission-myalcon-pay-registration-form-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child {
  width: auto !important;
  height: auto !important;
}

.webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .recaptcha-error-message,
.webform-submission-form.webform-submission-myalcon-pay-registration-form-form .recaptcha-error-message {
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-bottom: 3% !important;
  margin-top: auto !important;
}

/* Cluster Lead Gen, Customer Lead Gen, Download Brochure, Remote Connectivity */

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .form-actions.form-wrapper,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .form-actions.form-wrapper,
.webform-submission-form.webform-submission-download-brochure-form-form .form-actions.form-wrapper,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .form-actions.form-wrapper {
  margin-top: 0;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .form-actions.form-wrapper .webform-button--submit,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .form-actions.form-wrapper .webform-button--submit,
.webform-submission-form.webform-submission-download-brochure-form-form .form-actions.form-wrapper .webform-button--submit,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .form-actions.form-wrapper .webform-button--submit {
  margin-top: 5%;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .captcha-type-challenge--recaptcha,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .captcha-type-challenge--recaptcha,
.webform-submission-form.webform-submission-download-brochure-form-form .captcha-type-challenge--recaptcha,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .captcha-type-challenge--recaptcha {
  max-width: 650px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .captcha-type-challenge--recaptcha .captcha__element,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .captcha-type-challenge--recaptcha .captcha__element,
.webform-submission-form.webform-submission-download-brochure-form-form .captcha-type-challenge--recaptcha .captcha__element .captcha__element,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .captcha-type-challenge--recaptcha .captcha__element {
  padding-top: 5% !important;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .captcha-type-challenge--recaptcha .g-recaptcha,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .captcha-type-challenge--recaptcha .g-recaptcha,
.webform-submission-form.webform-submission-download-brochure-form-form .captcha-type-challenge--recaptcha .g-recaptcha,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .captcha-type-challenge--recaptcha .g-recaptcha {
  text-align: left;
  padding-left: 0 !important;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child,
.webform-submission-form.webform-submission-download-brochure-form-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child {
  width: auto !important;
  height: auto !important;
}

.webform-submission-form.webform-submission-cluster-lead-generation-form-form .recaptcha-error-message,
.webform-submission-form.webform-submission-customer-lead-generation-patient-form .recaptcha-error-message,
.webform-submission-form.webform-submission-download-brochure-form-form .recaptcha-error-message,
.webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .recaptcha-error-message {
  text-align: left !important;
  margin-right: auto !important;
}

/* Capturing Leads from Web & Web-to-Lead */

.webform-submission-form.webform-submission-capturing-leads-from-web-form .form-actions.form-wrapper .webform-button--submit,
.webform-submission-form.webform-submission-web-to-lead-form-form .form-actions.form-wrapper .webform-button--submit {
  margin-top: 0;
}

.webform-submission-form.webform-submission-capturing-leads-from-web-form .captcha-type-challenge--recaptcha .g-recaptcha,
.webform-submission-form.webform-submission-web-to-lead-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
  text-align: right;
}

.webform-submission-form.webform-submission-capturing-leads-from-web-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child,
.webform-submission-form.webform-submission-web-to-lead-form-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child {
  width: auto !important;
  height: auto !important;
}

.webform-submission-form.webform-submission-capturing-leads-from-web-form .captcha__element {
  margin-bottom: 3%;
}

.webform-submission-form.webform-submission-capturing-leads-from-web-form .recaptcha-error-message,
.webform-submission-form.webform-submission-web-to-lead-form-form .recaptcha-error-message {
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-bottom: 3% !important;
  margin-top: auto !important;
}

/* ADI Lead Gen */

.webform-submission-form.webform-submission-adi-lead-gen-form-form .recaptcha-error-message {
  margin-bottom: -2% !important;
}

.webform-submission-form.webform-submission-adi-lead-gen-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
  margin-bottom: -2% !important;
}

.webform-submission-form.webform-submission-adi-lead-gen-form-form .captcha-type-challenge--recaptcha .captcha__element {
  padding-bottom: 1.5%;
}

/* Tablet */

@media (max-width: 768px) {
  .webform-submission-form .g-recaptcha {
    padding-left: 0 !important;
    margin: 0 auto !important;
    display: table !important;
  }
}

@media (max-width: 768px) {
  [class*="webform-submission-atiol-patient"] .captcha__element,
  [class*="webform-submission-myalcon-pay-registration"] .captcha__element,
  [class*="webform-submission-capturing-leads-from-web"] .captcha__element {
    padding-bottom: 6% !important;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .webform-submission-form.webform-submission-cluster-lead-generation-form-form .captcha-type-challenge--recaptcha .g-recaptcha,
  .webform-submission-form.webform-submission-customer-lead-generation-patient-form .captcha-type-challenge--recaptcha .g-recaptcha,
  .webform-submission-form.webform-submission-download-brochure-form-form .captcha-type-challenge--recaptcha .g-recaptcha,
  .webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .captcha-type-challenge--recaptcha .g-recaptcha {
    padding-left: 20% !important;
  }

  .webform-submission-form.webform-submission-cluster-lead-generation-form-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-customer-lead-generation-patient-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-download-brochure-form-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .recaptcha-error-message {
    margin-left: 23% !important;
  }
}

@media (max-width: 1024px) {
  .webform-submission-form.webform-submission-capturing-leads-from-web-form .form-actions.form-wrapper .webform-button--submit,
  .webform-submission-form.webform-submission-web-to-lead-form-form .form-actions.form-wrapper .webform-button--submit {
    margin-top: 8% !important;
  }

  .webform-submission-form.webform-submission-capturing-leads-from-web-form .captcha-type-challenge--recaptcha .g-recaptcha,
  .webform-submission-form.webform-submission-web-to-lead-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper,
  .webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper {
    float: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  .webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper .webform-button--submit,
  .webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper .webform-button--submit {
    float: none !important;
    margin-top: 20px !important;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .webform-submission-form .recaptcha-error-message {
    text-align: center !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 95% !important;
    margin: 10px auto !important;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .webform-submission-form.webform-submission-capturing-leads-from-web-form .captcha-type-challenge--recaptcha .g-recaptcha {
    padding-left: 0 !important;
    margin: 0 auto !important;
    display: table !important;
  }

  .webform-submission-form.webform-submission-capturing-leads-from-web-form .recaptcha-error-message {
    text-align: center !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .webform-submission-form.webform-submission-adi-lead-gen-form-form .captcha-type-challenge--recaptcha .captcha__element {
    margin-bottom: -5% !important;
  }

  .webform-submission-form.webform-submission-adi-lead-gen-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
    padding-left: 0 !important;
    margin: 0 auto !important;
    display: table !important;
  }

  .webform-submission-form.webform-submission-adi-lead-gen-form-form .recaptcha-error-message {
    margin-bottom: -5% !important;
    padding-top: 6% !important;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .webform-submission-form .g-recaptcha {
    padding-left: 0 !important;
    margin: 0 auto !important;
    display: table !important;
  }
}

@media (max-width: 480px) {
  [class*="webform-submission-atiol-patient"] .captcha__element,
  [class*="webform-submission-myalcon-pay-registration"] .captcha__element,
  [class*="webform-submission-capturing-leads-from-web"] .captcha__element {
    padding-bottom: 6% !important;
  }
}

@media (max-width: 480px) {
  .webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper,
  .webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .form-actions.form-wrapper .webform-button--submit,
  .webform-submission-form.webform-submission-myalcon-pay-registration-form-form .form-actions.form-wrapper .webform-button--submit {
    float: none !important;
    margin-top: 20px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .webform-submission-form.webform-submission-capturing-leads-from-web-form .form-actions.form-wrapper .webform-button--submit,
  .webform-submission-form.webform-submission-web-to-lead-form-form .form-actions.form-wrapper .webform-button--submit {
    margin-top: 10% !important;
  }
}

@media (max-width: 480px) {
  .webform-submission-form.webform-submission-web-to-lead-form-form .captcha-type-challenge--recaptcha .g-recaptcha {
    display: flex;
    justify-content: center;
    transform: scale(0.9);
    transform-origin: center;
  }

  .webform-submission-form.webform-submission-web-to-lead-form-form .captcha-type-challenge--recaptcha .g-recaptcha > div:first-child {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .webform-submission-form.webform-submission-adi-lead-gen-form-form .captcha-type-challenge--recaptcha .captcha__element {
    margin-bottom: 5% !important;
  }

  .webform-submission-form.webform-submission-adi-lead-gen-form-form .recaptcha-error-message {
    margin-bottom: -8% !important;
  }
}

@media (max-width: 480px) {
  .webform-submission-form .recaptcha-error-message {
    text-align: center !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 95% !important;
    margin: 8px auto !important;
  }

  .webform-submission-form.webform-submission-cluster-lead-generation-form-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-customer-lead-generation-patient-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-download-brochure-form-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-remote-connectivity-authorizatio-form .recaptcha-error-message {
    text-align: center !important;
    margin-right: auto !important;
  }

  .webform-submission-form.webform-submission-atiol-patient-satisfaction-progr-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-myalcon-pay-registration-form-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-capturing-leads-from-web-form .recaptcha-error-message,
  .webform-submission-form.webform-submission-web-to-lead-form-form .recaptcha-error-message {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-bottom: 4% !important;
  }
}
