#mhcC{position:fixed;inset-inline-end:18px;bottom:92px;z-index:19990;font-family:"Open Sans","Noto Sans Bengali",sans-serif}
html[lang^=bd] #mhcC,html[lang^=bn] #mhcC{font-family:"Noto Sans Bengali","Open Sans",sans-serif}
#mhcC .fab{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;color:#fff;background:linear-gradient(135deg,#8E1038,#D9467A);box-shadow:0 10px 28px rgba(142,16,56,.45);display:flex;align-items:center;justify-content:center;position:relative;animation:mhcPulse 3s infinite}
@keyframes mhcPulse{0%,100%{box-shadow:0 10px 28px rgba(142,16,56,.45)}50%{box-shadow:0 10px 28px rgba(142,16,56,.45),0 0 0 10px rgba(217,70,122,.18)}}
@media(prefers-reduced-motion:reduce){#mhcC .fab{animation:none}}
#mhcC .cnt{position:absolute;top:-4px;inset-inline-end:-4px;background:#C9A227;color:#fff;border-radius:999px;min-width:20px;height:20px;font-size:12px;display:none;align-items:center;justify-content:center;font-weight:700}
#mhcC .pop{position:absolute;inset-inline-end:0;bottom:72px;width:290px;background:#fff;color:#2b1b21;border-radius:16px;padding:14px 16px;box-shadow:0 14px 40px rgba(74,10,31,.3);border-top:3px solid #C9A227;display:none;font-size:14px;line-height:1.45}
#mhcC .pop .px{position:absolute;top:4px;inset-inline-end:8px;border:0;background:none;font-size:18px;cursor:pointer;color:#8a6b75}
#mhcC .win{position:absolute;inset-inline-end:0;bottom:72px;width:380px;height:min(600px,calc(100vh - 190px));background:#fff;color:#2b1b21;border-radius:18px;box-shadow:0 20px 60px rgba(74,10,31,.38);display:none;flex-direction:column;overflow:hidden}
#mhcC.open .win{display:flex}
#mhcC .hd{background:linear-gradient(135deg,#8E1038,#4A0A1F);color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px;border-bottom:3px solid #C9A227}
#mhcC .av{width:38px;height:38px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
#mhcC .hd .tt{flex:1;min-width:0}#mhcC .hd b{display:block;font-size:15px}#mhcC .hd small{opacity:.85;font-size:11px}
#mhcC .hd button{background:rgba(255,255,255,.15);border:0;color:#fff;border-radius:8px;width:30px;height:30px;cursor:pointer;font-size:16px}
#mhcC .ms{flex:1;overflow:auto;padding:12px;background:#fbf6f8;display:flex;flex-direction:column;gap:8px}
#mhcC .b{max-width:86%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
#mhcC .b.user{align-self:flex-end;background:#8E1038;color:#fff;border-bottom-right-radius:4px}
#mhcC .b.assistant{align-self:flex-start;background:#fff;border:1px solid #f0dde3;border-bottom-left-radius:4px}
#mhcC .b.admin{align-self:flex-start;background:#FBE8EE;border:1px solid #e9c3d0}
#mhcC .b.system{align-self:center;background:#fff8e1;border:1px solid #f0e0a0;font-size:12.5px;text-align:center}
#mhcC .tag{display:block;font-size:10.5px;color:#8a6b75;margin-bottom:2px}
#mhcC .cards{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;align-self:stretch}
#mhcC .pc{flex:none;width:150px;background:#fff;border:1px solid #f0dde3;border-radius:12px;overflow:hidden;font-size:12px}
#mhcC .pc img{width:100%;height:110px;object-fit:cover;background:#faf2f5}
#mhcC .pc .i{padding:7px;display:flex;flex-direction:column;gap:2px}
#mhcC .pc .n{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#mhcC .pc .p{color:#8E1038;font-weight:700}#mhcC .pc s{color:#999;font-weight:400;margin-inline-start:4px}
#mhcC .pc a,#mhcC .oc a{color:#8E1038;font-weight:600;text-decoration:none}
#mhcC .oc{flex:none;min-width:200px;background:#fff;border:1px solid #f0dde3;border-radius:12px;padding:9px;font-size:12.5px;display:flex;flex-direction:column;gap:3px}
#mhcC .cf{background:#fff;border:1px solid #C9A227;border-radius:12px;padding:10px;align-self:stretch;font-size:13px}
#mhcC .cf .r{display:flex;gap:8px;margin-top:8px}
#mhcC .cf button,#mhcC .qr button,#mhcC .ft button{border-radius:999px;border:1px solid #8E1038;padding:6px 12px;font-size:13px;cursor:pointer;background:#8E1038;color:#fff}
#mhcC .cf button.o,#mhcC .qr button{background:#fff;color:#8E1038}
#mhcC .qr{display:flex;gap:6px;flex-wrap:wrap;padding:6px 12px 0;background:#fbf6f8}
#mhcC .ty{align-self:flex-start;background:#fff;border:1px solid #f0dde3;border-radius:14px;padding:10px 14px;display:none}
#mhcC .ty i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8E1038;margin:0 2px;animation:mhcT 1s infinite}
#mhcC .ty i:nth-child(2){animation-delay:.15s}#mhcC .ty i:nth-child(3){animation-delay:.3s}
@keyframes mhcT{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
#mhcC .in{display:flex;gap:8px;padding:10px;border-top:1px solid #f0dde3;background:#fff}
#mhcC .in input{flex:1;border:1.5px solid #e6c9d3;border-radius:999px;padding:9px 14px;font-size:15px;outline:0;min-width:0}
#mhcC .in input:focus{border-color:#8E1038}
#mhcC .in button{width:40px;height:40px;border-radius:50%;border:0;background:#8E1038;color:#fff;cursor:pointer}
#mhcC .ft{display:flex;justify-content:space-between;align-items:center;padding:4px 12px 8px;font-size:11px;color:#8a6b75;background:#fff}
#mhcC .ft button{background:none;color:#8E1038;border:0;padding:0;font-size:12px;text-decoration:underline}
@media(max-width:600px){#mhcC.open{inset:0}#mhcC.open .win{position:fixed;inset:0;width:100%;height:100%;border-radius:0}#mhcC.open .fab,#mhcC.open .pop{display:none}#mhcC .pop{width:min(290px,calc(100vw - 36px))}}
html.dark #mhcC .win,html.dark #mhcC .pop,[data-bs-theme=dark] #mhcC .win,[data-bs-theme=dark] #mhcC .pop{background:#1e1218;color:#f5e9ee}
html.dark #mhcC .ms,[data-bs-theme=dark] #mhcC .ms,html.dark #mhcC .qr,[data-bs-theme=dark] #mhcC .qr{background:#170d12}
html.dark #mhcC .b.assistant,[data-bs-theme=dark] #mhcC .b.assistant,html.dark #mhcC .pc,html.dark #mhcC .oc,html.dark #mhcC .cf{background:#2a1920;border-color:#3b2530;color:#f5e9ee}
html.dark #mhcC .in,[data-bs-theme=dark] #mhcC .in,html.dark #mhcC .ft{background:#1e1218;border-color:#3b2530}
html.dark #mhcC .in input{background:#2a1920;color:#fff;border-color:#4b2f3c}
/* mobile: stay clear of bottom navigation and checkout action bars */
@media(max-width:767px){#mhcC{inset-inline-end:12px;bottom:84px}#mhcC .fab{width:52px;height:52px}#mhcC .win{position:fixed;inset-inline:8px;bottom:8px;width:auto;height:min(78vh,620px)}#mhcC .pop{width:min(290px,calc(100vw - 40px))}}
html.mhc-co #mhcC{bottom:150px}
html.mhc-co #mhcC .fab{width:44px;height:44px}
html.dark #mhcC .win,html[data-theme=dark] #mhcC .win,html[data-bs-theme=dark] #mhcC .win{background:#241419;color:#f6e9ee}

/* ===== Premium AI launcher + chat polish (v2) ===== */
#mhcC .fab{width:64px;height:64px;background:radial-gradient(120% 120% at 25% 15%,#F06A9B 0%,#B3174D 45%,#6B0B2E 100%);box-shadow:0 12px 30px rgba(107,11,46,.5),inset 0 1px 1px rgba(255,255,255,.45),inset 0 -6px 12px rgba(0,0,0,.18);border:1.5px solid rgba(255,214,120,.75);animation:none;transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
#mhcC .fab:hover{transform:translateY(-3px) scale(1.06);box-shadow:0 16px 38px rgba(107,11,46,.6),inset 0 1px 1px rgba(255,255,255,.5)}
#mhcC .fab:active{transform:scale(.94)}
#mhcC .fab:focus-visible{outline:3px solid #C9A227;outline-offset:3px}
#mhcC .fab .halo{position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(217,70,122,.5);animation:mhcHalo 2.8s ease-out infinite;pointer-events:none}
@keyframes mhcHalo{0%{transform:scale(.88);opacity:.9}100%{transform:scale(1.35);opacity:0}}
#mhcC .fab .ic{filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
#mhcC .fab .sp{transform-origin:12px 11px;animation:mhcSp 3.2s ease-in-out infinite;fill:#FFE29A}
@keyframes mhcSp{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.25) rotate(18deg)}}
#mhcC .fab .dot{position:absolute;bottom:3px;inset-inline-start:3px;width:13px;height:13px;border-radius:50%;background:#2ecc71;border:2px solid #fff;box-shadow:0 0 0 0 rgba(46,204,113,.6);animation:mhcOn 2s infinite}
@keyframes mhcOn{70%{box-shadow:0 0 0 7px rgba(46,204,113,0)}100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}}
#mhcC .cnt{top:-5px;inset-inline-end:-5px;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.25)}
#mhcC .win{border-radius:22px;backdrop-filter:blur(8px);animation:mhcIn .28s cubic-bezier(.2,.8,.2,1);transform-origin:bottom right}
@keyframes mhcIn{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
#mhcC .hd{background:linear-gradient(135deg,#9A1242 0%,#4A0A1F 100%);box-shadow:0 4px 14px rgba(0,0,0,.18)}
#mhcC .av{background:linear-gradient(135deg,#fff,#ffe8f0);box-shadow:0 0 0 2px rgba(255,226,154,.8)}
#mhcC .hd small{display:flex;align-items:center;gap:5px}
#mhcC .hd small .on{width:7px;height:7px;border-radius:50%;background:#2ecc71;display:inline-block;flex:none}
#mhcC .b{position:relative;box-shadow:0 1px 2px rgba(74,10,31,.08);animation:mhcMsg .22s ease-out}
@keyframes mhcMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#mhcC .b.user{background:linear-gradient(135deg,#9A1242,#C42463)}
#mhcC .b time{display:block;font-size:10px;opacity:.55;margin-top:3px;text-align:end}
#mhcC .b a{color:inherit;text-decoration:underline;word-break:break-all}
#mhcC .qr button{transition:background .15s,color .15s,transform .15s}
#mhcC .qr button:hover{background:#8E1038;color:#fff;transform:translateY(-1px)}
#mhcC .in button:disabled{opacity:.5;cursor:default}
#mhcC .in button{background:linear-gradient(135deg,#9A1242,#C42463)}
@media(prefers-reduced-motion:reduce){#mhcC .fab .halo,#mhcC .fab .sp,#mhcC .fab .dot,#mhcC .win,#mhcC .b{animation:none}}
@media(max-width:767px){#mhcC .fab{width:56px;height:56px}#mhcC .fab .ic{width:26px;height:26px}}
html.mhc-co #mhcC .fab{width:46px;height:46px}
html.dark #mhcC .b a{color:#ffd6e4}

/* mobile: compact bottom sheet instead of full-screen */
@media(max-width:600px){
#mhcC.open{inset:auto;inset-inline-end:0;bottom:0}
#mhcC.open .win{position:fixed;inset:auto 10px 10px 10px;width:auto;height:min(64vh,500px);height:min(64dvh,500px);border-radius:20px;box-shadow:0 18px 50px rgba(74,10,31,.45)}
#mhcC .hd{padding:9px 12px}#mhcC .av{width:32px;height:32px}
#mhcC .b{font-size:13.5px;padding:8px 11px}
#mhcC .qr{max-height:84px;overflow-y:auto;flex-wrap:nowrap;overflow-x:auto}#mhcC .qr button{white-space:nowrap;font-size:12.5px;padding:5px 10px}
#mhcC .in{padding:8px}#mhcC .ft{padding:2px 12px 6px}
}
