/**
 * Amasty reCAPTCHA positioning and button state styling
 */

/* Position captcha before send button (v2 checkbox / custom forms) */
.amcform-toolbar .am-recaptcha-block {
    order: -1;
    margin-bottom: 15px;
}

/* Remove background from captcha container */
.amform-form .am-recaptcha-block {
    background: transparent;
    border: none;
    padding: 0;
}

/* Disabled button styling (v2 checkbox flow) */
.amform-form button[type="submit"]:disabled,
.amform-form button[type="submit"].disabled-by-captcha {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* v3 / invisible: do not reserve layout space for the widget container */
body.am-recaptcha-invisible .am-recaptcha-block {
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
}

