/* chat-widget.css - De Laadpaal Man */

#chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

#chat-fab{
  width: 58px; height: 58px; border-radius: 999px; border: none;
  background: #1f8f4a; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: grid; place-items: center;
  padding: 0;
}
#chat-fab img{ width: 34px; height: 34px; display:block; }

#chat-panel{
  position: absolute; right: 0; bottom: 72px;
  width: 360px; height: 560px;
  background: #fff; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
#chat-panel.hidden{ display: none; }

#chat-header{
  display:flex; align-items:center; justify-content: space-between;
  padding: 12px 12px;
  background: #1f8f4a; color:#fff;
}
#chat-header .title{ font-weight: 800; letter-spacing: .2px; }
#chat-close{
  width: 34px; height: 34px;
  border:none; border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color:#fff; font-size: 16px; cursor:pointer;
}
#chat-close:hover{ background: rgba(255,255,255,0.26); }

#chat-messages{
  flex: 1; overflow:auto; padding: 12px;
  display:flex; flex-direction:column; gap:10px;
}

/* Messages */
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; line-height: 1.35; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.msg.bot { align-self: flex-start; background: #f5f7f8; color: #111; }
.msg.user { align-self: flex-end; background: #e6f6ec; color: #111; }

/* Buttons (quick replies) */
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(0,0,0,0.12); background: #fff; border-radius: 999px; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.chip:hover { filter: brightness(0.98); }

/* Inline input rows used by the flow */
.input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-row input { flex: 1; min-width: 180px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15); font-size: 14px; }
.input-row .send { padding: 10px 12px; border-radius: 12px; border: none; background: #1f8f4a; color: #fff; cursor: pointer; }
.input-error { width: 100%; font-size: 12px; color: #b00020; margin-top: 6px; }

/* Bottom chat input (free questions) */
#chat-form{
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 10px;
  display:flex; gap: 8px;
  background: #fff;
}
#chat-text{
  flex: 1; padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
}
#chat-send{
  padding: 10px 12px; border-radius: 12px; border: none;
  background: #1f8f4a; color:#fff; cursor:pointer;
}

/* Mobile */
@media (max-width: 480px){
  #chat-panel{ width: min(92vw, 380px); height: min(72vh, 560px); }
}
