/* C4Convert — chat estilo WhatsApp. Todas as cores vêm de variáveis (temas).
 * Tudo é prefixado com .c4c-chat-root e "resetado" para o tema do WordPress não interferir. */
.c4c-chat-root{
  --wa-header:#202c33;--wa-chat-bg:#0b141a;--wa-bubble-in:#202c33;--wa-bubble-in-foreground:#e9edef;
  --wa-bubble-out:#005c4b;--wa-bubble-out-foreground:#e9edef;--wa-accent:#00a884;--wa-accent-foreground:#ffffff;
  --wa-muted:#8696a0;--wa-composer:#2a3942;--wa-bar:#1f2c34;--wa-online:#00a884;--wa-pattern:rgba(255,255,255,.035);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Helvetica,Arial,sans-serif;
  font-size:15px;line-height:1.38;font-weight:400;text-align:left;letter-spacing:normal;text-transform:none;
  position:relative;width:100%;max-width:480px;height:720px;max-height:90vh;margin:0 auto;
  display:flex;flex-direction:column;overflow:hidden;border-radius:18px;
  background:var(--wa-chat-bg);color:var(--wa-bubble-in-foreground);box-shadow:0 20px 60px rgba(0,0,0,.35);
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
}
.c4c-chat-root *,.c4c-chat-root *::before,.c4c-chat-root *::after{box-sizing:border-box;margin:0;padding:0;border:0;font:inherit;color:inherit;
  letter-spacing:inherit;text-transform:none;text-shadow:none;text-decoration:none;background:none;box-shadow:none;min-width:0;max-width:none;float:none}
.c4c-chat-root:not(.c4c-fullscreen){max-width:480px!important;margin-left:auto!important;margin-right:auto!important}
.c4c-chat-root.c4c-fullscreen{max-width:none;height:100vh;height:100dvh;max-height:none;border-radius:0;box-shadow:none}
@media(min-width:720px){.c4c-chat-root.c4c-fullscreen{max-width:480px;box-shadow:0 0 0 1px rgba(255,255,255,.04),0 30px 80px rgba(0,0,0,.45)}}

