#cwh-chat-container { position: fixed; bottom: 20px; right: 20px; z-index: 999999; font-family: sans-serif; }
#cwh-chat-button { 
    background: var(--cwh-bg); width: 60px !important; height: 60px !important; 
    border-radius: 50% !important; border: none; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); padding: 0 !important; 
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    transition: transform 0.3s;
}
#cwh-chat-button:hover { transform: translateY(-3px); }
#cwh-chat-button img { width: 100%; height: 100%; object-fit: cover; }

#cwh-proactive-bubble { display: none; position: absolute; bottom: 70px; right: 0; background: white; padding: 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); font-size: 13px; width: max-content; max-width: 200px; cursor: pointer; }

#cwh-chat-window { display: none; width: 340px; height: 480px; background: white; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); position: absolute; bottom: 75px; right: 0; flex-direction: column; overflow: hidden; }

.cwh-header { background: var(--cwh-bg); color: var(--cwh-text); padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.cwh-header-controls { display: flex; gap: 10px; align-items: center; }
.cwh-clear-chat { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 12px; padding: 0; }
.cwh-clear-chat:hover { color: white; text-decoration: underline; }
.cwh-close { cursor: pointer; font-size: 18px; }

#cwh-messages { flex: 1; padding: 15px; overflow-y: auto; background: #f5f5f5; display: flex; flex-direction: column; gap: 8px; }
.cwh-message-row { display: flex; align-items: flex-end; gap: 8px; }
.cwh-message-row.user-row { justify-content: flex-end; }
.cwh-avatar { width: 28px; height: 28px; border-radius: 50%; background: white; flex-shrink: 0; }
.cwh-bubble { padding: 8px 12px; border-radius: 10px; font-size: 14px; max-width: 75%; line-height: 1.4; word-wrap: break-word; }
.cwh-bubble.bot { background: white; color: #333; border-bottom-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.cwh-bubble.user { background: var(--cwh-bg); color: var(--cwh-text); border-bottom-right-radius: 2px; }

.cwh-input-area { padding: 10px; background: white; border-top: 1px solid #eee; display: flex; align-items: center; gap: 5px; }
#cwh-input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
#cwh-send { background: none; border: none; font-size: 18px; color: var(--cwh-send-color); cursor: pointer; }

@media (max-width: 480px) { 
    #cwh-chat-window { width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; position: fixed; z-index: 1000000; } 
    #cwh-chat-container { bottom: 10px; right: 10px; }
}