.mtcchat{--mc-main:#1f4e4a;--mc-acc:#d98c2b;position:fixed;bottom:20px;z-index:2147483000;font-family:inherit;font-size:14px;line-height:1.7;color:#1d2327;direction:rtl}
.mtcchat-left{left:20px}.mtcchat-right{right:20px}
.mtcchat *{box-sizing:border-box}
.mtcchat-launch{width:60px;height:60px;border-radius:50%;border:0;background:var(--mc-acc);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.25);position:relative;transition:transform .15s}
.mtcchat-launch:hover{transform:scale(1.06)}
.mtcchat.is-open .mtcchat-launch{background:var(--mc-main)}
.mtcchat-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;border-radius:11px;background:#d63638;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff}
.mtcchat-panel{position:absolute;bottom:74px;width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 110px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden}
.mtcchat-left .mtcchat-panel{left:0}.mtcchat-right .mtcchat-panel{right:0}
.mtcchat-panel[hidden],.mtcchat [hidden]{display:none!important}
.mtcchat-head{background:var(--mc-main);color:#fff;padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:6px}
.mtcchat-htext{flex:1;min-width:0}.mtcchat-title{font-weight:700;font-size:15px}
.mtcchat-state{font-size:12px;opacity:.9;display:flex;align-items:center;gap:6px}
.mtcchat-state:before{content:"";width:8px;height:8px;border-radius:50%;background:#bbb;display:inline-block}
.mtcchat-st-on:before{background:#4ade80}.mtcchat-st-hours:before{background:#fbbf24}.mtcchat-st-off:before{background:#f87171}
.mtcchat-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.mtcchat-test{width:100%;font-size:11px;background:rgba(255,255,255,.15);border-radius:6px;padding:2px 8px}
.mtcchat-body{flex:1;overflow-y:auto;padding:14px;background:#f4f6f6}
.mtcchat-msgs{display:flex;flex-direction:column;gap:8px}
.mtcchat-m{max-width:85%;padding:8px 12px;border-radius:14px;word-wrap:break-word;white-space:pre-wrap}
.mtcchat-v{align-self:flex-start;background:var(--mc-main);color:#fff;border-bottom-right-radius:4px}
.mtcchat-a,.mtcchat-s{align-self:flex-end;background:#fff;border:1px solid #e3e7e7;border-bottom-left-radius:4px}
.mtcchat-s{background:#fff8ec;border-color:#f3dfbd}
.mtcchat-who{font-size:11px;font-weight:700;color:var(--mc-acc);margin-bottom:2px}
.mtcchat-time{font-size:10px;opacity:.65;text-align:left;margin-top:2px;direction:ltr}
.mtcchat-pre{padding:12px 16px;border-top:1px solid #eee;background:#fff}
.mtcchat-pre-t{margin:0 0 8px;font-size:12.5px;color:#50575e}
.mtcchat-pre label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.mtcchat-pre input{display:block;width:100%;margin-top:3px;padding:9px 10px;border:1px solid #cfd6d6;border-radius:8px;font:inherit;font-size:14px;background:#fff;color:#1d2327}
.mtcchat-pre input:focus,.mtcchat-form textarea:focus{outline:2px solid var(--mc-acc);outline-offset:0;border-color:transparent}
.mtcchat-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.mtcchat-go{width:100%;background:var(--mc-acc);color:#fff;border:0;border-radius:8px;padding:10px;font:inherit;font-weight:700;cursor:pointer}
.mtcchat-go:disabled,.mtcchat-send:disabled{opacity:.6;cursor:wait}
.mtcchat-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid #eee;background:#fff}
.mtcchat-form textarea{flex:1;resize:none;border:1px solid #cfd6d6;border-radius:10px;padding:9px 10px;font:inherit;font-size:14px;max-height:110px;min-height:40px;background:#fff;color:#1d2327}
.mtcchat-send{width:42px;height:42px;flex:0 0 42px;border-radius:50%;border:0;background:var(--mc-acc);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mtcchat-err{color:#b32d2e;font-size:12px;margin:0 0 8px}
.mtcchat-ferr{padding:6px 12px 0;margin:0;background:#fff}
@media (max-width:480px){
  .mtcchat{bottom:14px}.mtcchat-left{left:14px}.mtcchat-right{right:14px}
  .mtcchat-launch{width:54px;height:54px}
  .mtcchat.is-open{left:0;right:0;bottom:0}
  .mtcchat.is-open .mtcchat-launch{display:none}
  .mtcchat-panel{position:fixed;inset:0;width:100%;max-width:100%;height:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .mtcchat-form textarea,.mtcchat-pre input{font-size:16px}
}


/* ---------- avatars ---------- */
.mtcchat-team{display:flex;align-items:center;position:relative;margin-left:10px;order:-1}
.mtcchat-head{align-items:center}
.mtcchat-team img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid var(--mc-main);margin-left:-12px;background:#fff}
.mtcchat-team img:last-of-type{margin-left:0}
.mtcchat-dot{position:absolute;bottom:1px;right:-1px;width:11px;height:11px;border-radius:50%;background:#4ade80;border:2px solid var(--mc-main)}
.mtcchat-arow{display:flex;align-items:flex-end;gap:7px;align-self:flex-end;max-width:92%;flex-direction:row-reverse}
.mtcchat-arow .mtcchat-m{max-width:100%}
.mtcchat-av{width:30px;height:30px;flex:0 0 30px;border-radius:50%;object-fit:cover;background:var(--mc-acc);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
/* ---------- launcher animation ---------- */
.mtcchat-launch{animation:mtcchat-in .6s cubic-bezier(.34,1.56,.64,1) .8s backwards}
.mtcchat-launch:before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--mc-acc);z-index:-1;animation:mtcchat-pulse 2.4s ease-out infinite;animation-delay:2s}
.mtcchat.is-open .mtcchat-launch:before{animation:none;opacity:0}
.mtcchat-launch svg{position:absolute;transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .25s}
.mtcchat-ic-x{opacity:0;transform:rotate(-90deg) scale(.5)}
.mtcchat.is-open .mtcchat-ic-chat{opacity:0;transform:rotate(90deg) scale(.5)}
.mtcchat.is-open .mtcchat-ic-x{opacity:1;transform:none}
.mtcchat.is-teasing .mtcchat-launch{animation:mtcchat-wiggle 1.2s ease-in-out .2s 2}
.mtcchat-badge{animation:mtcchat-in .4s cubic-bezier(.34,1.56,.64,1)}
/* ---------- panel & messages ---------- */
.mtcchat-panel:not([hidden]){animation:mtcchat-open .32s cubic-bezier(.2,.9,.3,1.15) both}
.mtcchat-left .mtcchat-panel{transform-origin:bottom left}.mtcchat-right .mtcchat-panel{transform-origin:bottom right}
.mtcchat-msgs>*{animation:mtcchat-msg .3s ease-out both}
/* ---------- teaser ---------- */
.mtcchat-teaser{position:absolute;bottom:72px;display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:10px 12px 10px 30px;box-shadow:0 8px 28px rgba(0,0,0,.18);width:max-content;max-width:min(290px,calc(100vw - 40px));cursor:pointer;animation:mtcchat-teaser .5s cubic-bezier(.34,1.56,.64,1) both}
.mtcchat-left .mtcchat-teaser{left:0;border-bottom-left-radius:4px}.mtcchat-right .mtcchat-teaser{right:0;border-bottom-right-radius:4px}
.mtcchat-teaser-av{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:0 0 42px;border:2px solid var(--mc-acc)}
.mtcchat-teaser-b{display:flex;flex-direction:column;font-size:13.5px;line-height:1.6}
.mtcchat-teaser-b strong{font-size:12px;color:var(--mc-acc)}
.mtcchat-teaser-x{position:absolute;top:4px;left:6px;background:none;border:0;font-size:18px;line-height:1;color:#8c8f94;cursor:pointer;padding:2px 4px}
.mtcchat.is-open .mtcchat-teaser{display:none}
@keyframes mtcchat-in{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes mtcchat-pulse{0%{transform:scale(1);opacity:.55}70%{transform:scale(1.55);opacity:0}100%{transform:scale(1.55);opacity:0}}
@keyframes mtcchat-wiggle{0%,100%{transform:rotate(0)}15%{transform:rotate(-14deg)}30%{transform:rotate(12deg)}45%{transform:rotate(-8deg)}60%{transform:rotate(5deg)}75%{transform:rotate(-2deg)}}
@keyframes mtcchat-open{0%{opacity:0;transform:translateY(16px) scale(.92)}100%{opacity:1;transform:none}}
@keyframes mtcchat-msg{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
@keyframes mtcchat-teaser{0%{opacity:0;transform:translateY(12px) scale(.85)}100%{opacity:1;transform:none}}
@media (max-width:480px){.mtcchat-teaser{bottom:66px}}
@media (prefers-reduced-motion:reduce){.mtcchat *,.mtcchat *:before{animation:none!important;transition:none!important}}
/* ---------- theme override guard (site theme styles all <button>) ---------- */
.mtcchat button{margin:0!important;min-width:0!important;min-height:0!important;text-transform:none!important;letter-spacing:normal!important;font-family:inherit!important;box-sizing:border-box!important}
.mtcchat .mtcchat-launch,.mtcchat .mtcchat-launch:hover,.mtcchat .mtcchat-launch:focus{border-radius:50%!important;padding:0!important;background:var(--mc-acc)!important;width:60px!important;height:60px!important;border:0!important;color:#fff!important}
.mtcchat.is-open .mtcchat-launch,.mtcchat.is-open .mtcchat-launch:hover{background:var(--mc-main)!important}
.mtcchat .mtcchat-x,.mtcchat .mtcchat-x:hover,.mtcchat .mtcchat-x:focus{background:none!important;padding:0 4px!important;width:auto!important;height:auto!important;border-radius:0!important;border:0!important;color:#fff!important;font-size:26px!important;line-height:1!important;box-shadow:none!important}
.mtcchat .mtcchat-teaser-x,.mtcchat .mtcchat-teaser-x:hover,.mtcchat .mtcchat-teaser-x:focus{background:none!important;padding:2px 4px!important;width:auto!important;height:auto!important;border-radius:0!important;border:0!important;color:#8c8f94!important;font-size:18px!important;line-height:1!important;box-shadow:none!important}
.mtcchat .mtcchat-send,.mtcchat .mtcchat-send:hover,.mtcchat .mtcchat-send:focus{border-radius:50%!important;padding:0!important;background:var(--mc-acc)!important;width:42px!important;height:42px!important;border:0!important;color:#fff!important}
.mtcchat .mtcchat-go,.mtcchat .mtcchat-go:hover,.mtcchat .mtcchat-go:focus{border-radius:8px!important;padding:10px!important;background:var(--mc-acc)!important;height:auto!important;line-height:1.6!important;border:0!important;color:#fff!important;font-size:15px!important}
.mtcchat img.mtcchat-av,.mtcchat .mtcchat-team img,.mtcchat .mtcchat-teaser-av{border-radius:50%!important;max-width:none!important;padding:0!important}
.mtcchat .mtcchat-launch:before{border-radius:50%!important}
@media (max-width:480px){.mtcchat .mtcchat-launch,.mtcchat .mtcchat-launch:hover{width:54px!important;height:54px!important}}
/* property card, typing, seen */
.mtcchat-prop{display:flex;gap:10px;background:#fff;border:1px solid #e3e7e7;border-radius:12px;padding:8px;align-self:stretch;animation:mtcchat-msg .3s ease-out both}
.mtcchat .mtcchat-prop img{width:84px;height:70px;object-fit:cover;border-radius:8px!important;flex:0 0 84px;max-width:none!important}
.mtcchat-prop-b{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12.5px}
.mtcchat-prop-b strong{font-size:13px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mtcchat-prop-b span{color:#50575e}
.mtcchat .mtcchat-prop-q,.mtcchat .mtcchat-prop-q:hover{align-self:flex-start;background:none!important;border:1px solid var(--mc-acc)!important;color:var(--mc-acc)!important;border-radius:14px!important;padding:3px 10px!important;font-size:12px!important;cursor:pointer;height:auto!important;line-height:1.6!important;margin-top:2px!important}
.mtcchat-typing{align-self:flex-end;background:#fff;border:1px solid #e3e7e7;border-radius:14px;padding:10px 14px;display:flex;gap:4px}
.mtcchat-typing span{width:6px;height:6px;border-radius:50%;background:#9aa4a4;animation:mtcchat-dot 1.2s infinite ease-in-out}
.mtcchat-typing span:nth-child(2){animation-delay:.15s}.mtcchat-typing span:nth-child(3){animation-delay:.3s}
@keyframes mtcchat-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.mtcchat-seen{font-size:10px;opacity:.8;margin-top:2px;text-align:left;direction:rtl}
@media print{.mtcchat{display:none}}
/* ---------- offline call-back form + busy card (1.4) ---------- */
.mtcchat-pre select,.mtcchat-pre textarea,.mtcchat-cbcard select{display:block;width:100%;margin-top:3px;padding:8px 10px;border:1px solid #cfd6d6;border-radius:8px;font:inherit;font-size:14px;background:#fff;color:#1d2327;height:auto;resize:none}
.mtcchat-pre textarea{min-height:56px}
.mtcchat-pre select:focus,.mtcchat-pre textarea:focus{outline:2px solid var(--mc-acc);outline-offset:0;border-color:transparent}
.mtcchat-pre.is-cb{max-height:62%;overflow-y:auto}
.mtcchat-cbcard{position:relative;align-self:stretch;background:#fff;border:1px dashed var(--mc-acc);border-radius:12px;padding:10px 12px;font-size:13px}
.mtcchat-cbcard p{margin:0 0 6px;padding-left:18px}
.mtcchat-cbcard label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.mtcchat-cbrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mtcchat .mtcchat-cbyes,.mtcchat .mtcchat-cbyes:hover,.mtcchat .mtcchat-cbyes:focus{background:var(--mc-acc)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:5px 12px!important;font-size:12.5px!important;height:auto!important;line-height:1.6!important;cursor:pointer}
.mtcchat .mtcchat-cbyes:disabled{opacity:.6;cursor:wait}
.mtcchat-cbwa{display:inline-block;background:#25d366;color:#fff!important;border-radius:16px;padding:5px 12px;font-size:12.5px;text-decoration:none!important;line-height:1.6}
.mtcchat .mtcchat-cbx,.mtcchat .mtcchat-cbx:hover,.mtcchat .mtcchat-cbx:focus{position:absolute;top:4px;left:6px;background:none!important;border:0!important;padding:0 4px!important;width:auto!important;height:auto!important;color:#8c8f94!important;font-size:18px!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
@media (max-width:480px){.mtcchat-pre select,.mtcchat-pre textarea{font-size:16px}}
/* ---------- 1.5: bolder teaser, anonymous call-back phone ---------- */
.mtcchat-teaser-b span{font-weight:700;color:#1d2327;font-size:14.5px;line-height:1.7}
.mtcchat-teaser-b strong{font-size:12.5px;font-weight:800}
.mtcchat-teaser{border:2px solid var(--mc-acc);padding:12px 14px 12px 32px}
.mtcchat-cbcard input.mtcchat-cbph{display:block;width:100%;margin-top:3px;padding:8px 10px;border:1px solid #cfd6d6;border-radius:8px;font:inherit;font-size:14px;background:#fff;color:#1d2327}
@media (max-width:480px){.mtcchat-cbcard input.mtcchat-cbph{font-size:16px}}
