#up-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #056839;
  color: #fff;
  font-size: 20px;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

#up-chatbot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

#up-header {
  background: #056839;
  color: #fff;
  padding: 12px;
  font-weight: bold;
}

#up-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.up-msg {
  margin-bottom: 10px;
  font-size: 14px;
}

.up-user { text-align: right; }
.up-bot { text-align: left; color: #333; }

#up-input {
  display: flex;
  border-top: 1px solid #ddd;
}

#up-input input {
  flex: 1;
  padding: 10px;
  border: none;
}

#up-input button {
  background: #056839;
  color: #fff;
  border: none;
  padding: 0 16px;
}

#up-quick-buttons {
  padding: 6px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

#up-quick-buttons button {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  color: #000;
}

/* Bot message with avatar */
.up-bot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.up-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Typing indicator */
.up-typing {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 4px;
}

.up-dot {
  animation: blink 1.4s infinite both;
}

.up-dot:nth-child(2) { animation-delay: .2s; }
.up-dot:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

/* Disable state */
#up-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
