/* ===== AMU PASS — balão de chat com a vendedora (página inicial) ===== */
.cv{--cv-brand:#7C4DFF;--cv-deep:#3B1F8F;--cv-text:#0E0B2E;--cv-muted:#6B6880;--cv-line:rgba(14,11,46,.1);position:fixed;right:18px;bottom:18px;z-index:60;font-family:'Inter',ui-sans-serif,system-ui,sans-serif;}
.cv .sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}

/* Botão flutuante */
.cv-fab{display:flex;align-items:center;gap:10px;border:none;cursor:pointer;background:var(--cv-deep);color:#fff;border-radius:999px;padding:6px 18px 6px 6px;box-shadow:0 12px 30px rgba(59,31,143,.38);font:700 15px/1 'Inter',sans-serif;transition:transform .15s,background .15s;}
.cv-fab:hover{background:#2E1773;transform:translateY(-2px);}
.cv-avatar{flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#EEE8FF;display:grid;place-items:center;position:relative;}
.cv-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.cv-avatar img.is-icon{width:26px;height:26px;object-fit:contain;}
.cv-fab .cv-avatar::after{content:"";position:absolute;right:1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#1F9D6B;border:2px solid var(--cv-deep);}
.cv-teaser{position:absolute;right:0;bottom:66px;white-space:nowrap;background:#fff;color:var(--cv-text);border:1px solid var(--cv-line);border-radius:16px 16px 4px 16px;padding:10px 14px;font-size:14px;font-weight:600;box-shadow:0 10px 26px rgba(14,11,46,.14);animation:cvIn .3s ease both;}
.cv-teaser[hidden]{display:none;}

/* Painel da conversa */
.cv-panel{position:absolute;right:0;bottom:0;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 36px));height:min(600px,calc(100dvh - 36px));background:#fff;border-radius:22px;box-shadow:0 24px 70px rgba(14,11,46,.28);display:flex;flex-direction:column;overflow:hidden;animation:cvIn .22s ease both;}
.cv-panel[hidden]{display:none;}
.cv-head{flex:none;display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--cv-deep);color:#fff;}
.cv-who{flex:1;min-width:0;}
.cv-who b{display:block;font:700 18px/1.15 'Baloo 2',ui-rounded,system-ui,sans-serif;}
.cv-who span{display:flex;align-items:center;gap:6px;font-size:12.5px;opacity:.85;}
.cv-who span::before{content:"";width:7px;height:7px;border-radius:50%;background:#5BE3A8;}
.cv-close{flex:none;width:38px;height:38px;border:none;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;cursor:pointer;}
.cv-close:hover{background:rgba(255,255,255,.26);}
.cv-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px 10px;background:#FAF8FF;display:flex;flex-direction:column;gap:8px;}
.cv-msg{max-width:86%;padding:10px 14px;border-radius:18px;font-size:15px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-line;animation:cvIn .2s ease both;}
.cv-bot{align-self:flex-start;background:#fff;border:1px solid var(--cv-line);border-bottom-left-radius:6px;color:var(--cv-text);}
.cv-bot a{color:#6236E8;font-weight:700;}
.cv-me{align-self:flex-end;background:var(--cv-brand);color:#fff;border-bottom-right-radius:6px;}
.cv-typing{display:inline-flex;gap:4px;align-items:center;padding:14px 16px;}
.cv-typing i{width:7px;height:7px;border-radius:50%;background:#B9A8F5;animation:cvDot 1s ease-in-out infinite;}
.cv-typing i:nth-child(2){animation-delay:.15s;}
.cv-typing i:nth-child(3){animation-delay:.3s;}
.cv-action{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;max-width:100%;border-radius:14px;padding:12px 16px;font-size:14.5px;font-weight:700;text-decoration:none;background:var(--cv-brand);color:#fff;box-shadow:0 6px 16px rgba(124,77,255,.3);animation:cvIn .2s ease both;}
.cv-action:hover{background:#6236E8;}
.cv-action.is-wa{background:#1F9D6B;box-shadow:0 6px 16px rgba(31,157,107,.28);}
.cv-action.is-wa:hover{background:#178258;}
.cv-form{flex:none;display:flex;gap:8px;align-items:center;padding:10px 12px 6px;border-top:1px solid var(--cv-line);background:#fff;}
.cv-form input{flex:1;min-width:0;border:1.5px solid rgba(14,11,46,.15);border-radius:999px;padding:12px 16px;font:16px 'Inter',sans-serif;color:var(--cv-text);outline:none;}
.cv-form input:focus{border-color:var(--cv-brand);box-shadow:0 0 0 3px rgba(124,77,255,.12);}
.cv-send{flex:none;width:46px;height:46px;border-radius:50%;border:none;background:var(--cv-brand);color:#fff;display:grid;place-items:center;cursor:pointer;}
.cv-send:hover{background:#6236E8;}
.cv-send:disabled{opacity:.6;cursor:wait;}
.cv-note{flex:none;margin:0;padding:0 12px calc(8px + env(safe-area-inset-bottom));text-align:center;font-size:11px;color:#9C99AC;background:#fff;}
.cv-note a{color:var(--cv-muted);}
.cv :focus-visible{outline:3px solid #7C4DFF;outline-offset:2px;}
.cv-head :focus-visible{outline-color:#fff;}

@keyframes cvIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
@keyframes cvDot{0%,60%,100%{opacity:.35;transform:none;}30%{opacity:1;transform:translateY(-3px);}}

/* Celular: o botão vira só a foto e a conversa ocupa a tela inteira */
@media (max-width:560px){
  .cv{right:12px;bottom:12px;}
  .cv-fab{padding:5px;}
  .cv-fab-text{display:none;}
  .cv.is-open{right:0;bottom:0;left:0;top:0;}
  .cv-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;border-radius:0;}
}
.cv.is-open .cv-fab,.cv.is-open .cv-teaser{display:none;}
@media (prefers-reduced-motion:reduce){
  .cv-panel,.cv-msg,.cv-action,.cv-teaser,.cv-typing i{animation:none;}
  .cv-fab{transition:none;}
}
