/* DST Chatbot — Mẫu A "Hiện đại": header gradient teal, avatar tròn,
 * bong bóng bo mềm, nút gửi tròn cam. */
#dst-chatbot-toggle {
  position: fixed; right: 20px; bottom: 24px; z-index: 1000;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #0e7c7b, #0a5e5d); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 124, 123, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
#dst-chatbot-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 124, 123, .45); }
#dst-chatbot-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 1000;
  width: 360px; max-width: calc(100vw - 32px);
  max-height: 520px; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  display: none; flex-direction: column; overflow: hidden;
  font-family: inherit; font-size: 14px; line-height: 1.55; color: #222;
}
#dst-chatbot-panel.open { display: flex; animation: dst-chat-in .25s ease; }
@keyframes dst-chat-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dst-chat-head {
  background: linear-gradient(135deg, #0e7c7b, #0a5e5d); color: #fff;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.dst-chat-brand { display: flex; align-items: center; gap: 11px; }
.dst-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  color: #0e7c7b; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dst-chat-head strong { display: block; font-size: 15px; line-height: 1.3; }
.dst-chat-head span { font-size: 12px; color: rgba(255, 255, 255, .85); }
.dst-chat-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; margin-right: 5px;
}
.dst-chat-close {
  background: none; border: 0; color: #fff; font-size: 24px; opacity: .85;
  cursor: pointer; line-height: 1; padding: 0 2px;
}
.dst-chat-close:hover { opacity: 1; }
.dst-chat-messages { flex: 1; overflow-y: auto; padding: 14px; min-height: 180px; background: #fafcfc; }
.dst-chat-msg { margin-bottom: 12px; display: flex; }
.dst-chat-msg.user { justify-content: flex-end; }
.dst-chat-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px; border-bottom-left-radius: 4px;
  background: #fff; border: 1px solid #edf2f2; box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  white-space: pre-wrap; word-break: break-word;
}
.dst-chat-msg.user .dst-chat-bubble {
  background: linear-gradient(135deg, #0e7c7b, #0a5e5d); color: #fff; border: 0;
  border-radius: 16px; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(14, 124, 123, .3);
}
.dst-chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 4px; background: #fff; }
.dst-chat-quick button {
  border: 1px solid #0e7c7b; background: #f0f7f7; color: #0e7c7b;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dst-chat-quick button:hover { background: #0e7c7b; color: #fff; }
.dst-chat-form {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #eef2f2; background: #fff;
}
.dst-chat-form input {
  flex: 1; border: 0; background: #f3f7f7; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; outline: none; min-width: 0;
}
.dst-chat-form input:focus { background: #edf4f4; }
.dst-chat-send {
  width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: #f97316; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .35);
  transition: transform .15s ease, background .15s ease;
}
.dst-chat-send:hover { background: #ea6a0e; transform: scale(1.05); }
.dst-chat-foot {
  display: flex; justify-content: space-around; padding: 10px 0;
  border-top: 1px solid #eef2f2; font-size: 13px; background: #fff;
}
.dst-chat-foot a { color: #0e7c7b; text-decoration: none; font-weight: 700; }
@media (max-width: 767px) {
  #dst-chatbot-toggle { bottom: 76px; }
  #dst-chatbot-panel { bottom: 140px; right: 12px; max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
  #dst-chatbot-toggle, #dst-chatbot-panel, #dst-chatbot-panel.open { animation: none; transition: none; }
}
