/* v1.11 Hon Car Service chatbot. Everything is scoped under #hcs-bot. */
#hcs-bot{--hb-blue:#1E5AA8;--hb-blue-d:#0F3A6B;--hb-ink:#0A2540;--hb-ink2:#475569;--hb-line:#DCE8F5;--hb-bg:#F5F8FC;--hb-green:#0F8B4F;
  position:fixed;right:20px;bottom:20px;z-index:99990;font-family:inherit;font-size:15px;line-height:1.45;color:var(--hb-ink)}
#hcs-bot *{box-sizing:border-box}
#hcs-bot button{font-family:inherit}
#hcs-bot .hb-launch svg,#hcs-bot .hb-send svg{width:22px!important;height:22px!important;min-width:22px;flex:none;display:block}
#hcs-bot .hb-close svg{width:22px!important;height:22px!important;flex:none;display:block}
#hcs-bot .hb-launch{display:flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 16px;border:0;border-radius:999px;
  background:var(--hb-blue);color:#fff;box-shadow:0 8px 24px rgba(10,37,64,.28);cursor:pointer;font-size:15px;font-weight:600;margin-left:auto}
#hcs-bot .hb-launch:hover{background:var(--hb-blue-d)}
#hcs-bot .hb-launch:focus-visible,#hcs-bot button:focus-visible,#hcs-bot input:focus-visible,#hcs-bot a:focus-visible{outline:3px solid #8DB6F0;outline-offset:2px}
#hcs-bot.hb-open .hb-launch{display:none}
#hcs-bot .hb-panel{width:370px;height:min(580px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;border-radius:16px;
  box-shadow:0 18px 48px rgba(10,37,64,.25);overflow:hidden;border:1px solid var(--hb-line)}
#hcs-bot .hb-panel[hidden]{display:none}
#hcs-bot .hb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 14px 18px;background:var(--hb-ink);color:#fff}
#hcs-bot .hb-head-txt{display:flex;flex-direction:column}
#hcs-bot .hb-head-txt strong{font-size:16px}
#hcs-bot .hb-head-txt span{font-size:12.5px;color:#C9D6E8}
#hcs-bot .hb-close{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#fff;cursor:pointer}
#hcs-bot .hb-close:hover{background:rgba(255,255,255,.12)}
#hcs-bot .hb-log{flex:1;overflow-y:auto;padding:16px 14px;background:var(--hb-bg);display:flex;flex-direction:column;gap:10px}
#hcs-bot .hb-msg{max-width:86%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
#hcs-bot .hb-bot{align-self:flex-start;background:#fff;border:1px solid var(--hb-line);border-bottom-left-radius:4px}
#hcs-bot .hb-user{align-self:flex-end;background:var(--hb-blue);color:#fff;border-bottom-right-radius:4px}
#hcs-bot .hb-link{display:block;margin-top:8px;color:var(--hb-blue);font-weight:600;text-decoration:underline}
#hcs-bot .hb-link::after{content:" →"}
#hcs-bot .hb-chips{display:flex;flex-wrap:wrap;gap:6px}
#hcs-bot .hb-chip{border:1px solid var(--hb-blue);background:#fff;color:var(--hb-blue);border-radius:999px;padding:6px 12px;font-size:13.5px;cursor:pointer;line-height:1.2}
#hcs-bot .hb-chip:hover{background:#EEF4FB}
#hcs-bot .hb-quote,#hcs-bot .hb-handoff{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--hb-line);border-radius:12px;padding:12px}
#hcs-bot .hb-quote input{width:100%;height:42px;border:1px solid #C7D3E3;border-radius:8px;padding:0 12px;font-size:16px;text-transform:uppercase;color:var(--hb-ink);background:#fff}
#hcs-bot .hb-go{height:44px;border:0;border-radius:10px;background:var(--hb-green);color:#fff;font-weight:700;font-size:15px;cursor:pointer}
#hcs-bot .hb-go:disabled{opacity:.7;cursor:default}
#hcs-bot .hb-err{color:#B42318;font-size:13.5px}
#hcs-bot .hb-err[hidden]{display:none}
#hcs-bot .hb-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--hb-line);background:#fff}
#hcs-bot .hb-input{flex:1;min-width:0;height:44px;border:1px solid #C7D3E3;border-radius:10px;padding:0 12px;font-size:16px;color:var(--hb-ink);background:#fff}
#hcs-bot .hb-send{width:44px;height:44px;border:0;border-radius:10px;background:var(--hb-blue);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
#hcs-bot .hb-note{padding:0 12px 9px;background:#fff;font-size:11.5px;color:var(--hb-ink2);text-align:center}
#hcs-bot .hb-note a{color:var(--hb-ink2);text-decoration:underline}
#hcs-bot .hb-typing{display:flex;gap:4px;align-items:center;padding:13px 14px}
#hcs-bot .hb-typing i{width:7px;height:7px;border-radius:50%;background:#9AACC4;animation:hbDot 1s infinite ease-in-out}
#hcs-bot .hb-typing i:nth-child(2){animation-delay:.15s}
#hcs-bot .hb-typing i:nth-child(3){animation-delay:.3s}
@keyframes hbDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){#hcs-bot .hb-typing i{animation:none}}
@media (max-width:640px){
  #hcs-bot{right:14px;bottom:14px}
  #hcs-bot .hb-launch{width:56px;padding:0;justify-content:center}
  #hcs-bot .hb-launch-txt{display:none}
  #hcs-bot.hb-open{left:0;right:0;bottom:0;top:0}
  #hcs-bot .hb-panel{width:100%;height:100%;border-radius:0;border:0}
}
#hcs-bot .hb-launch{position:relative}
#hcs-bot .hb-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#0F8B4F;color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 0 0 2px #fff}
#hcs-bot .hb-chip-job{background:#E6F4EE;border-color:#0F8B4F;color:#0B6B3D;font-weight:600}
#hcs-bot.hb-compact .hb-launch{width:56px;padding:0;justify-content:center}
#hcs-bot.hb-compact .hb-launch-txt{display:none}
@media (max-width:1000px){#hcs-bot.hb-compact:not(.hb-open){bottom:88px}}
/* v1.14: on phones, step the round chat button aside while the repair search results are open, so it never covers an Add button. */
@media (max-width:1000px){body:has(#cm_ac_drop.open) #hcs-bot.hb-compact:not(.hb-open){display:none}}
@media print{#hcs-bot{display:none}}
