/* jks-faq-widget.css */

/* JKS Advisory primary color */
:root {
  --jks-primary: #1e3a8a;
}

/* Bubble */
#jks-faq-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--jks-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: background-color .2s ease;
}
#jks-faq-bubble:hover {
  background-color: rgba(30,58,138,.85);
}

/* Panel */
#jks-faq-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 500px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
#jks-faq-panel.open {
  display: flex;
}

/* Header */
#jks-faq-panel .header {
  background-color: var(--jks-primary);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 16px;
}

/* Body */
#jks-faq-panel .body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

/* Input */
#jks-faq-panel .input-wrapper {
  display: flex;
  border-top: 1px solid #eee;
}
#jks-faq-panel input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}
#jks-faq-panel button.send {
  background-color: var(--jks-primary);
  color: #fff;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .2s ease;
}
#jks-faq-panel button.send:hover {
  background-color: rgba(30,58,138,.85);
}

/* Suggestion buttons area */
#faq-suggestions {
  padding: 10px;
  font-size: 12px;
}
.faq-btn {
  background: #eef2f7;
  border: 1px solid #c5d0e0;
  padding: 6px 10px;
  margin: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background .15s ease;
}
.faq-btn:hover {
  background: #dde4f0;
}
