#popup-checkout-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-checkout-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.popup-checkout-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Gateway image size */
#popup-checkout-modal .payment_methods img {
    max-width: 60px !important;
    height: auto !important;
    vertical-align: middle;
}

/* Place Order button full width */
#popup-checkout-modal .woocommerce-checkout .button, 
#popup-checkout-modal .woocommerce-checkout button.button {
    width: 100% !important;
    display: block !important;
}

/* Extra Dot Hide from Shipping Section */
#popup-checkout-modal .woocommerce-shipping-methods li {
    list-style: none !important;
    position: relative;
    padding-left: 0 !important;
}
#popup-checkout-modal .woocommerce-shipping-methods li::before,
#popup-checkout-modal .woocommerce-shipping-methods li::after {
    display: none !important;
    content: none !important;
}

/* Cart table responsive wrapper */
.popup-cart-table-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Cart table style */
.popup-cart-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed;
}
.popup-cart-table th, .popup-cart-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    text-align: left;
    word-break: break-word;
}
.popup-cart-table th {
    background: #f8f8f8;
    font-size: 14px;
    white-space: nowrap;
}
.popup-cart-table input[type="number"] {
    width: 50px;
    font-size: 15px;
    padding: 2px 4px;
}
.popup-cart-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #e00;
    padding: 0;
    margin-right: 8px !important;
    float: right;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* cart remove button background hide */
.popup-cart-remove,
.popup-cart-remove:active,
.popup-cart-remove:focus,
.popup-cart-remove:visited,
.popup-cart-remove:hover {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.popup-cart-remove {
    border: none !important;
    outline: none !important;
}

.popup-cart-remove::after,
.popup-cart-remove::before {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}




.popup-cart-table td:last-child {
    width: 24px;
    min-width: 24px;
    text-align: right;
    padding-right: 2px;
}
.popup-cart-table td img {
    width: 40px !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Loading spinner */
.popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ff6600;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.5s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    color: #ff6600;
    background: #fff;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; 
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    z-index: 10001;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.popup-close:hover {
    background: #ff6600;
    color: #fff;
}


/* Cart Table Section */
.popup-cart-table th.image-col, .popup-cart-table td.image-col {
    width: 15%;
    min-width: 32px;
    max-width: 48px;
    text-align: center;
}
.popup-cart-table th.product-col, .popup-cart-table td.product-col {
    width: 35%;
    min-width: 80px;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}
.popup-cart-table th.qty-col, .popup-cart-table td.qty-col {
    width: 20%;
    min-width: 36px;
    max-width: 60px;
    text-align: center;
}
.popup-cart-table th.total-col, .popup-cart-table td.total-col {
    width: 20%;
    min-width: 40px;
    max-width: 80px;
    text-align: right;
}
.popup-cart-table th.remove-col, .popup-cart-table td.remove-col {
    width: 10%;
    min-width: 20px;
    max-width: 32px;
    text-align: center;
    padding-right: 0;
    padding-left: 0;
}

/* Buy now button disable for variation product */
.popup-buy-now[disabled], .popup-buy-now.popup-buy-now-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}


/* Gateway section container */
#popup-checkout-modal .wc_payment_methods {
    background: #f7f7fb;
    border-radius: 10px;
    padding: 18px 16px 10px 16px;
    margin-bottom: 18px;
}

/* Gateway radio */
#popup-checkout-modal .wc_payment_methods .payment_method {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#popup-checkout-modal .wc_payment_methods input[type="radio"] {
    accent-color: #ff3c3c; /* Modern browsers */
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

#popup-checkout-modal .wc_payment_methods label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    cursor: pointer;
}

#popup-checkout-modal .wc_payment_methods .payment_box {
    background: #ededf7;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 8px 0 0 26px;
    font-size: 14px;
    color: #444;
    border: none;
    box-shadow: none;
}



/* Gateway List - Dot/Bullet Hide */
#popup-checkout-modal .wc_payment_methods,
#popup-checkout-modal .woocommerce-checkout .wc_payment_methods {
    padding-left: 0 !important;
}
#popup-checkout-modal .wc_payment_methods li,
#popup-checkout-modal .woocommerce-checkout .wc_payment_methods li {
    list-style: none !important;
    position: relative;
    padding-left: 0 !important;
}
#popup-checkout-modal .wc_payment_methods li::before,
#popup-checkout-modal .wc_payment_methods li::after,
#popup-checkout-modal .woocommerce-checkout .wc_payment_methods li::before,
#popup-checkout-modal .woocommerce-checkout .wc_payment_methods li::after {
    display: none !important;
    content: none !important;
}


