/* Free tools (reminder messages, receipt maker) and copyable samples in articles. */
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 2rem; }
.sample-head h2, .sample-head h3 { margin: 0; }
.sample-when { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.sample { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; margin: .8rem 0 1.4rem; white-space: pre-wrap; font-size: .95rem; line-height: 1.6; color: var(--ink); }

.msg-out { white-space: pre-wrap; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 1rem 1.1rem; margin-top: .6rem; font-size: .95rem; line-height: 1.55; color: #fff; max-height: 440px; overflow: auto; }

.receipt { background: #fff; color: #111827; border: 1px solid #d7deea; border-radius: 14px; padding: 1.5rem 1.6rem 1.1rem; box-shadow: 0 14px 34px rgba(20, 34, 89, .10); font-size: .95rem; }
.receipt .r-org { text-align: center; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.receipt .r-addr { text-align: center; color: #5b6478; font-size: .82rem; margin-top: .2rem; }
.receipt .r-title { text-align: center; letter-spacing: .2em; font-weight: 800; font-size: .78rem; margin: .9rem 0; padding: .35rem 0; border-top: 1px dashed #c9d2e3; border-bottom: 1px dashed #c9d2e3; }
.receipt .r-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; font-size: .86rem; margin-bottom: .8rem; }
.receipt p { margin: 0 0 .5rem; line-height: 1.65; }
.receipt .r-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1.1rem; }
.receipt .r-amt { border: 2px solid #111827; border-radius: 8px; padding: .3rem .8rem; font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.receipt .r-sign { text-align: right; font-size: .85rem; }
.receipt .r-sign .line { border-top: 1px solid #111827; margin-top: 2.4rem; padding-top: .3rem; min-width: 170px; }
.receipt .r-made { text-align: center; font-size: .72rem; color: #8a93a6; margin-top: 1rem; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .4rem; }
.receipt-hint { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; padding: 0 !important; }
  body > *:not(main), main > section:not(#tool-sec), #tool-left, .receipt-actions, .receipt-hint, .tool-upsell { display: none !important; }
  #tool-sec { padding: 0 !important; }
  #tool-sec .container { max-width: none; padding: 0; }
  .tool-wrap { display: block !important; }
  .tool-side { position: static !important; }
  .receipt { box-shadow: none; border: 1px solid #000; max-width: 170mm; margin: 0 auto; }
}
