/* Javed Legal Hub — public chat widget (v1)
   SHC-green house theme: #14532d headers, #5c9e1f buttons.
   Load: <link rel="stylesheet" href="/assets/chat-widget/chat-widget.css">
   Works standalone — no framework needed. */

#jlh-chat-btn {
  position: fixed; right: 20px; bottom: 90px; z-index: 9998;
  width: 60px; height: 60px; border: none; border-radius: 50%;
  background: #14532d; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
#jlh-chat-btn:hover { background: #0d3d20; }

#jlh-chat-panel {
  position: fixed; right: 20px; bottom: 160px; z-index: 9999;
  width: 360px; max-width: calc(100vw - 40px); height: 500px; max-height: 70vh;
  background: #fff; border: 2px solid #14532d; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); display: none; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; overflow: hidden;
}
#jlh-chat-panel.jlh-open { display: flex; }

#jlh-chat-head {
  background: #14532d; color: #fff; padding: 12px 14px;
}
#jlh-chat-head strong { display: block; font-size: 16px; }
#jlh-chat-head span { font-size: 12px; opacity: .9; }
#jlh-chat-close {
  float: right; background: none; border: none; color: #fff;
  font-size: 20px; cursor: pointer; line-height: 1;
}

#jlh-chat-log { flex: 1; overflow-y: auto; padding: 12px; background: #f7faf7; }
.jlh-msg { margin: 0 0 10px; padding: 9px 11px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.jlh-user { background: #14532d; color: #fff; margin-left: 40px; }
.jlh-bot { background: #fff; border: 1px solid #cfe3d2; margin-right: 20px; }
.jlh-bot small { display: block; margin-top: 8px; padding-top: 6px;
  border-top: 1px solid #e2e8e3; font-size: 11px; color: #555; }
.jlh-bot small a { color: #14532d; }
.jlh-typing { color: #555; font-style: italic; }

#jlh-chat-form { display: flex; border-top: 1px solid #ddd; }
#jlh-chat-input {
  flex: 1; border: none; padding: 12px; font-size: 14px; outline: none;
  font-family: inherit;
}
#jlh-chat-send {
  border: none; background: #5c9e1f; color: #fff; padding: 0 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
#jlh-chat-send:hover { background: #4a8418; }
#jlh-chat-send:disabled { opacity: .5; cursor: default; }

#jlh-chat-foot {
  padding: 7px 12px; font-size: 11px; color: #555; background: #eef4ee;
  border-top: 1px solid #ddd;
}
#jlh-chat-foot a { color: #14532d; }

@media (max-width: 480px) {
  #jlh-chat-panel { right: 10px; bottom: 150px; width: calc(100vw - 20px); }
  #jlh-chat-btn { right: 14px; bottom: 84px; }
}
