/* woodmart-chatbot.css */
.woodmart-chatbot-container {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.woodmart-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 100000;
}

.woodmart-chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    background: #34495e;
}

.woodmart-chatbot-modal {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    z-index: 100000;
}

.woodmart-chatbot-modal.active {
    display: flex;
}

.woodmart-chatbot-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    font-size: 24px;
}

.chatbot-name {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-actions {
    display: flex;
    gap: 10px;
}

.chatbot-minimize, .chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-minimize:hover, .chatbot-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.woodmart-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.user-message {
    align-self: flex-end;
    background: #2c3e50;
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message {
    align-self: flex-start;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.welcome-message {
    max-width: 90%;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.welcome-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.welcome-message li {
    margin: 5px 0;
}

.woodmart-chatbot-input {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.chatbot-suggestions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.suggestion-btn:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.2s;
    font-size: 14px;
}

.chatbot-input:focus {
    border-color: #2c3e50;
}

.chatbot-send {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.chatbot-send:hover {
    background: #34495e;
}

.chatbot-footer {
    margin-top: 10px;
    text-align: center;
}

.chatbot-hint {
    font-size: 11px;
    color: #999;
}

.typing-indicator {
    font-style: italic;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .woodmart-chatbot-modal {
        width: calc(100% - 40px);
        height: 70vh;
        bottom: 10px;
        right: 20px;
        left: 20px;
    }
    
    .woodmart-chatbot-toggle {
        bottom: 10px;
        right: 10px;
        padding: 12px 16px;
    }
    
    .chatbot-text {
        display: none;
    }
}

/* Woodmart Theme Compatibility */
.woodmart-chatbot-container .woodmart-button {
    background: var(--wd-primary-color, #2c3e50);
    color: var(--wd-primary-text-color, white);
}

.woodmart-chatbot-container .woodmart-button:hover {
    background: var(--wd-primary-color-hover, #34495e);
}