/* =========================================================================
   CONECTAR WHATSAPP
   -------------------------------------------------------------------------
   Extraído do <style> inline de page-conectar-whatsapp.php: tela de QR code
   da Evolution API + configuração do Agente de IA (nome, dias de atraso e
   prompt de atendimento).
   ========================================================================= */

.cw-label { display: block; font-size: 12.5px; font-weight: 600; color: #7a7a7a; margin: 14px 0 6px; }
.cw-ajuda { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #8a8a8a; }
.cw-ajuda b { color: #6b6b6b; font-weight: 600; }
.cw-textarea, .cw-input { width: 100%; border: 1.5px solid #e5e5e5; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; font-family: inherit; color: #333; resize: vertical; }
.cw-textarea:focus, .cw-input:focus { outline: none; border-color: #d98324; }
.cw-wrap { max-width: 640px; margin: 30px auto; padding: 0 16px; }
.cw-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.cw-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.cw-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #e7f9ef; color: #1fa855; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cw-head h1 { margin: 0 0 4px; font-size: 20px; }
.cw-head p { margin: 0; font-size: 13.5px; color: #6b6b6b; }

.cw-agentes { background: #faf9f6; border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.cw-agentes-titulo { font-size: 12.5px; font-weight: 600; color: #7a7a7a; display: block; margin-bottom: 6px; }
.cw-agentes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cw-agentes li { font-size: 13.5px; color: #333; display: flex; align-items: center; gap: 8px; }
.cw-agentes li i { color: #d98324; font-size: 12px; }
.cw-tag-trial { font-size: 10.5px; background: #fff3d6; color: #a67415; padding: 2px 7px; border-radius: 20px; font-weight: 600; }

.cw-estado { text-align: center; padding: 20px 0; }
.cw-ico-grande { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #f0f0f0; color: #999; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.cw-ico-erro { background: #fdeceb; color: #d6453f; }
.cw-estado h2 { margin: 0 0 6px; font-size: 17px; }
.cw-estado p { margin: 0 0 16px; font-size: 13.5px; color: #6b6b6b; }

.cw-check { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #e7f9ef; color: #1fa855; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }

.cw-qrcode-box { width: 240px; height: 240px; margin: 0 auto 16px; border: 1px solid #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; background: #fff; }
.cw-qrcode-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: none; }
.cw-qrcode-loading { color: #bbb; font-size: 22px; }
.cw-instrucao { font-size: 13px; color: #6b6b6b; max-width: 380px; margin: 0 auto 8px; }
.cw-aviso-expira { font-size: 12px; color: #a3937a; margin-bottom: 14px; }

.cw-btn-primario, .cw-btn-secundario { border: none; border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cw-btn-primario { background: linear-gradient(135deg, #f5a623, #d98324); color: #fff; }
.cw-btn-primario:hover { transform: translateY(-1px); }
.cw-btn-secundario { background: transparent; border: 1.5px solid #ddd; color: #666; }
.cw-btn-secundario:hover { border-color: #bbb; color: #333; }
