.detectin{--di:#0877FF;--di-deep:#071D49;--ink:#111820;--bg:#fff;--muted:#64748b;--wa:#25D366;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.detectin *{box-sizing:border-box}.detectin-launcher{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));width:60px;height:60px;border:0;border-radius:50%;background:var(--di);box-shadow:0 8px 30px #0003;cursor:pointer;z-index:99998}.detectin-launcher img{width:38px;height:38px;object-fit:contain}.detectin-unread{position:absolute;right:-3px;top:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#b42318;color:#fff;font:700 12px/20px system-ui}.detectin-panel{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:92px;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100dvh - 120px));background:var(--bg);border:1px solid #dbe3ec;border-radius:18px;box-shadow:0 20px 60px #0003;z-index:99999;overflow:hidden;display:grid;grid-template-rows:auto auto 1fr auto;color:var(--ink);contain:layout paint}.detectin-panel[hidden]{display:none}.detectin-panel header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e7edf3}.detectin-panel header small{display:block;color:var(--muted);margin-top:2px}.detectin-panel header button{border:0;background:transparent;font-size:28px;cursor:pointer}.detectin-status{min-height:24px;padding:5px 16px;font-size:12px;color:#526071}.detectin-messages{overflow:auto;padding:12px 14px;scroll-behavior:smooth}.detectin-msg{max-width:86%;padding:10px 12px;margin:8px 0;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}.detectin-msg.user{margin-left:auto;background:#eaf3fa}.detectin-msg.bot{background:#f4f6f8}.detectin-msg.error,.detectin-msg.degraded{border:1px solid #d7a400;background:#fff9df}.detectin form{display:flex;gap:8px;padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom));border-top:1px solid #e7edf3;background:#fff}.detectin textarea{flex:1;resize:none;min-height:44px;max-height:120px;border:1px solid #cbd5e1;border-radius:12px;padding:10px;font:inherit}.detectin form button{border:0;border-radius:12px;background:var(--di);color:#fff;padding:0 15px;font-weight:600}.detectin button:focus-visible,.detectin textarea:focus-visible{outline:3px solid #111;outline-offset:2px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.detectin-panel{inset:0;width:100vw;height:100dvh;max-width:none;border-radius:0;border:0;padding-top:env(safe-area-inset-top)}.detectin-launcher{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.detectin *{scroll-behavior:auto!important;transition:none!important}}
.detectin-fb{display:block;margin-top:6px;font-size:12px;opacity:.75}.detectin-fb button{background:transparent;border:0;cursor:pointer;font-size:14px;padding:2px 6px;border-radius:4px}.detectin-fb button:focus{outline:2px solid currentColor}
.detectin-preview{background:#fff4d6;color:#5b4300;font-size:12px;padding:6px 10px;text-align:center;border-bottom:1px solid #f0d58a}

#detectin-root .detectin-launcher{background:var(--di)!important;border:0!important;border-radius:50%!important;padding:0!important;width:60px!important;height:60px!important;box-shadow:0 8px 30px #0003!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;line-height:1!important}
#detectin-root .detectin-launcher img{width:38px!important;height:38px!important;border-radius:0!important}
#detectin-root .detectin-fb button{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 6px!important;margin:0!important;min-height:0!important;width:auto!important;height:auto!important;color:inherit!important;border-radius:4px!important;font-size:14px!important;line-height:1.2!important}
#detectin-root .detectin-fb button:hover{background:#0000000d!important}
#detectin-root #detectin-close{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:4px 10px!important;min-height:0!important;width:auto!important;height:auto!important;font-size:22px!important;line-height:1!important}
#detectin-root form button[type=submit]{background:var(--di)!important;color:#fff!important;border:0!important;border-radius:10px!important;box-shadow:none!important}
#detectin-root .detectin-launcher--brand img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
#detectin-root a.detectin-action{display:inline-block!important;margin-top:10px!important;padding:9px 14px!important;border-radius:10px!important;background:#25D366!important;color:#fff!important;font-weight:600!important;text-decoration:none!important;font-size:14px!important;line-height:1.2!important}
#detectin-root a.detectin-action:hover{filter:brightness(.95)}
#detectin-root .detectin-privacy{margin:0!important;padding:6px 12px 10px!important;font-size:11px!important;line-height:1.35!important;color:#64748b!important;text-align:center}
#detectin-root .detectin-privacy a{color:inherit!important;text-decoration:underline!important}

#detectin-root .detectin-head{display:flex!important;align-items:center!important;gap:10px!important}
#detectin-root .detectin-avatar{width:40px!important;height:40px!important;border-radius:50%!important;object-fit:cover!important;flex:0 0 40px!important;background:var(--di)}
#detectin-root .detectin-launcher svg{display:block!important;margin:0 auto!important}
#detectin-root.detectin--avatar .detectin-msg.bot{position:relative!important;margin-left:38px!important;max-width:calc(86% - 38px)!important}
#detectin-root.detectin--avatar .detectin-msg.bot::before{content:''!important;position:absolute!important;left:-38px!important;top:0!important;width:30px!important;height:30px!important;border-radius:50%!important;background:var(--detectin-avatar) center/cover no-repeat,var(--di)!important}
#detectin-root .detectin-human{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:8px 12px!important;border-top:1px solid #e5e7eb!important;background:#f8fafc!important;font-size:13px!important;color:#334155!important}
#detectin-root .detectin-human a.detectin-action{margin:0!important;padding:6px 12px!important;font-size:13px!important}
#detectin-root a.detectin-action--call{background:#1769aa!important}
#detectin-root .detectin-human [hidden]{display:none!important}
#detectin-root .detectin-teaser{position:fixed!important;right:max(20px,env(safe-area-inset-right))!important;bottom:92px!important;max-width:min(280px,calc(100vw - 40px))!important;background:#fff!important;color:#172033!important;border-radius:14px!important;box-shadow:0 8px 30px #0003!important;padding:0!important;z-index:99997!important;display:flex!important;align-items:stretch!important;animation:detectin-pop .25s ease-out}
#detectin-root .detectin-teaser[hidden]{display:none!important}
#detectin-root .detectin-teaser-text{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;text-align:left!important;padding:12px 8px 12px 14px!important;font-size:14px!important;line-height:1.35!important;cursor:pointer!important;min-height:0!important;width:auto!important;height:auto!important}
#detectin-root .detectin-teaser-close{background:transparent!important;border:0!important;box-shadow:none!important;color:#64748b!important;padding:6px 10px!important;font-size:18px!important;cursor:pointer!important;min-height:0!important;width:auto!important;height:auto!important;align-self:flex-start!important}
@keyframes detectin-pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#detectin-root .detectin-teaser{animation:none}}

.detectin-typing{display:flex!important;align-items:center;gap:8px;width:max-content;max-width:82%;min-height:38px}
.detectin-typing-label{font-size:12px;opacity:.72}
.detectin-typing-dots{display:inline-flex;align-items:center;gap:4px}
.detectin-typing-dots i{display:block;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.35;animation:detectinTyping 1.15s infinite ease-in-out}
.detectin-typing-dots i:nth-child(2){animation-delay:.15s}.detectin-typing-dots i:nth-child(3){animation-delay:.30s}
@keyframes detectinTyping{0%,60%,100%{transform:translateY(0);opacity:.28}30%{transform:translateY(-4px);opacity:.8}}
@media (prefers-reduced-motion:reduce){.detectin-typing-dots i{animation:none}}

/* DetectIA brand CTA hierarchy — 0.31.1 */
.detectin form button{background:var(--di)!important;color:#fff!important;font-weight:700}
.detectin form button:hover{filter:brightness(.94)}
.detectin-human{padding:9px 14px 10px;border-top:1px solid #e7edf3;background:#fff}
.detectin-human-open{display:block;color:var(--di-deep);font-size:12px;margin-bottom:6px}
.detectin-whatsapp{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:34px;padding:6px 11px;border-radius:8px;background:var(--wa);color:#fff!important;text-decoration:none!important;font-weight:650;font-size:12.5px;line-height:1.2;box-shadow:none}
.detectin-whatsapp:hover{filter:brightness(.95);color:#fff!important}
.detectin-whatsapp:focus-visible{outline:3px solid var(--di-deep);outline-offset:2px}
