/* RESET PARA GANHAR DO TEMA */
#chat-widget-container, 
#chat-widget-container *, 
#chat-widget-container h1 {
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* CONTAINER PRINCIPAL */
#chat-widget-container {
    display: none; 
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 350px !important;
    height: 450px !important; /* Altura menor e fixa para forçar o scroll */
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3) !important;
    z-index: 999999 !important;
    flex-direction: column !important;
    font-family: 'Inter', Arial, sans-serif !important;
    border: 1px solid #ddd !important;
}

/* CABEÇALHO - FORÇANDO TÍTULO PEQUENO */
.chat-header {
    background: #0056b3 !important;
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 50px !important;
    flex-shrink: 0 !important;
}

.chat-header h1 { 
    margin: 0 !important; 
    padding: 0 !important;
    font-size: 14px !important; /* Bem pequeno para não quebrar */
    font-weight: 700 !important;
    color: #ffffff !important; 
    line-height: 1 !important;
}

/* JANELA DE MENSAGENS - O CORAÇÃO DO SCROLL */
#chat-window {
    display: block !important;
    position: relative !important;
    height: 340px !important; /* Altura fixa interna */
    overflow-y: scroll !important; /* Força a barra de rolagem */
    overflow-x: hidden !important;
    padding: 15px !important;
    background: #fdfdfd !important;
    -webkit-overflow-scrolling: touch !important; /* Scroll suave no iPhone */
}

/* FORÇANDO A BARRA DE ROLAGEM A APARECER (Visual) */
#chat-window::-webkit-scrollbar {
    width: 6px !important;
}
#chat-window::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 10px !important;
}

/* MENSAGENS */
.message {
    display: block !important;
    clear: both !important;
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 85% !important;
}

.bot-message {
    background: #f0f0f0 !important;
    color: #333 !important;
    float: left !important;
}

.user-message {
    background: #0056b3 !important;
    color: #ffffff !important;
    float: right !important;
}

/* BOTÕES DE OPÇÕES */
.options-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin: 10px 0 !important;
    width: 100% !important;
    clear: both !important;
}

.option-btn {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #0056b3 !important;
    color: #0056b3 !important;
    padding: 7px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 12px !important;
}

/* ÁREA DE INPUT */
.chat-input-area {
    height: 60px !important;
    padding: 10px !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

#user-input {
    width: 80% !important;
    border: 1px solid #ccc !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
}

/* BOTÃO DO WIDGET */
#chat-widget-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    background: #0056b3 !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}