/* The public widget and Android app share the open-licensed Vazirmatn family. */
@font-face{font-family:"TaaminVazirmatn";src:url("fonts/vazirmatn-regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
.tt-support-public{direction:rtl;text-align:right;font-family:"TaaminVazirmatn","TT Yekan NewFace",Tahoma,sans-serif;max-width:1100px;margin:22px auto;color:#1c1c1c;line-height:1.8}
.tt-support-public *{box-sizing:border-box;font-family:"TaaminVazirmatn","TT Yekan NewFace",Tahoma,sans-serif!important}
.tt-support-public .tt-support-hero{background:linear-gradient(110deg,#087f5b,#05220b);color:#fff;padding:30px;border-radius:22px;margin-bottom:18px}
.tt-support-public .tt-support-hero span{color:#b9f7d5;font-size:12px}
.tt-support-public .tt-support-hero h2{color:#fff;margin:5px 0 8px;font-size:clamp(21px,3vw,29px)}
.tt-support-public .tt-support-hero p{color:#e2fff0;margin:0}
.tt-support-public .tt-support-box,.tt-support-public .tt-support-thread{padding:24px;border:1px solid #dce9e1;border-radius:20px;background:#fff;margin:0 0 18px;box-shadow:0 5px 24px #05220b0b}
.tt-support-public h3{color:#134338;margin:0 0 17px}
.tt-support-form{display:flex;flex-wrap:wrap;gap:15px;align-items:flex-end}
.tt-support-form>label{flex:1 1 230px;display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:13px;color:#31483d}
.tt-support-form>label:has(textarea){flex-basis:100%}
.tt-support-form input,.tt-support-form select,.tt-support-form textarea{width:100%;padding:10px 12px;min-height:42px;border-radius:12px;border:1px solid #d4e2d9;background:#fff;color:#17251e;font:inherit}
.tt-support-form textarea{min-height:105px;resize:vertical}
.tt-support-form>button{background:#16f98a!important;color:#05220b!important;padding:11px 20px!important;border:0!important;border-radius:14px!important;cursor:pointer;font:inherit;font-weight:750}
.tt-support-hint{font-size:12px;color:#63776a;line-height:2;flex-basis:100%}
.tt-support-list-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 8px;text-decoration:none;color:#087f5b;border-bottom:1px solid #e8f0eb}
.tt-support-list-item span{flex-shrink:0;color:#63776a;font-size:12px}
.tt-support-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.tt-support-thread-head h3{margin:0;overflow-wrap:anywhere;font-size:16px}
.tt-support-tag{display:inline-flex;background:#ddf7ea;color:#087f5b;padding:5px 10px;border-radius:20px;white-space:nowrap;font-size:12px}
.tt-tag-closed{background:#edf3ee;color:#507f52}.tt-tag-waiting{background:#fff3dc;color:#a26b21}
.tt-support-conversation{display:flex;flex-direction:column;gap:10px;padding:10px 2px 14px;margin:0;border-bottom:1px solid #e7edf6;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tt-support-bubble{max-width:90%;align-self:flex-start;background:#f1f6f2;padding:10px 13px;border-radius:15px;overflow-wrap:anywhere}
.tt-support-fromstaff{background:#ddf7ea;align-self:flex-end}
.tt-support-who{font-size:12px;color:#63776a;margin-bottom:5px}.tt-support-message{white-space:pre-wrap;line-height:1.85;color:#1b3126;font-size:15px}
.tt-support-attachments{display:flex;flex-direction:column;gap:7px;margin-top:8px}
.tt-support-attachment{display:inline-flex;align-items:center;gap:6px;color:#087f5b;text-decoration:underline;overflow-wrap:anywhere;font-size:12px}
.tt-support-attachments audio{max-width:min(100%,300px);height:38px}
.tt-support-launcher{position:fixed;z-index:99990;inset-inline-start:18px;bottom:18px;direction:rtl;font-family:"TaaminVazirmatn","TT Yekan NewFace",Tahoma,sans-serif}
.tt-support-launcher *{font-family:"TaaminVazirmatn","TT Yekan NewFace",Tahoma,sans-serif!important}
.tt-support-launcher details{position:relative}
.tt-support-launcher summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:48px;padding:5px 11px 5px 14px;border-radius:26px;background:#05220b;color:#fff;box-shadow:0 8px 22px #05220b38;cursor:pointer;font-size:14px;font-weight:750}
.tt-support-launcher summary::-webkit-details-marker{display:none}
.tt-support-launcher-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#16f98a;color:#05220b;font-size:18px;font-weight:900}
.tt-support-launcher-panel{position:absolute;inset-inline-start:0;bottom:58px;width:min(90vw,420px);max-height:min(74vh,700px);overflow:auto;padding:9px;border-radius:20px;background:#f3f8f5;box-shadow:0 16px 44px #05220b35;overscroll-behavior:contain}
.tt-support-launcher-panel .tt-support-public{margin:0}
.tt-support-launcher-panel .tt-support-hero{padding:13px 15px;margin-bottom:9px;border-radius:15px}
.tt-support-launcher-panel .tt-support-hero{position:relative;padding-right:50px}
.tt-support-launcher-panel .tt-support-hero h2{font-size:19px}
.tt-support-launcher-panel .tt-support-hero p{font-size:12px}
.tt-support-launcher-panel .tt-support-box,.tt-support-launcher-panel .tt-support-thread{padding:14px;border-radius:16px;margin-bottom:8px}
.tt-support-launcher-panel .tt-support-box h3{font-size:16px;margin-bottom:10px}
.tt-support-launcher-panel .tt-support-new-form{gap:9px}
.tt-support-launcher-panel .tt-support-new-form>label{font-size:12px;flex-basis:calc(50% - 6px)}
.tt-support-launcher-panel .tt-support-new-form>label:has(textarea){flex-basis:100%}
.tt-support-launcher-panel .tt-support-new-form input,.tt-support-launcher-panel .tt-support-new-form select{min-height:36px;padding:7px 9px;font-size:13px}
.tt-support-launcher-panel .tt-support-new-form .tt-support-composer textarea{min-height:78px}
.tt-support-launcher-panel .tt-support-new-form .tt-support-hint{font-size:10px;margin:0}
.tt-support-launcher-panel .tt-support-list-item{font-size:12px}
.tt-support-honeypot{position:absolute!important;inset-inline-start:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Messenger-style composer; send and attachment actions stay with the text field. */
.tt-support-composer-wrap{flex:1 1 100%;min-width:0}
.tt-support-message-label{display:block;margin:0 0 5px;font-size:11px;color:#63776a}
.tt-support-composer{position:relative;display:flex;flex-direction:column;min-width:0;padding:8px 9px 7px;border:1px solid #cfe1d5;border-radius:16px;background:#fff;box-shadow:0 3px 10px #05220b09}
.tt-support-composer:focus-within{border-color:#16b979;box-shadow:0 0 0 3px #16b9791c}
.tt-support-composer textarea{width:100%;min-height:48px;max-height:140px;padding:2px 3px;border:0!important;outline:0;resize:vertical;background:transparent!important;box-shadow:none!important;font:inherit;font-size:14px;line-height:1.65;color:#17251e}
.tt-support-composer-tools{display:flex;align-items:center;gap:6px;min-height:36px}
.tt-support-tool{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:10px;background:transparent;color:#47705a;cursor:pointer;font:inherit;font-size:18px}
.tt-support-tool:hover,.tt-support-tool:focus-visible{background:#e6f7ed;color:#087f5b}
.tt-support-file-tool{position:relative;overflow:hidden;flex:0 0 34px}
.tt-support-file-tool input{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;opacity:0;cursor:pointer}
.tt-support-record.is-recording{background:#ffe6e6;color:#bf2525;animation:tt-support-pulse 1.2s infinite}
.tt-support-send{display:flex;align-items:center;justify-content:center;gap:7px;min-width:82px;min-height:36px;margin-inline-start:auto;padding:5px 12px;border:0;border-radius:12px;background:#087f5b;color:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:750}
.tt-support-send b{font-size:16px;transform:rotate(180deg)}
.tt-support-send:hover{background:#056a4b}
.tt-support-emoji-picker{position:absolute;z-index:4;inset-inline-start:8px;bottom:52px;display:grid;grid-template-columns:repeat(6,36px);gap:3px;max-width:min(258px,80vw);padding:8px;border:1px solid #dce9e1;border-radius:14px;background:#fff;box-shadow:0 8px 26px #05220b24}
.tt-support-emoji-picker[hidden],.tt-support-selected-files[hidden],.tt-support-recording-state[hidden]{display:none}
.tt-support-emoji{width:36px;height:36px;border:0;border-radius:9px;background:transparent;font-size:21px;cursor:pointer}
.tt-support-emoji:hover{background:#e6f7ed}
.tt-support-selected-files{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.tt-support-selected-files span{max-width:100%;padding:3px 8px;border-radius:9px;background:#edf7f0;color:#365b46;font-size:10px;overflow-wrap:anywhere}
.tt-support-recording-state{margin:4px 2px 0;color:#a35027;font-size:11px}
.tt-support-typing{padding:4px 5px;color:#60836e;font-size:11px}
.tt-support-status{flex:0 0 145px!important;font-size:11px!important}
.tt-support-reply-form{align-items:stretch;gap:8px}

/* Keep the live thread fixed in the panel while only its message history scrolls. */
.tt-support-launcher-panel:has(.tt-support-thread){display:flex;flex-direction:column;overflow:hidden;max-height:min(70vh,620px);padding:8px}
.tt-support-launcher-panel:has(.tt-support-thread) .tt-support-hero,.tt-support-launcher-panel:has(.tt-support-thread) .tt-support-public>p:has(a){display:none}
.tt-support-launcher-panel .tt-support-thread{display:flex;flex:1;flex-direction:column;min-height:0;margin:0;padding:11px}
.tt-support-launcher-panel .tt-support-thread{overflow:hidden}
.tt-support-launcher-panel .tt-support-thread-head{margin:-11px -11px 8px;padding:11px;background:#087f5b;color:#fff;border-radius:15px 15px 0 0}
.tt-support-launcher-panel .tt-support-thread-head h3{color:#fff;font-size:15px}
.tt-support-launcher-panel .tt-support-thread-head .tt-support-tag{background:#dff8eb;color:#087f5b}
.tt-support-close{display:none}
.tt-support-launcher-panel .tt-support-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#fff;color:#087f5b;font:inherit;font-size:27px;line-height:1;cursor:pointer}
.tt-support-launcher-panel .tt-support-hero .tt-support-close{position:absolute;top:10px;right:10px}
.tt-support-launcher-panel .tt-support-thread-head .tt-support-close{background:#ffffff20;color:#fff}
.tt-support-launcher-panel .tt-support-close:hover,.tt-support-launcher-panel .tt-support-close:focus-visible{background:#fff;color:#05220b;outline:2px solid #fff;outline-offset:2px}
.tt-support-launcher-panel .tt-support-close[hidden]{display:none}
.tt-support-launcher-panel .tt-support-conversation{flex:1;min-height:100px;max-height:330px}
.tt-support-launcher-panel .tt-support-reply-form{flex:0 0 auto;margin-top:5px}
.tt-support-launcher-panel .tt-support-reply-form .tt-support-message-label{display:none}
.tt-support-launcher-panel .tt-support-reply-form .tt-support-composer textarea{min-height:44px;max-height:100px}
.tt-support-launcher-panel .tt-support-status{flex:1 1 100%!important}
@keyframes tt-support-pulse{50%{box-shadow:0 0 0 5px #e43b3b20}}

@media(max-width:640px){
 .tt-support-public .tt-support-hero,.tt-support-public .tt-support-box,.tt-support-public .tt-support-thread{padding:16px}
 .tt-support-form{flex-direction:column;align-items:stretch}
 .tt-support-form>label{flex-basis:auto;width:100%}
 .tt-support-form>label:has(textarea){flex-basis:auto}
 .tt-support-thread-head{align-items:flex-start}
 .tt-support-launcher{inset-inline-start:12px;bottom:12px}
 .tt-support-launcher-panel{position:fixed;inset-inline-start:12px;bottom:68px;width:min(420px,calc(100vw - 24px));max-height:min(72vh,620px)}
 .tt-support-launcher-panel:has(.tt-support-thread){max-height:min(68vh,580px)}
 .tt-support-launcher-panel .tt-support-new-form>label{flex-basis:100%}
 .tt-support-launcher-panel .tt-support-conversation{max-height:44vh}
 .tt-support-launcher-panel .tt-support-thread{padding:9px}
}

/* ---- 0.11.6: availability tag, waiting notice, phone launcher ---- */
.tt-tag-online{background:#dcfce7!important;color:#15803d!important}
.tt-tag-online::before{content:"";width:7px;height:7px;border-radius:50%;background:#22c55e;margin-inline-end:6px;align-self:center;box-shadow:0 0 0 3px #22c55e33}
.tt-tag-away{background:#fff3dc!important;color:#a26b21!important}
.tt-support-waiting{margin:8px 0 4px;padding:10px 12px;border-radius:14px;background:#ecfdf3;border:1px dashed #86efac;color:#14532d;font-size:12.5px;line-height:1.9;text-align:center}
.tt-support-waiting[hidden]{display:none}
.tt-support-launcher summary{flex-direction:column;gap:5px;min-height:0;padding:0;border-radius:0;background:transparent;color:#05220b;box-shadow:none}
.tt-support-launcher-icon{position:relative;width:60px;height:60px;border-radius:50%;background:linear-gradient(145deg,#16f98a,#0ea865);color:#05220b;box-shadow:0 10px 24px #05220b40,inset 0 -3px 0 #0000001a;transition:transform .18s}
.tt-support-launcher-icon svg{display:block;transform:rotate(-8deg)}
.tt-support-launcher-icon::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #16f98a;opacity:0;animation:tt-launcher-ring 2.6s ease-out infinite}
.tt-support-launcher-label{display:block;padding:3px 10px;border-radius:999px;background:#05220b;color:#fff;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 4px 12px #05220b30}
.tt-support-launcher summary:hover .tt-support-launcher-icon,.tt-support-launcher summary:focus-visible .tt-support-launcher-icon{transform:scale(1.06)}
.tt-support-launcher summary:focus-visible{outline:none}
.tt-support-launcher summary:focus-visible .tt-support-launcher-icon{outline:3px solid #05220b;outline-offset:3px}
.tt-support-launcher details[open] .tt-support-launcher-icon::after{animation:none}
.tt-support-launcher-panel{bottom:96px}
@keyframes tt-launcher-ring{0%{transform:scale(.9);opacity:.7}70%{transform:scale(1.25);opacity:0}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.tt-support-launcher-icon::after{animation:none}}
@media(max-width:640px){.tt-support-launcher-panel{bottom:100px}.tt-support-launcher-icon{width:56px;height:56px}}

/* ---- 0.11.7: sit above a theme's fixed bottom navigation (offset measured by support-live.js) ---- */
.tt-support-launcher{bottom:calc(var(--tt-launcher-offset,0px) + 18px)}
.tt-support-launcher-panel{bottom:96px}
@media(max-width:640px){
 .tt-support-launcher{bottom:calc(var(--tt-launcher-offset,0px) + 12px)}
 .tt-support-launcher-panel{bottom:calc(var(--tt-launcher-offset,0px) + 100px);max-height:calc(100dvh - var(--tt-launcher-offset,0px) - 120px)}
}

/* ---- 0.11.8: close button on the left (RTL), larger and never over the title ---- */
.tt-support-launcher-panel .tt-support-hero{padding-right:15px!important;padding-left:58px!important}
.tt-support-launcher-panel .tt-support-hero .tt-support-close{right:auto!important;left:10px!important}
.tt-support-launcher-panel .tt-support-thread-head .tt-support-close{order:99;margin-inline-start:auto}
.tt-support-launcher-panel .tt-support-close{width:38px!important;height:38px!important;flex-basis:38px!important}
.tt-support-launcher-panel .tt-support-close span{display:block;font-size:28px!important;line-height:1!important;font-weight:400;color:inherit}

/* ---- send feedback (0.11.11) ---- */
.tt-support-send{transition:transform 160ms cubic-bezier(0.23,1,0.32,1),background-color 150ms ease,opacity 150ms ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tt-support-send:active{transform:scale(.95)}
.tt-support-form.is-sending .tt-support-send{opacity:.7;cursor:progress;pointer-events:none}
.tt-support-pending{opacity:.65;transition:opacity 200ms cubic-bezier(0.23,1,0.32,1),transform 200ms cubic-bezier(0.23,1,0.32,1);transform-origin:bottom right}
@starting-style{.tt-support-pending{opacity:0;transform:translateY(8px) scale(.97)}}
@media(prefers-reduced-motion:reduce){.tt-support-send:active,.tt-support-pending{transform:none}}

/* ---------- Messenger look for the customer chat (0.11.13) ---------- */
.tt-support-thread .tt-support-conversation{gap:4px;padding:12px 6px 14px;background:#f4f7f5}
.tt-support-thread .tt-support-bubble{position:relative;display:flex;flex-direction:column;max-width:82%;padding:7px 11px 5px;border-radius:16px;box-shadow:0 1px 1px #0b2a1710}
.tt-support-thread .tt-support-fromcustomer{align-self:flex-start;background:#d9fdd3;border-start-start-radius:6px}
.tt-support-thread .tt-support-fromstaff{align-self:flex-end;background:#fff;border-start-end-radius:6px}
.tt-support-thread .tt-support-fromcustomer + .tt-support-fromcustomer,.tt-support-thread .tt-support-fromstaff + .tt-support-fromstaff{margin-top:-1px}
.tt-support-thread .tt-support-fromstaff + .tt-support-fromcustomer,.tt-support-thread .tt-support-fromcustomer + .tt-support-fromstaff{margin-top:8px}
.tt-support-thread .tt-support-message{order:1;font-size:14.5px;line-height:1.8}
.tt-support-thread .tt-support-attachments{order:2}
.tt-support-thread .tt-support-who{order:3;display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:2px 0 0;font-size:10.5px;color:#6b8577;line-height:1.4}
.tt-support-thread .tt-who-time{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
/* own messages: no name; staff: name moves above the text */
.tt-support-thread .tt-support-fromcustomer .tt-who-name{display:none}
.tt-support-thread .tt-support-fromstaff .tt-support-who{order:0;justify-content:space-between;margin:0 0 2px}
.tt-support-thread .tt-support-fromstaff .tt-who-name{font-size:11.5px;font-weight:700;color:#0f8f5c}
.tt-support-thread .tt-support-fromstaff + .tt-support-fromstaff .tt-who-name{display:none}
.tt-support-thread .tt-support-pending{opacity:.75}
/* new messages slide in */
.tt-support-thread .tt-support-new{transition:opacity .22s cubic-bezier(.23,1,.32,1),transform .22s cubic-bezier(.23,1,.32,1)}
@starting-style{.tt-support-thread .tt-support-new{opacity:0;transform:translateY(8px) scale(.97)}}
.tt-support-thread .tt-support-fromcustomer.tt-support-new{transform-origin:bottom right}
.tt-support-thread .tt-support-fromstaff.tt-support-new{transform-origin:bottom left}
/* waiting note: one quiet line, not a box */
.tt-support-thread .tt-support-waiting{margin:6px 0 2px;padding:0;border:0;background:none;color:#5d7a69;font-size:11.5px;line-height:1.7}
/* typing: three dots in a bubble */
.tt-support-thread .tt-support-typing:not([hidden]){display:inline-flex;align-items:center;gap:6px;align-self:flex-end;margin:4px 6px;padding:6px 10px;border-radius:14px;background:#fff;color:#5d7a69;font-size:11px;box-shadow:0 1px 1px #0b2a1710}
.tt-support-thread .tt-support-typing:not([hidden])::before{content:"";width:22px;height:6px;background:radial-gradient(circle,#7fa38d 2.5px,transparent 3px) 0 50%/8px 6px repeat-x;animation:tt-typing-dots 1s steps(3) infinite}
@keyframes tt-typing-dots{from{clip-path:inset(0 66% 0 0)}to{clip-path:inset(0 0 0 0)}}
/* composer: one line that grows */
.tt-support-thread .tt-support-reply-form .tt-support-composer textarea{min-height:40px;resize:none;overflow-y:auto}
@media (prefers-reduced-motion:reduce){.tt-support-thread .tt-support-new{transition:none}.tt-support-thread .tt-support-typing:not([hidden])::before{animation:none}}
