/* AI Chat Widget Styling */
#wc-ai-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.wc-chat-header {
    padding: 15px;
    background: #7f54b3; /* WooCommerce Purple */
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.wc-chat-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.8;
}

.wc-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.wc-bubble-bot {
    background: #e9e9e9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.wc-bubble-user {
    background: #7f54b3;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.wc-bubble-typing {
    background: #e9e9e9;
    color: #888;
    font-style: italic;
    align-self: flex-start;
}

.wc-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 10px;
}

.wc-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.wc-chat-send {
    background: #7f54b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wc-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #7f54b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9998;
    font-size: 28px;
}

.wc-chat-hidden {
    display: none !important;
}