/* Floating FAQ Chat styles */
.faqchat-float {
  position: fixed;
  bottom: 20px; /* below WhatsApp button */
  right: 30px;
  z-index: 9999;
  background: #1f6feb; /* blue like AI assistants */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.faqchat-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #1a63d6;
}

.faqchat-widget {
  position: fixed;
  right: 30px;
  bottom: 100px; /* opens above both floats */
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 2147483647; /* bring to very front; backdrop uses one less */
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.faqchat-widget.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.faqchat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 14px;
  background: linear-gradient(135deg, #1f6feb 0%, #39a5e5 100%);
  color: #fff;
}
.faqchat-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faqchat-title .dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}

.faqchat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.faqchat-actions .faqchat-wa img{
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.faqchat-actions .faqchat-wa:hover img{ opacity: 1; }
.faqchat-close{
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.faqchat-close:hover{
  background: rgba(255,255,255,.28);
}

.faqchat-body {
  padding: 12px;
  background: #f8fafc;
}
.faqchat-messages {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}
.faqchat-msg {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.35;
  max-width: 85%;
}
.faqchat-msg.agent { background: #ffffff; border: 1px solid #e5e7eb; }
.faqchat-msg.user { background: #dbeafe; border: 1px solid #bfdbfe; margin-left: auto; display: block; }

.faqchat-suggestions{
  margin-top: 8px;
}
.faqchat-suggestions-title{
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  margin: 6px 0 8px 2px;
  letter-spacing: .04em;
}
.faqchat-suggestions-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.faqchip{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.faqchip:hover{ background: #f1f5f9; border-color: #cbd5e1; transform: translateY(-1px); }

.faqchat-more{
  margin-top: 8px;
  background: none;
  border: none;
  color: #1f6feb;
  font-weight: 600;
}

@media (max-width: 576px){
  .faqchat-float{ bottom: 16px; right: 18px; z-index: 2147483640; }
  .faqchat-widget{ right: 10px; left: 10px; width: auto; bottom: 120px; z-index: 2147483647; }
}
