/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* Fix WooCommerce & WoodMart Shipping Radio Alignment */
#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#shipping_method li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    background: #fbfbfb;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

#shipping_method li:hover {
    background: #f4f4f4;
}

#shipping_method li label {
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500;
    color: #222;
    flex: 1;
}

#shipping_method li input[type="radio"] {
    margin: 0 0 0 12px !important;
    cursor: pointer;
    order: 2; /* Keeps radio neat on the right */
}

/* Delivery Details Layout Alignment */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    margin-bottom: 0 !important;
}

/* Payment Methods Card Styling */
.woocommerce-checkout #payment ul.payment_methods {
    padding: 0 !important;
    border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #fbfbfb;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px !important;
    margin-bottom: 12px !important;
    list-style: none !important;
    transition: background 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    background: #f4f4f4;
}

/* Align Radio Button and Label */
.woocommerce-checkout #payment ul.payment_methods li > label {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    font-weight: 500;
    color: #222;
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin: 0 12px 0 0 !important;
    cursor: pointer;
}

/* Push PhonePe Logo to the right and resize it */
.woocommerce-checkout #payment ul.payment_methods li > label img {
    margin-left: auto !important;
    max-height: 24px !important;
    display: block;
}

/* Clean up the description box */
.woocommerce-checkout #payment div.payment_box {
    background: transparent !important;
    padding: 10px 0 0 28px !important; /* Aligns text under the label, avoiding the radio button */
    margin: 0 !important;
    color: #666 !important;
    font-size: 13px !important;
}

/* Hide the default WooCommerce grey arrow */
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}