/* --- SOHBET BOTU STİL DOSYASI --- */
 
/* Genel Kapsayıcı */
.byai-chatbot-wrapper {
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 60vh; /* Ekran yüksekliğinin %60'ı kadar */
    min-height: 400px;
}
 
/* Başlık Alanı */
.byai-chatbot-wrapper .byai-chat-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.byai-chatbot-wrapper .byai-chat-header h3 {
    margin: 0;
    font-size: 16px;
}
.byai-chatbot-wrapper .byai-chat-clear-btn {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.byai-chatbot-wrapper .byai-chat-clear-btn:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
    color: #333;
}
 
/* Mesajlaşma Alanı */
.byai-chatbot-wrapper .byai-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #fff;
}
.byai-chatbot-wrapper .byai-chat-message {
    display: flex;
    margin-bottom: 15px;
    max-width: 85%;
}
.byai-chatbot-wrapper .byai-message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}
 
/* Bot ve Kullanıcı Mesaj Balonları */
.byai-chatbot-wrapper .byai-chat-message.bot {
    justify-content: flex-start;
    /* Kopyalama butonu için eklenen position ve padding kaldırıldı */
}
.byai-chatbot-wrapper .byai-chat-message.bot .byai-message-bubble {
    background-color: #f1f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
}
 
.byai-chatbot-wrapper .byai-chat-message.user {
    justify-content: flex-end;
    margin-left: auto;
}
.byai-chatbot-wrapper .byai-chat-message.user .byai-message-bubble {
    /* Renkler artık PHP tarafından inline olarak eklenecek */
    border-bottom-right-radius: 4px;
}
 
/* 'Yazıyor...' animasyonu */
.byai-chatbot-wrapper .byai-chat-message.typing .byai-message-bubble {
    padding: 12px 15px;
}
.byai-chatbot-wrapper .typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #9E9E9E;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}
.byai-chatbot-wrapper .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.byai-chatbot-wrapper .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }
 
 
/* Metin Giriş Alanı */
.byai-chatbot-wrapper .byai-chat-input-area {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
 
.byai-chatbot-wrapper .byai-chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
}
 
.byai-chatbot-wrapper .byai-chat-send-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}
.byai-chatbot-wrapper .byai-chat-send-btn:hover {
    opacity: 0.85;
}
 
.byai-chatbot-wrapper .byai-chat-send-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* --- KALIYOR: Formatlanmış Metin Stili (v3.3) --- */
.byai-chatbot-wrapper .byai-message-bubble strong {
    font-weight: 600; 
    color: #111;
}

/* --- KALDIRILDI: Kopyala Butonu Stilleri --- */