
/* === Reset base === */
#ihfy-chat-wrapper {
  font-family: 'Poppins', sans-serif !important;
  max-width: 700px !important;
  margin: 40px auto 0 !important;
  background: #fff !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08) !important;
  padding: 20px !important;
  border-radius: 16px !important;
}

/* === Chat Header === */
#ihfy-chat-wrapper h2 {
  font-size: 1.6rem !important;
  margin-bottom: 10px !important;
  color: #222 !important;
}

/* === Message Bubbles === */
#ihfy-chat-wrapper .message-wrapper {
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: flex-start !important;
}

#ihfy-chat-wrapper .message-wrapper.user {
  justify-content: flex-end !important;
}

#ihfy-chat-wrapper .bubble-container {
  max-width: 80% !important;
}

#ihfy-chat-wrapper .luma-avatar {
  width: 40px !important;
  height: 40px !important;
  margin-right: 10px !important;
  border-radius: 50% !important;
}

#ihfy-chat-wrapper .user-bubble,
#ihfy-chat-wrapper .luma-bubble {
  padding: 12px 16px !important;
  border-radius: 18px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

#ihfy-chat-wrapper .luma-bubble {
  background: #edf6ff !important;
  color: #222 !important;
  border: 1px solid #cce5ff !important;
}

#ihfy-chat-wrapper .user-bubble {
  background: #d0e6ff !important;
  color: #000 !important;
  text-align: right !important;
}

/* === Input + Send Button === */
#ihfy-chat-wrapper #ihfy-user-input {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 30px !important;
  border: 1px solid #ccc !important;
  margin-bottom: 10px !important;
}

#ihfy-chat-wrapper #ihfy-send-btn {
  background: #4bbccf !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  color: #fff !important;
  font-weight: bold !important;
  cursor: pointer !important;
}

#ihfy-chat-wrapper #ihfy-send-btn:hover {
  background: #3ca6b8 !important;
}

/* === Preset buttons === */
#ihfy-chat-wrapper .ihfy-preset-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 15px 0 !important;
}

#ihfy-chat-wrapper .ihfy-preset-buttons button {
  background-color: #1f9fae !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
}

#ihfy-chat-wrapper .ihfy-preset-buttons button:hover {
  background-color: #158b97 !important;
}

/* === Feedback === */
#ihfy-chat-wrapper .ihfy-feedback {
  margin-top: 6px !important;
  font-size: 0.85rem !important;
  color: #555 !important;
}

/* === Typing indicator === */
#ihfy-chat-wrapper #ihfy-typing {
  font-size: 0.85rem !important;
  font-style: italic !important;
  color: #999 !important;
}

/* === Disclaimer === */
#ihfy-chat-wrapper #ihfy-disclaimer {
  font-size: 0.75rem !important;
  color: #666 !important;
  margin-top: 20px !important;
  text-align: center !important;
}

/* === Responsive === */
@media (max-width: 600px) {
  #ihfy-chat-wrapper {
    margin: 20px !important;
    padding: 16px !important;
  }

  #ihfy-chat-wrapper .bubble-container {
    max-width: 100% !important;
  }
}
