#block-botobo-aichatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

#block-botobo-aichatbot h2 {
  display: none;
}

#live-chat header {
  background: #2c3e50;
  color: #fff;
  padding: 15px;
  border-radius: 10px 10px 0 0;
}

#live-chat header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.chat-message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.chat-message img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-message-content {
  flex: 1;
  background: #fff;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.chat-message-content h5 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #2c3e50;
}

.chat-message-message {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.chat-message-message p {
  margin: 0;
}

.chat-time {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 11px;
  color: #999;
}

.ai-foundation-chat {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
  border-radius: 0 0 10px 10px;
}

.form-item-query {
  margin-bottom: 10px !important;
}

.chat-form-query {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  resize: none;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.3s ease;
}

.chat-form-query:focus {
  outline: none;
  border-color: #2c3e50;
}

.chat-form-send {
  width: 100%;
  padding: 10px;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-form-send:hover {
  background: #34495e;
}

/* Стили для скроллбара */
.chat-history::-webkit-scrollbar {
  width: 6px;
}

.chat-history::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-history::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
  #block-botobo-aichatbot {
    width: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  
  #live-chat header {
    border-radius: 0;
  }
  
  .chat {
    height: 300px;
  }
} 