/* OG Sub — order detail extras (modules/order_extras.php): timed status steps, next step, receipt (print-ready). */
.tl-timed li { align-items: flex-start; }
.tl-timed .tl-dot { margin-top: 5px; }
.tl-text { display: grid; gap: 2px; min-width: 0; }
.tl-text time { color: var(--muted); font-size: .76rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-timed.is-cancelled li.current { border-color: rgb(255 107 107 / .35); box-shadow: none; }
.tl-timed.is-cancelled li.current .tl-dot { background: var(--danger); border-color: var(--danger); }
.tl-note { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.next-step { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.next-step > .ic { flex: none; margin-top: 2px; color: var(--accent); }
.next-step strong { font-size: .9rem; }
.next-step p { margin: 2px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.6; }
.again-note { flex-basis: 100%; }

.receipt { display: grid; gap: 16px; max-width: 720px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.receipt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.receipt-head h1 { font-size: 1.4rem; }
.receipt-head p { margin: 2px 0 0; }
.receipt-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.receipt-meta dt { color: var(--muted); font-size: .8rem; }
.receipt-meta dd { margin: 2px 0 0; font-weight: 600; }
.receipt-lines tfoot th, .receipt-lines tfoot td { padding: 12px; border-top: 1px solid var(--line-2); text-align: start; }
.receipt-lines tfoot td { text-align: end; }
.receipt-sub { font-size: 1rem; }
.receipt > .btn-ghost { justify-self: start; }
.receipt-pay { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.receipt-pay li { display: flex; justify-content: space-between; gap: 12px; }
@media print {
  .no-print, .app-sidebar, .sb, .topbar, .app-top, .chat-widget, .skip-link, .announce, footer { display: none !important; }
  body, .receipt { background: #fff !important; color: #000 !important; }
  .receipt { max-width: none; border: 0; padding: 0; }
  .receipt .muted, .receipt-meta dt { color: #444 !important; }
  .receipt .table th, .receipt .table td { border-color: #ccc !important; color: #000 !important; }
}

/* Product page: terms beside the decision, plan comparison */
.buy-terms { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; list-style: none; font-size: .84rem; }
.buy-terms li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; }
.buy-terms .ic { color: var(--muted); }
.buy-terms span { color: var(--muted); }
.buy-terms b { overflow-wrap: anywhere; text-align: end; font-weight: 600; }
.plan-compare { display: grid; gap: 10px; margin-top: 8px; }
.plan-compare h2 { font-size: 1.05rem; }
.plan-compare tr.is-current th, .plan-compare tr.is-current td { background: rgb(var(--accent-rgb) / .05); }
.ledger-amounts { flex-direction: column; align-items: flex-end; gap: 2px; }
.ledger-amounts small { font-size: .74rem; }
@media (max-width: 640px) { .receipt-meta { grid-template-columns: 1fr; } .receipt { padding: 16px; } }
