/* ScaleLodge Chatbot — front-end widget (theme-proof, clean, flat) */
.slgc,.slgc *{box-sizing:border-box}
.slgc{position:fixed;right:20px;bottom:20px;z-index:2147483000;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}

/* Neutralise theme button/input styling. Component rules below use a higher
   specificity (.slgc button.slgc-x) so they always win over this reset. */
.slgc button{appearance:none;-webkit-appearance:none;border:0 !important;background:transparent !important;box-shadow:none !important;outline:0 !important;font:inherit;line-height:1;margin:0;padding:0;color:inherit;cursor:pointer}
.slgc button:focus-visible{outline:2px solid #1d5e48 !important;outline-offset:2px}
.slgc input{appearance:none;-webkit-appearance:none;margin:0}

.slgc button.slgc-bubble{width:58px;height:58px;border-radius:16px !important;background:#1d5e48 !important;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.22);transition:background .15s,transform .15s}
.slgc button.slgc-bubble:hover{background:#174c3a !important;transform:translateY(-2px)}
.slgc-bubble svg{width:26px;height:26px;display:block}
.slgc-hidden{display:none !important}

.slgc-panel{position:absolute;right:0;bottom:70px;width:366px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 130px);background:#fff;border-radius:14px;box-shadow:0 16px 44px rgba(0,0,0,.20);display:flex;flex-direction:column;overflow:hidden;animation:slgc-in .16s ease}
@keyframes slgc-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.slgc-head{background:#1d5e48;color:#fff;padding:15px 16px;display:flex;align-items:center;gap:10px;flex:0 0 auto;user-select:none}
.slgc-htext{flex:1;min-width:0}
.slgc-title{font-weight:700;font-size:15px;display:block;line-height:1.25}
.slgc-sub{font-size:11.5px;opacity:.85;display:flex;align-items:center;gap:6px;margin-top:2px}
.slgc-dot{width:7px;height:7px;border-radius:50%;background:#7be0b0;display:inline-block}
.slgc button.slgc-close{width:30px;height:30px;color:#fff;font-size:20px;display:flex;align-items:center;justify-content:center;border-radius:8px !important;flex:0 0 auto;opacity:.85}
.slgc button.slgc-close:hover{background:rgba(255,255,255,.15) !important;opacity:1}

.slgc-log{flex:1;overflow-y:auto;padding:16px 15px;display:flex;flex-direction:column;gap:8px;background:#f5f7f4}
.slgc-log::-webkit-scrollbar{width:8px}
.slgc-log::-webkit-scrollbar-thumb{background:#d6ddd6;border-radius:8px}
.slgc-msg{max-width:86%;padding:10px 13px;border-radius:12px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.slgc-bot{align-self:flex-start;background:#fff;color:#1c2a25;border:1px solid #e6ebe7;border-bottom-left-radius:4px}
.slgc-user{align-self:flex-end;background:#1d5e48;color:#fff;border-bottom-right-radius:4px}

.slgc-typing{display:inline-flex !important;gap:5px}
.slgc-typing span{width:7px;height:7px;border-radius:50%;background:#9bb3a8;display:inline-block;animation:slgc-b 1.2s infinite}
.slgc-typing span:nth-child(2){animation-delay:.15s}.slgc-typing span:nth-child(3){animation-delay:.3s}
@keyframes slgc-b{0%,60%,100%{opacity:.3}30%{opacity:1}}

.slgc-foot{border-top:1px solid #ebeee9;background:#fff;flex:0 0 auto}
.slgc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px 2px;user-select:none}
.slgc button.slgc-chip{background:#eef3ec !important;color:#1d5e48;border-radius:10px !important;padding:8px 13px;font-size:13px;font-weight:600;transition:background .12s,color .12s}
.slgc button.slgc-chip:hover{background:#1d5e48 !important;color:#fff}
.slgc-form{display:flex;gap:8px;padding:12px 14px;align-items:center}
.slgc-input{flex:1;border:1px solid #d9ddd8 !important;background:#fff !important;border-radius:10px;padding:11px 14px;font-size:14px;color:#1c2a25}
.slgc-input::placeholder{color:#9aa39c}
.slgc-input:focus{border-color:#1d5e48 !important;box-shadow:0 0 0 3px rgba(29,94,72,.10) !important;outline:0 !important}
.slgc-input:disabled{background:#f2f3f0 !important;color:#9aa39c}
.slgc button.slgc-send{width:44px;height:44px;border-radius:10px !important;background:#1d5e48 !important;color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:background .12s}
.slgc button.slgc-send:hover{background:#174c3a !important}
.slgc-send svg{width:20px;height:20px}

@media (max-width:480px){.slgc-panel{width:calc(100vw - 28px);height:74vh}}
