.payment-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 550px; /* Reduced from full width */
    margin: 0 auto; /* Centers the container */
    padding: 20px 0;
}

.payment-left {
    width: 100%;
    max-width: 500px; /* Matches your inline style */
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Optional: If you want to make the QR code responsive */
.payment-summary-price img {
    max-width: 100%;
    height: auto;
}

/* Modal styles for payment confirmation dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideDown 0.3s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10000;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-icon {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon img {
    width: 60px;
    height: 60px;
}

.modal h2 {
    color: #0364b3;
    margin-bottom: 15px;
    text-align: center;
    font-size: 24px;
}

.modal-message {
    background: #e7f3ff;
    border-left: 4px solid #0364b3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    color: #333;
}

.modal-message strong {
    color: #0364b3;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #25D366;
}

.checkbox-container label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

.payment-button-container {
    text-align: center;
    margin-top: 25px;
}

.payment-button-container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.payment-button-container button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.payment-button-container button:not(:disabled) {
    background-color: #5F259F;
    color: white;
}

.payment-button-container button:not(:disabled):hover {
    background-color: #4a1d7a;
    transform: scale(1.02);
}

.payment-button-container button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.note-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 15px;
}

/* Modal for WhatsApp details */
.modal, .whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
} 


.whatsapp-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideDown 0.3s;
    z-index: 10001;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #0364b3;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #0364b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(3,100,179,0.1);
}

.btn-whatsapp-send {
    width: 100%;
    background-color: #25D366;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-whatsapp-send:hover {
    background-color: #128C7E;
}

.btn-whatsapp-send img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.instruction-note {
    background: #e7f3ff;
    border-left: 4px solid #0364b3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 14px;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .payment-wrapper {
        max-width: 95%;
        padding: 10px 0;
    }
    
    .payment-left {
        max-width: 100%;
        padding: 15px;
    }
    
    .payment-summary-price img {
        width: 250px;
        height: 250px;
    }
    
    .modal-content {
        margin: 30% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .payment-summary-price img {
        width: 220px;
        height: 220px;
    }
    
    .payment-left {
        padding: 10px;
    }
    
    .modal-content, .whatsapp-modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}