body.c4c-blank{margin:0;padding:0;min-height:100vh;background:#0b141a}
body.c4c-blank-chat{display:flex;justify-content:center}
body.c4c-page-premium{background:#050505}
body.c4c-page-clean{background:#e9edf2}

.c4c-chat-root.c4c-theme-premium{--wa-header:#111;--wa-chat-bg:#080808;--wa-bubble-in:#191919;--wa-bubble-in-foreground:#f3f3f3;--wa-bubble-out:#c9a227;--wa-bubble-out-foreground:#0b0b0b;--wa-accent:#c9a227;--wa-accent-foreground:#0b0b0b;--wa-muted:#8a8a8a;--wa-composer:#1c1c1c;--wa-bar:#111;--wa-online:#c9a227;--wa-pattern:rgba(201,162,39,.05)}
.c4c-chat-root.c4c-theme-clean{--wa-header:#ffffff;--wa-chat-bg:#f2f4f7;--wa-bubble-in:#ffffff;--wa-bubble-in-foreground:#111827;--wa-bubble-out:#2563eb;--wa-bubble-out-foreground:#ffffff;--wa-accent:#2563eb;--wa-accent-foreground:#ffffff;--wa-muted:#6b7280;--wa-composer:#ffffff;--wa-bar:#ffffff;--wa-online:#2563eb;--wa-pattern:rgba(0,0,0,.03)}
.c4c-chat-root.c4c-theme-clean .c4c-header{border-bottom:1px solid #e5e7eb}
.c4c-chat-root.c4c-theme-clean .c4c-cfield{box-shadow:inset 0 0 0 1px #e5e7eb}
.c4c-chat-root.c4c-theme-custom{--wa-bar:var(--wa-header);--wa-online:var(--wa-accent)}

/* Ícones */
.c4c-chat-root .c4c-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block;flex-shrink:0}
.c4c-chat-root .c4c-i-fill{fill:currentColor;stroke:none}

/* Cabeçalho */
.c4c-chat-root .c4c-header{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 8px;background:var(--wa-header);color:var(--wa-bubble-in-foreground);flex-shrink:0;min-height:60px}
.c4c-chat-root .c4c-hbtn{display:grid;place-items:center;width:28px;height:28px;opacity:.9}
.c4c-chat-root .c4c-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block;flex-shrink:0;background:var(--wa-composer)}
.c4c-chat-root .c4c-who{flex:1;min-width:0}
.c4c-chat-root .c4c-name{font-weight:600;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c4c-chat-root .c4c-status{font-size:12.5px;line-height:1.3;color:var(--wa-online)}
.c4c-chat-root .c4c-status.is-typing{color:var(--wa-online)}
.c4c-chat-root .c4c-icons{margin-left:auto;display:flex;align-items:center;gap:20px;opacity:.9}

/* Conversa */
.c4c-chat-root .c4c-body{flex:1;overflow-y:auto;padding:14px 12px 8px;overscroll-behavior:contain;
  background-color:var(--wa-chat-bg);background-image:radial-gradient(var(--wa-pattern) 1.2px,transparent 1.2px);background-size:18px 18px;scroll-behavior:smooth}
.c4c-chat-root .c4c-day{display:table;margin:2px auto 12px;padding:5px 12px;border-radius:8px;font-size:12px;font-weight:500;background:var(--wa-header);color:var(--wa-muted)}
.c4c-chat-root .c4c-row{display:flex;margin:2px 0}
.c4c-chat-root .c4c-row.me{justify-content:flex-end}
.c4c-chat-root .c4c-row.first{margin-top:8px}
.c4c-chat-root .c4c-bubble{position:relative;max-width:82%;padding:6px 8px 7px 9px;border-radius:8px;font-size:15px;line-height:1.38;word-wrap:break-word;overflow-wrap:anywhere;
  box-shadow:0 1px .5px rgba(0,0,0,.13);animation:c4c-in .22s ease-out}
.c4c-chat-root .c4c-row.them .c4c-bubble{background:var(--wa-bubble-in);color:var(--wa-bubble-in-foreground)}
.c4c-chat-root .c4c-row.me .c4c-bubble{background:var(--wa-bubble-out);color:var(--wa-bubble-out-foreground)}
.c4c-chat-root .c4c-row.them.first .c4c-bubble{border-top-left-radius:0}
.c4c-chat-root .c4c-row.me.first .c4c-bubble{border-top-right-radius:0}
.c4c-chat-root .c4c-text strong{font-weight:700}
.c4c-chat-root .c4c-text em{font-style:italic}
.c4c-chat-root .c4c-meta{float:right;margin:7px 0 -5px 12px;font-size:11px;line-height:1;opacity:.65;display:inline-flex;gap:3px;align-items:center;white-space:nowrap}
.c4c-chat-root .c4c-checks{width:16px;height:11px;color:#53bdeb;display:block}
.c4c-chat-root .c4c-media img,.c4c-chat-root .c4c-media video{display:block;width:100%;max-width:280px;height:auto;border-radius:6px;margin-bottom:5px}
.c4c-chat-root .c4c-typing-bubble{padding:0}
.c4c-chat-root .c4c-typing{display:inline-flex;gap:4px;padding:12px 14px}
.c4c-chat-root .c4c-typing i{width:7px;height:7px;border-radius:50%;background:var(--wa-muted);animation:c4c-dot 1.2s infinite}
.c4c-chat-root .c4c-typing i:nth-child(2){animation-delay:.15s}
.c4c-chat-root .c4c-typing i:nth-child(3){animation-delay:.3s}
@keyframes c4c-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes c4c-dot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}

/* Parte de baixo: opções, campo, botão final */
.c4c-chat-root .c4c-bottom{flex-shrink:0;background:var(--wa-bar)}
.c4c-chat-root .c4c-options{display:flex;flex-direction:column;gap:6px;padding:10px 10px 8px;animation:c4c-in .25s;max-height:46vh;overflow-y:auto}
.c4c-chat-root .c4c-options button{all:unset;box-sizing:border-box;cursor:pointer;text-align:center;padding:11px 14px;border-radius:20px;font-size:14.5px;line-height:1.3;
  background:var(--wa-bubble-in);color:var(--wa-accent);border:1px solid color-mix(in srgb,var(--wa-accent) 40%,transparent);transition:background .15s}
.c4c-chat-root .c4c-options button:hover{background:color-mix(in srgb,var(--wa-accent) 15%,var(--wa-bubble-in))}
.c4c-chat-root .c4c-composer{display:flex;align-items:flex-end;gap:8px;padding:8px 8px 6px}
.c4c-chat-root .c4c-cfield{flex:1;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:24px;background:var(--wa-composer);color:var(--wa-muted)}
.c4c-chat-root .c4c-fi{display:grid;place-items:center;opacity:.85}
.c4c-chat-root .c4c-composer input,.c4c-chat-root .c4c-composer textarea{all:unset;box-sizing:border-box;display:block;flex:1;min-width:0;font-size:16px;line-height:1.35;color:var(--wa-bubble-in-foreground);padding:11px 0;max-height:120px;resize:none;white-space:pre-wrap}
.c4c-chat-root .c4c-composer input::placeholder,.c4c-chat-root .c4c-composer textarea::placeholder{color:var(--wa-muted);opacity:1}
.c4c-chat-root .c4c-send{all:unset;box-sizing:border-box;cursor:pointer;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--wa-accent);color:var(--wa-accent-foreground);flex-shrink:0;transition:transform .12s}
.c4c-chat-root .c4c-send:active{transform:scale(.94)}
.c4c-chat-root .c4c-error{font-size:12.5px;color:#f87171;padding:6px 18px 0}
.c4c-chat-root .c4c-cta{all:unset;box-sizing:border-box;cursor:pointer;display:block;margin:10px 12px 10px;padding:15px;border-radius:12px;text-align:center;font-weight:700;font-size:15px;letter-spacing:.02em;text-transform:uppercase;
  background:var(--wa-accent);color:var(--wa-accent-foreground);box-shadow:0 8px 24px color-mix(in srgb,var(--wa-accent) 35%,transparent);animation:c4c-pulse 2s infinite}
@keyframes c4c-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.02)}}
.c4c-chat-root .c4c-privacy{flex-shrink:0;display:block;padding:2px 12px 9px;font-size:11px;line-height:1.3;color:var(--wa-muted);background:var(--wa-bar);text-align:center}
.c4c-chat-root .c4c-privacy .c4c-i{display:inline-block;vertical-align:-2px;margin-right:4px;width:12px;height:12px;stroke-width:2.4}
.c4c-chat-root.c4c-fullscreen .c4c-privacy{padding-bottom:max(9px,env(safe-area-inset-bottom))}
.c4c-missing{text-align:center;color:#8696a0;padding:40px;margin:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
