/* ---- FAQ help bot (bottom-left) ---- */
.faq-bot {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 850;
  font-family: inherit;
}

.faq-bot__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq-bot__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.45);
}

.faq-bot__toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.faq-bot__panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, 70dvh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.faq-bot--open .faq-bot__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.faq-bot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
}

.faq-bot__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.faq-bot__head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

.faq-bot__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.faq-bot__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.faq-bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  max-height: 120px;
  overflow-y: auto;
}

.faq-bot__chip {
  padding: 0.35rem 0.65rem;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.faq-bot__chip:hover {
  background: #ccfbf1;
  border-color: #5eead4;
}

.faq-bot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 140px;
  background: #f8fafc;
}

.faq-bot__msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.faq-bot__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-bottom-left-radius: 4px;
}

.faq-bot__msg--user {
  align-self: flex-end;
  background: #0d9488;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.faq-bot__msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.faq-bot__msg--bot a {
  color: #0f766e;
}

.faq-bot__foot {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #fff;
}

.faq-bot__foot-btn {
  flex: 1;
  min-width: calc(50% - 0.25rem);
  padding: 0.45rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.faq-bot__foot-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.faq-bot__foot-btn--primary {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.faq-bot__foot-btn--primary:hover {
  background: #ffedd5;
}

@media (max-width: 480px) {
  .faq-bot {
    bottom: 1rem;
    left: 1rem;
  }

  .faq-bot__toggle-label {
    display: none;
  }

  .faq-bot__toggle {
    width: 3rem;
    height: 3rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .faq-bot__panel {
    width: calc(100vw - 2rem);
    max-height: 65dvh;
  }
}
