/* chat-bubbles.css: animated chat bubbles shared by the homepage and
   /product/instagram (driven by chat-bubbles.js). Bubbles hug their text up
   to one shared max width; bubbles with buttons keep a minimum width. */
.cb-stack { --cb-us: #4424d7; --cb-them: #2a2a2d; display: flex; flex-direction: column; justify-content: center; height: 100%; overflow: hidden; padding: 14px 12px; font-family: var(--font-body); color: #fff; -webkit-font-smoothing: antialiased; }
.cb-stack.is-full { justify-content: flex-end; }
.cb-row { display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cb-row + .cb-row { margin-top: 8px; }
.cb-row.is-growing { overflow: hidden; }
.cb-us { justify-content: flex-end; }
.cb-b { box-sizing: border-box; overflow: hidden; border-radius: 18px; padding: 12px 14px; font-size: 16px; line-height: 1.34; letter-spacing: -.005em; }
.cb-b p { margin: 0; }
.cb-us .cb-b { width: fit-content; max-width: 80%; background: var(--cb-us); }
.cb-has-btn .cb-b { min-width: min(220px, 80%); }
.cb-pill .cb-b { padding: 9px 14px; border-radius: 14px; }
.cb-them .cb-b { width: fit-content; max-width: 80%; background: var(--cb-them); }
.cb-av { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cb-btn { display: block; margin-top: 9px; padding: 11px 10px; border-radius: 11px; background: #6c55ee; color: #fff; font-weight: 600; text-align: center; font-size: 15px; line-height: 1.2; transition: background-color .2s ease, transform .2s ease; }
.cb-btn + .cb-btn { margin-top: 6px; }
.cb-b .w, .cb-btn { opacity: 0; }
.is-in .w, .is-in .cb-btn { opacity: 1; }
.cb-btn.is-tapped { background: #8573f2; transform: scale(.97); }
.cb-photo .cb-b { padding: 0; border-radius: 14px; width: 112px; }
.cb-photo .cb-b img { display: block; width: 112px; height: 124px; object-fit: cover; }
.cb-story { flex-direction: column; align-items: flex-start; gap: 6px; }
.cb-story-label { margin-left: 34px; font-size: 12.5px; color: #ffffff80; }
.cb-story-body { display: flex; align-items: flex-end; gap: 8px; }
.cb-story-thumb { position: relative; display: block; width: 104px; height: 156px; border-radius: 12px; border-left: 3px solid #ffffff40; padding-left: 0; }
.cb-story-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cb-story-thumb b { position: absolute; right: -10px; bottom: -6px; font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px #0006); }

/* Instagram-native look inside the phone demos. */
.cb-ig { --cb-us: #4424d7; --cb-them: #262626; padding: 12px 10px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.cb-ig .cb-b { border-radius: 18px; font-size: 12.5px; padding: 9px 12px; }
.cb-ig .cb-us .cb-b, .cb-ig .cb-them .cb-b { max-width: 78%; box-shadow: none; }
.cb-ig .cb-has-btn .cb-b { min-width: min(170px, 78%); }
.cb-ig .cb-btn { background: #6c55ee; color: #fff; border-radius: 10px; font-weight: 600; font-size: 12px; }
.cb-ig .cb-av { flex-basis: 24px; width: 24px; height: 24px; }
