:root{--cefad-blue:#012e67;--cefad-blue-2:#074783;--cefad-red:#f52a28;--cefad-ink:#122033;--cefad-muted:#6d7785;--cefad-line:#e5eaf0;--cefad-bg:#f4f7fb;--cefad-assistant:#f2f5f9;--cefad-user:#e6f0ff}
*{box-sizing:border-box}.cefad-bianca-fullpage{margin:0!important;overflow:hidden!important;background:var(--cefad-bg)!important}.cefad-page-main{margin:0;padding:0;min-height:100dvh}.cefad-chat-shell{width:100%;min-height:100dvh;background:linear-gradient(145deg,#f6f8fb 0,#eef4fa 100%);display:flex;align-items:center;justify-content:center;padding:18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--cefad-ink)}
.cefad-chat{width:min(100%,520px);height:min(820px,calc(100dvh - 36px));background:#fff;border:1px solid rgba(1,46,103,.12);border-radius:24px;box-shadow:0 18px 55px rgba(1,46,103,.13);overflow:hidden;display:grid;grid-template-rows:auto 1fr auto auto auto;position:relative}
.cefad-chat-header{min-height:76px;display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--cefad-line);position:relative}.cefad-chat-header:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--cefad-blue) 0 72%,var(--cefad-red) 72% 100%)}
.cefad-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid rgba(1,46,103,.12);background:#fff}.cefad-chat-headtext{min-width:0;display:flex;flex-direction:column;gap:3px}.cefad-chat-headtext strong{font-size:17px;line-height:1.1;color:var(--cefad-blue);letter-spacing:.1px}.cefad-chat-headtext span{font-size:12px;color:var(--cefad-muted);display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cefad-chat-headtext i{width:7px;height:7px;border-radius:50%;background:#2db36c;display:inline-block;box-shadow:0 0 0 3px rgba(45,179,108,.12)}
.cefad-chat-messages{overflow-y:auto;overscroll-behavior:contain;padding:18px 14px 16px;background-color:#fff;background-image:radial-gradient(circle at 18px 18px,rgba(1,46,103,.025) 1px,transparent 1.5px);background-size:36px 36px;scrollbar-width:thin;scrollbar-color:#c7d2df transparent}.cefad-chat-loading{font-size:13px;color:var(--cefad-muted);text-align:center;padding:14px}.cefad-bubble-row{display:flex;margin:0 0 10px}.cefad-bubble-row.user{justify-content:flex-end}.cefad-bubble-row.assistant{justify-content:flex-start}.cefad-bubble{max-width:84%;padding:10px 12px 7px;border-radius:15px;box-shadow:0 1px 2px rgba(18,32,51,.08);font-size:14.5px;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere;position:relative}.cefad-bubble-row.assistant .cefad-bubble{background:var(--cefad-assistant);border-top-left-radius:5px;color:#172334}.cefad-bubble-row.user .cefad-bubble{background:var(--cefad-user);border-top-right-radius:5px;color:#10213a}.cefad-bubble-time{display:block;margin-top:5px;text-align:right;font-size:10px;color:#7e8995}.cefad-media-bubble{padding:6px}.cefad-media-bubble img{display:block;max-width:220px;max-height:260px;border-radius:10px;object-fit:cover}.cefad-audio-pill{display:flex;align-items:center;gap:8px;min-width:145px}.cefad-audio-pill:before{content:"";width:31px;height:31px;border-radius:50%;background:var(--cefad-blue);box-shadow:inset 0 0 0 8px rgba(255,255,255,.9)}.cefad-audio-bars{letter-spacing:1px;color:var(--cefad-blue);font-weight:700}
.cefad-chat-typing{padding:5px 16px 8px;background:#fff;color:var(--cefad-muted);font-size:11px;display:flex;align-items:center;gap:4px}.cefad-chat-typing[hidden]{display:none}.cefad-chat-typing span{width:5px;height:5px;border-radius:50%;background:#9aa8b8;animation:cefadDot 1.2s infinite ease-in-out}.cefad-chat-typing span:nth-child(2){animation-delay:.16s}.cefad-chat-typing span:nth-child(3){animation-delay:.32s}@keyframes cefadDot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.cefad-chat-composer{display:flex;align-items:flex-end;gap:6px;padding:9px 10px 8px;background:#fff;border-top:1px solid var(--cefad-line);position:relative;z-index:5;flex-shrink:0;transform:translateZ(0)}.cefad-chat-composer textarea{flex:1;min-width:0;max-height:120px;resize:none;border:1px solid #d8e0e9!important;border-radius:20px!important;background:#fff!important;color:#142236!important;padding:9px 12px!important;font:inherit!important;font-size:14px!important;line-height:20px!important;box-shadow:none!important;outline:none!important;margin:0!important}.cefad-chat-composer textarea:focus{border-color:rgba(1,46,103,.45)!important;box-shadow:0 0 0 3px rgba(1,46,103,.07)!important}.cefad-icon-btn,.cefad-send-btn{width:38px;height:38px;min-width:38px;border:0!important;border-radius:50%!important;display:grid;place-items:center;cursor:pointer;padding:0!important;margin:0!important;box-shadow:none!important;transition:transform .15s ease,background .15s ease}.cefad-icon-btn{background:#f2f5f8!important;color:var(--cefad-blue)!important}.cefad-icon-btn:hover{background:#e8eef5!important}.cefad-send-btn{background:var(--cefad-blue)!important;color:#fff!important}.cefad-send-btn:hover{background:var(--cefad-blue-2)!important}.cefad-icon-btn:active,.cefad-send-btn:active{transform:scale(.94)}.cefad-icon-btn svg,.cefad-send-btn svg{width:20px;height:20px;fill:currentColor}.cefad-mic-btn.recording{background:#fff0ef!important;color:var(--cefad-red)!important;animation:cefadPulse 1s infinite}@keyframes cefadPulse{50%{box-shadow:0 0 0 7px rgba(245,42,40,.10)}}
.cefad-chat-note{min-height:22px;padding:4px 10px 7px;background:#fff;color:#8a94a2;text-align:center;font-size:9.5px;line-height:1.2}.cefad-chat-error{margin:8px auto 12px;max-width:90%;background:#fff3f2;color:#9a2725;border:1px solid #ffd6d3;border-radius:10px;padding:8px 10px;font-size:12px;text-align:center}
@media(max-width:640px){html,body{width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none}.cefad-page-main{height:var(--cefad-viewport-height,100dvh);min-height:0;overflow:hidden}.cefad-chat-shell{position:fixed;inset:0 auto auto 0;width:100%;height:var(--cefad-viewport-height,100dvh);min-height:0;padding:0;background:#fff;overflow:hidden}.cefad-chat{width:100%;height:var(--cefad-viewport-height,100dvh);min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:hidden}.cefad-chat-header{padding-top:max(10px,env(safe-area-inset-top));min-height:72px;flex-shrink:0}.cefad-chat-messages{min-height:0;padding-left:10px;padding-right:10px;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.cefad-bubble{max-width:88%;font-size:14px}.cefad-chat-composer{padding-bottom:max(8px,env(safe-area-inset-bottom));touch-action:manipulation}.cefad-chat-composer textarea{font-size:16px!important}.cefad-chat-note{display:none}}
@media(min-width:641px) and (max-width:1024px){.cefad-chat{width:min(92vw,590px);height:min(880px,calc(100dvh - 28px))}.cefad-chat-shell{padding:14px}.cefad-bubble{font-size:15px}}

/* CTA público: alvo amplo e quebra de linha segura em telas pequenas. */
.cefad-whatsapp-cta{display:flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--cefad-blue);color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center;touch-action:manipulation}
.cefad-whatsapp-cta:hover{background:var(--cefad-blue-2)}
.cefad-whatsapp-cta:focus-visible{outline:3px solid var(--cefad-red);outline-offset:3px}
