/* =====================================================
   Zephyr — chatbot.css
   Floating FAQ chatbot widget
   ===================================================== */

#exc-chat-launcher{
  position:fixed; right:22px; bottom:22px; z-index:800;
  width:58px; height:58px; border-radius:50%; border:none; cursor:pointer;
  background:var(--navy-900); color:var(--gold-300);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-2);
  transition:transform .25s ease, background .25s ease;
}
#exc-chat-launcher:hover{ transform:translateY(-3px); background:var(--navy-800); }
#exc-chat-launcher svg{ width:26px; height:26px; }
#exc-chat-launcher .exc-chat-bubble-icon{ animation:exc-chat-bob 3s ease-in-out infinite; }
@keyframes exc-chat-bob{
  0%, 100%{ transform:translateY(0) rotate(0); }
  50%{ transform:translateY(-3px) rotate(-5deg); }
}
#exc-chat-launcher .exc-chat-close-icon{ display:none; }
#exc-chat-launcher.open .exc-chat-bubble-icon{ display:none; }
#exc-chat-launcher.open .exc-chat-close-icon{ display:block; }

#exc-chat-badge{
  position:absolute; top:-4px; right:-4px; width:16px; height:16px; border-radius:50%;
  background:var(--gold-500); border:2px solid var(--paper);
}
#exc-chat-launcher.open #exc-chat-badge{ display:none; }
#exc-chat-badge{ animation:exc-chat-badge-pulse 2s ease-in-out infinite; }
@keyframes exc-chat-badge-pulse{
  0%, 100%{ transform:scale(1); }
  50%{ transform:scale(1.2); }
}

#exc-chat-panel{
  position:fixed; right:22px; bottom:92px; z-index:800;
  width:min(340px, calc(100vw - 44px)); max-height:min(480px, calc(100vh - 140px));
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow-2);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(16px) scale(.98);
  transform-origin:bottom right;
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}
#exc-chat-panel.open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }

.exc-chat-head{
  background:var(--navy-900); color:#fff; padding:16px 18px;
  display:flex; align-items:center; gap:10px; flex:none;
}
.exc-chat-head .exc-chat-avatar{
  width:34px; height:34px; border-radius:50%; background:var(--gold-500);
  display:flex; align-items:center; justify-content:center; font-family:'Cormorant Garamond', serif;
  font-weight:700; color:var(--navy-950); font-size:16px; flex:none;
}
.exc-chat-head-text{ line-height:1.25; }
.exc-chat-head-text strong{ display:block; font-size:14.5px; }
.exc-chat-head-text span{ font-size:12px; color:#cfd6ec; }

.exc-chat-body{
  flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:10px;
  background:var(--cream);
}
.exc-chat-msg{
  max-width:86%; font-size:13.5px; line-height:1.55; padding:10px 13px; border-radius:12px;
}
.exc-chat-msg.bot{
  background:var(--paper); color:var(--ink); align-self:flex-start; border-bottom-left-radius:4px;
  box-shadow:0 4px 14px -8px rgba(15,26,61,.25);
}
.exc-chat-msg.user{
  background:var(--navy-900); color:#fff; align-self:flex-end; border-bottom-right-radius:4px;
}

.exc-chat-chips{ display:flex; flex-direction:column; gap:8px; align-self:flex-start; max-width:100%; width:100%; }
.exc-chat-chip{
  text-align:left; background:var(--paper); border:1px solid var(--line); color:var(--navy-900);
  border-radius:10px; padding:9px 12px; font-size:13px; cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
}
.exc-chat-chip:hover{ border-color:var(--gold-500); background:#fffaf0; }

.exc-chat-foot{
  flex:none; padding:12px 14px; border-top:1px solid var(--line); background:var(--paper);
}
.exc-chat-foot a{
  display:block; text-align:center; font-size:12.5px; color:var(--gold-700); font-weight:500;
}

@media (max-width:480px){
  #exc-chat-panel{ right:14px; bottom:82px; }
  #exc-chat-launcher{ right:14px; bottom:14px; }
}

@media (prefers-reduced-motion: reduce){
  #exc-chat-launcher .exc-chat-bubble-icon,
  #exc-chat-badge{ animation:none; }
}
