/* EMADI Assistant — floating chat widget. Matches the GOEMADI public site style:
   white/light surfaces, neutral grays, subtle borders, rounded corners, Inter type. */
.emadi-chat-btn{
  position:fixed;right:20px;bottom:20px;z-index:999;
  width:56px;height:56px;border-radius:50%;
  background:#fff;border:1.5px solid #E5E7EB;
  box-shadow:0 10px 30px rgba(18,18,18,.16);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:#121212;padding:0;
}
.emadi-chat-btn:hover{border-color:#D71920;color:#D71920}
.emadi-chat-btn svg{display:block}
.emadi-chat-panel{
  position:fixed;right:20px;bottom:88px;z-index:999;
  width:min(380px,calc(100vw - 32px));
  height:min(560px,calc(100dvh - 120px));
  background:#fff;border:1px solid #E5E7EB;border-radius:16px;
  box-shadow:0 18px 44px rgba(18,18,18,.18);
  display:none;flex-direction:column;overflow:hidden;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:#121212;
}
.emadi-chat-panel.open{display:flex}
.emadi-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;border-bottom:1px solid #E5E7EB;flex:0 0 auto;
}
.emadi-chat-head strong{display:block;font-size:15.5px;line-height:1.3}
.emadi-chat-head span{display:block;font-size:12.5px;color:#6B7280}
.emadi-chat-close{
  background:none;border:1px solid #E5E7EB;border-radius:8px;width:32px;height:32px;
  cursor:pointer;color:#3D434B;font-size:18px;line-height:1;padding:0;flex:0 0 auto;
}
.emadi-chat-msgs{
  flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;
}
.emadi-chat-msg{
  max-width:88%;padding:10px 13px;border-radius:12px;font-size:14.5px;line-height:1.5;
  word-wrap:break-word;
}
.emadi-chat-msg.assistant{background:#F3F4F6;color:#121212;align-self:flex-start}
.emadi-chat-msg.user{background:#121212;color:#fff;align-self:flex-end}
.emadi-chat-msg a{color:#D71920;font-weight:600}
.emadi-chat-msg.user a{color:#fff;text-decoration:underline}
.emadi-chat-typing{color:#6B7280;font-size:13.5px;font-style:italic;align-self:flex-start}
.emadi-chat-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.emadi-chat-chip{
  background:#fff;border:1.5px solid #E5E7EB;border-radius:999px;padding:7px 13px;
  font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;color:#121212;
}
.emadi-chat-chip:hover{border-color:#D71920;color:#D71920}
.emadi-chat-chip:disabled{opacity:.55;cursor:default}
.emadi-chat-privacy{
  padding:10px 16px 0;font-size:12px;line-height:1.45;color:#6B7280;flex:0 0 auto;
}
.emadi-chat-form{
  display:flex;gap:8px;padding:12px 16px 16px;border-top:1px solid #E5E7EB;flex:0 0 auto;
}
.emadi-chat-input{
  flex:1;min-width:0;font:inherit;font-size:14.5px;color:#121212;
  border:1.5px solid #E5E7EB;border-radius:10px;padding:11px 13px;background:#fff;
}
.emadi-chat-input:focus{outline:none;border-color:#D71920;box-shadow:0 0 0 3px rgba(215,25,32,.14)}
.emadi-chat-send{
  background:#D71920;color:#fff;border:2px solid transparent;border-radius:10px;
  padding:10px 16px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;flex:0 0 auto;
}
.emadi-chat-send:hover{background:#B3131A}
.emadi-chat-send:disabled{opacity:.65;cursor:wait}
@media (max-width:480px){
  .emadi-chat-btn{right:16px;bottom:16px}
  .emadi-chat-panel{right:16px;bottom:80px}
}
@media (prefers-reduced-motion:reduce){
  .emadi-chat-btn,.emadi-chat-panel,.emadi-chat-chip,.emadi-chat-send{transition:none !important}
}
