/* VBE shared receipt — thermal roll look, roll-down + scissor cut + PAID stamp, print-ready.
   Used by every payment on the site (verification, ads, boosts, listing fees, escrow, valuation, insurance). */
.vbe-rc, .vbe-rc * { box-sizing: border-box; }
.vbe-rc {
  --rc-red: #C8102E; --rc-ink: #141414; --rc-mut: #6b6b6b; --rc-line: #cfcfcf; --rc-green: #16a34a;
  --rc-roll: 1.15s; --rc-w: 340px;
  position: fixed; inset: 0; z-index: 100050; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 18px 14px 34px; background: rgba(10, 10, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--rc-ink);
  animation: rcFade .25s ease both;
}
.vbe-rc.rc-page { position: relative; min-height: 100vh; background: #f4f4f5; backdrop-filter: none; -webkit-backdrop-filter: none; }
@keyframes rcFade { from { opacity: 0 } to { opacity: 1 } }

/* printer slot */
.rc-slot { position: relative; z-index: 3; width: min(var(--rc-w), 100%); height: 26px; border-radius: 13px; margin-top: 4px;
  background: linear-gradient(#2a2a2e, #0e0e10); box-shadow: 0 8px 20px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.rc-slot::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 5px; border-radius: 3px; background: #000; box-shadow: inset 0 1px 3px rgba(0,0,0,.9); }
.rc-led { position: absolute; right: 16px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; animation: rcLed .35s steps(2) 3 both; }
.vbe-rc.rc-cut .rc-led, .vbe-rc.rc-done .rc-led { background: var(--rc-green); box-shadow: 0 0 8px var(--rc-green); animation: none; }
@keyframes rcLed { 50% { opacity: .25 } }

/* the paper comes out of the slot, top to bottom */
.rc-feed { position: relative; z-index: 2; width: min(var(--rc-w), 100%); margin-top: -8px; overflow: hidden; padding-bottom: 48px; }
.rc-paper {
  position: relative; background: #fff; color: var(--rc-ink); padding: 26px 22px 22px; width: 100%;
  background-image: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,0) 8%, rgba(0,0,0,0) 92%, rgba(0,0,0,.05));
  transform: translateY(-101%); animation: rcFeed var(--rc-roll) cubic-bezier(.45, .05, .25, 1) .15s forwards;
  box-shadow: 0 18px 34px -18px rgba(0,0,0,.55);
}
@keyframes rcFeed { 0% { transform: translateY(-101%) } 100% { transform: translateY(0) } }
/* zig-zag torn bottom edge (visible once the tail has been cut away) */
.rc-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 14px 14px repeat-x, linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 14px 14px repeat-x; }
.rc-tail { position: absolute; left: 0; right: 0; top: 100%; height: 38px; z-index: 0; background: linear-gradient(#fff 60%, rgba(255,255,255,.55)); transform-origin: 0 0; }
.rc-cutline { position: absolute; left: 0; top: 100%; width: 100%; height: 0; border-top: 2px dashed #bdbdbd; z-index: 4; }
.vbe-rc.rc-cutting .rc-cutline, .vbe-rc.rc-cut .rc-cutline { border-top-style: solid; border-top-color: rgba(0,0,0,.5); }
.vbe-rc.rc-cutting .rc-cutline { clip-path: inset(0 100% 0 0); animation: rcCutLine .7s linear forwards; }
@keyframes rcCutLine { to { clip-path: inset(0 0 0 0) } }
.rc-scissors { position: absolute; left: -34px; top: 100%; margin-top: -12px; z-index: 6; width: 34px; height: 24px; opacity: 0; pointer-events: none; color: #111; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.vbe-rc.rc-cutting .rc-scissors { animation: rcScissors .7s linear forwards; }
@keyframes rcScissors { 0% { opacity: 1; left: -6px } 100% { opacity: 1; left: calc(100% - 4px) } }
.rc-scissors .b1 { transform-origin: 8px 12px; } .rc-scissors .b2 { transform-origin: 8px 12px; }
.vbe-rc.rc-cutting .rc-scissors .b1 { animation: rcSnip1 .16s ease-in-out 4 alternate; }
.vbe-rc.rc-cutting .rc-scissors .b2 { animation: rcSnip2 .16s ease-in-out 4 alternate; }
@keyframes rcSnip1 { to { transform: rotate(-16deg) } } @keyframes rcSnip2 { to { transform: rotate(16deg) } }
.vbe-rc.rc-cut .rc-scissors { animation: rcScissorsOut .3s ease forwards; left: calc(100% - 4px); opacity: 1; }
@keyframes rcScissorsOut { to { opacity: 0; transform: translateX(22px) } }
.vbe-rc.rc-cut .rc-tail { animation: rcFall .55s cubic-bezier(.5, 0, .9, .4) forwards; }
@keyframes rcFall { to { transform: translateY(70px) rotate(7deg); opacity: 0 } }
.vbe-rc.rc-cut .rc-feed { animation: rcJolt .35s ease 1; }
@keyframes rcJolt { 30% { transform: translateY(3px) } 60% { transform: translateY(-1px) } }

/* receipt contents */
.rc-brand { text-align: center; }
.rc-logo { font-weight: 800; letter-spacing: .2em; font-size: 14px; }
.rc-tag { font-size: 10.5px; color: var(--rc-mut); letter-spacing: .08em; margin-top: 3px; text-transform: uppercase; }
.rc-title { text-align: center; margin: 14px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .22em; padding: 6px 0; border-top: 1.5px solid var(--rc-ink); border-bottom: 1.5px solid var(--rc-ink); }
.rc-sec { margin-top: 12px; }
.rc-h { font-size: 10px; letter-spacing: .16em; font-weight: 800; color: var(--rc-mut); margin-bottom: 4px; text-transform: uppercase; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.55; }
.rc-row span:first-child { color: var(--rc-mut); flex: 0 0 auto; }
.rc-row span:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.rc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px !important; }
.rc-dash { border: 0; border-top: 1.5px dashed var(--rc-line); margin: 13px 0; }
.rc-item { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.rc-item b { font-size: 13.5px; font-weight: 700; display: block; }
.rc-item small { display: block; font-size: 11.5px; color: var(--rc-mut); line-height: 1.4; margin-top: 1px; overflow-wrap: anywhere; }
.rc-item .a { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 9px; border-top: 1.5px solid var(--rc-ink); font-weight: 800; }
.rc-total span:first-child { font-size: 13px; letter-spacing: .12em; }
.rc-total span:last-child { font-size: 22px; letter-spacing: -.01em; }
.rc-qr { display: flex; flex-direction: column; align-items: center; margin-top: 14px; gap: 6px; }
.rc-qr svg, .rc-qr img { width: 112px; height: 112px; display: block; }
.rc-qr small { font-size: 10.5px; color: var(--rc-mut); text-align: center; line-height: 1.4; }
.rc-bars { height: 26px; margin: 12px auto 0; width: 80%; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); opacity: .85; }
.rc-thanks { text-align: center; font-size: 11.5px; color: var(--rc-mut); margin-top: 10px; line-height: 1.5; }
.rc-thanks b { color: var(--rc-ink); display: block; font-size: 12.5px; }

/* PAID stamp: green circle + tick, as used for "verified" everywhere else */
.rc-stamp { position: relative; width: max-content; margin: 14px auto 0; display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 2.5px solid var(--rc-green); border-radius: 10px;
  color: var(--rc-green); font-weight: 800; letter-spacing: .16em; font-size: 15px; background: rgba(255,255,255,.7); opacity: 0; transform: rotate(-11deg) scale(2.3); transform-origin: center; mix-blend-mode: multiply; pointer-events: none; }
.rc-stamp svg { width: 22px; height: 22px; flex: 0 0 auto; }
.vbe-rc.rc-done .rc-stamp, .vbe-rc.rc-stamped .rc-stamp { animation: rcStamp .38s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes rcStamp { 0% { opacity: 0; transform: rotate(-11deg) scale(2.3) } 60% { opacity: 1; transform: rotate(-11deg) scale(.92) } 100% { opacity: .95; transform: rotate(-11deg) scale(1) } }

/* buttons */
.rc-actions { width: min(var(--rc-w), 100%); margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.vbe-rc.rc-done .rc-actions, .vbe-rc.rc-page .rc-actions.show { opacity: 1; transform: none; pointer-events: auto; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff;
  font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rc-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.rc-btn.primary { background: var(--rc-red); border-color: var(--rc-red); }
.rc-btn.wide { grid-column: 1 / -1; }
.rc-btn:active { transform: scale(.98); } .rc-btn[disabled] { opacity: .6; }
.vbe-rc.rc-page .rc-btn { color: #111; border-color: #d4d4d8; background: #fff; } .vbe-rc.rc-page .rc-btn.primary { color: #fff; background: var(--rc-red); border-color: var(--rc-red); }
.rc-size { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.78); align-items: center; }
.vbe-rc.rc-page .rc-size { color: #555; }
.rc-size button { border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: 700 12px/1 inherit; cursor: pointer; opacity: .6; }
.rc-size button.on { opacity: 1; background: rgba(255,255,255,.14); } .vbe-rc.rc-page .rc-size button.on { background: #111; color: #fff; border-color: #111; }
.rc-msg { grid-column: 1 / -1; text-align: center; font-size: 13px; color: #fff; min-height: 18px; } .vbe-rc.rc-page .rc-msg { color: #111; }
.rc-note { width: min(var(--rc-w), 100%); margin-top: 10px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.5; }

@media (max-width: 420px) { .vbe-rc { padding: 12px 10px 28px; } .rc-paper { padding: 22px 16px 20px; }  }
@media (prefers-reduced-motion: reduce) {
  .rc-paper, .vbe-rc.rc-cut .rc-paper { animation: none !important; transform: none !important; }
  .rc-tail, .rc-scissors, .rc-cutline { display: none !important; }
  .rc-stamp { opacity: .95 !important; transform: rotate(-11deg) !important; animation: none !important; }
}

/* ── PRINT: only the paper, at 80 mm roll width (or A4 when chosen) ── */
@media print {
  body.vbe-rc-printing > *:not(.vbe-rc) { display: none !important; }
  body.vbe-rc-printing { background: #fff !important; overflow: visible !important; }
  body.vbe-rc-printing .vbe-rc { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; backdrop-filter: none !important; overflow: visible !important; animation: none !important; }
  body.vbe-rc-printing .rc-slot, body.vbe-rc-printing .rc-actions, body.vbe-rc-printing .rc-note, body.vbe-rc-printing .rc-tail,
  body.vbe-rc-printing .rc-scissors, body.vbe-rc-printing .rc-cutline { display: none !important; }
  body.vbe-rc-printing .rc-feed { width: 76mm !important; margin: 0 auto !important; overflow: visible !important; padding: 0 !important; }
  body.vbe-rc-printing .rc-paper { animation: none !important; transform: none !important; box-shadow: none !important; background-image: none !important; padding: 4mm 3mm !important; width: 100% !important; }
  body.vbe-rc-printing .rc-paper::after { display: none !important; }
  body.vbe-rc-printing .rc-stamp { opacity: 1 !important; animation: none !important; transform: rotate(-11deg) !important; }
  body.vbe-rc-a4 .rc-feed { width: 120mm !important; } body.vbe-rc-a4 .rc-paper { padding: 10mm !important; font-size: 112% !important; }
  .rc-paper, .rc-paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* receipts list inside the dashboard */
.rc-list { display: grid; gap: 0; }
.rc-empty { padding: 18px 4px; color: var(--muted, #777); font-size: 14px; }
.rc-li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 2px; border-top: 1px solid var(--border, #e5e5e5); }
.rc-li:first-child { border-top: 0; }
.rc-li-main b { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.rc-li-main small { display: block; font-size: 12px; color: var(--muted, #777); margin-top: 2px; }
.rc-li-amt { font-weight: 800; font-size: 14.5px; text-align: right; white-space: nowrap; }
.rc-li-btn { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 10px; border: 1.5px solid #C8102E; background: #fff; color: #C8102E; font: 700 13.5px/1 inherit; cursor: pointer; }
.rc-li-btn svg { width: 16px; height: 16px; }
@media (min-width: 640px) { .rc-li { grid-template-columns: 1fr auto auto; } .rc-li-btn { grid-column: auto; padding: 0 16px; } }
