/* =========================================================
   AAL reCAPTCHA – Clean, unified styling (final)
   ========================================================= */

/* Container spacing + alignment */
body.login form .aal-recaptcha-v2-wrapper,
body.login form .aal-recaptcha-v2-container {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;

    margin-top: 14px;
    margin-bottom: 18px;

    padding-left: 0;
    padding-right: 0;
    clear: both;
}

/* Constrain the actual reCAPTCHA widget (this is the key fix) */
body.login form .aal-recaptcha-v2-wrapper > div,
body.login form .aal-recaptcha-v2-container > div {
    width: 302px;
    max-width: 302px;
}

/* Ensure iframe behaves correctly */
.aal-recaptcha-v2-wrapper iframe,
.aal-recaptcha-v2-container iframe {
    display: block;
}

/* Remove any extra horizontal stretch illusion */
body.login form .g-recaptcha {
    display: inline-block;
}

/* Keep Remember Me aligned with Login button (your preference) */
body.login form p.forgetmenot {
    margin-top: 0px;
    margin-bottom: 10px;
}

/* Spacing above submit button */
body.login form .submit {
    margin-top: 12px;
}

/* Align reCAPTCHA to the right under checkout */
form.checkout .aal-recaptcha-v2-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}