.cancelled-container { max-width: 600px; margin: 50px auto; padding: 40px; background: linear-gradient(135deg, #f8d7da, #f5c6cb); border: 2px solid #dc3545; border-radius: 15px; text-align: center; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2); } .cancelled-icon { font-size: 80px; color: #dc3545; margin-bottom: 20px; animation: shake 1s ease-in-out; } @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } } .cancelled-title { font-size: 32px; font-weight: 700; color: #721c24; margin-bottom: 15px; } .cancelled-message { font-size: 18px; color: #721c24; margin-bottom: 30px; line-height: 1.6; } .order-summary { background: white; padding: 25px; border-radius: 10px; margin: 30px 0; border: 1px solid #f5c6cb; text-align: left; } .order-summary h3 { color: #721c24; margin-bottom: 20px; text-align: center; font-size: 20px; } .summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e9ecef; } .summary-row:last-child { border-bottom: none; font-weight: bold; color: #dc3545; } .summary-label { color: #495057; font-weight: 600; } .summary-value { color: #721c24; font-weight: 500; } .info-box { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 8px; padding: 20px; margin: 30px 0; color: #856404; } .info-box h4 { margin-bottom: 15px; color: #856404; } .info-box ul { text-align: left; margin: 0; padding-left: 20px; } .info-box li { margin-bottom: 8px; } .action-buttons { margin-top: 30px; } .btn { display: inline-block; padding: 15px 30px; margin: 10px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s; } .btn-primary { background: #007bff; color: white; } .btn-primary:hover { background: #0056b3; transform: translateY(-2px); } .btn-success { background: #28a745; color: white; } .btn-success:hover { background: #218838; transform: translateY(-2px); } .btn-secondary { background: #6c757d; color: white; } .btn-secondary:hover { background: #545b62; transform: translateY(-2px); } .reassurance { background: #d1ecf1; border: 1px solid #bee5eb; border-radius: 8px; padding: 20px; margin: 20px 0; color: #0c5460; } ❌ Payment Cancelled Your payment was cancelled and no charges were made to your account. 💡 Don't worry! Your billboard design and order details have been saved. You can complete your payment whenever you're ready. 📋 Your Saved Order Purpose: Loading... Location: Loading... Run Dates: Loading... Total Amount: Loading... 🔄 What You Can Do Next: Return to checkout to complete your payment Edit your billboard design if needed Contact us if you need assistance Your order will be held for 24 hours 💳 Complete Payment ✏️ Edit Design 🏠 Return to Home document.addEventListener('DOMContentLoaded', function() { // Load saved order data from localStorage const orderData = { purpose: localStorage.getItem('selectedPurpose') || 'Not specified', location: localStorage.getItem('billboardLocation') || 'Not specified', dates: localStorage.getItem('runDates') || 'Not specified', total: localStorage.getItem('totalCost') || '0.00' }; // Update display document.getElementById('savedPurpose').textContent = orderData.purpose; document.getElementById('savedLocation').textContent = orderData.location; document.getElementById('savedDates').textContent = orderData.dates; document.getElementById('savedTotal').textContent = '$' + orderData.total; // Log cancellation event const cancellationData = { timestamp: new Date().toISOString(), orderData: orderData, reason: 'user_cancelled' }; localStorage.setItem('paymentCancelled', JSON.stringify(cancellationData)); // Optional: Send cancellation data to your server for analytics // sendCancellationDataToServer(cancellationData); console.log('Payment cancelled:', cancellationData); }); // Optional function to send cancellation data to your server function sendCancellationDataToServer(cancellationData) { // You can implement this to track cancellation analytics fetch('/wp-admin/admin-ajax.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: new URLSearchParams({ action: 'store_cancellation_data', cancellation_data: JSON.stringify(cancellationData) }) }) .then(response => response.json()) .then(data => console.log('Cancellation data stored:', data)) .catch(error => console.error('Error storing cancellation data:', error)); } Δ