/* Add these styles to your existing CSS */

/* Message styling */
.aisa-message {
    margin-bottom: 15px;
    display: flex;
}

.aisa-message-user {
    justify-content: flex-end;
}

.aisa-message-bot {
    justify-content: flex-start;
}

.aisa-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    background: #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.aisa-message-user .aisa-message-content {
    background: #007cba;
    color: white;
}

/* Typing indicator */
.aisa-typing-indicator .aisa-message-content {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: #e9ecef;
}

.aisa-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
    display: inline-block;
    animation: aisa-typing 1.4s infinite;
}

.aisa-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.aisa-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aisa-typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Product grid */
.aisa-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.aisa-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.aisa-product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.aisa-product-info {
    padding: 10px;
}

.aisa-product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}

.aisa-product-price {
    color: #007cba;
    font-weight: bold;
    font-size: 14px;
    margin: 5px 0;
}

.aisa-product-rating {
    font-size: 12px;
    color: #f5b342;
    margin: 3px 0;
}

.aisa-product-button {
    display: block;
    background: #28a745;
    color: white;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin-top: 8px;
}

.aisa-product-button:hover {
    background: #218838;
    color: white;
}

/* Minimized state */
.aisa-chat-container.aisa-chat-minimized {
    height: 60px;
    overflow: hidden;
}

.aisa-chat-container.aisa-chat-minimized .aisa-chat-messages,
.aisa-chat-container.aisa-chat-minimized .aisa-chat-input-area {
    display: none;
}