.mtmd-sp{position:fixed;bottom:var(--sp-y,18px);z-index:99998;font-family:inherit;font-size:15px;line-height:1.6;direction:var(--sp-dir,rtl)}
.mtmd-sp-left{left:var(--sp-x,18px)}.mtmd-sp-right{right:var(--sp-x,18px)}
.mtmd-sp *{box-sizing:border-box}
.mtmd-sp .mtmd-sp-btn{position:relative;display:inline-flex;align-items:center;gap:8px;background:var(--sp-bbg,#0d6efd);color:var(--sp-bfg,#fff);border:0;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.28);font:inherit;font-weight:600;padding:12px 20px;margin:0;line-height:1.2;text-transform:none;letter-spacing:0;min-height:0;transition:transform .15s}
.mtmd-sp .mtmd-sp-btn:hover{transform:translateY(-2px);background:var(--sp-bbg,#0d6efd);color:var(--sp-bfg,#fff)}
.mtmd-sp .mtmd-sp-pill{border-radius:999px}
.mtmd-sp .mtmd-sp-square{border-radius:14px}
.mtmd-sp .mtmd-sp-circle{border-radius:50%;width:58px;height:58px;padding:0;justify-content:center}
.mtmd-sp-circle .mtmd-sp-txt{display:none}
.mtmd-sp-s-s .mtmd-sp-btn{font-size:13px;padding:9px 15px}.mtmd-sp-s-s .mtmd-sp-circle{width:46px;height:46px}
.mtmd-sp-s-l .mtmd-sp-btn{font-size:18px;padding:15px 26px}.mtmd-sp-s-l .mtmd-sp-circle{width:72px;height:72px}
.mtmd-sp-ico{font-size:1.35em;line-height:1;display:inline-flex}
.mtmd-sp-ico img{width:1.5em;height:1.5em;object-fit:contain;display:block;margin:0}
.mtmd-sp-badge{position:absolute;top:-6px;inset-inline-end:-4px;background:#e53935;color:#fff;border-radius:999px;min-width:20px;height:20px;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 5px;font-weight:700}
.mtmd-sp-badge[hidden]{display:none}
.mtmd-sp-panel{position:absolute;bottom:calc(100% + 12px);width:var(--sp-w,360px);height:var(--sp-h,520px);max-height:calc(100vh - 110px);max-width:calc(100vw - 24px);background:#fff;color:#17212b;border-radius:var(--sp-r,16px);box-shadow:0 10px 40px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column}
.mtmd-sp-left .mtmd-sp-panel{left:0}.mtmd-sp-right .mtmd-sp-panel{right:0}
.mtmd-sp-panel[hidden]{display:none}
.mtmd-sp-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--sp-hbg,#0d6efd);color:var(--sp-hfg,#fff)}
.mtmd-sp-head .t{flex:1;min-width:0}
.mtmd-sp-head b{display:block;font-size:16px;line-height:1.3}
.mtmd-sp-head small{display:block;font-size:12px;opacity:.85}
.mtmd-sp .mtmd-sp-x{background:none;border:0;color:inherit;font-size:26px;line-height:1;cursor:pointer;padding:0 4px;margin:0;box-shadow:none}
.mtmd-sp-msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:6px;background:#f6f7f9}
.mtmd-sp-m{max-width:84%;padding:7px 12px 4px;border-radius:14px;white-space:pre-wrap;word-break:break-word;font-size:14.5px}
.mtmd-sp-me{align-self:flex-start;background:var(--sp-vbg,#0d6efd);color:var(--sp-vfg,#fff);border-bottom-right-radius:4px}
.mtmd-sp-ag{align-self:flex-end;background:var(--sp-abg,#eef1f5);color:var(--sp-afg,#17212b);border-bottom-left-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.mtmd-sp-m i{display:block;font-style:normal;font-size:11px;opacity:.65;margin-top:1px;text-align:end}
.mtmd-sp-note{align-self:center;background:rgba(0,0,0,.06);border-radius:10px;padding:4px 12px;font-size:12.5px;text-align:center;color:#555}
.mtmd-sp-pre{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.mtmd-sp-pre b{font-size:13px}
.mtmd-sp .mtmd-sp-pre input,.mtmd-sp .mtmd-sp-foot textarea{width:100%;border:1px solid #d5dae0;background:#fff;color:#17212b;border-radius:10px;padding:9px 12px;font:inherit;font-size:14px;margin:0;outline:0;box-shadow:none;height:auto}
.mtmd-sp-foot{display:flex;gap:6px;align-items:flex-end;padding:8px;border-top:1px solid #e3e6ea;background:#fff}
.mtmd-sp .mtmd-sp-foot textarea{resize:none;max-height:110px;min-height:40px;border-radius:20px;flex:1}
.mtmd-sp .mtmd-sp-send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--sp-vbg,#0d6efd);color:var(--sp-vfg,#fff);font-size:18px;cursor:pointer;padding:0;margin:0;display:flex;align-items:center;justify-content:center;min-height:0}
.mtmd-sp .mtmd-sp-send:disabled{opacity:.5;cursor:default}
.mtmd-sp-blocked{padding:12px;text-align:center;font-size:13px;color:#b32d2e;background:#fff;border-top:1px solid #e3e6ea}
.mtmd-sp-err{color:#b32d2e;font-size:12.5px;padding:0 12px 6px;background:#fff}
@media(max-width:600px){.mtmd-sp-panel{position:fixed;inset:0;width:auto;height:auto;max-height:none;max-width:none;border-radius:0}}
@media print{.mtmd-sp{display:none}}
