/*
 * KOrder styles · public/css/03-receipt.css
 * /receipt page (order receipt opened from a QR).
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */
.receipt-app {
  min-height: 100vh;
  background: #f7f1e7;
}

.receipt-main {
  min-height: 100vh;
  padding: 18px;
}

.receipt-screen {
  display: grid;
  min-height: calc(100vh - 36px);
  place-items: center;
}

.receipt-card {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 20px 60px rgba(37, 30, 22, 0.12);
}

.receipt-card.receipt-empty {
  max-width: 520px;
  text-align: center;
}

.receipt-brand,
.receipt-title-row,
.receipt-meta-grid {
  display: grid;
  gap: 12px;
}

.receipt-brand {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.receipt-brand strong,
.receipt-title-row h1 {
  color: var(--ink);
}

.receipt-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.receipt-brand span,
.receipt-title-row span,
.receipt-meta-grid span {
  color: var(--muted);
  font-weight: 800;
}

.receipt-title-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: #f3eadc;
}

.receipt-title-row h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.1;
}

.receipt-title-row > strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  white-space: nowrap;
}

.receipt-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.receipt-meta-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.receipt-meta-grid strong {
  color: var(--ink);
}

