@font-face { font-family: mehchat-ui; src: local('Vazirmatn'),local('Vazir'); font-display: swap; }
.mehchat-root, .mehchat-root * { box-sizing:border-box; }
.mehchat-root { --meh-navy:#081f46; --meh-ink:#102447; --meh-muted:#8d98ad; --meh-stroke:#e5eaf1; position:fixed; bottom:var(--meh-desktop-bottom); left:var(--meh-desktop-side); z-index:2147482000; direction:rtl; font-family:mehchat-ui,Tahoma,Arial,sans-serif; line-height:1.6; color:var(--meh-ink); font-size:13px; }
.mehchat-root.meh-side-right {left:auto;right:var(--meh-desktop-side)}
.mehchat-root button, .mehchat-root input, .mehchat-root textarea { font:inherit; }
.mehchat-root button { cursor:pointer; transition:background .2s,transform .2s; }
.mehchat-launch { width:55px;height:55px;padding:0;border:3px solid white;border-radius:50%;background:white;box-shadow:0 6px 22px #001b3740;position:relative;display:flex;align-items:center;justify-content:center; }
.mehchat-launch:hover{transform:translateY(-3px)}
.mehchat-launch img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.mehchat-launch-hidden{display:none}
.mehchat-online-dot{width:11px;height:11px;background:#24b76b;border:2px solid white;border-radius:50%;position:absolute;right:1px;bottom:1px;}
.mehchat-panel{width:380px;height:min(660px,calc(100dvh - var(--meh-desktop-bottom) - 20px));min-height:360px;background:#f6f7f9;border-radius:15px;overflow:hidden;box-shadow:0 12px 48px #0e203544,0 2px 9px #0e203518;display:flex;flex-direction:column;animation:mehchat-enter .18s ease-out; }
.mehchat-panel[hidden]{display:none!important}
@keyframes mehchat-enter{from{opacity:.4;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.mehchat-head{height:77px;min-height:77px;background:#080808;display:flex;flex-direction:row-reverse;align-items:center;padding:13px 15px;gap:12px;color:#fff;}
.mehchat-close{background:none!important;color:#fff!important;font-size:25px!important;border:0!important;line-height:1;padding:2px 5px;}
.mehchat-head-copy{display:flex;flex:1;flex-direction:column;gap:0;text-align:right;min-width:0;}
.mehchat-head-copy strong{font-size:14px;font-weight:700;white-space:nowrap;}
.mehchat-head-copy span{color:#dedede;font-size:11px;}
.mehchat-head-faces{display:flex;direction:ltr;padding-left:3px;}
.mehchat-head-faces img,.mehchat-face-symbol{width:34px;height:34px;border:2px solid #090909;border-radius:50%;object-fit:cover;margin-left:-11px;}
.mehchat-face-symbol{display:grid;place-items:center;color:#fff;background:#194476;font-size:15px;font-weight:bold;}
.mehchat-face-symbol-alt{background:#b9913d;}
.mehchat-main{display:flex;flex:1;flex-direction:column;min-height:0;position:relative;overflow:hidden;background-color:#f5f5f6;background-image:radial-gradient(circle at 9% 26%,transparent 3px,#dfe3e7 3.7px,transparent 4.2px),linear-gradient(35deg,transparent 48%,#e9ecef 49%,#e9ecef 51%,transparent 52%);background-size:145px 125px,195px 176px;}
.mehchat-onboard{display:flex;flex-direction:column;text-align:center;background:#fff;border:1px solid #ebedf1;border-radius:22px;padding:23px 19px 20px;margin:18px 18px auto;box-shadow:0 2px 2px #00000009;}
.mehchat-logo{object-fit:contain;max-height:38px;max-width:140px;margin:0 auto 9px;}
.mehchat-welcome{margin:4px 0 6px!important;font-weight:700;color:#182d51;}
.mehchat-onboard-caption{color:#53637b;font-size:12px;margin:2px 0 15px!important;}
.mehchat-onboard-form{display:flex;flex-direction:column;gap:9px;}
.mehchat-label{text-align:right;color:#45536d;font-size:12px;}
.mehchat-phone{width:100%;outline:0;border:0!important;border-bottom:1px solid #cdd6e2!important;border-radius:0!important;text-align:center!important;padding:8px 4px!important;box-shadow:none!important;background:#fff!important;color:#1a2c4c!important;font-size:16px!important;}
.mehchat-phone:focus{border-color:#092b64!important;}
.mehchat-consent{display:flex;gap:7px;align-items:flex-start;text-align:right;color:#6b7486;font-size:10px;line-height:1.8;margin:4px 0;cursor:pointer;}
.mehchat-consent input{margin:4px 0 0;accent-color:#12386f;}
.mehchat-primary{background:#050505!important;color:#fff!important;border:0!important;padding:10px 22px!important;border-radius:50px!important;align-self:center;min-width:132px;font-weight:bold;}
.mehchat-primary:hover{background:#243959!important;}
.mehchat-meta{font-size:10px;color:#9aa2b0;margin-top:13px;}
.mehchat-messages{display:flex;flex-direction:column;gap:15px;padding:22px 15px 14px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#c4cfdf transparent;}
.mehchat-message{display:flex;gap:7px;align-items:flex-end;max-width:93%;}
.mehchat-from-user{align-self:flex-end;}
.mehchat-from-team{align-self:flex-start;flex-direction:row;}
.mehchat-msg-avatar{border-radius:50%;width:29px;height:29px;object-fit:cover;flex:none;}
.mehchat-bubble{background:#fff;border-radius:16px 16px 5px 16px;padding:11px 13px;box-shadow:0 2px 2px #13243a12;border:1px solid #e9edf2;white-space:pre-wrap;overflow-wrap:anywhere;text-align:right;max-width:295px;}
.mehchat-from-user .mehchat-bubble{background:#0c2e64;color:#fff;border:0;border-radius:16px 16px 16px 5px;}
.mehchat-composer{background:#fff;padding:8px 12px 13px;border-top:1px solid #e9ecf1;}
.mehchat-status{color:#75839c;font-size:10px;text-align:center;margin-bottom:6px;}
.mehchat-actions{display:flex;gap:7px;justify-content:center;margin-bottom:9px;}
.mehchat-human,.mehchat-reset{border:1px solid #dce4ef!important;background:#fff!important;color:#0b306e!important;padding:6px 13px!important;border-radius:18px!important;font-size:11px!important;}
.mehchat-human{background:#0b306e!important;border-color:#0b306e!important;color:#fff!important;}
.mehchat-message-form{display:flex;gap:8px;align-items:end;background:#f5f7fb;border:1px solid #e4e9f0;border-radius:13px;padding:5px 7px;}
.mehchat-message-form textarea{min-width:0;flex:1;outline:0!important;border:0!important;resize:none;min-height:35px!important;max-height:100px;background:transparent!important;padding:8px 5px!important;box-shadow:none!important;color:#102447!important;}
.mehchat-send{height:35px;width:35px;background:#0d326e!important;border:0!important;border-radius:10px!important;color:#fff!important;display:grid;place-items:center;padding:0!important;}
.mehchat-send svg{transform:scaleX(-1);}
.mehchat-send:disabled,.mehchat-primary:disabled{opacity:.6;cursor:not-allowed;}
.mehchat-typing{color:#66758d;font-size:11px;align-self:flex-end;}
.mehchat-department-sheet{position:absolute;bottom:0;left:0;right:0;background:#fff;padding:18px;box-shadow:0 -7px 22px #1024471d;display:flex;flex-direction:column;gap:8px;border-radius:16px 16px 0 0;}
.mehchat-department-sheet strong{text-align:center;margin-bottom:7px;}
.mehchat-unit-button,.mehchat-unit-cancel{background:#f7f9fc!important;border:1px solid #dce5f0!important;border-radius:9px!important;padding:9px!important;color:#142f56!important;text-align:right;}
.mehchat-unit-button:hover{background:#eaf1fd!important;}
.mehchat-unit-cancel{text-align:center;color:#7e8793!important;background:#fff!important;}
.mehchat-toast{position:absolute;left:12px;right:12px;bottom:100px;background:#342b32;color:#fff;padding:10px 13px;border-radius:9px;z-index:3;font-size:12px;text-align:center;}
@media(max-width:600px){
  .mehchat-root{bottom:calc(var(--meh-mobile-bottom) + env(safe-area-inset-bottom,0px));left:var(--meh-mobile-side);}
  .mehchat-root.meh-side-right{left:auto;right:var(--meh-mobile-side);}
  .mehchat-launch{width:53px;height:53px;}
  .mehchat-panel{width:min(390px,calc(100vw - 24px));height:min(690px,calc(100dvh - 42px - env(safe-area-inset-bottom,0px)));min-height:0;border-radius:17px;}
  .mehchat-onboard{margin:13px 12px auto;}
}
@media(max-width:350px){.mehchat-head-faces img{width:28px;height:28px}.mehchat-head{padding:9px}.mehchat-head-copy strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.mehchat-root *{animation:none!important;transition:none!important;}}
/* v1.1.0: discreet audible-notification controls and unread indicator */
.mehchat-mute{flex:none;width:30px;height:30px;display:grid;place-items:center;background:transparent!important;color:#fff!important;border:1px solid #ffffff40!important;border-radius:50%!important;padding:0!important;font-size:14px!important;line-height:1!important}
.mehchat-mute:hover{background:#ffffff20!important}
.mehchat-mute[hidden]{display:none!important}
.mehchat-unread-badge{position:absolute;top:-7px;left:-7px;display:flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 5px;border-radius:20px;background:#e2374e;color:#fff;font:bold 11px Tahoma,Arial,sans-serif;border:2px solid #fff;box-shadow:0 1px 4px #0002;z-index:2}
.mehchat-unread-badge[hidden]{display:none!important}
