/* Checkout Override Styles - Moved from inline styles */

/* --- Reseteo y Estilos Globales --- */
html, body { 
    margin: 0 !important; 
    padding: 0 !important; 
    background-color: #f6f9fc !important; 
}

.ckfylt25-global-checkout-container { 
    width: 100%; 
    margin: 0 auto; 
    padding: 40px 20px; 
    /* Use a performant, privacy-friendly system font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; 
    font-size: 16px; 
    max-width: 1040px; 
}

.ckfylt25-layout-grid { 
    display: grid !important; 
    grid-template-columns: 1fr !important; 
    gap: 40px !important; 
}

@media (min-width: 992px) { 
    .ckfylt25-layout-grid { 
        grid-template-columns: 6fr 4fr !important; 
    } 
}

.ckfylt25-hidden-field,
.form-row.ckfylt25-hidden-field,
.woocommerce-billing-fields__field-wrapper .ckfylt25-hidden-field,
.woocommerce-billing-fields__field-wrapper .form-row.ckfylt25-hidden-field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ckfylt25-hidden-field label,
.ckfylt25-hidden-field .woocommerce-input-wrapper,
.form-row.ckfylt25-hidden-field label,
.form-row.ckfylt25-hidden-field .woocommerce-input-wrapper {
    display: none !important;
}


/* --- Solución Definitiva para Conflicto de Tema (Clearfix) --- */
form.checkout::before, 
form.checkout::after {
    display: none !important;
}

/* --- Prevenir interferencia de Fluid Checkout --- */
#place_order,
.wc_payment_methods,
#shipping_methods_list,
.woocommerce-checkout-payment {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
}

#shipping_methods_list {
    display: flex !important;
}

/* Deshabilitar estilos de Fluid Checkout que puedan ocultar elementos */
.fc-wrapper .fc-place-order,
.fc-wrapper .fc-payment-method,
.fc-wrapper .fc-shipping-method {
    display: none !important;
}

