/**
 * Checkout WC bridge — hide scrape junk, keep WFACP layout intact.
 */

/* No cart drawer / add-to-cart banner on checkout */
body.vm-checkout-test-body .woocommerce-message,
body.vm-checkout-test-body .woocommerce-info,
body.vm-checkout-test-body .woocommerce-error {
    display: none !important;
}

body.vm-checkout-test-body #fkcart-modal,
body.vm-checkout-test-body #fkcart-floating-toggler {
    display: none !important;
}

/* BG shipping widget leftovers from prod scrape — not used on staging */
#wc-speedy-city-select-container,
#wc-speedy-street-quarter-select-container,
#wc-speedy-address-detail-container,
#wc-speedy-office-select-container,
#wc-econt-city-select-container,
#wc-econt-street-quarter-select-container,
#wc-econt-address-detail-container,
#wc-econt-office-select-container,
#wc-boxnow-office-select-container,
#wc-fan-office-select-container,
#wc-sameday-office-select-container,
#wc-packeta-office-select-container,
#wc-ro-region-select-container,
#wc-ro-city-select-container,
#wc-ro-postcode-container,
#wc-ro-address-detail-container {
    display: none !important;
}

/* Form inputs — neutral borders (override scrape / validation red) */
body.vm-checkout-test-body #wfacp-e-form .wfacp-form-control,
body.vm-checkout-test-body #wfacp-e-form input.input-text,
body.vm-checkout-test-body #wfacp-e-form textarea.wfacp-form-control {
    border: 1px solid #d4cfc2 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.vm-checkout-test-body #wfacp-e-form .woocommerce-invalid .wfacp-form-control {
    border-color: #c0392b !important;
}

/* Live WC payment boxes inside WFACP shell */
#wfacp-e-form #payment .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

#wfacp-e-form #payment .payment_box {
    margin-top: 8px;
}

#wfacp-e-form #payment .wc-upe-form,
#wfacp-e-form #payment .ppcp-button-container {
    max-width: 100%;
}

/* CIF empresa — solo visible si se marca la casilla */
body.vm-checkout-test-body #tax_id_field {
    display: none !important;
}

body.vm-checkout-test-body #invoice_asking_field:has(#invoice_asking:checked) + #tax_id_field {
    display: block !important;
}
