/* Container Base */
.hermes-wrapper { position: fixed; bottom: 20px; right: 20px; z-index: 999999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hermes-hidden { display: none !important; }

/* Botão Flutuante (FAB) */
.hermes-fab { background-color: #fff; color: #004b87; border: none; border-radius: 12px; padding: 12px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: hermes-pulse 2s infinite; }
.hermes-fab:hover { transform: translateY(-3px); animation: none; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.hermes-fab-avatar-container { width: 65px; height: 65px; background-color: #004b87; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid #f4f6f9; }
.hermes-fab-avatar { width: 100%; height: 100%; object-fit: cover; }
.hermes-fab-text { font-weight: 600; }

/* Janela de Chat - Mais larga e alta */
.hermes-window { width: 400px; height: 600px; max-height: 85vh; background: #f8f9fa; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; position: absolute; bottom: 0; right: 0; }

/* Cabeçalho - Layout Flex corrigido */
.hermes-header { background: #fff; padding: 20px 20px 20px 15px; position: relative; border-bottom: 1px solid #eaeaea; display: flex; align-items: center; gap: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.hermes-header-avatar-container { width: 70px; height: 70px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #f4f6f9; }
.hermes-header-avatar { width: 100%; height: 100%; object-fit: cover; }
.hermes-welcome-text { font-size: 14px; line-height: 1.5; color: #444; flex-grow: 1; }
.hermes-name { color: #004b87; font-size: 16px; }
.hermes-close { background: none; border: none; color: #999; font-size: 28px; cursor: pointer; position: absolute; top: 10px; right: 15px; line-height: 1; transition: color 0.2s; }
.hermes-close:hover { color: #333; }

/* Corpo e Rolagem Estilizada */
.hermes-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background-color: #f8f9fa; }
.hermes-body::-webkit-scrollbar { width: 6px; }
.hermes-body::-webkit-scrollbar-track { background: transparent; }
.hermes-body::-webkit-scrollbar-thumb { background-color: #dcdcdc; border-radius: 10px; }

/* Opções Iniciais */
.hermes-options-initial { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hermes-option-btn { background: #fff; color: #004b87; border: 1px solid #e0e0e0; padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.hermes-option-btn:hover { background: #004b87; color: #fff; border-color: #004b87; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,75,135,0.1); }
.hermes-option-btn:hover .hermes-arrow { color: #f7941d; }
.hermes-arrow { font-size: 18px; color: #ccc; }

/* Área de Conversa */
.hermes-conversation-area { display: flex; flex-direction: column; gap: 16px; }
.hermes-message { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.hermes-bot { background: #fff; border: 1px solid #eaeaea; align-self: flex-start; border-bottom-left-radius: 4px; color: #333; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.hermes-user { background: #004b87; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 1px 2px rgba(0,75,135,0.2); }

/* Opções de Resposta (Chips) */
.hermes-options-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.hermes-chip { background: #eaf2f8; color: #004b87; border: 1px solid #b3d1eb; padding: 10px 16px; border-radius: 30px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.hermes-chip:hover { background: #004b87; color: #fff; }

/* Inputs e Botões Primários */
.hermes-input-wrapper { display: flex; gap: 8px; width: 100%; margin-top: 5px; }
.hermes-input { flex: 1; padding: 12px 16px; border: 1px solid #dcdcdc; border-radius: 20px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.hermes-input:focus { border-color: #004b87; }
.hermes-btn-primary { background: #f7941d; color: #fff; border: none; padding: 12px 20px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 13px; transition: background 0.2s; }
.hermes-btn-primary:hover { background: #e58210; }
.hermes-btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; text-decoration: none; border-radius: 8px; }

/* Rodapé (Área de Digitação) */
.hermes-footer { padding: 15px 20px; background: #fff; border-top: 1px solid #eaeaea; display: flex; align-items: center; gap: 12px; }
.hermes-send-btn { background: #004b87; color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.hermes-send-btn:hover { background-color: #f7941d; transform: scale(1.05); }
.hermes-send-icon { width: 20px; height: 20px; fill: #fff; margin-left: -2px; }

@keyframes hermes-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 75, 135, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(0, 75, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 75, 135, 0); } }