/* Native EDD checkout fields; payment controls and validation stay with EDD/Stripe. */
#edd_purchase_form,
#edd_purchase_form fieldset,
#edd_purchase_form fieldset > p { min-width:0; max-width:100%; }
#edd_purchase_form fieldset { border:0; padding:0; background:transparent; margin:0 0 28px; }
#edd_purchase_form fieldset > legend { float:none; display:block; width:100%; max-width:100%; padding:0; margin:0 0 18px; font-size:20px; font-weight:700; line-height:1.3; color:#191919; white-space:normal; }
#edd_purchase_form #edd_checkout_user_info:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
#edd_checkout_user_info > p { margin:0; width:auto; float:none; }
#edd_checkout_user_info > p:not(#edd-first-name-wrap):not(#edd-last-name-wrap) { grid-column:1/-1; }
#edd_purchase_form .edd__checkout-login-link { display:block; margin-top:8px; font-size:14px; font-weight:400; line-height:1.5; white-space:normal; }
#edd_purchase_form .edd-label,
#edd_purchase_form label:not(.edd-gateway-option) { font-size:15px; font-weight:600; line-height:1.5; color:#25362c; }
#edd_purchase_form .edd-label { display:block; margin:0 0 7px; }
#edd_purchase_form input:is([type=text],[type=email],[type=tel],[type=password],[type=number]),
#edd_purchase_form select,
#edd_purchase_form textarea { box-sizing:border-box; display:block; width:100%; min-width:0; max-width:100%; min-height:48px; margin:0; padding:11px 13px; border:1px solid #b8c8be; border-radius:3px; background:#fff; color:#191919; font:inherit; font-size:16px; line-height:1.5; box-shadow:none; }
#edd_purchase_form input::placeholder,
#edd_purchase_form textarea::placeholder { color:#6b766f; opacity:1; }
#edd_purchase_form input:focus-visible,
#edd_purchase_form select:focus-visible,
#edd_purchase_form textarea:focus-visible { outline:2px solid #168d48; outline-offset:2px; border-color:#168d48; }
#edd_purchase_form .edd-description { display:block; margin-top:7px; font-size:14px; line-height:1.5; color:#56645c; }
#edd_purchase_form #edd-email-optin-wrap:not([hidden]) { display:flex; flex-direction:row; align-items:flex-start; gap:10px; width:100%; min-width:0; max-width:100%; margin:2px 0 0; }
#edd_purchase_form #edd-email-optin-wrap label { flex:1; min-width:0; max-width:100%; font-weight:400; }
#edd-email-optin-wrap input[type=checkbox] { flex:0 0 18px; width:18px; min-width:18px; height:18px; margin:3px 0 0; accent-color:#1cbf60; }
#edd_checkout_form_wrap #edd_purchase_form #edd_cc_address:not([hidden]) { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px 16px; padding:0; background:transparent; }
#edd_cc_address > p,
#edd_cc_address > div { grid-column:span 3; float:none; width:auto; min-width:0; max-width:100%; margin:0; }
#edd_cc_address > legend,
#edd_cc_address > #edd-card-address-wrap,
#edd_cc_address > #edd-card-address-2-wrap { grid-column:1/-1; }
#edd_purchase_form #edd_cc_fields { padding:20px; border:1px solid #d8e3dc; border-radius:3px; background:#f7faf8; }
#edd_purchase_form #edd_cc_fields > legend { width:auto; padding:0 6px; margin-left:-6px; font-size:16px; }
@media(max-width:600px) {
 #edd_purchase_form #edd_checkout_user_info:not([hidden]),
 #edd_checkout_form_wrap #edd_purchase_form #edd_cc_address:not([hidden]) { grid-template-columns:minmax(0,1fr); gap:18px; }
 #edd_checkout_user_info > p,
 #edd_cc_address > p,
 #edd_cc_address > div { grid-column:1/-1; }
 #edd_purchase_form #edd_cc_fields { padding:16px; }
}

/* Override the older builder's per-field spacing without changing native markup. */
#edd_checkout_form_wrap #edd_purchase_form #edd_checkout_user_info > p,
#edd_checkout_form_wrap #edd_purchase_form #edd_cc_address > div { margin:0; padding:0; }
#edd_checkout_form_wrap #edd_purchase_form #edd_checkout_user_info > legend { display:block; grid-column:1/-1; }
#edd_checkout_form_wrap #edd_purchase_form #edd_cc_address > legend { display:block; position:static; clip:auto; clip-path:none; height:auto; width:100%; overflow:visible; white-space:normal; margin:0 0 18px; }
#edd_purchase_form .edd__checkout-login-link { text-align:left; }
