   ============================================ */

/* Checkout cart item card layout */
.checkout-cart-item-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    margin: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-cart-item-card:last-child {
    border-bottom: none;
}

.checkout-cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 8px;
}

.checkout-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.checkout-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

/* Hide product-item-thumbnail in checkout cart item name */
.checkout-cart-item-name .product-item-thumbnail {
    display: none !important;
}

.checkout-cart-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 90px;
}

.checkout-cart-item-price del {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.checkout-cart-item-price ins {
    display: block;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #16892f;
}

/* Checkout quantity input styling */
.checkout-quantity-wrapper {
    margin-top: 4px;
}

.checkout-quantity-controls {
    display: inline-flex;
    border: 1px solid #dedede;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.checkout-quantity-controls .checkout-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background-color: #16892f;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    transition: background-color 0.2s;
    padding: 0;
    margin: 0;
}

.checkout-quantity-controls .checkout-qty-btn:hover {
    background-color: #0f6b22;
}

.checkout-quantity-controls .checkout-quantity-input {
    width: 40px;
    height: 24px;
    text-align: center;
    border: none;
    border-left: 1px solid #dedede;
    border-right: 1px solid #dedede;
    padding: 0;
    background-color: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    appearance: textfield;
    -moz-appearance: textfield;
}

.checkout-quantity-controls .checkout-quantity-input::-webkit-outer-spin-button,
.checkout-quantity-controls .checkout-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mobile responsive for checkout cart items */
@media (max-width: 768px) {
    .checkout-cart-item-card {
        gap: 8px;
        padding: 8px 0;
        margin: 6px 0;
    }

    .checkout-cart-item-image {
        width: 50px;
        height: 50px;
    }

    .checkout-cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .checkout-cart-item-name {
        font-size: 13px;
        line-height: 1.2;
    }

    .checkout-cart-item-details {
        gap: 4px;
    }

    .checkout-cart-item-price {
        min-width: 80px;
    }

    .checkout-cart-item-price del {
        font-size: 11px;
    }

    .checkout-cart-item-price ins {
        font-size: 13px;
    }

    .checkout-quantity-controls .checkout-qty-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .checkout-quantity-controls .checkout-quantity-input {
        width: 35px;
        height: 22px;
        font-size: 12px;
    }
}

/* Product Hover Effect - Show Second Image on Hover */
.product-images-hover {
    position: relative;
    overflow: hidden;
}

.product-images-hover .product-thumb-primary {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.product-images-hover .product-thumb-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.product-images-hover.change-image .product-thumb-secondary {
    display: block;
}

.product-images-hover.change-image .product-thumb-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-item-inner:hover .product-images-hover.change-image .product-thumb-secondary,
.product-item-wrap:hover .product-images-hover.change-image .product-thumb-secondary {
    opacity: 1;
}

/* Hide the input section and Apply button in Points on Cart */
.lws_wr_pointsoncart_contribution .wr-cart-input {
    display: none !important;
}

.lws_wr_pointsoncart_contribution .wr-cart-apply {
    display: none !important;
}

/* Make the Use Points button bigger and filled with white text */
button.button.lwss_selectable.wr-cart-max.lws_wr_pointsoncart_use_max_amount {
    padding: 10px 20px !important;
    font-size: 14px !important;
    background-color: #16892f !important;
    color: #fff !important;
    border: 2px solid #16892f !important;
}

/* Reduce spacing between Your Points and the button */
.lws_wr_pointsoncart_contribution .wr-cart-balance {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

.lws_wr_pointsoncart_contribution .wr-cart-buttons {
    margin-top: 5px !important;
}

/* Address Dropdown Styling */
.upjau-address-dropdown-wrapper {
    margin-bottom: 25px;
    padding: 0;
    background-color: transparent;
    border: none;
    position: relative;
}

.upjau-address-dropdown-wrapper::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #dedede, transparent);
    margin-bottom: 20px;
}

.upjau-address-dropdown-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #703928;
    font-size: 16px;
    line-height: 1.4;
}

.upjau-address-label-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.upjau-address-select {
    width: 100%;
    padding: 0 15px;
    height: 55px !important;
    font-size: 16px;
    border: 1px solid #dedede !important;
    border-radius: 5px !important;
    background-color: #fff;
    color: #002c04;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23002c04' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
    padding-right: 40px;
    font-weight: normal;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.upjau-address-select::-ms-expand {
    display: none;
}

.upjau-address-select:hover {
    border-color: #16892f !important;
}

.upjau-address-select:focus {
    outline: none;
    border-color: #16892f !important;
    box-shadow: 0 0 0 2px rgba(22, 137, 47, 0.1);
}

.upjau-address-select option {
    padding: 12px 15px;
    color: #002c04;
    background-color: #fff;
}

.upjau-address-select option:checked {
    background-color: #E8FEE6;
    color: #002c04;
}

/* Make it match WooCommerce form field styling */
.woocommerce-checkout .upjau-address-dropdown-wrapper {
    margin-bottom: 25px;
}

.woocommerce-checkout .upjau-address-select {
    font-family: inherit;
    line-height: 1.5;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .upjau-address-dropdown-wrapper {
        margin-bottom: 20px;
    }
    
    .upjau-address-dropdown-wrapper label {
        font-size: 15px;
    }
    
    .upjau-address-select {
        height: 50px !important;
        font-size: 15px;
        padding: 0 12px;
        padding-right: 35px;
    }
    
    .upjau-address-label-icon {
        font-size: 16px;
    }
}

/* Checkout Login Button and Popup Styles */
.upjau-checkout-login-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.upjau-checkout-login-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #5ACD73;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upjau-checkout-login-button:hover {
    background-color: #4ab862;
}

.upjau-login-icon {
    font-size: 18px;
}

/* Login Popup Styles */
.upjau-checkout-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upjau-checkout-login-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.upjau-checkout-login-popup-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 30px;
}

