#hm-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: sans-serif;
    transition: height 0.3s ease;
    overflow: hidden;
}

#hm-chat-container.hm-closed {
    height: 50px;
}

#hm-chat-header {
    background: #4CAF50;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#hm-chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#hm-chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

#hm-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.hm-user {
    align-self: flex-end;
    background: #DCF8C6;
    border-bottom-right-radius: 4px;
}

.hm-ai {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

#hm-chat-input-area {
    border-top: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.hm-input-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.hm-icon-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.hm-icon-btn:hover {
    background: #f0f0f0;
}

.hm-text-submit-area {
    display: flex;
    gap: 8px;
}

#hm-chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    resize: none;
    height: 40px;
    font-size: 14px;
}

#hm-send-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

#hm-image-preview {
    margin-bottom: 8px;
}