.fvchat{--fv-orange:#F08020;--fv-orange-dark:#d96a0f;--fv-soft:#fde8d2;--fv-ink:#3c342c;--fv-line:#f0e2d4;--fv-cream:#fffdfb;--fv-bot:#f7f0e7;position:fixed;right:22px;bottom:22px;z-index:60;font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--fv-ink)}
.fvchat *{box-sizing:border-box}

/* launcher */
.fvchat-toggle{position:relative;width:68px;height:68px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;display:block}
.fvchat-toggle img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 10px 28px rgba(122,72,20,.35);display:block;transition:transform .2s}
.fvchat-toggle:hover img{transform:scale(1.06)}
.fvchat-toggle:focus-visible{outline:3px solid var(--fv-orange);outline-offset:3px;border-radius:50%}
.fvchat-launch-ring{position:absolute;inset:-6px;border-radius:50%;border:3px solid rgba(240,128,32,.45);animation:fvring 3.2s ease-in-out infinite;pointer-events:none}
.fvchat-launch-dot{position:absolute;right:2px;bottom:3px;width:14px;height:14px;border-radius:50%;background:#31c48d;border:2px solid #fff}
.fvchat-bubble{position:absolute;right:80px;bottom:16px;white-space:nowrap;background:#fff;border:1px solid var(--fv-line);border-radius:18px 18px 4px 18px;padding:9px 15px;font-size:13px;box-shadow:0 8px 22px rgba(122,72,20,.16);animation:fvpop .4s .8s both}
.fvchat.open .fvchat-bubble,.fvchat.seen .fvchat-bubble{display:none}
@keyframes fvring{0%,100%{transform:scale(1);opacity:.6}50%{transform:scale(1.07);opacity:1}}
@keyframes fvpop{from{transform:translateY(6px) scale(.95);opacity:0}to{transform:none;opacity:1}}
.fvchat.open .fvchat-toggle{display:none}

/* panel */
.fvchat-panel{position:absolute;right:0;bottom:0;width:390px;max-width:calc(100vw - 28px);height:640px;max-height:calc(100vh - 44px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--fv-line);border-radius:24px;box-shadow:0 24px 60px rgba(122,72,20,.28);overflow:hidden;animation:fvpop .25s both}
.fvchat-panel[hidden]{display:none}

/* header with animated avatar */
.fvchat-head{position:relative;display:flex;align-items:center;gap:14px;padding:16px 16px 14px;background:linear-gradient(120deg,#fff 50%,#fdf3e7 100%);border-bottom:1px solid var(--fv-line);transition:padding .3s}
.fvchat-avatar{position:relative;flex:none;width:92px;height:92px;cursor:pointer;perspective:500px;transition:width .3s,height .3s}
.fvchat.started .fvchat-avatar{width:56px;height:56px}
.fvchat-ring{position:absolute;inset:-6px;border-radius:50%;border:3px solid rgba(240,128,32,.35);animation:fvring 3.4s ease-in-out infinite;pointer-events:none}
.fvchat-parallax{width:100%;height:100%;transition:transform .18s ease-out;transform-style:preserve-3d}
.fvchat-bob{width:100%;height:100%;animation:fvbob 3.4s ease-in-out infinite alternate}
.fvchat-bob img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 10px 26px rgba(122,72,20,.28);display:block;user-select:none;-webkit-user-drag:none}
.fvchat-avatar.thinking .fvchat-ring{border-color:rgba(196,110,74,.7);animation-duration:1.2s}
.fvchat-avatar.thinking .fvchat-bob{animation:fvsway 1.15s ease-in-out infinite alternate}
.fvchat-avatar.talking .fvchat-ring{border-color:rgba(240,128,32,.85);animation:fvtalkring .6s ease-in-out infinite}
.fvchat-avatar.talking .fvchat-bob{animation:fvtalk .5s ease-in-out infinite alternate}
.fvchat-avatar.wave .fvchat-bob{animation:fvwave .85s cubic-bezier(.36,.07,.19,.97)}
@keyframes fvbob{from{transform:translateY(0) rotate(0)}to{transform:translateY(-5px) rotate(1deg)}}
@keyframes fvsway{from{transform:rotate(-2.6deg) translateY(0)}to{transform:rotate(2.6deg) translateY(-3px)}}
@keyframes fvtalk{from{transform:scale(1)}to{transform:scale(1.04)}}
@keyframes fvtalkring{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes fvwave{0%{transform:rotate(0)}30%{transform:rotate(-9deg) translateY(-5px)}60%{transform:rotate(7deg)}100%{transform:rotate(0)}}

.fvchat-title{flex:1;min-width:0}
.fvchat-title strong{display:block;font-size:19px;font-weight:800}
.fvchat-status{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12px;color:#8a7c6c}
.fvchat-status em{font-style:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fvchat-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fvchat-head{padding:28px 16px 18px}
.fvchat-avatar{margin-top:4px}
.fvchat-actions{flex:none;white-space:nowrap}
.fvchat-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#31c48d;box-shadow:0 0 0 3px rgba(49,196,141,.18)}
.fvchat-avatar.thinking~.fvchat-title .fvchat-dot,.fvchat-avatar.talking~.fvchat-title .fvchat-dot{background:var(--fv-orange);box-shadow:0 0 0 3px rgba(240,128,32,.18)}
.fvchat-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;align-self:flex-start}
.fvchat-voice{width:34px;height:34px;border-radius:50%;border:1px solid var(--fv-line);background:#fff;font-size:15px;cursor:pointer;transition:.2s}
.fvchat-voice:hover{border-color:var(--fv-orange);background:var(--fv-soft)}
.fvchat-voice.on{background:var(--fv-orange);border-color:var(--fv-orange)}
.fvchat-new{background:#fff;border:1px solid var(--fv-line);color:#8a7c6c;border-radius:20px;padding:4px 11px;font-size:11.5px;cursor:pointer;white-space:nowrap;font-family:inherit}
.fvchat-new:hover{border-color:var(--fv-orange);color:var(--fv-orange-dark)}
.fvchat-close-mobile{display:block;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;color:#8a7c6c;padding:0 4px}

/* messages */
.fvchat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--fv-cream);scroll-behavior:smooth}
.fvchat-log::-webkit-scrollbar{width:6px}.fvchat-log::-webkit-scrollbar-thumb{background:#eeddc9;border-radius:3px}
.fvchat-msg{max-width:84%;padding:11px 15px;border-radius:18px;font-size:14px;line-height:1.55;white-space:pre-line;word-break:break-word;animation:fvpop .28s cubic-bezier(.2,.9,.3,1.2)}
.fvchat-msg.bot{align-self:flex-start;background:var(--fv-bot);border-bottom-left-radius:6px}
.fvchat-msg.user{align-self:flex-end;background:linear-gradient(135deg,var(--fv-orange),#e06a10);color:#fff;border-bottom-right-radius:6px;box-shadow:0 8px 20px rgba(224,106,16,.28)}
.fvchat-typing{display:inline-flex;gap:5px;padding:3px 2px}
.fvchat-typing i{width:7px;height:7px;border-radius:50%;background:var(--fv-orange);animation:fvdot 1s infinite}
.fvchat-typing i:nth-child(2){animation-delay:.18s}.fvchat-typing i:nth-child(3){animation-delay:.36s}
@keyframes fvdot{0%,100%{transform:translateY(0);opacity:.4}45%{transform:translateY(-5px);opacity:1}}

/* product cards */
.fvchat-cards{align-self:stretch;display:grid;gap:9px;animation:fvpop .3s both}
.fvchat-card{display:flex;gap:12px;align-items:center;background:#fff;border:1.5px solid var(--fv-line);border-radius:16px;padding:8px;text-decoration:none;color:inherit;transition:.2s}
.fvchat-card:hover{border-color:var(--fv-orange);box-shadow:0 8px 20px rgba(224,106,16,.16);transform:translateY(-1px)}
.fvchat-card img{width:64px;height:64px;object-fit:cover;border-radius:11px;flex:none;background:var(--fv-bot)}
.fvchat-card b{display:block;font-size:14.5px}
.fvchat-card small{display:block;color:#9b8b78;font-size:12px;margin-top:1px}
.fvchat-card em{display:block;font-style:normal;color:var(--fv-orange-dark);font-size:12.5px;font-weight:600;margin-top:4px}

/* chips */
.fvchat-prompts{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px;background:var(--fv-cream)}
.fvchat-prompts:empty{display:none}
.fvchat-prompts button{border:1.5px solid rgba(240,128,32,.45);color:#c96a10;background:#fff;font-size:12.5px;padding:7px 13px;border-radius:999px;cursor:pointer;transition:.18s;font-family:inherit;text-align:left}
.fvchat-prompts button:hover{background:var(--fv-orange);color:#fff;transform:translateY(-1px)}

/* input */
.fvchat-form{display:flex;gap:10px;align-items:flex-end;padding:12px 16px 6px;border-top:1px solid var(--fv-line);background:var(--fv-cream)}
.fvchat-form textarea{flex:1;resize:none;border:1.5px solid var(--fv-line);border-radius:22px;padding:12px 18px;font:inherit;font-size:14px;line-height:1.35;max-height:110px;color:var(--fv-ink);background:#fff;outline:none;transition:.2s}
.fvchat-form textarea:focus{border-color:var(--fv-orange);box-shadow:0 0 0 4px rgba(240,128,32,.12)}
.fvchat-form button{flex:none;width:46px;height:46px;border:0;border-radius:50%;font-size:17px;color:#fff;cursor:pointer;background:linear-gradient(135deg,var(--fv-orange),#e06a10);box-shadow:0 8px 20px rgba(224,106,16,.35);transition:.2s}
.fvchat-form button:hover{transform:scale(1.06)}
.fvchat-form button:disabled{opacity:.5;cursor:default;transform:none}
.fvchat-note{margin:0;padding:2px 14px 10px;background:var(--fv-cream);font-size:11px;color:#ab9a85;text-align:center}

@media(max-width:560px){
.fvchat{right:14px;bottom:14px}
.fvchat.open{z-index:1000}
.fvchat-panel{position:fixed;inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0;border:0}
.fvchat-avatar{width:72px;height:72px}
}
@media(prefers-reduced-motion:reduce){.fvchat *,.fvchat-log{animation:none!important;transition:none!important;scroll-behavior:auto}}
