/* Receipt preview overlay + the two receipt styles */
.rcpt-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.6); display: grid; place-items: center; padding: 16px; overflow: auto; }
.rcpt-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 94vh; }
.rcpt-sheet { overflow: auto; border-radius: 4px; }
/* Fancy receipt bitmap — shown at print resolution, scaled to fit the preview */
.rcpt-sheet-canvas { background: #fff; padding: 0; display: flex; justify-content: center; }
.rcpt-canvas { display: block; width: 100%; max-width: 320px; height: auto; }
.rcpt-building { padding: 40px; text-align: center; color: #888; font-size: 2rem; }
.rcpt-actions { display: flex; gap: 10px; }
.rcpt-print, .rcpt-closebtn { border: none; border-radius: 999px; padding: 11px 22px; font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.rcpt-print { background: #06c755; color: #fff; }
.rcpt-closebtn { background: rgba(255,255,255,0.9); color: #333; }

/* Simple — thermal text */
.rcpt-simple { width: 300px; background: #fff; color: #111; font-family: 'Courier New', monospace; padding: 18px 20px; font-size: 13px; line-height: 1.4; }
.rs-shop { text-align: center; font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.rs-sub { text-align: center; font-size: 11px; color: #333; }
.rs-hr { border-top: 1px dashed #999; margin: 9px 0; }
.rs-meta { font-size: 11px; color: #444; text-align: center; }
.rs-item { display: flex; justify-content: space-between; gap: 8px; }
.rs-detail { font-size: 11px; color: #555; margin: 0 0 5px 14px; }
.rs-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; }
.rs-paid { text-align: right; font-size: 11px; color: #1f6b3a; font-weight: 700; }
.rs-thanks { text-align: center; margin-top: 6px; font-size: 12px; }

/* Extra — branded graphic */
.rcpt-extra { position: relative; width: 330px; background: #eef4ea; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,0.35); }
.re-bg { position: absolute; inset: 0; background: url('/img/storefront.webp') center/cover no-repeat; opacity: 0.16; }
.re-inner { position: relative; padding: 16px 16px 18px; }
.re-logo { width: 100%; max-width: 260px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); }
.re-ref { text-align: center; font-size: 11px; color: #3c5648; margin-bottom: 10px; }
.re-items { background: rgba(255,255,255,0.86); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(1px); }
.re-item { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.re-item:first-child { border-top: none; }
.re-i { font-weight: 600; color: #1f3d2b; }
.re-i small { display: block; color: #5c7a68; font-size: 11px; font-weight: 400; margin-top: 1px; }
.re-p { white-space: nowrap; font-weight: 600; color: #1f3d2b; }
.re-total { display: flex; justify-content: space-between; font-weight: 800; color: #1f6b3a; padding: 9px 2px 2px; margin-top: 6px; border-top: 2px solid rgba(31,107,58,0.25); font-size: 16px; }
.re-qr { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.92); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.re-qr img { width: 78px; height: 78px; flex: none; border-radius: 6px; }
.re-qrtext { font-size: 12.5px; color: #23453a; font-weight: 700; }
.re-qrtext small { display: block; font-weight: 400; color: #4a6a5a; margin-top: 2px; }
.re-foot { text-align: center; font-size: 11px; color: #3c5648; margin-top: 10px; }

/* Split "receipt" control on order cards */
.rcpt-row { display: flex; align-items: stretch; margin-top: 8px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; overflow: hidden; }
.rcpt-row .rr-label { display: flex; align-items: center; padding: 0 10px; background: rgba(255,255,255,0.06); font-size: 1.1rem; }
.rcpt-row button { flex: 1; border: none; background: rgba(255,255,255,0.06); color: #e8f0e4; font-weight: 600; padding: 9px 6px; cursor: pointer; font-size: 0.9rem; }
.rcpt-row button + button { border-left: 1px solid rgba(255,255,255,0.15); }
.rcpt-row button:hover { background: rgba(255,255,255,0.12); }
.rcpt-row .rr-extra { color: #ffe9a8; }
