#hashe-chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: #0073aa;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
#hashe-chat-bubble:hover { transform: scale(1.05); }

#hashe-chat-bubble .hashe-agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

#hashe-chat-window {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}
#hashe-chat-window.hidden { display: none; }

.chat-header {
    background: #0073aa;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
}
.chat-header .chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 10px;
}
.chat-header .chat-title {
    flex: 1;
}
.chat-header .chat-close {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}
.chat-header .chat-close:hover { opacity: 1; }

.chat-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    background: #f9f9f9;
}
.msg {
    display: flex;
    margin-bottom: 10px;
}
.msg.user { justify-content: flex-end; }
.msg.user .msg-text {
    background: #0073aa;
    color: #fff;
    border-radius: 12px 12px 0 12px;
}
.msg.bot .msg-avatar img {
    width: 36px; height: 36px;
    border-radius: 50%;
    margin-right: 8px;
}
.msg-text {
    padding: 8px 12px;
    background: #e5e5e5;
    border-radius: 12px 12px 12px 0;
    max-width: 80%;
    line-height: 1.4;
}
.msg.bot.error .msg-text { background: #ffefef; color: #a00; }

.chat-footer {
    padding: 10px;
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}
#chat-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
#chat-send {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-left: 6px;
    padding: 0 12px;
    cursor: pointer;
}
#chat-send:hover { background: #005f8d; }

/* typing dots */
.typing .msg-text {
    background: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
    from { opacity: 0.2; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-2px); }
}
