#chat-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  overflow: hidden;
  z-index: 999999;
}

#chat-header {
  background: #4a90e2;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header button {
background: none; border: none; color: white; cursor: pointer; font-size: 14px; margin: 0px; padding: 0px 10px;
}

#chat-messages {
  max-height: 300px;
  min-height:300px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  animation: slideUp 0.3s ease;
  line-height:1.5em;
}

.user-message {
  align-self: flex-end;
  background: #dcf8c6;
}

.ai-message {
  align-self: flex-start;
  background: #f1f0f0;
}

#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input input {
flex: 1; padding: 0px 10px; border: none; outline: none; margin: 0px;
}

#chat-input button {
background: #4a90e2; color: white; border: none; padding: 0px 15px; cursor: pointer; margin: 0px; border-radius: 0px !important;
}

#open-chat {
position: fixed; bottom: 20px; right: 20px; background: #4a90e2; color: white; border: none; padding: 15px; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin: 0px; bottom: 50%; z-index: 99999; margin: 0px; padding: 0px; width: 60px; height: 60px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}