/* Overlay escurecido */
.huu-wabot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Janela do bot */
.huu-wabot-modal {
    background: #ffffff;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Conteúdo interno em coluna */
.huu-wabot-body {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

/* Botão de fechar */
.huu-wabot-close {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #9ca3af;
    padding: 0;
}

.huu-wabot-close:hover {
    color: #eef1f5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
	
}

.huu-wabot-close:focus {
    outline: none;
}

/* Mensagens do bot (bubbles) */
.huu-wabot-msg {
    margin: 4px 0;
}

.huu-wabot-msg-bot {
    background: #f3f4f6;
    padding: 8px 10px;
    border-radius: 12px;
    color: #111827;
    line-height: 1.4;
}

/* Ações principais (botão SIM, Próximo, etc.) */
.huu-wabot-actions {
    margin-top: 12px;
}

.huu-wabot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #16a34a;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .05s;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.35);
}

.huu-wabot-btn:hover {
    background: #15803d;
}

.huu-wabot-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
}

/* Listas de opções (radios) */
.huu-wabot-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px;
}

.huu-wabot-options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #111827;
}

/* Campos de texto / telefone */
.huu-wabot-label {
    display: block;
    margin: 6px 0;
}

.huu-wabot-label input[type="text"],
.huu-wabot-label input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 9px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.huu-wabot-label input[type="text"]:focus,
.huu-wabot-label input[type="tel"]:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.huu-wabot-label small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

/* Crédito do chatbot */
#chatbot-credit {
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
}

#chatbot-credit a {
    color: #16a34a;
    text-decoration: none;
}

#chatbot-credit a:hover {
    text-decoration: underline;
}


/* Botão flutuante do WhatsApp Bot */
.huu-wabot-floating-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99998;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #16a34a; /* verde WhatsApp-like */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Você pode depois trocar o texto por um ícone SVG e manter isso aqui */
.huu-wabot-floating-btn span {
    display: inline-block;
}

.huu-wabot-floating-btn:hover {
    background: #15803d;
}

/* Em mobile, sobe um pouco para não bater em barras fixas */
@media (max-width: 480px) {
    .huu-wabot-floating-btn {
        right: 12px;
        bottom: 12px;
        padding: 9px 14px;
        font-size: 13px;
    }
}
