/* chat do Mercury - redesign iOS */
#cb{border-radius:28px!important;overflow:hidden!important;background:rgba(255,255,255,.78)!important;-webkit-backdrop-filter:blur(30px) saturate(1.8)!important;backdrop-filter:blur(30px) saturate(1.8)!important;border:1px solid rgba(255,255,255,.7)!important;box-shadow:inset 0 1px 0 #fff,0 30px 80px rgba(10,20,40,.28)!important;animation:cbIn .45s cubic-bezier(.3,1.3,.4,1)}
@keyframes cbIn{from{opacity:0;transform:translateY(16px) scale(.94)}to{opacity:1;transform:none}}
#cb .ch2{background:transparent!important;color:#0c1f38!important;padding:16px 16px 10px!important;border-bottom:1px solid rgba(15,40,80,.06)}
#cb .ch2 b{color:#0c1f38!important;font-size:16px!important}#cb .ch2 small{color:#56697f!important}
#cb .ch2 img{border:0!important;box-shadow:0 0 0 2px #fff,0 4px 12px rgba(20,103,207,.25);animation:avBob 3s ease-in-out infinite}
@keyframes avBob{50%{transform:translateY(-2px) rotate(-3deg)}}
#cb #cx{width:30px!important;height:30px!important;min-height:0!important;border-radius:50%!important;background:rgba(118,128,150,.16)!important;color:#56697f!important;border:0!important}
#cb .ctabs{display:flex!important;justify-content:center;padding:10px 16px 6px!important;background:transparent!important;border:0!important}
#cb .ctabs>div{display:inline-flex!important;background:rgba(118,128,150,.14)!important;border-radius:10px!important;padding:2px!important;gap:0!important}
#cb .ctabs button{min-height:0!important;padding:6px 18px!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;color:#0c1f38!important;background:transparent!important;border:0!important;box-shadow:none!important}
#cb .ctabs button[aria-selected=true]{background:#fff!important;color:#0c1f38!important;box-shadow:0 2px 6px rgba(15,40,80,.12)!important}
#cb .ctabs button svg{display:none}

