.template-dimmed{opacity:.45}.template-vars{flex-wrap:wrap;gap:.35rem;display:flex}.template-var{font:inherit;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface-alt);color:var(--text);border-radius:999px;padding:.3rem .65rem;font-size:.8rem;font-weight:600}.template-var:hover{border-color:var(--primary);color:var(--primary)}.receipt-preview{position:sticky;top:80px}.receipt-preview .receipt-business{margin:.25rem 0;font-size:14px;font-weight:700}.receipt-preview .receipt-logo{object-fit:contain;max-width:120px;max-height:60px;margin:0 auto .25rem;display:block}.receipt-logo-placeholder{opacity:.45;letter-spacing:2px;border:1px dashed;justify-content:center;align-items:center;width:120px;height:44px;margin:0 auto .25rem;display:flex}.receipt-note{white-space:pre-wrap;margin-top:.25rem;font-style:italic}.receipt-line{justify-content:space-between;gap:.5rem;display:flex}.receipt-qty{text-align:right;width:36px}.receipt-preview .receipt-total{margin-top:.2rem;font-size:14px;font-weight:700}.receipt-barcode{letter-spacing:1px;margin-top:.5rem;font-size:18px}.template-event{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;gap:.15rem;padding:.6rem .8rem;display:grid}.template-event small{color:var(--text-muted)}.template-sms{background:var(--surface-alt);border-radius:14px;padding:1rem}.template-sms span{color:#111;white-space:pre-wrap;background:#e9e9eb;border-radius:16px 16px 16px 4px;max-width:85%;padding:.6rem .85rem;font-size:.9rem;line-height:1.4;display:inline-block}.template-email{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:.9rem 1rem}.template-email b{margin-bottom:.35rem;display:block}.template-email p{white-space:pre-wrap;color:var(--text-muted);margin:0;line-height:1.5}