/* ABI Chat Widget */
#abi-chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 99999; font-family: 'DM Sans', sans-serif; }

#abi-chat-toggle {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1E6F78 0%, #155a62 100%);
  color: #fff; border: none; border-radius: 9999px;
  padding: 14px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 20px rgba(30,111,120,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#abi-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,111,120,0.45); }
.abi-bubble-icon { font-size: 18px; }

#abi-chat-panel {
  position: absolute; bottom: 72px; right: 0;
  width: 360px; background: #fff;
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid #e5e7eb; overflow: hidden;
  transform: scale(0.9) translateY(10px); opacity: 0;
  pointer-events: none; transform-origin: bottom right;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#abi-chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.abi-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: linear-gradient(135deg, #1E6F78 0%, #155a62 100%);
}
.abi-chat-avatar {
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.abi-chat-name { color: #fff; font-weight: 700; font-size: 15px; }
.abi-chat-status { color: rgba(255,255,255,0.7); font-size: 12px; }
.abi-chat-meta { flex: 1; }
.abi-chat-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 16px; padding: 4px; transition: color 0.15s; }
.abi-chat-close:hover { color: #fff; }

.abi-chat-messages {
  height: 280px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.abi-msg { max-width: 85%; }
.abi-msg.abi { align-self: flex-start; }
.abi-msg.user { align-self: flex-end; }
.abi-msg p {
  margin: 0; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.55;
}
.abi-msg.abi p { background: #f3f4f6; color: #222; border-bottom-left-radius: 4px; }
.abi-msg.user p { background: #1E6F78; color: #fff; border-bottom-right-radius: 4px; }
.abi-msg.abi.typing p { color: #999; font-style: italic; }

.abi-chat-suggestions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 12px;
}
.abi-suggestion {
  background: none; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 6px 12px; font-size: 12px; color: #555; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.abi-suggestion:hover { border-color: #1E6F78; color: #1E6F78; background: #e8f4f5; }

.abi-chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
}
#abi-input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 10px 16px; font-size: 14px; outline: none;
  font-family: 'DM Sans', sans-serif; color: #222;
  transition: border-color 0.2s;
}
#abi-input:focus { border-color: #1E6F78; }
#abi-send {
  width: 38px; height: 38px; border-radius: 9999px;
  background: #1E6F78; color: #fff; border: none;
  cursor: pointer; font-size: 16px; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
#abi-send:hover { background: #155a62; transform: scale(1.05); }

@media (max-width: 480px) {
  #abi-chat-panel { width: calc(100vw - 32px); right: -8px; }
}
