/* Solar Help chatbot – Gangotri Solar Energy */
.sh{--shn:#0a2f6b;--shb:#1688e0;--shs:#f7931e;--shg:#25a244;--shbg:#fff;--shink:#102033;--shmute:#5a6b82;--shline:#e3ebf5;--shsoft:#f4f8fd;--shbot:#f1f5fb;--shbotink:#102033;font-family:INR,'Nunito Sans',system-ui,sans-serif}
@media(prefers-color-scheme:dark){.sh{--shbg:#0f2444;--shink:#eaf2fb;--shmute:#a4b6cc;--shline:#1e3a63;--shsoft:#0b1d38;--shbot:#16305a;--shbotink:#eaf2fb}}

/* floating pill */
.sh-fab{position:fixed;right:20px;bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;align-items:center;gap:10px;height:54px;padding:0 22px 0 8px;border:2px solid #fff;border-radius:999px;color:#fff;font:800 16px Sora,system-ui,sans-serif;cursor:pointer;background:linear-gradient(135deg,#0a2f6b 0%,#1688e0 100%);box-shadow:0 10px 28px rgba(10,47,107,.4);transition:transform .2s,box-shadow .2s}
.sh-fab:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(10,47,107,.42)}
.sh-fab:focus-visible{outline:3px solid #ffc21a;outline-offset:3px}
.sh-ico{position:relative;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#f7931e,#ffc21a);color:#0a2f6b;display:grid;place-items:center;flex:none}.sh-ico svg{width:22px;height:22px}.sh-fab svg{flex:none}
.sh-dot{position:absolute;top:-1px;right:-1px;width:12px;height:12px;border-radius:50%;background:#3ddc84;border:2px solid #0a2f6b;animation:shp 2s infinite}
@keyframes shp{0%{box-shadow:0 0 0 0 rgba(61,220,132,.7)}70%,100%{box-shadow:0 0 0 8px rgba(61,220,132,0)}}
.sh-nudge{position:fixed;right:16px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:40;max-width:250px;background:var(--shbg);color:var(--shink);border-radius:16px 16px 4px 16px;padding:12px 34px 12px 14px;font:600 14px/1.4 'Nunito Sans',system-ui,sans-serif;box-shadow:0 10px 28px rgba(10,47,107,.25);border:1px solid var(--shline);cursor:pointer;animation:shin .35s ease-out}
.sh-nudge button{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:var(--shmute);font-size:18px;line-height:1;cursor:pointer}
@keyframes shin{from{opacity:0;transform:translateY(8px)}}

/* panel */
.sh-panel{position:fixed;right:16px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:60;width:min(390px,calc(100vw - 24px));height:min(620px,calc(100vh - 120px));height:min(620px,calc(100dvh - 120px));display:flex;flex-direction:column;background:var(--shbg);color:var(--shink);border-radius:22px;overflow:hidden;box-shadow:0 24px 70px rgba(5,20,50,.45);border:1px solid var(--shline);transform-origin:bottom right;animation:shop .22s ease-out}
.sh-panel[hidden]{display:none}
@keyframes shop{from{opacity:0;transform:scale(.94) translateY(10px)}}
.sh-head{background:linear-gradient(135deg,#0a2f6b,#1565b8);color:#fff;padding:16px 16px 0}
.sh-top{display:flex;align-items:center;gap:12px}
.sh-logo{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.sh-logo img{width:30px;height:30px;object-fit:contain}
.sh-ttl{flex:1;min-width:0}
.sh-ttl b{display:block;font:800 18px/1.15 Sora,system-ui,sans-serif}
.sh-ttl small{display:block;font-size:12.5px;opacity:.85;margin-top:2px}
.sh-ib{width:34px;height:34px;border-radius:50%;border:0;background:transparent;color:#fff;font-size:15px;font-weight:800;cursor:pointer;display:grid;place-items:center;flex:none}
.sh-ib:hover{background:rgba(255,255,255,.16)}
.sh-lang{font-size:12px;width:auto;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.14);height:28px}
.sh-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:14px 0 14px;padding:4px;border-radius:14px;background:rgba(0,0,0,.22)}
.sh-tab{height:42px;border:0;border-radius:11px;background:transparent;color:#d8e6f7;font:800 14px 'Nunito Sans',system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px}
.sh-tab[aria-selected=true]{background:#fff;color:#0a2f6b;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.sh-agent{display:flex;align-items:center;gap:11px;padding:11px 16px;background:#eef5fd;border-bottom:1px solid var(--shline);color:#102033}
@media(prefers-color-scheme:dark){.sh-agent{background:#12294d;color:#eaf2fb}}
.sh-av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#0a2f6b,#1688e0);color:#fff;display:grid;place-items:center;font:800 13px Sora,system-ui,sans-serif;flex:none}
.sh-agent b{font-size:15px;display:inline}
.sh-agent .on{color:#1b9a3f;font-size:12.5px;font-weight:700;margin-left:6px}
.sh-agent small{display:block;color:var(--shmute);font-size:12.5px}

.sh-body{flex:1;min-height:0;display:flex;flex-direction:column}
.sh-body[hidden]{display:none}
.sh-msgs{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:var(--shbg);scroll-behavior:smooth;overscroll-behavior:contain}
.sh-row{display:flex;gap:8px;align-items:flex-end;max-width:100%}
.sh-row.me{justify-content:flex-end}
.sh-row .sh-av{width:28px;height:28px;font-size:10px}
.sh-b{max-width:84%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}
.sh-row.bot .sh-b{background:var(--shbot);color:var(--shbotink);border-bottom-left-radius:5px;box-shadow:0 1px 4px rgba(10,47,107,.12)}
.sh-row.me .sh-b{background:linear-gradient(135deg,#1565b8,#0a2f6b);color:#fff;border-bottom-right-radius:5px}
.sh-b a{color:#1565b8;font-weight:700;text-decoration:underline}
.sh-typing{display:inline-flex;gap:4px;padding:3px 0}
.sh-typing i{width:7px;height:7px;border-radius:50%;background:#8aa0bb;animation:shty 1.1s infinite}
.sh-typing i:nth-child(2){animation-delay:.15s}.sh-typing i:nth-child(3){animation-delay:.3s}
@keyframes shty{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.sh-chips{display:flex;flex-wrap:wrap;gap:7px;padding-left:36px}
.sh-chip{border:1.5px solid #1688e0;background:transparent;color:#0a2f6b;border-radius:999px;padding:7px 13px;font:700 13.5px 'Nunito Sans',system-ui,sans-serif;cursor:pointer;min-height:36px}
.sh-chip:hover{background:linear-gradient(135deg,#f7931e,#ffc21a);border-color:transparent;color:#2b1a00}
@media(prefers-color-scheme:dark){.sh-chip{color:#cfe4fa}}
.sh-act{display:flex;flex-wrap:wrap;gap:8px;padding-left:36px}
.sh-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 16px;border-radius:12px;border:0;font:800 14px 'Nunito Sans',system-ui,sans-serif;color:#2b1a00;background:linear-gradient(135deg,#f7931e,#ffc21a);cursor:pointer;text-decoration:none}
.sh-btn.sw{background:#1fa855;color:#fff}.sh-btn.gh{background:transparent;color:var(--shn);border:1.5px solid var(--shline)}
@media(prefers-color-scheme:dark){.sh-btn.gh{color:#eaf2fb}}
.sh-btn:hover{filter:brightness(1.06)}
.sh-in{display:flex;gap:9px;padding:11px 12px;border-top:1px solid var(--shline);background:var(--shsoft)}
.sh-in input{flex:1;min-width:0;height:44px;border:1.5px solid var(--shline);border-radius:999px;padding:0 16px;font:600 15px 'Nunito Sans',system-ui,sans-serif;background:var(--shbg);color:var(--shink)}
.sh-in input:focus{outline:2px solid #f7931e;border-color:transparent}
.sh-send{width:48px;height:44px;border:0;border-radius:999px;background:linear-gradient(135deg,#f7931e,#ffc21a);color:#2b1a00;cursor:pointer;display:grid;place-items:center;flex:none}
.sh-send svg{width:20px;height:20px}
.sh-foot{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;font-size:12.5px;color:var(--shmute);background:var(--shsoft);border-top:1px solid var(--shline)}
.sh-foot a{color:#1565b8;font-weight:800}

/* quote tab */
.sh-q{flex:1;overflow-y:auto;padding:16px 16px 8px;background:var(--shbg);overscroll-behavior:contain}
.sh-q h4{margin:0 0 4px;font:800 17px Sora,system-ui,sans-serif}
.sh-q p.sub{margin:0 0 14px;color:var(--shmute);font-size:14px;line-height:1.45}
.sh-f{display:grid;gap:11px}
.sh-f label{display:block;font-size:13px;font-weight:800;color:var(--shmute);margin-bottom:4px}
.sh-f input,.sh-f select{width:100%;height:44px;border:1.5px solid var(--shline);border-radius:12px;padding:0 12px;font:600 15px 'Nunito Sans',system-ui,sans-serif;background:var(--shbg);color:var(--shink)}
.sh-f input:focus,.sh-f select:focus{outline:2px solid #f7931e;border-color:transparent}
.sh-f2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sh-f input[type=range]{padding:0;height:30px;accent-color:#f7931e;border:0}
.sh-bv{display:flex;justify-content:space-between;align-items:baseline}
.sh-bv output{font:800 18px Sora,system-ui,sans-serif;color:#1688e0}
.sh-calc{margin-top:4px;width:100%;height:48px;font-size:15.5px}
.sh-res{margin:14px 0 6px;border-radius:16px;overflow:hidden;border:1px solid var(--shline)}
.sh-res .hd{background:linear-gradient(135deg,#0a2f6b,#1565b8);color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}
.sh-res .hd b{font:800 22px Sora,system-ui,sans-serif}.sh-res .hd span{font-size:13px;opacity:.9}
.sh-res dl{margin:0;padding:6px 14px}
.sh-res dl div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--shline);font-size:14.5px}
.sh-res dl div:last-child{border:0}
.sh-res dt{color:var(--shmute)}.sh-res dd{margin:0;font-weight:800;text-align:right}
.sh-res dd.g{color:#1b9a3f}.sh-res dd.o{color:#d9730d}
.sh-res .nt{padding:0 14px 12px;font-size:12.5px;color:var(--shmute);line-height:1.45}
.sh-res .ac{display:flex;gap:8px;flex-wrap:wrap;padding:0 14px 14px}
.sh-res .ac .sh-btn{flex:1;min-width:130px}

@media(max-width:820px){
 .sh-fab{right:14px;bottom:calc(86px + env(safe-area-inset-bottom,0px));height:50px;font-size:15px}
 .sh-nudge{right:14px;bottom:calc(148px + env(safe-area-inset-bottom,0px))}
 .sh-panel{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:560px){
 .sh-panel{left:0;right:0;bottom:0;width:100%;height:92vh;height:92dvh;max-height:none;border-radius:22px 22px 0 0;border-width:1px 0 0;animation:shup .28s ease-out}
 .sh.open .sh-fab,.sh.open .sh-nudge{display:none}
 .sh-head{padding:14px 14px 0}.sh-in{padding-bottom:calc(11px + env(safe-area-inset-bottom,0px))}
 .sh-in input,.sh-f input,.sh-f select{font-size:16px}
 .sh-b{font-size:15.5px;max-width:88%}
 .sh-foot{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
@keyframes shup{from{transform:translateY(40px);opacity:0}}
@media(max-width:360px){.sh-fab span:last-child{font-size:14px}.sh-f2{grid-template-columns:1fr}}
body.sh-lock .wa,body.sh-lock .up{z-index:20}
@media(prefers-reduced-motion:reduce){.sh *,.sh-panel,.sh-nudge{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
