/* ── Minty Chat Widget ─────────────────────────────────────── */
.minty-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43b581, #2d8f63);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 9998;
  transition: transform .2s, box-shadow .2s;
}
.minty-chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* ── Chat Window ─────────────────────────────────────────── */
.minty-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 480px;
  background: #1e1e2e;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  display: none;          /* toggled via JS */
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.minty-chat-window.open { display: flex; }

/* Header */
.minty-chat-header {
  background: linear-gradient(135deg, #43b581, #2d8f63);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.minty-chat-header span { flex: 1; }
.minty-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* Messages area */
.minty-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 320px;
}

.minty-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
}
.minty-msg.bot {
  background: #2a2a3d;
  color: #d4d4d4;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.minty-msg.user {
  background: #43b581;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.minty-msg.typing {
  font-style: italic;
  opacity: .6;
}

/* Starter chips */
.minty-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  background: #1e1e2e;
}
.minty-starter {
  background: #2a2a3d;
  color: #d4d4d4;
  border: 1px solid #3a3a4d;
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
  line-height: 1.2;
}
.minty-starter:hover {
  background: #43b581;
  border-color: #43b581;
  color: #fff;
}

/* Input bar */
.minty-chat-input-wrap {
  display: flex;
  border-top: 1px solid #333;
  background: #1a1a2a;
}
.minty-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #e0e0e0;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
.minty-chat-input::placeholder { color: #666; }
.minty-chat-send {
  background: #43b581;
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.minty-chat-send:hover { background: #2d8f63; }
.minty-chat-send:disabled { opacity: .4; cursor: default; }

/* Mobile */
@media (max-width: 480px) {
  .minty-chat-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 80px;
    max-height: 60vh;
  }
  .minty-chat-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
}
