/* Fix payment method visibility */
.woocommerce-checkout #payment .payment_methods li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Show all payment options */
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_cc {
    display: list-item !important;
}

/* Ensure payment box is visible */
.woocommerce-checkout #payment {
    display: block !important;
    visibility: visible !important;
}

/* Make sure card icons are visible */
.woocommerce-checkout .payment_method_stripe .stripe-card-brand,
.woocommerce-checkout .payment_method_stripe_cc .stripe-card-brand,
.woocommerce-checkout .payment_method img {
    display: inline-block !important;
    visibility: visible !important;
}

/* Fix white on white text issue */
.page-content[style*=background: white] .woocommerce-checkout #payment label {
    color: #333 !important;
}

/* Ensure radio buttons are visible */
.woocommerce-checkout #payment input[type=radio] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Debug: Make absolutely sure payment area is visible */
#payment,
.woocommerce-checkout-payment,
#payment .payment_methods,
#payment .payment_methods > li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure white background does not hide content */
.page-content[style*="background: white"] #payment,
.page-content[style*="background: white"] #payment * {
    color: #333 !important;
}

/* Make card brand images visible */
.payment_method img,
.stripe-card-brand img {
    display: inline-block !important;
    max-height: 30px !important;
}


/* FINAL OVERRIDE: Force all payment elements visible */
body.woocommerce-checkout {
    #payment { 
        display: block !important; 
    }
    
    .payment_methods {
        display: block !important;
        
        li {
            display: list-item !important;
            opacity: 1 !important;
            visibility: visible !important;
            
            label {
                display: inline-block !important;
                color: #333 !important;
            }
            
            input[type="radio"] {
                display: inline-block !important;
            }
        }
    }
    
    .payment_box {
        display: block !important;
    }
}

/* CRITICAL: Show Stripe card elements */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field,
#stripe-card-element,
#stripe-iban-element,
.stripe_cc-card-group,
.woocommerce-SavedPaymentMethods,
.wc-payment-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix card input fields */
.wc-stripe-elements-field iframe,
#stripe-card-element iframe {
    display: block !important;
    visibility: visible !important;
    min-height: 40px !important;
}

/* Show card brand icons */
img[src*="visa"],
img[src*="mastercard"],
img[src*="amex"],
img[src*="discover"],
.payment_method_stripe img,
.payment_method_stripe_cc img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
