/* Estilos Gerais */
:root {
    --chatbot-primary-color: #0073aa;
    --chatbot-secondary-color: #e76107;
    /* Cor principal (azul WordPress) */

    --chatbot-bg-color: #ffffff;
    --chatbot-header-bg: #f0f0f1;
    --bot-message-bg: #e5e5e5;
    --user-message-bg: var(--chatbot-primary-color);
    --user-message-color: #ffffff;
}

/* Botão Flutuante (FAB) */
.hp-chatbot-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--chatbot-primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 1.3s ease;
    z-index: 9998;
}

.hp-chatbot-fab:hover {
    transform: scale(1.1);
}

.hp-chatbot-fab .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* Janela do Chatbot */
.hp-chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 450px;
    max-width: 90vw;
    height: 600px;
    max-height: 70vh;
    background-color: var(--chatbot-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.3s ease, transform 1.3s ease, visibility 1.3s;
    z-index: 9999;
    -webkit-transition: opacity 1.3s ease, transform 1.3s ease, visibility 1.3s;
    -moz-transition: opacity 1.3s ease, transform 1.3s ease, visibility 1.3s;
    -ms-transition: opacity 1.3s ease, transform 1.3s ease, visibility 1.3s;
    -o-transition: opacity 1.3s ease, transform 1.3s ease, visibility 1.3s;
}

.hp-chatbot-window.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Cabeçalho */
.hp-chatbot-header {
    padding: 10px 15px;
    background-color: var(--chatbot-primary-color);
    color: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.hp-chatbot-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    color: white;

}


.hp-chatbot-conteudo-container {
    width: 100%;
    overflow: auto;
    margin-bottom: 10px;
    ;
}


.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    -webkit-animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-out {
    animation: fadeOut 1.5s ease forwards;
    -webkit-animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Animação para o personagem */
.breathing-character {
    animation: breathingAnimation 3s ease-in-out infinite alternate;
    -webkit-animation: breathingAnimation 3s ease-in-out infinite alternate;
}

@keyframes breathingAnimation {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-10px) scale(1.03);
    }
}


.hp-chatbot-title-messages {
    width: 100%;
    text-align: center;
    color: var(--chatbot-primary-color);
    margin-top: 10px;
    position: relative;
    z-index: 1000;
}

.hp-chatbot-avatar-container {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 0px;
}

.hp-chatbot-avatar-img {
    width: 150px
}

/* Área de Mensagens */
.hp-chatbot-messages {
    width: 100%;
    margin-top: -10px;
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-chatbot-message {
    width: 100%;

    padding: 8px 12px;
    border-radius: 15px;

    word-wrap: break-word;
}

.hp-chatbot-message-bot {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.hp-chatbot-message-user {
    background-color: var(--user-message-color);
    border: 1px solid gray;
    color: var(--user-message-bg);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

/* Área de Opções */
.hp-chatbot-options {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.texto_selecione_opcoes {
    color: gray;
    font: 0.8rem sans-serif;
    width: 100%;
    text-align: center;
}

.hp-chatbot-option-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--chatbot-bg-color);
    border: 1px solid var(--chatbot-primary-color);
    color: var(--chatbot-primary-color);
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.hp-chatbot-option-btn:hover {
    background-color: var(--chatbot-primary-color);
    color: white;
}

.hp-chatbot-typing {
    font-style: italic;
    color: #888;
}

/* Botão Voltar */
.hp-chatbot-back-btn {
    width: 100%;
    padding: 10px;
    background-color: white;
    color: var(--chatbot-secondary-color);

    border: 1px solid var(--chatbot-secondary-color);
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.hp-chatbot-back-btn:hover {
    background-color: var(--chatbot-secondary-color);
    color: white;

}