.mc-root{position:fixed;bottom:20px;inset-inline-end:20px;z-index:60;font-family:'IBM Plex Sans Arabic',sans-serif;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
[dir=rtl] .mc-root{align-items:flex-start}
.mc-launcher{width:60px;height:60px;border-radius:50%;border:0;background:#B5562B;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 28px -8px rgba(120,55,20,.55);transition:transform .2s,background-color .2s}
.mc-launcher:hover{transform:scale(1.06);background:#9E4A24}
.mc-launcher:focus-visible,.mc-chip:focus-visible,.mc-close:focus-visible,.mc-send:focus-visible,.mc-wa:focus-visible{outline:3px solid #2B2420;outline-offset:2px}
.mc-open .mc-launcher{transform:scale(.9)}
.mc-panel{width:min(370px,calc(100vw - 32px));height:min(560px,calc(100vh - 120px));background:#FFFDF8;border:1px solid #E3D5BD;border-radius:20px;box-shadow:0 24px 60px -20px rgba(70,40,15,.35);display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:mcIn .28s cubic-bezier(.2,.8,.2,1)}
[dir=rtl] .mc-panel{transform-origin:bottom left}
.mc-panel[hidden]{display:none}
@keyframes mcIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.mc-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;background:#F1E8D8;border-bottom:1px solid #E3D5BD}
.mc-avatar{width:42px;height:42px;border-radius:12px;background:#2B2420;color:#E07A45;display:flex;align-items:center;justify-content:center;flex:none}
.mc-info{flex:1;min-width:0}
.mc-title{font-family:'Readex Pro',sans-serif;font-weight:700;font-size:16px;color:#2B2420}
.mc-status{font-size:12.5px;color:#5E5247;display:flex;align-items:center;gap:6px;margin-top:2px}
.mc-dot{width:8px;height:8px;border-radius:50%;background:#2E8B57;box-shadow:0 0 0 3px rgba(46,139,87,.18)}
.mc-close{width:40px;height:40px;border:0;background:transparent;color:#5E5247;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mc-close:hover{background:#E8DCC6}
.mc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#FAF6EE}
.mc-msg{max-width:85%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.6;white-space:pre-line;word-wrap:break-word;animation:mcMsg .25s ease}
@keyframes mcMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mc-bot{align-self:flex-start;background:#FFFFFF;border:1px solid #E8DCC6;color:#2B2420;border-end-start-radius:6px}
.mc-user{align-self:flex-end;background:#B5562B;color:#fff;border-end-end-radius:6px}
.mc-typing{display:flex;gap:5px;padding:14px 16px}
.mc-typing span{width:7px;height:7px;border-radius:50%;background:#B9A88E;animation:mcDot 1s infinite ease-in-out}
.mc-typing span:nth-child(2){animation-delay:.15s}.mc-typing span:nth-child(3){animation-delay:.3s}
@keyframes mcDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
.mc-chips{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.mc-chip{font:inherit;font-size:14px;background:#fff;color:#8E4220;border:1px solid #D9C9AE;border-radius:999px;padding:7px 14px;min-height:36px;cursor:pointer;transition:background .2s,border-color .2s}
.mc-chip:hover{background:#F6EADB;border-color:#B5562B}
.mc-wa{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:#1F7A45;color:#fff!important;text-decoration:none;font-weight:600;font-size:15px;padding:11px 18px;border-radius:12px;min-height:44px}
.mc-wa:hover{background:#186338}
.mc-form{display:flex;gap:8px;padding:12px;border-top:1px solid #E8DCC6;background:#FFFDF8}
.mc-input{flex:1;min-width:0;font:inherit;font-size:15px;padding:11px 14px;border:1px solid #D9C9AE;border-radius:12px;background:#fff;color:#2B2420;min-height:44px}
.mc-input:focus{outline:none;border-color:#B5562B;box-shadow:0 0 0 3px rgba(181,86,43,.15)}
.mc-send{width:44px;height:44px;flex:none;border:0;border-radius:12px;background:#B5562B;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
[dir=rtl] .mc-send svg{transform:scaleX(-1)}
.mc-send:hover{background:#9E4A24}
.mc-nudge{font:inherit;font-size:14px;font-weight:500;background:#2B2420;color:#FAF6EE;border:0;border-radius:14px;padding:10px 14px;cursor:pointer;box-shadow:0 10px 24px -10px rgba(0,0,0,.4);animation:mcIn .3s ease;order:-1}
@media (max-width:480px){.mc-root{bottom:14px;inset-inline-end:14px}.mc-panel{height:calc(100vh - 100px)}}
@media (prefers-reduced-motion:reduce){.mc-panel,.mc-msg,.mc-nudge{animation:none}.mc-typing span{animation:none}}
