/* WooPlus AI chat styles */
/* Chat widget icon container */
.wooplus-ai-widget {
  position: fixed;
  bottom: 80px; /* raise icon above nav bars */
  left: 20px;
  z-index: 9999;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #ffffff;
  /* Add a soft black shadow around the circle */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
/* Chat panel that slides open */
.wooplus-ai-panel {
  position: fixed;
  bottom: 150px; /* position above the icon to avoid overlapping on mobile */
  left: 20px;
  z-index: 10000;
  width: 320px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
}
.wooplus-ai-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wooplus-ai-close {
  font-size: 20px;
  cursor: pointer;
}
/* Message bubbles */
.ai-user-msg {
  background: #e9f5ff;
  padding: 6px 8px;
  border-radius: 4px;
}
.ai-assistant-msg {
  background: #f8f9fa;
  padding: 6px 8px;
  border-radius: 4px;
}

/* Style hyperlinks inside assistant messages for better visibility */
.ai-assistant-msg a {
  color: #0d6efd;
  text-decoration: underline;
  pointer-events: auto;
}

/* Improve spacing and appearance of user info form */
.wooplus-ai-user-info input {
  margin-bottom: 8px;
}
.wooplus-ai-user-info button {
  width: 100%;
  margin-bottom: 10px;
}

/* Style chat input group for a cleaner look */
.wooplus-ai-chat-section .input-group {
  border: 1px solid #ced4da;
  border-radius: 5px;
  overflow: hidden;
}
.wooplus-ai-chat-section .input-group input.form-control {
  border: none;
  box-shadow: none;
}
.wooplus-ai-chat-section .input-group button.btn {
  border: none;
  border-radius: 0;
}