.faq-chatbot{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:10000;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.faq-chatbot.has-back-to-top{
  bottom:88px;
}
.faq-chatbot *{box-sizing:border-box}
.faq-chatbot__launcher{
  width:58px;
  height:58px;
  border:0;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#12095d;
  color:#fff;
  box-shadow:0 16px 36px rgba(18,9,93,.28);
  cursor:pointer;
}
.faq-chatbot__launcher i{font-size:22px}
.faq-chatbot__panel{
  position:absolute;
  right:0;
  bottom:74px;
  width:min(380px,calc(100vw - 28px));
  height:min(560px,calc(100vh - 128px));
  max-height:calc(100vh - 128px);
  display:none;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  overflow:hidden;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}
.faq-chatbot.has-back-to-top .faq-chatbot__panel{
  height:min(520px,calc(100vh - 196px));
  max-height:calc(100vh - 196px);
}
.faq-chatbot.is-open .faq-chatbot__panel{display:grid}
.faq-chatbot__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  background:#f8fbff;
  border-bottom:1px solid #e8eef8;
}
.faq-chatbot__eyebrow{
  display:block;
  color:#6b7280;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.faq-chatbot__header h2{
  margin:2px 0 0;
  color:#12095d;
  font-size:18px;
  line-height:1.15;
}
.faq-chatbot__close{
  width:36px;
  height:36px;
  border:1px solid #dbe3ef;
  border-radius:10px;
  background:#fff;
  color:#1f2937;
  cursor:pointer;
}
.faq-chatbot__messages{
  padding:14px;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:0;
  background:#fbfcff;
}
.faq-chatbot__message{
  display:block;
  width:fit-content;
  max-width:88%;
  margin:0 0 10px;
  padding:10px 12px;
  border-radius:14px;
  line-height:1.45;
  font-size:14px;
  white-space:pre-wrap;
  max-height:none;
  overflow:visible;
  overflow-wrap:anywhere;
}
.faq-chatbot__message--bot{
  background:#fff;
  color:#263244;
  border:1px solid #e5e7eb;
  border-top-left-radius:6px;
}
.faq-chatbot__message--user{
  margin-left:auto;
  background:#12095d;
  color:#fff;
  border-top-right-radius:6px;
}
.faq-chatbot__message--typing{
  color:#6b7280;
}
.faq-chatbot__quick{
  display:flex;
  gap:8px;
  padding:10px 14px;
  overflow-x:auto;
  border-top:1px solid #edf1f7;
  background:#fff;
}
.faq-chatbot__quick button{
  flex:0 0 auto;
  border:1px solid #dbe3ef;
  background:#fff;
  color:#12095d;
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.faq-chatbot__form{
  display:grid;
  grid-template-columns:1fr 42px;
  gap:8px;
  padding:12px;
  border-top:1px solid #edf1f7;
  background:#fff;
}
.faq-chatbot__form textarea{
  width:100%;
  max-height:92px;
  resize:none;
  border:1px solid #dbe3ef;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  line-height:1.35;
  outline:none;
}
.faq-chatbot__form textarea:focus{
  border-color:#12095d;
  box-shadow:0 0 0 3px rgba(18,9,93,.12);
}
.faq-chatbot__form button{
  border:0;
  border-radius:12px;
  background:#12095d;
  color:#fff;
  cursor:pointer;
}
.faq-chatbot__form button:disabled{
  opacity:.65;
  cursor:not-allowed;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media (max-width:560px){
  .faq-chatbot{right:14px;bottom:14px}
  .faq-chatbot.has-back-to-top{bottom:82px}
  .faq-chatbot__panel{
    position:fixed;
    top:14px;
    right:14px;
    bottom:84px;
    left:14px;
    width:auto;
    height:auto;
    max-height:none;
  }
  .faq-chatbot.has-back-to-top .faq-chatbot__panel{
    top:14px;
    right:14px;
    bottom:152px;
    left:14px;
    max-height:none;
  }
}
