.order-lookup {
  --lookup-paper: oklch(98% .008 125);
  --lookup-ink: oklch(27% .018 145);
  --lookup-muted: oklch(45% .018 145);
  --lookup-rule: oklch(85% .015 135);
  --lookup-rule-strong: oklch(68% .02 140);
  --lookup-green: oklch(39% .055 145);
  margin-bottom: 40px;
  padding: 32px;
  border-radius: 10px;
  color: var(--lookup-ink);
  background: var(--lookup-paper);
  font-size: 17px;
  line-height: 1.5;
}
.order-lookup h2 { font: inherit; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.order-lookup p { color: var(--lookup-muted); max-width: 65ch; }
.order-lookup form { margin-top: 20px; }
.order-lookup label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.order-lookup-fields { display: flex; gap: 10px; }
.order-lookup input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1px solid oklch(64% .018 145); border-radius: 6px; padding: 11px 12px; font: inherit; color: var(--lookup-ink); background: oklch(99% .004 125); }
.order-lookup input::placeholder { color: var(--lookup-muted); }
.order-lookup button { min-height: 48px; padding: 11px 18px; border: 1px solid var(--lookup-green); border-radius: 6px; background: var(--lookup-green); color: var(--lookup-paper); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.order-lookup button:hover { background: oklch(32% .05 145); }
.order-lookup button:active { background: oklch(27% .04 145); }
.order-lookup button:disabled { cursor: wait; opacity: .65; }
.order-lookup:has(.lookup-access) #order-lookup-submit { background: transparent; color: var(--lookup-green); }
.order-lookup:has(.lookup-access) #order-lookup-submit:hover { background: oklch(93% .025 135); }
.order-lookup :is(input, button, a):focus-visible { outline: 3px solid var(--lookup-green); outline-offset: 3px; }
.order-lookup a { color: var(--lookup-green); text-underline-offset: 3px; }
#order-lookup-message:not(:empty) { margin-top: 16px; }
#order-lookup-message[data-error="true"] { color: oklch(44% .15 25); }
#order-lookup-results { outline: none; }
/* One receipt per order: header with the song and status, then its items grouped by payment. */
.lookup-order { margin-top: 24px; border: 1px solid var(--lookup-rule); border-radius: 8px; background: oklch(99.5% .003 125); }
.lookup-order-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px; }
.lookup-order-details { min-width: 0; }
.lookup-order h3 { font: inherit; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.lookup-order-song + .lookup-order-song { margin-top: 14px; }
.lookup-order p { font-size: 16px; margin-top: 8px; }
.lookup-order .lookup-brand { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lookup-order .lookup-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.lookup-status { display: inline-flex; color: var(--lookup-green); background: oklch(93% .025 135); border-radius: 4px; padding: 3px 8px; font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.lookup-access-area { justify-self: end; }
.lookup-access-area button { white-space: nowrap; }
.lookup-access-feedback { grid-column: 1 / -1; margin-top: 0; }
.lookup-access-feedback:empty { display: none; }
.lookup-order-body { border-top: 1px solid var(--lookup-rule); padding: 2px 20px 20px; }
.lookup-receipt { width: 100%; border-collapse: collapse; font-size: 16px; text-align: left; }
.lookup-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lookup-receipt :is(th, td) { padding: 8px 0; vertical-align: top; }
.lookup-receipt :is(th, td):first-child { padding-right: 20px; overflow-wrap: anywhere; }
.lookup-receipt td:last-child, .lookup-receipt .lookup-total td { width: 1%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lookup-paid-on th { padding: 16px 0 6px; font-size: 15px; font-weight: 600; color: var(--lookup-muted); }
.lookup-receipt tbody + tbody .lookup-paid-on th { padding-top: 24px; }
.lookup-total :is(th, td) { border-top: 1px solid var(--lookup-rule-strong); padding-top: 10px; padding-bottom: 0; font-size: 17px; font-weight: 700; }
.lookup-total-extra :is(th, td) { border-top: 0; padding-top: 6px; font-size: 16px; font-weight: 600; }
.lookup-empty { padding-top: 24px; font-size: 20px; }
@media (max-width: 640px) {
  .order-lookup { padding: 24px 20px; }
  .order-lookup h2 { font-size: 26px; }
  .order-lookup-fields { flex-direction: column; }
  .order-lookup button { width: 100%; }
  .lookup-order-header { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .lookup-order-body { padding: 0 16px 16px; }
  .lookup-order h3 { font-size: 20px; }
  .lookup-access-area { justify-self: stretch; }
}
