#mei-ai-bubble {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1500;
    cursor: pointer;
}

#mei-ai-bubble .mei-ai-bubble-inner {
    background: #003366;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;       /* fully rounded pill */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s ease;
}

#mei-ai-bubble i {
    font-size: 1rem;
}

#mei-ai-bubble:hover .mei-ai-bubble-inner {
    background: #004c99;
}

/* Slide-up panel for conversation */
#mei-ai-panel {
  position: fixed;
  bottom: 6rem;          /* just above the bubble */
  right: 1.5rem;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  display: none;         /* JS toggles this to flex */
  flex-direction: column;
  overflow: hidden;
  z-index: 1400;
}

#mei-ai-header {
  background: #003366;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#mei-ai-close {
  cursor: pointer;
  font-size: 18px;
}

#mei-ai-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f7f7f7;
  font-size: 13px;
}

.mei-ai-msg {
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  max-width: 85%;
}

.mei-ai-user {
  background: #d7ebff;
  margin-left: auto;
}

.mei-ai-bot {
  background: #ffffff;
  border: 1px solid #ddd;
  margin-right: auto;
}

#mei-ai-input-area {
  padding: 8px;
  border-top: 1px solid #ccc;
  display: flex;
  gap: 6px;
}

#mei-ai-input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #bbb;
}

#mei-ai-send {
  padding: 6px 12px;
}