.atendimento-ia-icon-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.atendimento-ia-icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
    animation: atendimento-ia-bounce 2s infinite;
}
.atendimento-ia-tooltip {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    white-space: nowrap;
}
.atendimento-ia-icon-wrapper:hover .atendimento-ia-tooltip {
    display: block;
}
@keyframes atendimento-ia-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Chat window */
.atendimento-ia-chat-wrapper { display: none; position: fixed; bottom: 100px; right: 20px; z-index: 10000; }
.atendimento-ia-chat-wrapper.open { display: block; }
.atendimento-ia-chat { width: 350px; max-height: 500px; background-color: #f5f5f5; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; overflow: hidden; }
.atendimento-ia-chat-header { background-color: #002855; color: #ffffff; padding: 10px; display: flex; align-items: center; justify-content: space-between; }
.atendimento-ia-chat-icon { width: 24px; height: 24px; }
.atendimento-ia-chat-datetime { font-size: 12px; }
.atendimento-ia-chat-close { background: none; border: none; color: #ffffff; font-size: 20px; cursor: pointer; }
.atendimento-ia-chat-body { flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; }
.atendimento-ia-chat-footer { padding: 10px; border-top: 1px solid #ccc; }
.atendimento-ia-chat-input { width: 100%; padding: 8px; border: 1px solid #002855; border-radius: 4px; outline: none; color: #002855; }

/* Messages */
.atendimento-ia-message { margin-bottom: 8px; padding: 8px; border-radius: 6px; max-width: 80%; word-wrap: break-word; }
.atendimento-ia-message.bot { background-color: #e1e1e1; color: #002855; }
.atendimento-ia-message.user { background-color: #002855; color: #ffffff; align-self: flex-end; }

/* Loader */
.atendimento-ia-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #002855;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== AJUSTE DE LINKS NO CHAT ===== */
.atendimento-ia-message a {
    color: #236BFF !important; /* azul forte */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.atendimento-ia-message a:hover,
.atendimento-ia-message a:focus {
    color: #1850b6 !important; /* azul mais escuro ao passar mouse */
}
.atendimento-ia-send-btn {
    background: #e1e1e1;
    border: none;
    padding: 4px 10px;
    margin-left: 6px;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    transition: background .2s;
    height: 36px;
    display: inline-flex;
    align-items: center;
}
.atendimento-ia-send-btn:hover {
    background: #b2c7e0;
}
.atendimento-ia-send-btn svg {
    display: block;
}
.atendimento-ia-chat-footer {
    display: flex;
    align-items: center;
    gap: 0;
}
.atendimento-ia-chat-input {
    flex: 1 1 auto;
}