.upjau-checkout-login-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.upjau-checkout-login-popup-close:hover {
    color: #000;
}

.upjau-checkout-login-popup-header {
    margin-bottom: 25px;
    text-align: center;
}

.upjau-checkout-login-popup-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.upjau-checkout-login-popup-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.upjau-checkout-login-popup-body {
    margin-top: 20px;
}

/* Prevent body scroll when popup is open */
body.upjau-popup-open {
    overflow: hidden;
}

/* Responsive styles for login popup */
@media (max-width: 768px) {
    .upjau-checkout-login-popup-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .upjau-checkout-login-popup-header h3 {
        font-size: 20px;
    }
    
    .upjau-checkout-login-button {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* Address Field Z-index */
.address-field .woocommerce-input-wrapper {
    z-index: 99 !important;
}

/* Payment Methods */
.payment_method_razorpay {
    display: none !important;
}

/* PhonePe Payment Method - Yellow Styling */
.payment_method_phonepe {
    list-style: none outside !important;
    box-sizing: border-box !important;
    align-items: center !important;
    padding: 20px 10px !important;
    position: relative !important;
    border-top-right-radius: 5px !important;
    border-top-left-radius: 5px !important;
    background-color: #f9d924 !important;
    line-height: 2 !important;
    text-align: left !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.payment_method_phonepe label {
    color: #000 !important;
    font-weight: 400 !important;
}

.payment_method_phonepe input[type="radio"]:checked + label {
    color: #000 !important;
}

.payment_method_phonepe input[type="radio"]:checked {
    accent-color: #000 !important;
}

/* CartFlows Checkout Form */
@media only screen and (max-width: 768px) {
    .wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .wcf-cartflows-review-order-wrapper.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .wcf-cartflows-review-order-wrapper,
    .wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .wcf-cartflows-review-order-wrapper {
        display: block !important;
    }
}

.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .woocommerce .wcf-instant-checkout-wrapper .wcf-ic-layout-right-column {
    min-height: fit-content;
}

/* ============================================