#cb .cpanel,#cb .cm{background:transparent!important}
#cb .cm{padding:14px 14px 6px!important;display:flex;flex-direction:column;gap:6px}
#cb .m{max-width:82%;padding:10px 14px!important;border-radius:20px!important;font-size:14.5px!important;line-height:1.45!important;border:0!important;box-shadow:none!important;position:relative;animation:msgIn .35s cubic-bezier(.3,1.3,.4,1)}
#cb .m.b{align-self:flex-start;background:rgba(118,128,150,.14)!important;color:#0c1f38!important;border-bottom-left-radius:6px!important}
#cb .m.u{align-self:flex-end;background:#1467cf!important;color:#fff!important;border-bottom-right-radius:6px!important}
@keyframes msgIn{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
#cb .sg2{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px!important;padding:8px 14px!important;background:transparent!important;border:0!important;scrollbar-width:none}
#cb .sg2::-webkit-scrollbar{display:none}
#cb .sg2 button{flex:0 0 auto;min-height:0!important;padding:8px 14px!important;border-radius:999px!important;border:0!important;background:rgba(20,103,207,.1)!important;color:#1467cf!important;font-size:13px!important;font-weight:600!important;white-space:nowrap}
#cb .cf2{background:transparent!important;border:0!important;padding:6px 12px 8px!important;position:relative}
#cb #ci{border-radius:999px!important;border:1px solid rgba(15,40,80,.1)!important;background:rgba(255,255,255,.8)!important;padding:12px 52px 12px 16px!important;font-size:15px!important;width:100%;box-sizing:border-box;min-height:0!important}
#cb .cf2 button[type=submit],#cb .cf2 button:last-of-type{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:34px!important;height:34px!important;min-height:0!important;border-radius:50%!important;padding:0!important;background:#b8c3d3!important;border:0!important;display:grid;place-items:center;transition:background .2s}
#cb .cf2:focus-within button[type=submit],#cb .cf2 #ci:not(:placeholder-shown)~button{background:#1467cf!important}
#cb .nt{font-size:11px!important;color:#8a99ad!important;padding:0 16px 12px!important;margin:0!important;background:transparent!important;text-align:center}
#cb .nt::before{content:"🔒 "}
html.theme-dark #cb{background:rgba(14,37,71,.82)!important;border-color:rgba(140,193,255,.15)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 30px 80px rgba(0,0,0,.5)!important}
html.theme-dark #cb .ch2{border-color:rgba(140,193,255,.1)}html.theme-dark #cb .ch2 b{color:#fff!important}html.theme-dark #cb .ch2 small{color:#a9bbd2!important}
html.theme-dark #cb .ch2 img{box-shadow:0 0 0 2px #0e2547,0 4px 12px rgba(0,0,0,.4)}
html.theme-dark #cb #cx{background:rgba(140,193,255,.14)!important;color:#dbe6f5!important}
html.theme-dark #cb .ctabs>div{background:rgba(140,193,255,.12)!important}
html.theme-dark #cb .ctabs button{color:#dbe6f5!important}
html.theme-dark #cb .ctabs button[aria-selected=true]{background:rgba(140,193,255,.25)!important;color:#fff!important}
html.theme-dark #cb .m.b{background:rgba(140,193,255,.14)!important;color:#eaf1fb!important}
html.theme-dark #cb .sg2 button{background:rgba(140,193,255,.12)!important;color:#9fcbff!important}
html.theme-dark #cb #ci{background:rgba(140,193,255,.08)!important;border-color:rgba(140,193,255,.2)!important;color:#eaf1fb!important}
html.theme-dark #cb .cf2 button[type=submit],html.theme-dark #cb .cf2 button:last-of-type{background:rgba(140,193,255,.25)!important}
html.theme-dark #cb .sg2,html.theme-dark #cb .cf2,html.theme-dark #cb .nt,html.theme-dark #cb .cb,html.theme-dark #cb .ctabs{background:transparent!important}
/* ajustes */
#cb .ctabs>div{width:auto!important;flex:0 0 auto!important;max-width:none!important}
#cb .ctabs button{flex:0 0 auto!important;width:auto!important}
#cb .m.t{align-self:flex-start;display:inline-flex!important;gap:4px;padding:12px 14px!important;background:rgba(118,128,150,.14)!important;border-bottom-left-radius:6px!important}
#cb .m.t i{width:7px;height:7px;border-radius:50%;background:#8a99ad;display:block;animation:tyDot 1.2s infinite ease-in-out}
#cb .m.t i:nth-child(2){animation-delay:.15s}#cb .m.t i:nth-child(3){animation-delay:.3s}
@keyframes tyDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
html.theme-dark #cb .m.t{background:rgba(140,193,255,.14)!important}html.theme-dark #cb .m.t i{background:#9fcbff}
#cb .cpanel,#cb .hbar,#cb .hlist,#cb .hfoot{background:transparent!important}
/* link Atualizacoes ao lado das abas */
#cb .ctabs{gap:8px;align-items:center}
#cb .ctabs>a{display:inline-flex!important;align-items:center;gap:5px;padding:6px 12px!important;border-radius:10px!important;font-size:13px!important;font-weight:600!important;color:#1467cf!important;background:rgba(20,103,207,.1)!important;border:0!important;text-decoration:none!important;min-height:0!important;box-shadow:none!important;white-space:nowrap}
#cb .ctabs>a:hover{background:rgba(20,103,207,.18)!important}
#cb .ctabs>a svg{width:14px;height:14px}
html.theme-dark #cb .ctabs>a{color:#9fcbff!important;background:rgba(140,193,255,.12)!important}
/* sem o link de WhatsApp no rodape do chat */
#cb .nt a,#cb .nt button,#cb .eco-chat-rd{display:none!important}
/* ===== chat demonstrativo da secao Mercury IA (mesmo design) ===== */
.demo{border-radius:28px!important;overflow:hidden!important;background:rgba(255,255,255,.78)!important;-webkit-backdrop-filter:blur(30px) saturate(1.8);backdrop-filter:blur(30px) saturate(1.8);border:1px solid rgba(255,255,255,.7)!important;box-shadow:inset 0 1px 0 #fff,0 30px 80px rgba(10,20,40,.18)!important}
.demo .dh{background:transparent!important;color:#0c1f38!important;padding:16px 16px 10px!important;border-bottom:1px solid rgba(15,40,80,.06)!important}
.demo .dh b{color:#0c1f38!important}.demo .dh small{color:#56697f!important}
.demo .dh img{border:0!important;box-shadow:0 0 0 2px #fff,0 4px 12px rgba(20,103,207,.25)!important}
.demo .dtabs{display:flex!important;justify-content:center;align-items:center;gap:8px;padding:10px 16px 6px!important;background:transparent!important;border:0!important}
.demo .dseg{display:inline-flex!important;background:rgba(118,128,150,.14)!important;border-radius:10px!important;padding:2px!important;gap:0!important;border:0!important}
.demo .dseg>span{padding:6px 18px!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;color:#0c1f38!important;background:transparent!important;box-shadow:none!important;border:0!important}
.demo .dseg>span.on{background:#fff!important;color:#0c1f38!important;box-shadow:0 2px 6px rgba(15,40,80,.12)!important}
.demo .dseg svg{display:none}
.demo .dupd{padding:6px 12px!important;border-radius:10px!important;font-size:13px!important;font-weight:600!important;color:#1467cf!important;background:rgba(20,103,207,.1)!important;border:0!important}
.demo .dm{background:transparent!important;padding:14px!important;display:flex;flex-direction:column;gap:6px}
.demo .m{max-width:82%;padding:10px 14px!important;border-radius:20px!important;font-size:14.5px!important;line-height:1.45!important;border:0!important;box-shadow:none!important;animation:msgIn .35s cubic-bezier(.3,1.3,.4,1)}
.demo .m.b{align-self:flex-start;background:rgba(118,128,150,.14)!important;color:#0c1f38!important;border-bottom-left-radius:6px!important}
.demo .m.u{align-self:flex-end;background:#1467cf!important;color:#fff!important;border-bottom-right-radius:6px!important}
.demo .m.t{align-self:flex-start;display:inline-flex!important;gap:4px;padding:12px 14px!important;background:rgba(118,128,150,.14)!important;border-bottom-left-radius:6px!important}
.demo .m.t i{width:7px;height:7px;border-radius:50%;background:#8a99ad;display:block;animation:tyDot 1.2s infinite ease-in-out}
.demo .m.t i:nth-child(2){animation-delay:.15s}.demo .m.t i:nth-child(3){animation-delay:.3s}
.demo .df{background:transparent!important;border:0!important;padding:6px 12px 14px!important}
.demo .df>*:first-child{border-radius:999px!important;border:1px solid rgba(15,40,80,.1)!important;background:rgba(255,255,255,.8)!important}
.demo .df i,.demo .df button{border-radius:50%!important;background:#1467cf!important}
@keyframes msgIn{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@keyframes tyDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
html.theme-dark .demo{background:rgba(14,37,71,.82)!important;border-color:rgba(140,193,255,.15)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 30px 80px rgba(0,0,0,.45)!important}
html.theme-dark .demo .dh{border-color:rgba(140,193,255,.1)!important}html.theme-dark .demo .dh b{color:#fff!important}html.theme-dark .demo .dh small{color:#a9bbd2!important}
html.theme-dark .demo .dh img{box-shadow:0 0 0 2px #0e2547!important}
html.theme-dark .demo .dseg{background:rgba(140,193,255,.12)!important}
html.theme-dark .demo .dseg>span{color:#dbe6f5!important}
html.theme-dark .demo .dseg>span.on{background:rgba(140,193,255,.25)!important;color:#fff!important}
html.theme-dark .demo .dupd{color:#9fcbff!important;background:rgba(140,193,255,.12)!important}
html.theme-dark .demo .m.b,html.theme-dark .demo .m.t{background:rgba(140,193,255,.14)!important;color:#eaf1fb!important}
html.theme-dark .demo .m.t i{background:#9fcbff}
html.theme-dark .demo .df>*:first-child{background:rgba(140,193,255,.08)!important;border-color:rgba(140,193,255,.2)!important;color:#a9bbd2!important}
/* X redondo e abas alinhadas */
html body #cb #cx{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;flex:0 0 30px!important;padding:0!important;font-size:18px!important;line-height:1!important;display:grid!important;place-items:center!important;margin-left:auto}
html body #cb .ctabs>div,html body #cb .ctabs>a,html body .demo .dseg,html body .demo .dupd{height:34px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important}
html body #cb .ctabs>div button,html body .demo .dseg>span{height:30px!important;display:inline-flex!important;align-items:center!important;padding:0 16px!important}
html body #cb .ctabs>a,html body .demo .dupd{padding:0 12px!important;border-radius:10px!important}
#cb .sg2{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);cursor:grab}
#cb .sg2:active{cursor:grabbing}