/* Ajentrix WooCommerce Shopping Assistant Styles */

.ajentrix-wc-assistant {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ajentrix-wc-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ajentrix-wc-assistant-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ajentrix-wc-assistant-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.ajentrix-wc-assistant-toggle:hover {
    color: #000;
}

.ajentrix-wc-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.ajentrix-wc-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
}

.ajentrix-wc-message.user {
    background: #0073aa;
    color: #fff;
    margin-left: 20%;
    text-align: right;
}

.ajentrix-wc-message.assistant {
    background: #f0f0f0;
    color: #333;
    margin-right: 20%;
    white-space: normal;
    word-break: break-word;
}

.ajentrix-wc-input {
    display: flex;
    gap: 10px;
}

.ajentrix-wc-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ajentrix-wc-input button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ajentrix-wc-input button:hover {
    background: #005a87;
}

.ajentrix-wc-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ajentrix-wc-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.ajentrix-wc-recommendations {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ajentrix-wc-recommendations h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.ajentrix-wc-recommendation-item {
    padding: 8px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.ajentrix-wc-recommendation-item a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.ajentrix-wc-recommendation-item a:hover {
    text-decoration: underline;
}

