/* =================================================================== */
/* FINAL PAYMENT MODAL STYLES                                          */
/* This is the only modal style needed for the payment confirmation.   */
/* =================================================================== */

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width for full coverage */
    height: 100vh; /* Use viewport height for full coverage */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    
    /* Start as hidden and centered */
    display: none; 
    justify-content: center;
    align-items: center;

    z-index: 9999; /* Use a very high z-index to ensure it's on top of all other content */
    
    /* For smooth fade-in animation */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* This is the key class that JavaScript adds to make the modal appear */
.payment-modal-overlay.visible {
    display: flex; /* Change display from 'none' to 'flex' to show it */
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background: #ffffff;
    padding: 2em;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* For smooth slide-in animation */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* This makes the content box slide/scale in when the overlay becomes visible */
.payment-modal-overlay.visible .payment-modal-content {
    transform: scale(1);
}

.payment-modal-content h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-family: 'Inter', sans-serif;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-modal-content p {
    margin-bottom: 1.5em;
    font-family: 'Inter', sans-serif;
    color: #666;
    line-height: 1.6;
}

.payment-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
}

/* The buttons will inherit your existing .action-btn styles,
   so you don't need to re-style them here unless you want to override them.
   This ensures consistency with your site's design. */

/* Optional: Add specific styles if needed, for example: */
#modal-cancel-button {
    background-color: #f1f1f1;
    color: #555;
    border: 1px solid #ddd;
}

#modal-cancel-button:hover {
    background-color: #e1e1e1;
}

#modal-pay-button {
    /* Your .action-btn.primary style should already cover this */
}