/* Modal Background Overlay */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999 !important; /* Sabse upar dikhane ke liye */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Dark background */
    align-items: center;
    justify-content: center;
}

/* Modal Box Design */
.modal-content {
    background-color: #fff;
    margin: 2% auto; /* Thoda kam margin taaki mobile par fit aaye */
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 90vh; /* Screen ka 90% area cover karega */
    overflow-y: auto !important; /* Pura modal scroll karega agar content zyada hai */
    display: block; /* Flex se Scroll problem aa sakti hai, isliye block best hai */
}

/* Close Button (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* Input Fields */
.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fdfdfd;
    outline: none;
}

/* Order Button */
.order-btn-main {
    width: 100%;
    background: #6b0f1a;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Google Button Styling */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    transition: background 0.3s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.google-btn:hover {
    background-color: #f7f7f7;
}

.google-btn img {
    width: 20px;
    pointer-events: none;
}

/* Social Login Section */
.social-login {
    margin: 20px 0;
    position: relative;
    z-index: 5;
}

.social-login hr {
    border: none;
    border-top: 1px solid #eee;
    margin-bottom: 10px;
}

.social-login p {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

#cartItems, #myOrdersList {
    margin-top: 15px;
    height: auto; /* Fixed height hata di gaya hai */
    max-height: none; 
}

/* Custom Scrollbar for Orders */
#myOrdersList::-webkit-scrollbar { width: 6px; }
#myOrdersList::-webkit-scrollbar-thumb { background: #bbb; border-radius: 10px; }

.order-id, #resId {
    word-break: break-all; /* Taaki lambi ID box se bahar na jaye */
}