/*Gateway Image Size Control */
#popup-checkout-modal .payment_methods img,
#popup-checkout-modal .wc_payment_methods img {
    max-width: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 6px;
    box-shadow: none;
}

/* Gateway Image Label Align */
#popup-checkout-modal .payment_methods label,
#popup-checkout-modal .wc_payment_methods label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
}




/* Quantity Update Inline */
.popup-cart-table input[type="number"] {
    width: 34px !important;
}

.popup-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    width: 50px;
    background: #f8f8f8;
    flex-direction: column !important; /* horizontal */
    justify-content: center;
    gap: 0;
}
.popup-qty-wrap.horizontal {
    flex-direction: column;
}
.popup-qty-btn {
    width: 25px !important;
    height: 32px;
    background: #f3f3f3;
    border: none;
    color: #222;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-qty-btn:hover {
    background: #ff6600;
    color: #fff;
}
.popup-cart-qty {
    width: 25px;
    height: 30px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    -moz-appearance: textfield;
}
.popup-cart-qty::-webkit-outer-spin-button,
.popup-cart-qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.popup-cart-qty[type=number] {
    -moz-appearance: textfield !important;
}

    button.popup-qty-btn.popup-qty-minus{
        padding:0 25px !important;
        font-size: 16px;
    }
    
    button.popup-qty-btn.popup-qty-plus{
        padding: 0 25px !important;
        font-size: 16px;
    }

/*  For Astra Theme */
.woocommerce-billing-fields__field-wrapper {
    width: 440px;
}

.woocommerce-shipping-fields__field-wrapper {
		width: 440px;
	}

p#order_comments_field {
    width: 440px;
}

.popup-cart-table th.qty-col, .popup-cart-table td.qty-col{
	width:14%;
}

input#popup_coupon_code {
	width: 130px !important;
}

button#popup_apply_coupon {
	padding: 12px 10px !important;
    background: #000 !important;
}

.woocommerce-js ul#shipping_method li input {
    margin: 3px 2ex !important;
}

@media (max-width: 600px) {

    .popup-qty-wrap {
        width: 40px !important;
        font-size: 13px !important;
    }
    
    .popup-cart-table input[type="number"] {
    width: 32px !important;
}
    
    button.popup-qty-btn.popup-qty-minus{
        padding:0 25px !important;
        font-size: 13px;
    }
    
    button.popup-qty-btn.popup-qty-plus{
        padding: 0 25px !important;
        font-size: 13px;
    }
	
	
	.woocommerce-billing-fields__field-wrapper {
    width: 315px;
	}
	
	.woocommerce-shipping-fields__field-wrapper {
		width: 315px;
	}
	
	p#order_comments_field {
    width: 315px;
	}
	
    
}


.popup-buy-now {
    min-width: 120px;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-align: center;
    width: 100%;
    display: inline-block;
}
@media (max-width: 600px) {
    .popup-buy-now {
        min-width: 90px;
        font-size: 15px;
        padding: 10px 10px;
    }
}


/* .single-product form.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.single-product form.cart .quantity {
    order: 1;
	margin:  0 !important;
}
.single-product form.cart .popup-buy-now {
    order: 2;
	margin: 0 !important;
}
.single-product form.cart .single_add_to_cart_button {
    order: 3;
	margin:  0 !important;
} */


/* Responsive for mobile */
@media (max-width: 600px) {
    
    .popup-cart-table th.image-col, .popup-cart-table td.image-col {
        width: 22px;
        min-width: 18px;
        max-width: 28px;
    }
    .popup-cart-table th.product-col, .popup-cart-table td.product-col {
        max-width: 70px;
    }
    .popup-cart-table th.qty-col, .popup-cart-table td.qty-col {
        width: 28px;
        min-width: 18px;
        max-width: 32px;
    }
    .popup-cart-table th.total-col, .popup-cart-table td.total-col {
        width: 32px;
        min-width: 20px;
        max-width: 40px;
    }
    .popup-cart-table th.remove-col, .popup-cart-table td.remove-col {
        width: 14px;
        min-width: 12px;
        max-width: 18px;
    }
    
    
    
    .popup-checkout-content {
        min-width: 0;
        max-width: 95vw;
        padding: 10px;
    }
    .popup-cart-table {
        min-width: 0;
        table-layout: fixed;
    }


    .popup-cart-remove {
        margin-right: 5px !important;
    }

}
