/* Кнопка чата */
.chat-btn {
 position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #476dfa;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  outline: none;
}

.chat-btn hover {
  background: #0056b3;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* Виджет */
.widget {
  position: fixed;
  bottom: 90px; /* Отступ от кнопки */
  right: 20px;
  width: 300px;
  max-width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hidden {
  display: none;
}

/* Заголовок виджета */
.widget-header {
  background: #476dfa;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  text-align: center;
}
.close-btn:hover {
  opacity: 0.7;
}

/* Тело виджета */
.widget-body {
  padding: 15px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

/* Кнопки действий */
.action-buttons {
  margin-bottom: 15px;
}

.action-btn {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #476dfa;
  background:#476dfa;
  color: #FFFFFF;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #1E90FF;
  color: white;
}

/* Динамическое содержимое */
.dynamic-content {
  min-height: 100px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

/* Анимация */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}
 .chat-message {
  margin-bottom: 10px;
  
}
 .bot-message span {
 background: #E6E6FA;
 padding: 8px 12px;
 border-radius: 15px;
 display: inline-block;
 max-width: 75%;
}
.chat__button {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid;
  border-radius: 8px;
  background-color: #476dfa;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  cursor: default;
}

.chat__go {
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat__go:hover {
  background-color: #1E90FF;
  color: white;
}
.widget-content {
 text-align: justify;
 font-size: 12px;
 font-family: Arial, sans-serif;
 }
 
.btn-win {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #476dfa;
  background:#476dfa;
  color: #FFFFFF;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-win:hover {
    background: #1E90FF;
}
.back-btn {
    background: #E6E6FA;
    color: #4682B4;
}

.back-btn:hover {
    background: #FFFFFF;
}
.btn1 {
  width: 100%;
  padding: 2px;
  margin: 5px 0;
  border: 1px solid #FFFFFF;
  background:#FFFFFF;
  color: #476dfa;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.ch-container-fluid {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  word-wrap: break-word;
}