/* Rise-inspired live help widget (gold accent, bottom-right) */
.lh-root{
  --lh-gold:#c9a24a;
  --lh-gold-deep:#a8842e;
  --lh-gold-soft:#e2c87a;
  --lh-ink:#1a1712;
  --lh-panel:#ffffff;
  --lh-muted:#8a8478;
  --lh-border:rgba(26,23,18,.12);
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:9999;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
.lh-fab{
  width:58px;height:58px;border-radius:50%;
  border:none;cursor:pointer;
  background:linear-gradient(145deg,var(--lh-gold-soft),var(--lh-gold-deep));
  color:#fff;
  box-shadow:0 8px 24px rgba(168,132,46,.45);
  display:flex;align-items:center;justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.lh-fab:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(168,132,46,.55);}
.lh-fab svg{width:26px;height:26px;fill:currentColor;}
.lh-fab-badge{
  position:absolute;top:-2px;right:-2px;
  min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:#c0392b;color:#fff;
  font-size:11px;font-weight:700;line-height:18px;text-align:center;
  display:none;
}
.lh-fab.has-badge .lh-fab-badge{display:block;}

.lh-panel{
  display:none;
  position:absolute;right:0;bottom:70px;
  width:min(360px,calc(100vw - 24px));
  height:min(520px,calc(100vh - 100px));
  background:var(--lh-panel);
  border-radius:14px 14px 8px 8px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  color:var(--lh-ink);
  flex-direction:column;
}
.lh-root.is-open .lh-panel{display:flex;}

.lh-head{
  background:linear-gradient(135deg,var(--lh-gold),var(--lh-gold-deep));
  color:#fff;
  padding:14px 16px;
  display:flex;align-items:center;gap:10px;
  flex-shrink:0;
}
.lh-head-title{flex:1;font-weight:700;font-size:15px;letter-spacing:.02em;}
.lh-head button{
  background:transparent;border:none;color:#fff;cursor:pointer;
  width:32px;height:32px;border-radius:6px;font-size:18px;line-height:1;
}
.lh-head button:hover{background:rgba(255,255,255,.15);}

.lh-body{flex:1;overflow:auto;padding:14px;background:#f7f5f0;}
.lh-msg{
  display:flex;gap:8px;margin-bottom:12px;align-items:flex-end;
}
.lh-msg.me{flex-direction:row-reverse;}
.lh-avatar{
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:var(--lh-gold);color:#fff;font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.lh-msg.me .lh-avatar{background:#3d3a34;}
.lh-bubble-wrap{max-width:78%;}
.lh-name{font-size:11px;color:var(--lh-muted);margin-bottom:3px;}
.lh-bubble{
  padding:10px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;
  background:#fff;border:1px solid var(--lh-border);color:var(--lh-ink);
  white-space:pre-wrap;word-break:break-word;
}
.lh-msg.staff .lh-bubble{
  background:var(--lh-gold);color:#fff;border-color:transparent;
}
.lh-msg.me .lh-bubble{
  background:#2c2a26;color:#f5f0e6;border-color:transparent;
}

.lh-login,.lh-empty{
  text-align:center;padding:28px 12px;color:var(--lh-muted);font-size:14px;
}
.lh-login a,.lh-empty a{
  color:var(--lh-gold-deep);font-weight:700;text-decoration:none;
}
.lh-login a:hover{text-decoration:underline;}

.lh-inbox{padding:8px 0;}
.lh-inbox-item{
  width:100%;text-align:left;border:1px solid var(--lh-border);
  background:#fff;border-radius:8px;padding:10px 12px;margin-bottom:8px;
  cursor:pointer;font:inherit;color:inherit;
}
.lh-inbox-item:hover{border-color:var(--lh-gold);}
.lh-inbox-item strong{display:block;font-size:13px;}
.lh-inbox-item span{font-size:11px;color:var(--lh-muted);}

.lh-foot{
  border-top:1px solid var(--lh-border);
  padding:10px 12px;background:#fff;flex-shrink:0;
}
.lh-foot form{display:flex;gap:8px;align-items:flex-end;}
.lh-foot textarea{
  flex:1;resize:none;min-height:40px;max-height:90px;
  border:1px solid var(--lh-border);border-radius:8px;
  padding:8px 10px;font:inherit;font-size:13px;color:var(--lh-ink);
  outline:none;
}
.lh-foot textarea:focus{border-color:var(--lh-gold);}
.lh-send{
  border:none;border-radius:8px;padding:10px 14px;cursor:pointer;
  background:var(--lh-gold);color:#fff;font-weight:700;font-size:13px;
}
.lh-send:disabled{opacity:.5;cursor:not-allowed;}
.lh-powered{
  text-align:center;font-size:10px;color:var(--lh-muted);margin-top:6px;
}

.lh-staff-bar{
  display:none;padding:8px 12px;background:#fff8e8;border-bottom:1px solid var(--lh-border);
  font-size:12px;gap:8px;align-items:center;flex-shrink:0;
}
.lh-root.is-staff .lh-staff-bar{display:flex;}
.lh-staff-bar button{
  border:1px solid var(--lh-gold);background:#fff;color:var(--lh-gold-deep);
  border-radius:6px;padding:4px 8px;cursor:pointer;font-size:11px;font-weight:600;
}

@media (max-width:480px){
  .lh-root{right:12px;bottom:12px;}
  .lh-panel{bottom:66px;height:min(70vh,560px);}
}
