.wcbf-chat-container {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.wcbf-chat-header {
    background: #007cba;
    color: white;
    padding: 15px;
    text-align: center;
}

.wcbf-chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.wcbf-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.wcbf-message {
    margin-bottom: 15px;
    display: flex;
}

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

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

.wcbf-message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.wcbf-message.user .wcbf-message-content {
    background: #007cba;
    color: white;
    border-bottom-left-radius: 5px;
}

.wcbf-message.bot .wcbf-message-content {
    background: white;
    border: 1px solid #ddd;
    border-bottom-right-radius: 5px;
}

.wcbf-message-image {
    max-width: 200px;
    margin-top: 10px;
}

.wcbf-message-image img {
    max-width: 100%;
    border-radius: 8px;
}

.wcbf-chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #ddd;
}

.wcbf-input-wrapper {
    display: flex;
    flex-direction: column;
}

#wcbf-user-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: Tahoma;
    font-size: 14px;
}

.wcbf-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.wcbf-upload-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.wcbf-upload-btn:hover {
    background: #e0e0e0;
}

.wcbf-send-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.wcbf-send-btn:hover {
    background: #005a87;
}

.wcbf-typing-indicator {
    display: flex;
    align-items: center;
}

.wcbf-typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    margin: 0 3px;
    animation: wcbf-typing 1.4s infinite;
}

.wcbf-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.wcbf-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wcbf-typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.wcbf-products-list {
    margin-top: 10px;
}

.wcbf-product-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 8px;
}

.wcbf-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
}

.wcbf-product-info {
    flex: 1;
}

.wcbf-product-info h4 {
    margin: 0 0 5px 0;
}

.wcbf-product-price {
    color: #007cba;
    font-weight: bold;
}

.wcbf-product-link {
    color: #007cba;
    text-decoration: none;
    font-size: 12px;
}