.receipt_container {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 30px;
    width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 20px; /* Spacing from potential header */
    margin-bottom: 20px; /* Spacing from potential footer */
  }
  .receipt_header {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: space-between; /* Space out logo, text, and QR code */
    align-items: center; /* Vertically center items in the header */
    margin-bottom: 20px;
  }
  .receipt_header img {
    height: 80px;
    width: auto;
  }
  .receipt_header .qr-code {
    text-align: right;
  }
  .receipt_header .qr-code img {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    padding: 5px;
  }
  .receipt_header .qr-code p {
    font-size: 12px;
    margin-top: 5px;
  }
  .header-main-text {
    flex-grow: 1; /* Allow this div to take up available space */
    text-align: center; /* Center the text within this div */
    margin: 0 10px; /* Add some horizontal margin */
  }
  .title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1; /* Adjust line height to reduce space */
  }
  .subtitle {
    font-size: 20px;
    color: #555;
    margin-top: 0; /* Remove top margin from subtitle */
  }
  
  .success {
      background-color: #a8d8a8; /* Light green */
  }
  .pending {
      background-color: #ffcc00; /* Light yellow */
  }
  .failed {
      background-color: #ff4d4d; /* Light red */
  }
    
  .status-bar-success {
    background-color: #a8d8a8; /* Light green */
    color: #333;
    padding: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 30px;
  }
    .status-bar-pending {
    background-color: #ffcc00; /* Light green */
    color: #333;
    padding: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 30px;
  }
  .info-section {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
  }
  .info-section span {
    font-weight: bold;
    display: inline-block;
    width: 150px; /* Align text */
  }
  .details-box {
    border: 1px solid #bbb;
    padding: 20px;
    border-radius: 8px;
    background-color:  #ffffff25 /* #f9f9f9 */;
    position: relative; /* For the watermark */
    overflow: hidden;
  }
  .details-box h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
  }
  .details-box p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
  }
  .amount {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-top: 30px;
    color: #222;
  }
  .receipt_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
  }
  .receipt_footer img {
    height: 50px;
    width: auto;
  }

  .watermark-img {
    position: absolute;
    opacity: 0.15; /* Adjust opacity to make it look like a watermark */
    pointer-events: none; /* Make it unclickable */
    z-index: 0; /* Ensure it's in the background */
    max-width: 100%; /* Ensure it fits within the container */
    height: auto;
  }

  .watermark-combined {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg); /* Rotate as in original image */
    width: 700px; /* Adjust size as needed to cover the area */
  }
  
  
  
  /* Print Styles for A4 */
  @media print {
    /* Hide non-receipt elements */
    .website-header, .website-footer {
      display: none;
    }

    /* Make the body take up full screen for printing, important for A4 layout */
    body {
      background-color: #fff; /* White background for print */
      margin: 0;
      padding: 0;
      display: block; /* Remove flex display for print */
      min-height: auto;
      width: 210mm; /* A4 width */
      height: 297mm; /* A4 height */
      overflow: hidden;
      position: relative;
    }

    /* Print only the container, positioning it on the A4 page */
    .receipt_container {
      width: 100%; /* Take full width of the A4 body */
      max-width: 210mm; /* Max width to fit A4 */
      box-shadow: none; /* Remove shadow for print */
      border: none; /* Remove border for cleaner print */
      border-radius: 0;
      padding: 15mm; /* A4 margins */
      margin: 0; /* Reset margin as body will handle centering/positioning */
      position: absolute; /* Position within the A4 body */
      top: 0;
      left: 0;
      height: 100%;
      overflow: hidden;
    }

    .receipt_header img {
      height: 60px; /* Slightly smaller logos for print */
    }
    .receipt_header .qr-code img {
      width: 80px; /* Smaller QR code for print */
      height: 80px;
    }
    .title {
      font-size: 28px; /* Adjust font size for print readability */
    }
    .subtitle {
      font-size: 16px;
    }
    .status-bar-success {
      font-size: 20px;
      padding: 8px;
    }
    .info-section {
      font-size: 14px;
      line-height: 1.6;
    }
    .details-box {
      border: 1px solid #ddd; /* Light border for details box */
      background-color: #ffffff25;
      /* background-color: #fff; */ /* Ensure white background for print */
    }
    .details-box h3 {
      font-size: 18px;
    }
    .details-box p {
      font-size: 13px;
    }
    .amount {
      font-size: 32px;
      margin-top: 20px;
    }
    .receipt_footer img {
      height: 40px; /* Smaller footer logos */
    }

    /* Adjust watermark for print */
    .watermark-img {
      opacity: 0.05; /* Even lighter for print */
      transform: translate(-50%, -50%) rotate(-45deg) scale(0.8); /* Slightly smaller and rotated */
      width: 100%; /* Adjust to fit print dimensions */
      max-width: 600px; /* Constrain its size even if it scales with container */
    }

    /* Hide the print button when printing */
    .print-button-container {
      display: none;
    }
  }