/* Website chat assistant. Prefix hbcchat- avoids any clash with the site's Tailwind/app.css. */
.hbcchat-btn{position:fixed;right:20px;bottom:92px;width:60px;height:60px;border-radius:50%;background:#fff;border:2px solid #1f6f5c;box-shadow:0 4px 14px rgba(0,0,0,.3);z-index:60;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:transform .15s ease}
.hbcchat-btn:hover{transform:scale(1.08)}
.hbcchat-btn:focus-visible,.hbcchat-x:focus-visible,.hbcchat-send:focus-visible,.hbcchat-link:focus-visible{outline:3px solid #f5b301;outline-offset:2px}
.hbcchat-btn img{width:40px;height:auto;display:block}
.hbcchat-badge{position:absolute;top:-5px;right:-5px;width:24px;height:24px;border-radius:50%;background:#1f6f5c;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.hbcchat-badge svg{width:13px;height:13px;fill:#fff}
.hbcchat-chev{display:none;width:26px;height:26px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hbcchat-btn.is-open{background:#1f6f5c}
.hbcchat-btn.is-open img,.hbcchat-btn.is-open .hbcchat-badge{display:none}
.hbcchat-btn.is-open .hbcchat-chev{display:block}
.hbcchat-label{position:fixed;right:92px;bottom:104px;background:#fff;color:#201a12;font:500 14px/1.2 Poppins,system-ui,sans-serif;padding:9px 14px;border-radius:18px;box-shadow:0 3px 12px rgba(0,0,0,.22);z-index:60;white-space:nowrap;cursor:pointer}
.hbcchat-label:after{content:"";position:absolute;right:-6px;top:50%;margin-top:-6px;border-left:7px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent}
.hbcchat-panel{position:fixed;right:20px;bottom:164px;width:350px;max-width:calc(100vw - 24px);height:480px;max-height:calc(100vh - 190px);background:#fff;border-radius:16px;box-shadow:0 10px 36px rgba(0,0,0,.3);z-index:61;display:none;flex-direction:column;overflow:hidden;font:14px/1.45 Poppins,system-ui,sans-serif;color:#201a12}
.hbcchat-panel.is-open{display:flex}
.hbcchat-hd{background:#1f6f5c;color:#fff;padding:12px 8px 12px 14px;display:flex;align-items:center;gap:10px}
.hbcchat-av{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.hbcchat-av img{width:24px;height:auto}
.hbcchat-ttl{flex:1;min-width:0}
.hbcchat-ttl b{display:block;font-size:14px;font-weight:600}
.hbcchat-ttl small{display:block;opacity:.88;font-size:11.5px}
.hbcchat-x{background:transparent;border:0;color:#fff;font-size:28px;line-height:1;width:40px;height:40px;border-radius:50%;cursor:pointer;padding:0}
.hbcchat-x:hover{background:rgba(255,255,255,.18)}
.hbcchat-body{flex:1;padding:12px;overflow-y:auto;background:#f6f4ef;display:flex;flex-direction:column;gap:8px}
.hbcchat-m{max-width:88%;padding:8px 11px;border-radius:12px;font-size:13.5px;word-wrap:break-word;overflow-wrap:anywhere}
.hbcchat-m p{margin:0 0 6px}.hbcchat-m p:last-child{margin-bottom:0}
.hbcchat-m ul{margin:4px 0 4px 16px;padding:0}
.hbcchat-bot{background:#fff;border:1px solid #e3ddd0;align-self:flex-start}
.hbcchat-me{background:#1f6f5c;color:#fff;align-self:flex-end}
.hbcchat-m a{color:inherit;text-decoration:underline}
.hbcchat-bot a{color:#1f6f5c}
.hbcchat-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.hbcchat-link{display:inline-block;background:#1f6f5c;color:#fff!important;text-decoration:none!important;padding:6px 12px;border-radius:14px;font-size:12.5px}
.hbcchat-fb{display:flex;gap:4px;margin-top:6px}
.hbcchat-fb button{background:transparent;border:0;cursor:pointer;padding:3px;border-radius:6px;color:#9a917e;line-height:0}
.hbcchat-fb button:hover{background:#eee9dc}
.hbcchat-fb button[aria-pressed="true"]{color:#1f6f5c}
.hbcchat-fb svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hbcchat-typing{display:flex;gap:4px;padding:11px 13px}
.hbcchat-typing i{width:7px;height:7px;border-radius:50%;background:#9a917e;animation:hbcchat-b 1.1s infinite ease-in-out}
.hbcchat-typing i:nth-child(2){animation-delay:.15s}.hbcchat-typing i:nth-child(3){animation-delay:.3s}
@keyframes hbcchat-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.hbcchat-sub{font-size:11px;color:#6f6858;padding:5px 12px 6px;background:#fff;display:flex;justify-content:space-between;gap:8px;align-items:baseline;border-top:1px solid #eee9dc}
.hbcchat-sub a{color:#1f6f5c;cursor:pointer;text-decoration:underline;white-space:nowrap}
.hbcchat-ft{padding:8px 10px;border-top:1px solid #e3ddd0;display:flex;gap:8px;align-items:center;background:#fff}
.hbcchat-in{flex:1;border:1px solid #d8d1c2;border-radius:18px;padding:8px 12px;font:14px Poppins,system-ui,sans-serif;outline:none;min-width:0}
.hbcchat-in:focus{border-color:#1f6f5c;box-shadow:0 0 0 2px rgba(31,111,92,.2)}
.hbcchat-send{background:#1f6f5c;color:#fff;border:0;border-radius:50%;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none;padding:0}
.hbcchat-send:disabled{opacity:.45;cursor:default}
.hbcchat-send svg{width:17px;height:17px;fill:#fff}
.hbcchat-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* date option buttons under an assistant reply */
.hbcchat-opts{display:flex;flex-direction:column;gap:6px;margin-top:9px}
.hbcchat-opt{background:#fff;border:1.5px solid #1f6f5c;color:#1f6f5c;border-radius:10px;padding:8px 10px;font:500 13px/1.3 Poppins,system-ui,sans-serif;text-align:left;cursor:pointer}
.hbcchat-opt small{display:block;font-weight:400;font-size:11.5px;opacity:.85;margin-top:1px}
.hbcchat-opt:hover,.hbcchat-opt:focus-visible{background:#1f6f5c;color:#fff;outline:none}
/* inquiry form view (replaces the transcript inside the panel) */
.hbcchat-fv{display:none;flex:1;overflow-y:auto;padding:12px 14px 16px;background:#fff}
.hbcchat-panel.is-form .hbcchat-fv{display:block}
.hbcchat-panel.is-form .hbcchat-body,.hbcchat-panel.is-form .hbcchat-sub,.hbcchat-panel.is-form .hbcchat-ft{display:none}
.hbcchat-back{background:none;border:0;color:#1f6f5c;cursor:pointer;padding:2px 0 8px;font:500 13px Poppins,system-ui,sans-serif}
.hbcchat-sum{background:#f6f4ef;border:1px solid #e3ddd0;border-radius:10px;padding:9px 12px;margin-bottom:10px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.hbcchat-sum b{font-size:14px}
.hbcchat-iform label{display:block;font-size:12px;font-weight:500;margin:8px 0 0;color:#3b3427}
.hbcchat-iform input,.hbcchat-iform textarea{display:block;width:100%;box-sizing:border-box;margin-top:3px;border:1px solid #d8d1c2;border-radius:8px;padding:8px 10px;font:14px Poppins,system-ui,sans-serif;color:#201a12;background:#fff}
.hbcchat-iform input:focus,.hbcchat-iform textarea:focus{outline:none;border-color:#1f6f5c;box-shadow:0 0 0 2px rgba(31,111,92,.2)}
.hbcchat-iform .hbcchat-hp{position:absolute;left:-9999px;width:1px;height:1px}
.hbcchat-row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.hbcchat-err{color:#991b1b;background:#fee2e2;border-radius:8px;padding:7px 10px;font-size:12.5px;margin:10px 0 0}
.hbcchat-err[hidden]{display:none}
.hbcchat-submit{display:block;width:100%;margin-top:12px;background:#1f6f5c;color:#fff;border:0;border-radius:22px;padding:10px 14px;font:600 14px Poppins,system-ui,sans-serif;cursor:pointer}
.hbcchat-submit:disabled{opacity:.6;cursor:default}
.hbcchat-fine{font-size:11px;color:#6f6858;margin:8px 0 0}
.hbcchat-done{text-align:center;padding:22px 6px}
.hbcchat-done h3{margin:8px 0;font-size:17px}
.hbcchat-done p{font-size:13.5px;margin:0 0 6px}
.hbcchat-check{width:46px;height:46px;border-radius:50%;background:#1f6f5c;color:#fff;font-size:26px;line-height:46px;margin:0 auto}
@media (max-width:640px){
  .hbcchat-label{display:none}
  .hbcchat-panel{inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0}
  .hbcchat-hd{padding-top:max(14px,env(safe-area-inset-top))}
  .hbcchat-x{width:46px;height:46px;font-size:32px}
  .hbcchat-btn.is-open{display:none}
  .hbcchat-in{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.hbcchat-btn,.hbcchat-typing i{transition:none;animation:none}}
