/* SB Infotech website assistant (Views/Shared/_Chatbot.cshtml) */
.sbchat{--c-navy:#071b33;--c-navy2:#0b3058;--c-blue:#087bff;--c-ink:#153652;--c-muted:#65798d;--c-line:#dce8f3;position:fixed;right:22px;bottom:22px;z-index:900;font-family:inherit}
.sbchat-launcher{display:flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 8px;border:0;border-radius:999px;cursor:pointer;color:#fff;font:700 14px/1 inherit;font-family:inherit;background:linear-gradient(135deg,var(--c-blue),#0058c7);box-shadow:0 14px 34px rgba(8,123,255,.38),0 2px 6px rgba(7,27,51,.2);transition:transform .2s,box-shadow .2s}
.sbchat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(8,123,255,.45)}
.sbchat-launcher:focus-visible{outline:3px solid rgba(8,123,255,.4);outline-offset:3px}
.sbchat-launcher-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.18)}
.sbchat.is-open .sbchat-launcher{display:none}
.sbchat-panel{position:absolute;right:0;bottom:0;width:380px;height:min(600px,calc(100vh - 44px));display:flex;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 30px 70px rgba(7,27,51,.28),0 0 0 1px rgba(7,27,51,.06);animation:sbchat-in .22s ease-out}
.sbchat-panel[hidden]{display:none}
@keyframes sbchat-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.sbchat-head{display:flex;align-items:center;gap:11px;padding:16px 14px 16px 16px;color:#fff;background:linear-gradient(135deg,var(--c-navy),var(--c-navy2) 60%,#0a5bb0)}
.sbchat-avatar{flex:0 0 40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:14px;letter-spacing:.04em;background:linear-gradient(135deg,#54b7ff,var(--c-blue));box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.sbchat-head-text{flex:1;min-width:0}
.sbchat-head h2{margin:0;font-size:15px;line-height:1.2;color:#fff}
.sbchat-head p{margin:3px 0 0;font-size:11px;color:#a9cdee;display:flex;align-items:center;gap:6px}
.sbchat-online{width:7px;height:7px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 3px rgba(61,220,151,.2)}
.sbchat-icon-btn{flex:0 0 34px;height:34px;border-radius:10px;border:0;background:rgba(255,255,255,.1);color:#fff;font-size:15px;cursor:pointer}
.sbchat-icon-btn:hover{background:rgba(255,255,255,.2)}
.sbchat-log{flex:1;overflow-y:auto;padding:18px 14px 8px;background:#f4f8fc;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.sbchat-msg{display:flex}
.sbchat-user{justify-content:flex-end}
.sbchat-bubble{max-width:84%;padding:10px 13px;border-radius:14px;font-size:13.5px;line-height:1.55;color:var(--c-ink);background:#fff;border:1px solid var(--c-line);border-bottom-left-radius:4px;overflow-wrap:anywhere;box-shadow:0 2px 6px rgba(7,27,51,.04)}
.sbchat-user .sbchat-bubble{color:#fff;background:linear-gradient(135deg,var(--c-blue),#0063dd);border:0;border-bottom-left-radius:14px;border-bottom-right-radius:4px}
.sbchat-bubble a{color:var(--c-blue);font-weight:650;text-decoration:underline;text-underline-offset:2px}
.sbchat-user .sbchat-bubble a{color:#fff}
.sbchat-typing{display:flex;gap:4px;padding:13px 14px}
.sbchat-typing i{width:7px;height:7px;border-radius:50%;background:#8fb3d6;animation:sbchat-dot 1.1s infinite ease-in-out}
.sbchat-typing i:nth-child(2){animation-delay:.15s}.sbchat-typing i:nth-child(3){animation-delay:.3s}
@keyframes sbchat-dot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.sbchat-chips{display:flex;flex-wrap:wrap;gap:7px;padding:4px 14px 12px;background:#f4f8fc}
.sbchat-chips[hidden]{display:none}
.sbchat-chips button{border:1px solid #c7dcf1;background:#fff;color:#0a4f8f;font:650 12px/1 inherit;font-family:inherit;padding:9px 12px;border-radius:999px;cursor:pointer;transition:background .15s,border-color .15s}
.sbchat-chips button:hover{background:#e8f2ff;border-color:var(--c-blue)}
.sbchat-form{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--c-line);background:#fff}
.sbchat-form textarea{flex:1;resize:none;border:1px solid #c9d9e7;border-radius:12px;padding:11px 12px;font:14px/1.4 inherit;font-family:inherit;color:var(--c-ink);max-height:120px;min-height:44px;outline:none}
.sbchat-form textarea{height:44px;overflow-y:auto;scrollbar-width:none}.sbchat-form textarea::-webkit-scrollbar{display:none}
.sbchat-form textarea:focus{border-color:var(--c-blue);box-shadow:0 0 0 3px rgba(8,123,255,.15)}
.sbchat-send{flex:0 0 44px;height:44px;border:0;border-radius:12px;color:#fff;cursor:pointer;background:linear-gradient(135deg,var(--c-blue),#0058c7);display:grid;place-items:center}
.sbchat-send:disabled{opacity:.5;cursor:wait}
.sbchat-note{margin:0;padding:0 14px 10px;font-size:10.5px;line-height:1.4;color:var(--c-muted);background:#fff}
.sbchat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Hide while the mobile menu is open */
body.menu-open .sbchat{display:none}
@media(max-width:740px){
  .sbchat{right:14px;bottom:14px}
  .sbchat-launcher{height:54px;padding:0 7px}
  .sbchat-launcher-text{display:none}
  .sbchat.is-open{inset:0;right:0;bottom:0}
  .sbchat-panel{position:fixed;inset:0;width:auto;height:auto;border-radius:0;animation:none}
  .sbchat-form textarea{font-size:16px} /* prevents iOS zoom on focus */
}
@media(prefers-reduced-motion:reduce){.sbchat-panel,.sbchat-typing i{animation:none}.sbchat-launcher{transition:none}}
.sbchat-log{scrollbar-width:thin;scrollbar-color:#c3d6ea transparent}.sbchat-log::-webkit-scrollbar{width:6px}.sbchat-log::-webkit-scrollbar-thumb{background:#c3d6ea;border-radius:6px}
