/* Visitor chat: messenger feel (26 Nov 2026). Calm motion, respects reduced motion. */
#vp-sales.vp-vibe .vp-messages{display:flex;flex-direction:column}
#vp-sales.vp-vibe [data-bubbles]{display:flex;flex-direction:column;gap:2px}
#vp-sales.vp-vibe .vp-bubble{position:relative;margin:0;max-width:78%;padding:8px 12px 6px;border-radius:18px;line-height:1.38;font-size:15px}
#vp-sales.vp-vibe .vp-bubble.vp-vibe-first{margin-top:8px}
#vp-sales.vp-vibe .vp-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#vp-sales.vp-vibe .vp-mine{align-self:flex-end;background:linear-gradient(160deg,#2f6c4a,#245139);color:#fff;border:0;box-shadow:0 1px 1.5px #10291a26}
#vp-sales.vp-vibe .vp-theirs{align-self:flex-start;margin-left:36px;background:#fff;color:#1d3326;border:0;box-shadow:0 1px 1.5px #10291a1c}
#vp-sales.vp-vibe .vp-mine:not(.vp-vibe-last){border-bottom-right-radius:6px}
#vp-sales.vp-vibe .vp-mine:not(.vp-vibe-first){border-top-right-radius:6px}
#vp-sales.vp-vibe .vp-theirs:not(.vp-vibe-last){border-bottom-left-radius:6px}
#vp-sales.vp-vibe .vp-theirs:not(.vp-vibe-first){border-top-left-radius:6px}
/* Last bubble of a group: small corner, like a messenger */
#vp-sales.vp-vibe .vp-mine.vp-vibe-last{border-bottom-right-radius:5px}
#vp-sales.vp-vibe .vp-theirs.vp-vibe-last{border-bottom-left-radius:5px}
/* Avatar beside the last incoming bubble */
#vp-sales.vp-vibe .vp-vibe-face{display:none}
#vp-sales.vp-vibe .vp-theirs.vp-vibe-last>.vp-vibe-face{display:block;position:absolute;left:-36px;bottom:0;width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff}
/* Time + ticks inside the bubble */
#vp-sales.vp-vibe .vp-message-meta{display:block;margin-top:2px;text-align:right;font-size:11px;line-height:1.2;opacity:.62;white-space:nowrap}
#vp-sales.vp-vibe .vp-mine .vp-message-meta{color:#e6f3ea;opacity:.85}
#vp-sales.vp-vibe .vp-vibe-tick{font-size:0}
#vp-sales.vp-vibe .vp-vibe-tick::after{content:"✓";margin-left:4px;font-size:12px;letter-spacing:-3px}
#vp-sales.vp-vibe .vp-vibe-tick.is-read::after{content:"✓✓";color:#a8f0c4}
/* Pop-in for new messages */
@keyframes vp-vibe-pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
#vp-sales.vp-vibe .vp-vibe-pop.vp-mine{transform-origin:100% 100%;animation:vp-vibe-pop .26s cubic-bezier(.2,.9,.3,1.2)}
#vp-sales.vp-vibe .vp-vibe-pop.vp-theirs{transform-origin:0 100%;animation:vp-vibe-pop .26s cubic-bezier(.2,.9,.3,1.2)}
/* Typing bubble */
#vp-sales.vp-vibe .vp-typing{display:none!important}
#vp-sales.vp-vibe .vp-vibe-typing{display:flex;align-items:flex-end;gap:8px;margin-top:8px}
#vp-sales.vp-vibe .vp-vibe-typing[hidden]{display:none}
#vp-sales.vp-vibe .vp-vibe-typing img{width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff}
#vp-sales.vp-vibe .vp-vibe-dots{display:inline-flex;gap:4px;padding:12px 14px;background:#fff;border-radius:18px 18px 18px 4px;box-shadow:0 1px 1.5px #10291a1c}
#vp-sales.vp-vibe .vp-vibe-dots i{width:7px;height:7px;border-radius:50%;background:#8aa596;animation:vp-vibe-dot 1.2s infinite ease-in-out}
#vp-sales.vp-vibe .vp-vibe-dots i:nth-child(2){animation-delay:.15s}
#vp-sales.vp-vibe .vp-vibe-dots i:nth-child(3){animation-delay:.3s}
@keyframes vp-vibe-dot{0%,60%,100%{transform:none;opacity:.45}30%{transform:translateY(-4px);opacity:1}}
/* Welcome message from a person */
#vp-sales.vp-vibe .vp-vibe-intro-face{align-self:flex-start;width:28px;height:28px;margin:6px 0 -34px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff}
#vp-sales.vp-vibe .vp-vibe-intro-face[hidden]{display:none}
#vp-sales.vp-vibe.vp-messenger .vp-intro{margin:6px 0 0 36px;border-radius:18px 18px 18px 4px}
#vp-sales.vp-vibe .vp-vibe-human{display:flex;align-items:center;gap:6px;margin:10px 0 0!important;font-size:12px!important;color:#47705a!important}
#vp-sales.vp-vibe .vp-vibe-human::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#34b36a;box-shadow:0 0 0 3px #34b36a2b}
/* Send button feedback */
#vp-sales.vp-vibe .vp-send{transition:transform .15s ease,background-color .15s ease}
#vp-sales.vp-vibe .vp-send:active{transform:scale(.88)}
/* Launcher badge + reply preview */
.vp-vibe-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e5484d;color:#fff;font:700 11px/20px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}
.vp-vibe-badge[hidden]{display:none}
.vp-vibe-toast{position:fixed;right:20px;bottom:88px;z-index:97;display:flex;align-items:center;gap:10px;max-width:min(330px,calc(100vw - 32px));padding:10px 12px;border:0;border-radius:18px 18px 4px 18px;background:#fff;color:#1d3326;text-align:left;box-shadow:0 10px 30px #10291a2e,0 1px 3px #10291a1f;cursor:pointer;opacity:0;transform:translateY(10px) scale(.96);transition:opacity .25s ease,transform .3s cubic-bezier(.2,.9,.3,1.2)}
.vp-vibe-toast.is-in{opacity:1;transform:none}
.vp-vibe-toast[hidden]{display:none}
.vp-vibe-toast img{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
.vp-vibe-toast span{display:grid;gap:2px;min-width:0}
.vp-vibe-toast strong{font:600 13px/1.3 system-ui,sans-serif;color:#245139}
.vp-vibe-toast small{font:14px/1.35 system-ui,sans-serif;color:#2a3d31;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.vp-vibe-toast b{align-self:flex-start;margin:-4px -2px 0 2px;padding:2px 4px;color:#8a9a90;font-weight:400;font-size:18px}
@media (max-width:640px){.vp-vibe-toast{right:16px;bottom:80px}}
@media (prefers-reduced-motion:reduce){#vp-sales.vp-vibe .vp-vibe-dots i{animation:none;opacity:.7}.vp-vibe-toast{transition:none}}
/* Basket/offer cards need room; hide the welcome avatar when the welcome card is hidden by the basket preview */
#vp-sales.vp-vibe .vp-bubble[data-cart="1"]{width:min(92%,360px);max-width:92%}
#vp-sales.vp-messenger:has(.vp-cart-preview:not([hidden])) .vp-vibe-intro-face{display:none}
