.ewc{--ewc-delay:0s;--ewc-size:60px;--ewc-color:#25d366;--ewc-side:20px;--ewc-bottom:20px;position:fixed;bottom:var(--ewc-bottom);z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.4}
.ewc[hidden]{display:none!important}
.ewc *{box-sizing:border-box}
.ewc--right{right:var(--ewc-side)}
.ewc--left{left:var(--ewc-side)}

/* Botão */
.ewc .ewc-btn,.ewc .ewc-btn:visited{color:#fff;text-decoration:none}
.ewc-btn{position:relative;display:flex;align-items:center;justify-content:center;width:var(--ewc-size);height:var(--ewc-size);padding:0;margin:0;border:0;border-radius:50%;background:var(--ewc-color);color:#fff;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.22);transition:transform .2s ease,box-shadow .2s ease}
.ewc-btn:hover{transform:scale(1.06);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.ewc-btn:focus{outline:none}
.ewc-btn:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px var(--ewc-color)}
.ewc-btn>svg{width:58%;height:58%}
.ewc-btn--img{background:transparent;border-radius:12px;box-shadow:none}
.ewc--round .ewc-btn--img{border-radius:50%}
.ewc-btn--img img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;box-shadow:0 6px 18px rgba(0,0,0,.22)}
.ewc-badge{position:absolute;right:-2px;bottom:-2px;width:34%;height:34%;min-width:18px;min-height:18px;border-radius:50%;background:var(--ewc-color);color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.ewc-badge svg{width:70%;height:70%}

/* Entrada com atraso */
.ewc-btn,.ewc-tip{animation:ewc-show .4s ease var(--ewc-delay,0s) both}
.ewc--now .ewc-btn,.ewc--now .ewc-tip{animation:none}
@keyframes ewc-show{from{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:none}}

/* Dica */
.ewc-tip{position:absolute;bottom:calc(var(--ewc-size)/2 - 17px);white-space:nowrap;background:#fff;color:#333;font-size:14px;padding:7px 14px;border-radius:18px;box-shadow:0 3px 12px rgba(0,0,0,.16)}
.ewc--right .ewc-tip{right:calc(var(--ewc-size) + 12px)}
.ewc--left .ewc-tip{left:calc(var(--ewc-size) + 12px)}
.ewc--open .ewc-tip{opacity:0;pointer-events:none}

/* Janela */
.ewc-box{position:absolute;bottom:calc(var(--ewc-size) + 16px);width:360px;max-width:calc(100vw - 2 * var(--ewc-side));border-radius:28px;overflow:hidden;background:#f0faf3;box-shadow:0 10px 40px rgba(0,0,0,.25);transform-origin:bottom right;animation:ewc-in .25s ease}
.ewc--right .ewc-box{right:0}
.ewc--left .ewc-box{left:0;transform-origin:bottom left}
/* details/summary: abre a janela mesmo sem JavaScript */
.ewc-dt{margin:0;padding:0;border:0}
.ewc-dt>summary{list-style:none}
.ewc-dt>summary::-webkit-details-marker{display:none}
.ewc-dt>summary::marker{content:""}
.ewc-dt[open]~.ewc-tip,.ewc--open .ewc-tip{visibility:hidden}
@keyframes ewc-in{from{opacity:0;transform:translateY(12px) scale(.94)}to{opacity:1;transform:none}}
.ewc-head{display:flex;align-items:center;gap:8px;padding:16px 16px 16px 22px;background:var(--ewc-color);color:#fff}
.ewc-logo{display:flex;width:30px;height:30px}
.ewc-logo svg{width:100%;height:100%}
.ewc-title{flex:1;font-size:19px;font-weight:700;margin:0}
.ewc-close{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.28);color:#fff;cursor:pointer;transition:background .2s}
.ewc-close:hover{background:rgba(0,0,0,.4)}
.ewc-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.ewc-body{padding:22px 20px 8px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-height:50vh;overflow-y:auto}
.ewc-msg{position:relative;margin-left:8px;background:#fff;color:#333;font-size:15px;padding:12px 18px;border-radius:22px;box-shadow:0 2px 8px rgba(0,0,0,.12);max-width:90%;word-wrap:break-word;animation:ewc-in .3s ease both}
.ewc-msg:nth-child(2){animation-delay:.35s}
.ewc-msg:nth-child(3){animation-delay:.7s}
.ewc-msg:nth-child(n+4){animation-delay:1s}
.ewc-msg::before{content:"";position:absolute;left:-7px;top:50%;margin-top:-8px;border-style:solid;border-width:8px 10px 8px 0;border-color:transparent #fff transparent transparent}
.ewc-msg strong{font-weight:700;color:#111}
.ewc-foot{display:flex;justify-content:flex-end;padding:16px 20px 22px}
.ewc-open,.ewc-open:visited{display:inline-flex;align-items:center;gap:14px;padding:12px 18px 12px 24px;border-radius:30px;background:var(--ewc-color);color:#fff;font-size:15px;font-weight:700;text-decoration:none;box-shadow:0 3px 10px rgba(0,0,0,.15);transition:filter .2s,transform .2s}
.ewc-open:hover,.ewc-open:focus-visible{color:#fff;filter:brightness(.92);transform:translateY(-1px);outline:none}
.ewc-open svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}

/* Dispositivos */
@media (min-width:768px){.ewc--no-desktop{display:none!important}}
@media (max-width:767px){
  .ewc--no-mobile{display:none!important}
  .ewc-box{width:calc(100vw - 2 * var(--ewc-side))}
  .ewc-tip{display:none}
}
@media (prefers-reduced-motion:reduce){.ewc *{animation:none!important;transition:none!important}}

/* Botão fechar: protege contra estilos de botão do tema */
.ewc .ewc-close{width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:rgba(0,0,0,.28)!important;color:#fff!important;box-shadow:none!important;line-height:1!important}
.ewc .ewc-close:hover{background:rgba(0,0,0,.4)!important}

/* Formulário */
.ewc-box{display:flex;flex-direction:column;max-height:calc(100vh - var(--ewc-size) - var(--ewc-bottom) - 40px)}
.ewc-body{flex:1 1 auto;max-height:none}
.ewc-form{width:100%;margin-top:4px;display:flex;flex-direction:column;gap:10px}
.ewc-form .ewc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.ewc-f{display:flex;flex-direction:column;gap:4px}
.ewc-f label{margin:0;font-size:13px;font-weight:600;color:#3b4a40;line-height:1.3}
.ewc .ewc-f input,.ewc .ewc-f select,.ewc .ewc-f textarea{display:block;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:9px 12px;border:1px solid #cfe3d6;border-radius:12px;background:#fff;color:#222;font-family:inherit;font-size:15px;line-height:1.35;box-shadow:none;outline:none;transition:border-color .2s,box-shadow .2s}
.ewc .ewc-f textarea{resize:vertical;min-height:70px}
.ewc .ewc-f select{-webkit-appearance:none;appearance:none;padding-right:34px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/14px}
.ewc .ewc-f input:focus,.ewc .ewc-f select:focus,.ewc .ewc-f textarea:focus{border-color:var(--ewc-color);box-shadow:0 0 0 3px rgba(37,211,102,.18)}
.ewc-erro{margin:0;padding:8px 12px;border-radius:10px;background:#fdecec;color:#a4262c;font-size:13px}
.ewc-erro[hidden]{display:none}
.ewc-aviso{margin:0;font-size:12px;color:#5b6b60;line-height:1.4}
.ewc-foot--form{padding:4px 0 6px}
.ewc button.ewc-open{border:0;cursor:pointer;font-family:inherit;line-height:1.2}

/* Botão "Abrir bate-papo" do formulário: protege contra estilos de botão do tema */
.ewc button.ewc-open,.ewc button.ewc-open:visited{display:inline-flex!important;align-items:center!important;gap:14px!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px 18px 12px 24px!important;border:0!important;border-radius:30px!important;background:var(--ewc-color)!important;background-image:none!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;box-shadow:0 3px 10px rgba(0,0,0,.15)!important;cursor:pointer;transition:filter .2s,transform .2s}
.ewc button.ewc-open:hover,.ewc button.ewc-open:focus{background:var(--ewc-color)!important;color:#fff!important;filter:brightness(.92);transform:translateY(-1px)}
.ewc button.ewc-open:focus-visible{outline:3px solid #fff!important;outline-offset:2px;box-shadow:0 0 0 6px var(--ewc-color)!important}
.ewc button.ewc-open span{color:#fff!important}
.ewc button.ewc-open svg{width:30px!important;height:30px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8;stroke-linejoin:round}

/* Botão "Abrir bate-papo" do formulário: blindado contra o estilo de botões do tema */
.ewc .ewc-form button.ewc-open{display:inline-flex!important;align-items:center!important;gap:14px!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px 18px 12px 24px!important;border:0!important;border-radius:30px!important;background:var(--ewc-color)!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;box-shadow:0 3px 10px rgba(0,0,0,.15)!important;cursor:pointer;transition:filter .2s,transform .2s}
.ewc .ewc-form button.ewc-open:hover,.ewc .ewc-form button.ewc-open:focus{background:var(--ewc-color)!important;color:#fff!important;filter:brightness(.92);transform:translateY(-1px)}
.ewc .ewc-form button.ewc-open:focus-visible{outline:3px solid #fff!important;box-shadow:0 0 0 5px var(--ewc-color)!important}
.ewc .ewc-form button.ewc-open span{color:#fff!important}
.ewc .ewc-form button.ewc-open svg{width:30px!important;height:30px!important;fill:none!important;stroke:#fff!important;stroke-width:1.8;stroke-linejoin:round}
.ewc .ewc-foot--form{display:flex!important;justify-content:flex-end!important}
