

/* Hide all payment methods except main Stripe */
.woocommerce-checkout #payment .payment_methods li {
    display: none !important;
}

/* Show only the main Stripe payment method */
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe {
    display: list-item !important;
}

/* Hide Credit/Debit Cards (stripe_cc) and all other Stripe variants */
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_cc,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_applepay,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_googlepay,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_link,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_alipay,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_ideal,
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe_sepa,
.woocommerce-checkout #payment .payment_methods li[class*="payment_method_stripe_"] {
    display: none !important;
}

/* Hide offline payment methods */
.woocommerce-checkout #payment .payment_methods li.payment_method_bacs,
.woocommerce-checkout #payment .payment_methods li.payment_method_cheque,
.woocommerce-checkout #payment .payment_methods li.payment_method_cod {
    display: none !important;
}

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

/* Clean up the payment area since only one option */
.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    margin: 0;
    padding: 0;
}

/* Hide the radio button since only one option */
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe input[type="radio"] {
    display: none !important;
}

/* Style the single payment method nicely */
.woocommerce-checkout #payment .payment_methods li.payment_method_stripe label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: block;
}


/* Additional styling for single payment method */
body.woocommerce-checkout {
    /* Remove the payment method selection header since only one option */
    #payment h3 {
        display: none;
    }
    
    /* Make the Stripe payment area more prominent */
    #payment .payment_method_stripe {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin: 0;
    }
    
    /* Ensure Stripe elements are properly styled */
    .wc-stripe-elements-field {
        background: white;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 15px;
    }
    
    /* Make the place order button more prominent */
    #place_order {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        font-weight: 600;
        background: #27ae60;
        border: none;
        color: white;
        border-radius: 4px;
        cursor: pointer;
        margin-top: 20px;
    }
    
    #place_order:hover {
        background: #219a52;
    }
}


/* CRITICAL: Ensure Pay with Stripe is always visible */
body.woocommerce-checkout #payment .payment_methods li.payment_method_stripe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* If stripe is the only payment method, auto-select it */
body.woocommerce-checkout #payment .payment_methods li.payment_method_stripe input[type="radio"] {
    checked: checked;
}
