/* VX Chat Internal Widget Style - v6 DEFINITIVE FIX */
:root {
    --vx-blue: #00B4D8;
    --vx-dark: #1a1a1a;
    --vx-light: #f4f4f4;
}

/* Container principal */
.wp-wa-auto-container {
    position: fixed !important;
    bottom: 20px !important;
    z-index: 9999999 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    line-height: normal !important;
}

.wp-wa-auto-right { right: 20px !important; }
.wp-wa-auto-left { left: 20px !important; }

/* Botão Flutuante */
.wp-wa-auto-float {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    background-color: var(--vx-blue) !important;
    position: relative !important;
}

.wp-wa-auto-float:hover { transform: scale(1.1) !important; }

/* Ícone SVG dentro do botão */
.wp-wa-auto-float svg {
    width: 32px !important;
    height: 32px !important;
    fill: white !important;
    display: block !important;
}

/* Notificação */
.wp-wa-auto-float.has-notification::after {
    content: '1' !important;
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #ff3b30 !important;
    color: white !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    border: 2px solid white !important;
}

/* Janela de Chat - POSICIONAMENTO FIXO PARA NÃO SAIR DA TELA */
.wp-wa-auto-box {
    position: fixed !important;
    bottom: 90px !important;
    width: 320px !important; /* Reduzido levemente para segurança */
    height: 450px !important;
    max-height: 80vh !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Ajuste de lado da janela */
.wp-wa-auto-right .wp-wa-auto-box { right: 20px !important; }
.wp-wa-auto-left .wp-wa-auto-box { left: 20px !important; }

.wp-wa-auto-box.active {
    display: flex !important;
    animation: wpWaFadeUp 0.3s ease !important;
}

/* Header */
.wp-wa-auto-header {
    padding: 15px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: var(--vx-blue) !important;
}

.wp-wa-auto-header-info { display: flex !important; align-items: center !important; }

.wp-wa-auto-avatar {
    width: 35px !important;
    height: 35px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

.wp-wa-auto-info h4 { margin: 0 !important; font-size: 15px !important; color: white !important; }
.wp-wa-auto-info span { font-size: 11px !important; opacity: 0.9 !important; color: white !important; }

/* Corpo do Chat */
.wp-wa-auto-body {
    flex: 1 !important;
    padding: 15px !important;
    background: #f0f2f5 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.msg {
    max-width: 85% !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    position: relative !important;
}

.msg-bot {
    align-self: flex-start !important;
    background: white !important;
    color: #333 !important;
}

.msg-user {
    align-self: flex-end !important;
    background: var(--vx-blue) !important;
    color: white !important;
}

.msg-time {
    font-size: 9px !important;
    opacity: 0.6 !important;
    display: block !important;
    text-align: right !important;
    margin-top: 4px !important;
}

/* Input */
.wp-wa-auto-input-area {
    padding: 10px !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-top: 1px solid #eee !important;
}

.wp-wa-auto-input-area input {
    flex: 1 !important;
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 13px !important;
}

.wp-wa-auto-send-btn {
    background: var(--vx-blue) !important;
    border: none !important;
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

@keyframes wpWaFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 400px) {
    .wp-wa-auto-box {
        width: calc(100vw - 40px) !important;
    }
}

/* ===== VXCHAT MELHORIAS (v7) ===== */

/* Botão de envio (azul + seta branca) */
.wp-wa-auto-send-btn{
    background:#0ea5b7 !important;
    border:none !important;
    width:44px !important;
    height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:50% !important;
    cursor:pointer !important;
}
.wp-wa-auto-send-btn svg{
    width:18px !important;
    height:18px !important;
    fill:#ffffff !important;
    stroke:#ffffff !important;
}

/* Indicador digitando */
.wp-wa-auto-body .vxchat-typing{
    opacity:.8 !important;
    font-style: italic !important;
}

