#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: 0;
    float: right;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
.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 1s 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: 40%;
    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: 15%;
    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: 15%;
    min-width: 20px;
    max-width: 32px;
    text-align: center;
    padding-right: 0;
    padding-left: 0;
}




/* 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;
}




/* 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;
    }

}