/* Shared brand components: the till receipt and the chat from Heatron. */

/* Till receipt. The budget angle, made into a component. */
.printer { width: min(100%, 340px); margin: 0 auto; transform: rotate(-1.6deg); }
.printer.r2 { transform: rotate(1.2deg); }
.slot { position: relative; z-index: 2; height: 12px; margin: 0 -10px; border-radius: 8px; background: #1b1b1e; box-shadow: inset 0 3px 5px #000, 0 1px 0 rgba(255, 255, 255, .07); }
.feed { overflow: hidden; margin-top: -6px; }
.receipt {
  --s: 7px; position: relative; padding: 28px 18px 36px; background: var(--paper); color: var(--ink);
  font: 500 13px/1.6 var(--mono); letter-spacing: 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
}
.js .printer[data-inview] .receipt { transform: translateY(-101%); }
.js .printer.in .receipt { transform: none; transition: transform 1.5s var(--ease); }
.receipt .c { text-align: center; }
.receipt .hd { font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.receipt hr { border: 0; border-top: 1.5px dashed rgba(22, 20, 18, .45); margin: 12px 0; }
.r { display: flex; align-items: baseline; gap: 6px; }
.r i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted rgba(22, 20, 18, .38); transform: translateY(-3px); }
.r b { font-weight: 700; white-space: nowrap; }
.r.tot { align-items: flex-end; margin-top: 6px; font-weight: 700; }
.r.tot b { font-family: var(--font); font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.receipt .sm { font-size: 12px; opacity: .72; margin-top: 8px; }
.receipt .btn { margin-top: 18px; font-family: var(--font); }
.barcode { height: 34px; margin: 16px 12px 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px); }
.stamp {
  position: absolute; top: 16px; right: 6px; padding: 3px 8px; border: 2.5px solid var(--accent); border-radius: 6px;
  font: 800 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(241, 238, 230, .7); transform: rotate(8deg);
}
.js .printer[data-inview] .stamp { opacity: 0; transform: rotate(8deg) scale(1.9); }
.js .printer.in .stamp { opacity: 1; transform: rotate(8deg); transition: transform .5s var(--spring-b) 1.45s, opacity .12s 1.45s; }


/* Chat bubbles */
.chat { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; max-width: 440px; }
.chat-head { display: flex; align-items: center; gap: 12px; width: 100%; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 650; }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.chat-head small { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 8px 20px 20px 8px; background: var(--bg-3); font-size: 16px; line-height: 1.38; transform-origin: 0 100%; }
.msg:first-of-type { border-top-left-radius: 20px; }
.msg.last { border-bottom-left-radius: 20px; }
.msg b { font-weight: 700; }
.msg.vn { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.msg.vn i { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230A0A0A'%3E%3Cpath d='M7.5 5.5v9l7-4.5z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.msg.vn svg { width: 130px; height: 24px; color: var(--text); }
.msg.out {
  align-self: flex-end; margin-top: 16px; border-radius: 20px 20px 6px 20px; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; text-decoration: none; transform-origin: 100% 100%; cursor: pointer;
}
.js .chat[data-inview] .msg { opacity: 0; transform: scale(.5); }
.js .chat.in .msg { opacity: 1; transform: none; transition: transform .7s var(--spring-b), opacity .25s; transition-delay: calc(var(--i) * 300ms); }
.js .chat.in .msg.out:active { transform: scale(.95); transition: transform .1s; }
