.elementor-513 .elementor-element.elementor-element-f1e6324{--display:flex;}/* Start custom CSS for container, class: .elementor-element-f1e6324 */#ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* КНОПКА */
#chat-toggle {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #111, #333);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: 0.3s;
}

#chat-toggle:hover {
  transform: scale(1.05);
}

/* ОКНО */
#chat-box {
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  animation: slideUp 0.25s ease;
}

/* HEADER */
#chat-header {
  background: linear-gradient(135deg, #111, #444);
  color: white;
  padding: 12px 14px;
  font-weight: bold;
  font-size: 14px;
}

/* MESSAGES */
#messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  background: #f7f7f8;
}

/* USER MESSAGE */
.user-msg {
  background: #111;
  color: white;
  padding: 8px 10px;
  border-radius: 12px;
  margin: 6px 0;
  max-width: 80%;
  align-self: flex-end;
}

/* AI MESSAGE */
.ai-msg {
  background: #fff;
  color: #111;
  padding: 8px 10px;
  border-radius: 12px;
  margin: 6px 0;
  max-width: 80%;
  border: 1px solid #eee;
}

/* INPUT AREA */
#chat-input {
  display: flex;
  border-top: 1px solid #eee;
  background: #fff;
}

#chat-input input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
  font-size: 14px;
}

#chat-input button {
  width: 50px;
  border: none;
  background: #111;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

#chat-input button:hover {
  background: #333;
}

/* ANIMATION */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}/* End custom CSS */