:root{
  --brand-brown:#663d29;
  --brand-accent:#b97c5d;
  --soft-bg:#fff7ef;
  --bubble-bot:#f7efe9;
  --bubble-user:#e8f1ff;
  --border:#eadfd8;
  --text:#2d2d2d;
}

/* launcher */
.chatbot-button{
  position:fixed; right:22px; bottom:22px; z-index:9999;
  width:64px; height:64px; border-radius:50%;
  background:var(--brand-brown);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 20px rgba(0,0,0,.18);
  cursor:pointer; transition:transform .12s ease, box-shadow .12s ease;
}
.chatbot-button:hover{ transform:translateY(-2px); box-shadow:0 12px 22px rgba(0,0,0,.22); }
.chatbot-button img{ width:40px; height:40px; }

/* window */
.chatbot-window{
  position:fixed; right:22px; bottom:100px; z-index:9999;
  width:360px; max-height:70vh; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--border); border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.22); overflow:hidden;
}
@media (max-width:600px){
  .chatbot-window{ right:10px; left:10px; width:auto; bottom:90px; }
}
.d-none{ display:none !important; }

/* header */
.chat-header{
  background:var(--soft-bg); border-bottom:1px solid #f0e6df;
  padding:12px 14px; display:flex; align-items:center; justify-content:space-between;
}
.chat-title-group{ display:flex; gap:10px; align-items:center; }
.chat-avatar{
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--border);
}
.chat-title{ font-weight:700; color:var(--brand-brown); line-height:1.1; }
.chat-subtitle{ font-size:.85rem; color:#6f6f6f; }
.icon-btn{
  border:none; background:transparent; cursor:pointer; font-size:18px; line-height:1;
  padding:6px 8px; color:#7b7b7b; border-radius:8px;
}
.icon-btn:hover{ background:#f2ebe6; color:#333; }

/* body */
.chat-body{
  padding:14px; overflow-y:auto; display:flex; flex-direction:column; gap:8px;
}
.chat-message{ display:flex; }
.chat-message .bubble{
  max-width:85%; padding:10px 12px; border-radius:12px; line-height:1.35; color:var(--text);
  box-shadow:0 1px 0 rgba(0,0,0,.05);
}
.chat-message.bot .bubble{ background:var(--bubble-bot); border:1px solid #efdfd5; }
.chat-message.user{ justify-content:flex-end; }
.chat-message.user .bubble{ background:var(--bubble-user); border:1px solid #d0e3ff; }

.chat-suggestions{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 10px; }
.chip{
  border:1px solid #e7d7cf; background:#fff; color:#403a36;
  border-radius:999px; padding:6px 10px; font-size:.85rem; cursor:pointer;
}
.chip:hover{ background:#fbf6f2; }

/* footer */
.chat-footer{ border-top:1px solid #f0e6df; background:#fff; padding:8px; }
#chatForm{ display:flex; gap:8px; }
#userInput{
  flex:1; padding:10px 12px; border:1px solid #e4d9d2; border-radius:10px; outline:none;
}
#userInput:focus{ border-color:var(--brand-accent); box-shadow:0 0 0 3px rgba(185,124,93,.15); }
.send-btn{
  background:var(--brand-brown); color:#fff; border:none; padding:10px 14px;
  border-radius:10px; cursor:pointer; font-weight:600;
}
.send-btn:hover{ filter:brightness(.95); }

/* typing */
.typing{ display:flex; align-items:center; gap:6px; padding:6px 2px 2px; color:#666; font-size:.85rem; }
.dot{ width:6px; height:6px; border-radius:50%; background:#aaa; display:inline-block; animation:blink 1.2s infinite; }
.dot:nth-child(2){ animation-delay:.2s; } .dot:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{opacity:.2} 40%{opacity:1} }
