<!DOCTYPE html>
<html>
<head>
  <style>
    body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
    .container { max-width: 600px; margin: 0 auto; padding: 20px; }
    .header { background-color: #4CAF50; color: white; padding: 20px; text-align: center; }
    .content { padding: 20px; background-color: #f9f9f9; }
    .footer { text-align: center; padding: 20px; font-size: 12px; color: #777; }
    .button {
      display: inline-block; 
      padding: 10px 20px; 
      background-color: #4a6baf; 
      color: white; 
      text-decoration: none; 
      border-radius: 4px;
      margin: 15px 0;
    }
    .amount { 
      font-size: 24px; 
      font-weight: bold; 
      color: #2e7d32;
      margin: 15px 0;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>Payment Received</h1>
    </div>
    <div class="content">
      <p>Hello {{name}},</p>
      <p>We've successfully processed your payment of:</p>
      
      <div class="amount">{{currency}} {{amount}}</div>
      
      {{#if orderId}}
      <p>For order: <strong>#{{orderId}}</strong></p>
      {{/if}}
      
      {{#if paymentMethod}}
      <p>Payment Method: <strong>{{paymentMethod}}</strong></p>
      {{/if}}
      
      <p>Transaction ID: <code>{{transactionId}}</code></p>
      <p>Date: {{date}}</p>
      
      <p>Thank you for your purchase!</p>
      
      <p style="text-align: center;">
        <a href="{{dashboardUrl}}" class="button" style="color: white;">View Order Details</a>
      </p>
      
      <p>If you have any questions about your order, please contact our support team.</p>
      
      <p>Best regards,<br>The Xania Bookstore Team</p>
    </div>
    <div class="footer">
      <p>© {{year}} Xania Bookstore. All rights reserved.</p>
      <p>This is an automated message, please do not reply to this email.</p>
    </div>
  </div>
</body>
</html>
