/*
	$Project$
	$Author$

	$Version$ ($Revision$)
*/

.ai-chat-messages {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.ai-message {
    margin-bottom: 15px;
    clear: both;
}

.ai-message-user {
    text-align: right;
}

.ai-message-assistant {
    text-align: left;
}

.ai-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 75%;
    background: #f1f1f1;
    white-space: pre-wrap;
}

.ai-bubble a {
    overflow-wrap: anywhere;
}

.ai-message-user .ai-bubble {
    background: #337ab7;
    color: white;
}

.ai-typing .ai-bubble {
    color: #777;
    font-style: italic;
}

.ai-avatar {
    display: inline-block;
    margin-right: 8px;
}

.ai-products {
    margin-top: 15px;
    margin-bottom: 20px;
}

.ai-prompts {
    margin-bottom: 20px;
}

.prompt-btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* the disabled Send button (while the reply is awaited) stays visible in any theme */
.ai-send-btn.btn[disabled],
.ai-send-btn.btn[disabled]:hover,
.ai-send-btn.btn[disabled]:focus,
.ai-send-btn.btn[disabled]:active,
.ai-send-btn.btn.disabled,
.ai-send-btn.btn.disabled:hover {
    background-color: #d6d6d6;
    border-color: #c4c4c4;
    color: #6f6f6f;
    opacity: 1;
    cursor: not-allowed;
}

/* the chat block of the product page */
.ka-smart-search-product-chat {
    margin-bottom: 20px;
}

.ka-smart-search-product-chat .ai-chat-messages {
    max-height: 400px;
}
