.nexxseo-chat,.nexxseo-chat *{box-sizing:border-box}.nexxseo-chat{--nx:#10243e;--nx2:#173b63;--line:#dce3ea;--bg:#f4f6f8;--text:#15202b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);line-height:1.45}.nexxseo-chat--floating{position:fixed;left:22px;bottom:22px;z-index:999999}.nexxseo-chat__trigger{appearance:none;border:0;border-radius:999px;background:var(--nx);color:#fff;padding:13px 18px;display:flex;align-items:center;gap:9px;font:700 14px/1 inherit;box-shadow:0 12px 34px rgba(15,35,60,.28);cursor:pointer}.nexxseo-chat__trigger-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:rgba(255,255,255,.14)}.nexxseo-chat__panel{width:min(390px,calc(100vw - 28px));max-height:min(600px,calc(100vh - 110px));overflow-y:auto;background:#fff;border:1px solid rgba(18,45,75,.12);border-radius:20px;box-shadow:0 24px 70px rgba(15,35,60,.24)}.nexxseo-chat--floating .nexxseo-chat__panel{position:absolute;left:0;bottom:66px}.nexxseo-chat--inline{max-width:720px;margin:24px auto}.nexxseo-chat--inline .nexxseo-chat__panel{width:100%}.nexxseo-chat__header{background:linear-gradient(135deg,var(--nx),var(--nx2));color:#fff;padding:16px 20px;display:flex;align-items:center;gap:11px}
.nexxseo-chat__header>div{flex:1;min-width:0}
.nexxseo-chat__logo{width:36px;height:36px;border-radius:9px;object-fit:cover;background:#fff;flex-shrink:0}.nexxseo-chat__header small{display:block;opacity:.68;letter-spacing:.11em;font-size:10px}.nexxseo-chat__header strong{font-size:16px}.nexxseo-chat__close{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:50%;width:32px;height:32px;font-size:23px;cursor:pointer}.nexxseo-chat__welcome{padding:15px 20px;background:var(--bg);border-bottom:1px solid var(--line);font-size:13px}.nexxseo-chat__form{padding:18px 20px;display:grid;gap:13px}.nexxseo-chat__form label{display:grid;gap:5px;font-weight:700;font-size:12px}.nexxseo-chat__form input,.nexxseo-chat__form textarea,.nexxseo-chat__form select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:#111;font:500 14px/1.4 inherit;outline:none}.nexxseo-chat__form input:focus,.nexxseo-chat__form textarea:focus,.nexxseo-chat__form select:focus{border-color:#6e8eaf;box-shadow:0 0 0 3px rgba(38,91,145,.1)}.nexxseo-chat__file{padding:11px;border:1px dashed #bac7d3;border-radius:11px;background:#f9fafb}.nexxseo-chat__file input{border:0;padding:6px 0 0;background:transparent;font-size:12px}.nexxseo-chat__submit{border:0;border-radius:11px;background:var(--nx);color:#fff;padding:13px 16px;font:800 14px/1 inherit;cursor:pointer}.nexxseo-chat__submit[disabled]{opacity:.6;cursor:wait}.nexxseo-chat__status{min-height:18px;margin:0;font-size:12px}.nexxseo-chat__status.is-error{color:#a51616}.nexxseo-chat__status.is-success{color:#126230}.nexxseo-chat footer{padding:0 20px 15px;text-align:center;color:#75808b;font-size:10px}.nexxseo-chat__honeypot{position:absolute!important;left:-99999px!important;opacity:0!important}@media(max-width:600px){.nexxseo-chat--floating{left:12px;bottom:12px}.nexxseo-chat__trigger{padding:12px 15px}.nexxseo-chat--floating .nexxseo-chat__panel{position:fixed;left:10px;right:10px;bottom:72px;width:auto;max-height:calc(100vh - 90px);overflow:auto;border-radius:17px}}

/* v4.11.15 — hardening mobile do chat de entrada */
@media(max-width:600px){
  .nexxseo-chat--floating{left:max(10px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom))}
  .nexxseo-chat--floating .nexxseo-chat__panel{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:calc(68px + env(safe-area-inset-bottom));max-height:calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain}
  .nexxseo-chat__form{padding:14px 14px calc(14px + env(safe-area-inset-bottom));gap:11px}
  .nexxseo-chat__header{padding:14px}
  .nexxseo-chat__welcome{padding:12px 14px}
  .nexxseo-chat__form input,.nexxseo-chat__form textarea,.nexxseo-chat__form select{font-size:16px;min-height:44px}
  .nexxseo-chat__form textarea{min-height:96px}
  .nexxseo-chat__submit{min-height:48px;font-size:15px}
  .nexxseo-chat__close{width:44px;height:44px}
}

/* v4.11.64 — botão flutuante do WhatsApp abre o WhatsApp real; chat interno permanece separado */
.nexxseo-wa-fab{position:fixed;left:22px;bottom:90px;z-index:999998}
.nexxseo-wa-fab__trigger{appearance:none;border:0;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#25d366;color:#fff!important;text-decoration:none!important;cursor:pointer;box-shadow:0 12px 30px rgba(15,35,60,.28)}
.nexxseo-wa-fab__trigger:hover{background:#1da851}
@media(max-width:600px){.nexxseo-wa-fab{left:12px;bottom:78px}}

/* v4.11.51 — conversa de verdade dentro do widget, sem sair pro WhatsApp */
.nexxseo-chat__thread{display:flex;flex-direction:column;min-height:0}
.nexxseo-chat__messages{padding:14px 16px;overflow-y:auto;max-height:min(420px,calc(100vh - 260px));display:flex;flex-direction:column;gap:8px;background:var(--bg)}
.nexxseo-chat__bubble{max-width:82%;padding:8px 11px;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(15,35,60,.08);align-self:flex-start;border-bottom-left-radius:3px}
.nexxseo-chat__bubble.is-staff{align-self:flex-end;background:var(--nx);color:#fff;border-bottom-left-radius:12px;border-bottom-right-radius:3px;display:flex;gap:7px;align-items:flex-end}
.nexxseo-chat__avatar{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#fff}
.nexxseo-chat__avatar--fallback{display:grid;place-items:center;color:var(--nx);font-weight:800;font-size:11px}
.nexxseo-chat__bubble-body{min-width:0}
.nexxseo-chat__bubble small{display:block;font-size:10px;opacity:.75;margin-bottom:2px}
.nexxseo-chat__bubble p{margin:0;font-size:13.5px;line-height:1.4}
.nexxseo-chat__bubble time{display:block;font-size:9px;opacity:.6;margin-top:3px;text-align:right}
.nexxseo-chat__reply{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--line);background:#fff}
.nexxseo-chat__reply textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:11px;padding:9px 12px;font:500 14px/1.3 inherit;outline:none;max-height:80px}
.nexxseo-chat__reply textarea:focus{border-color:#6e8eaf}
.nexxseo-chat__reply button{border:0;border-radius:50%;width:38px;height:38px;flex-shrink:0;background:var(--nx);color:#fff;font-size:15px;cursor:pointer}
.nexxseo-chat__reply button:disabled{opacity:.6;cursor:wait}

/* v4.11.83 — botão do chat pode usar somente ícone */
.nexxseo-chat__trigger.is-icon-only{width:54px;height:54px;padding:0;justify-content:center;gap:0}.nexxseo-chat__trigger.is-icon-only .nexxseo-chat__trigger-icon{width:30px;height:30px}

/* v4.11.84 — ícone PNG/SVG personalizado no botão do chat */
.nexxseo-chat__trigger-icon.has-custom-icon{background:transparent;overflow:hidden}.nexxseo-chat__trigger-icon img{display:block;width:100%;height:100%;object-fit:contain}.nexxseo-chat__trigger.is-icon-only .nexxseo-chat__trigger-icon.has-custom-icon{width:38px;height:38px}

/* v4.18.67 — chat da HOME: campos maiores, rolagem limpa, maximizar e cor configurável.
   Seletores com .nexxseo-chat na frente para o tema do site não encolher os campos. */
.nexxseo-chat .nexxseo-chat__panel{display:flex;flex-direction:column;overflow:hidden;max-height:min(680px,calc(100vh - 110px));width:min(410px,calc(100vw - 28px))}
.nexxseo-chat .nexxseo-chat__panel[hidden],.nexxseo-chat [hidden]{display:none!important}
.nexxseo-chat .nexxseo-chat__header,.nexxseo-chat .nexxseo-chat__welcome,.nexxseo-chat footer{flex:none}
.nexxseo-chat .nexxseo-chat__header{padding:16px 16px 16px 20px}
.nexxseo-chat .nexxseo-chat__header strong{display:block;line-height:1.25;font-size:16px;color:#fff}
.nexxseo-chat .nexxseo-chat__welcome{background:var(--nxsoft,#f4f6f8);font-size:14px;line-height:1.45}
.nexxseo-chat .nexxseo-chat__form{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px 20px 20px;gap:14px;overscroll-behavior:contain}
.nexxseo-chat .nexxseo-chat__thread{flex:1 1 auto;min-height:0}
.nexxseo-chat .nexxseo-chat__messages{flex:1 1 auto;max-height:none;min-height:220px}
.nexxseo-chat footer{padding:10px 20px 12px;border-top:1px solid var(--line)}
/* Rolagem fina e discreta, dentro do cartão */
.nexxseo-chat .nexxseo-chat__form,.nexxseo-chat .nexxseo-chat__messages{scrollbar-width:thin;scrollbar-color:#c3ccd6 transparent}
.nexxseo-chat .nexxseo-chat__form::-webkit-scrollbar,.nexxseo-chat .nexxseo-chat__messages::-webkit-scrollbar{width:8px}
.nexxseo-chat .nexxseo-chat__form::-webkit-scrollbar-track,.nexxseo-chat .nexxseo-chat__messages::-webkit-scrollbar-track{background:transparent}
.nexxseo-chat .nexxseo-chat__form::-webkit-scrollbar-thumb,.nexxseo-chat .nexxseo-chat__messages::-webkit-scrollbar-thumb{background:#c3ccd6;border-radius:99px;border:2px solid #fff}
.nexxseo-chat .nexxseo-chat__form::-webkit-scrollbar-thumb:hover{background:#9aa6b3}
/* Campos maiores, protegidos do CSS do tema */
.nexxseo-chat .nexxseo-chat__form label{display:grid!important;gap:6px!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.3!important;color:#334155!important;margin:0!important}
.nexxseo-chat .nexxseo-chat__form input:not([type=hidden]):not(.nexxseo-chat__honeypot),.nexxseo-chat .nexxseo-chat__form select,.nexxseo-chat .nexxseo-chat__form textarea{display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:48px!important;margin:0!important;padding:12px 14px!important;border:1px solid #cfd8e3!important;border-radius:12px!important;background:#fff!important;color:#0f172a!important;font-family:inherit!important;font-size:15px!important;font-weight:500!important;line-height:1.4!important;box-shadow:none!important;outline:none!important;-webkit-appearance:none;appearance:none}
.nexxseo-chat .nexxseo-chat__form select{padding-right:40px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important}
.nexxseo-chat .nexxseo-chat__form textarea{min-height:110px!important;resize:vertical}
.nexxseo-chat .nexxseo-chat__form input::placeholder,.nexxseo-chat .nexxseo-chat__form textarea::placeholder{color:#94a3b8!important;opacity:1!important;font-size:14px!important}
.nexxseo-chat .nexxseo-chat__form input:focus,.nexxseo-chat .nexxseo-chat__form select:focus,.nexxseo-chat .nexxseo-chat__form textarea:focus{border-color:var(--nx)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--nx) 18%,transparent)!important}
.nexxseo-chat .nexxseo-chat__submit{min-height:50px;font-family:inherit;font-size:15px;font-weight:800;border-radius:12px;margin-top:4px}
.nexxseo-chat .nexxseo-chat__submit:hover{filter:brightness(1.08)}
.nexxseo-chat .nexxseo-chat__close,.nexxseo-chat .nexxseo-chat__max{flex:none;display:grid;place-items:center;border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer;padding:0;line-height:1}
.nexxseo-chat .nexxseo-chat__close:hover,.nexxseo-chat .nexxseo-chat__max:hover{background:rgba(255,255,255,.26)}
.nexxseo-chat .nexxseo-chat__max .i-min{display:none}
.nexxseo-chat.is-max .nexxseo-chat__max .i-max{display:none}
.nexxseo-chat.is-max .nexxseo-chat__max .i-min{display:inline}
/* Maximizado: janela grande no centro da tela */
.nexxseo-chat--floating.is-max .nexxseo-chat__panel{position:fixed!important;left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px))!important;height:min(860px,calc(100vh - 40px))!important;max-height:none!important;border-radius:22px;z-index:1000000}
.nexxseo-chat--floating.is-max::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:999999}
.nexxseo-chat--floating.is-max .nexxseo-chat__trigger{visibility:hidden}
.nexxseo-chat.is-max .nexxseo-chat__form{grid-template-columns:1fr 1fr;align-content:start}
.nexxseo-chat.is-max .nexxseo-chat__form>label:has(textarea),.nexxseo-chat.is-max .nexxseo-chat__form>.nexxseo-chat__submit,.nexxseo-chat.is-max .nexxseo-chat__form>.nexxseo-chat__status,.nexxseo-chat.is-max .nexxseo-chat__form>.nexxseo-chat__file{grid-column:1/-1}
.nexxseo-chat.is-max .nexxseo-chat__form textarea{min-height:180px!important}
@media(max-width:600px){
  .nexxseo-chat--floating.is-max .nexxseo-chat__panel{width:100vw!important;height:100dvh!important;border-radius:0;top:0!important;left:0!important;transform:none}
  .nexxseo-chat.is-max .nexxseo-chat__form{grid-template-columns:1fr}
  .nexxseo-chat .nexxseo-chat__form input:not([type=hidden]),.nexxseo-chat .nexxseo-chat__form select,.nexxseo-chat .nexxseo-chat__form textarea{font-size:16px!important}
  .nexxseo-chat .nexxseo-chat__close,.nexxseo-chat .nexxseo-chat__max{width:42px;height:42px}
}
