/* Add styles for the purchase receipt */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #eeeeee;
}

.receipt {
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 5px 20px 5px 20px;
  margin: auto;
  max-width: 360px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.header {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 10px;
  font-family: "Courier New", Courier, monospace;
}

.receipt table {
  margin-bottom: 20px;
  width: 100%;
  border-collapse: collapse;
}

.receipt table th,
.receipt table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.receipt table th {
  background-color: #f2f2f2;
  font-weight: normal;
}

.receipt h2 {
  font-size: 1.4em;
  margin: 0 0 5px 0;
  color: #333;
  text-align: center;
}

.receipt p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #424242;
  font-size: 14px;
}

.receipt sub {
  color: #424242;
}

.receipt .link-as-button {
  display: flex;
  justify-content: center;
  text-decoration: none;
  background-color: #1495ff;
  color: #fff;
  margin: 0.6rem auto 0.5rem auto;
  padding: 10px 0px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.receipt .hide-on-pdf {
  display: flex !important;
  justify-content: center !important;
  margin-top: 1rem;
  padding: 8px 12px;
  background-color: transparent;
  border: none;
  color: #424242 !important;
  text-decoration: none !important;
  cursor: default;
  border-radius: 0;
  transition: none;
}
.receipt .link-as-button:hover {
  background-color: #1177cc;
  border: 1px solid #1177cc;
  color: #fff;
}

.receipt .disclaimer {
  display: flex;
  flex-direction: column;
  font-size: 0.6em;
  color: #999;
}

.receipt .disclaimer .disclaimerTitle {
  text-align: center;
  margin-top: 5px;
}

.receipt .qr-container {
  display: flex;
  justify-content: center;
}

.hide-qr-container {
  display: none !important;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 360px;
  margin: 0.5rem auto 0.5rem auto;
}

.button {
  background-color: #1495ff;
  color: #fff;
  border: 1px solid #1495ff;
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  flex: 1;
}

.button:hover {
  background-color: #1177cc;
  border: 1px solid #1177cc;
  color: #fff;
}

.button:active {
  background-color: #1173e4;
}

.button i {
  margin-right: 8px;
}

/* Add responsive styles for smaller screens */
@media (max-width: 768px) {
  .receipt {
    border: 1px solid #ddd;
    background-color: #fff;
    margin: auto;
    width: 80%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
  }
  .receipt table th,
  .receipt table td {
    padding: 5px;
  }

  .receipt h1 {
    font-size: 1.5em;
  }

  .receipt p {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
  }

  .button {
    font-size: 18px;
    padding: 12px 24px;
  }
}

@media print {
  .receipt .hide-on-print {
    display: flex !important;
    justify-content: center !important;
    margin-top: 1rem;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: #424242 !important;
    text-decoration: none !important;
    cursor: default;
    border-radius: 0;
    transition: none;
  }
}
