.wp-assistant-chatbot {
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.wp-assistant-chatbot-wrapper.position-bottom-left .wp-assistant-chatbot {
    right: auto;
    left: 20px;
}

.wp-assistant-chatbot.inline {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 0;
}

.wp-assistant-chatbot.minimized .chatbot-messages,
.wp-assistant-chatbot.minimized .chatbot-input-area {
    display: none;
}

.chatbot-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-clear,
.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.chatbot-clear {
    font-size: 14px;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.chatbot-clear:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.chatbot-minimize {
    font-size: 20px;
    width: 24px;
    height: 24px;
}

.chatbot-minimize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chatbot-message.user-message {
    align-self: flex-end;
}

.chatbot-message.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 10px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #0073aa;
    color: white;
}

.bot-message .message-content {
    background: #f1f3f4;
    color: #333;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    align-self: flex-end;
}

.bot-message .message-time {
    align-self: flex-start;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #0073aa;
}

.chatbot-send {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chatbot-send:hover:not(:disabled) {
    background: #005a87;
}

.chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}


@media (max-width: 768px) {
    .wp-assistant-chatbot {
        width: calc(100vw - 20px);
        max-width: 350px;
        right: 10px;
        bottom: 10px;
    }
    
    .wp-assistant-chatbot-wrapper.position-bottom-left .wp-assistant-chatbot {
        left: 10px;
        right: auto;
    }
}