@font-face{font-family:TNXSupportIR;src:url('https://tebnex.com/wp-content/uploads/2026/10/IRANSansWebFaNum.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:TNXSupportIR;src:url('https://tebnex.com/wp-content/uploads/2026/10/IRANSansWebFaNum_Light.woff') format('woff');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:TNXSupportIR;src:url('https://tebnex.com/wp-content/uploads/2026/10/IRANSansWebFaNum_Medium.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:TNXSupportIR;src:url('https://tebnex.com/wp-content/uploads/2026/10/IRANSansWebFaNum_Bold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:TNXSupportIR;src:url('https://tebnex.com/wp-content/uploads/2026/10/IRANSansWebFaNum_UltraLight.woff') format('woff');font-weight:200;font-style:normal;font-display:swap}
.tnxsc-widget,.tnxsc-widget *,.tnxsc-app,.tnxsc-app *,.tnxsc-guest,.tnxsc-guest *{box-sizing:border-box;font-family:TNXSupportIR,Tahoma,sans-serif}
.tnxsc-widget{--sc-navy:#233251;--sc-navy-deep:#182541;--sc-red:#b61c1c;--sc-red-deep:#951515;--sc-ink:#243651;--sc-muted:#8290a4;--sc-line:#e8edf4;--sc-soft:#f6f8fb;--sc-green:#14815b;direction:rtl;color:var(--sc-ink);font-size:13px;line-height:1.8}
.tnxsc-widget [hidden],.tnxsc-app [hidden],.tnxsc-guest [hidden]{display:none!important}
.tnxsc-widget button,.tnxsc-app button,.tnxsc-app input,.tnxsc-app textarea,.tnxsc-guest a{font:inherit}
.tnxsc-widget button,.tnxsc-app button{cursor:pointer}
.tnxsc-widget button:focus-visible,.tnxsc-app button:focus-visible,.tnxsc-app textarea:focus-visible,.tnxsc-app input:focus-visible,.tnxsc-guest a:focus-visible{outline:3px solid rgba(40,89,204,.28);outline-offset:3px}
.tnxsc-launcher{position:fixed;z-index:1000001;right:23px;bottom:23px;min-height:57px;padding:0 17px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #a41616;border-radius:19px;background:linear-gradient(135deg,#c52f2f,#a91b1b);color:#fff;box-shadow:0 10px 27px rgba(135,22,22,.28),inset 0 1px rgba(255,255,255,.2);font-size:12px;font-weight:700;transition:transform .22s,box-shadow .22s,border-radius .22s}
.tnxsc-launcher:hover{transform:translateY(-3px);border-radius:22px;box-shadow:0 15px 34px rgba(135,22,22,.32)}
.tnxsc-launcher>svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7}
.tnxsc-launcher>i{width:8px;height:8px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:#85e4b0;box-shadow:0 0 0 3px rgba(133,228,176,.15)}
.tnxsc-panel{position:fixed;z-index:1000000;right:23px;bottom:91px;width:min(405px,calc(100vw - 30px));height:min(620px,calc(100dvh - 125px));min-height:410px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(223,229,239,.95);border-radius:24px;background:#fff;box-shadow:0 22px 75px rgba(18,32,54,.24);transform-origin:bottom right;animation:tnxsc-panel-in .22s cubic-bezier(.2,.75,.25,1)}
@keyframes tnxsc-panel-in{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.tnxsc-panel-top{flex:0 0 auto;min-height:42px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(135deg,#233251,#182541);color:#fff;font-weight:700;font-size:11px}
.tnxsc-panel-top button{width:28px;height:28px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.09);color:#fff}
.tnxsc-panel-top button svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8}
.tnxsc-panel .tnxsc-chat-head{display:none}
.tnxsc-app{--sc-navy:#233251;--sc-red:#b61c1c;--sc-ink:#243651;--sc-muted:#8290a4;--sc-line:#e8edf4;--sc-soft:#f6f8fb;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;color:var(--sc-ink);background:#fff;font-size:12px;line-height:1.8}
.tnxsc-app--embedded{height:min(720px,75vh);min-height:470px;border:1px solid #e6ebf3;border-radius:22px;overflow:hidden;box-shadow:0 9px 32px rgba(35,50,81,.065)}
.tnxsc-chat-head{flex:0 0 auto;display:flex;align-items:center;gap:11px;padding:15px 17px;color:#fff;background:radial-gradient(circle at 0 0,rgba(255,255,255,.13),transparent 36%),linear-gradient(135deg,#233251,#182541)}
.tnxsc-brand-mark{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:13px;background:rgba(255,255,255,.09);color:#fff}
.tnxsc-brand-mark svg{width:22px;height:22px;stroke:currentColor}
.tnxsc-chat-head__copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tnxsc-chat-head__copy strong{color:#fff;font-size:13px;font-weight:700;line-height:1.8}
.tnxsc-chat-head__copy>span{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.72);font-size:10px;line-height:1.8}
.tnxsc-chat-head__copy i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#69daa0}
.tnxsc-secure-label{display:inline-flex;align-items:center;gap:4px;color:rgba(255,255,255,.72);font-size:9px;white-space:nowrap}
.tnxsc-secure-label svg{width:14px;height:14px;stroke:currentColor}
.tnxsc-messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding:17px 13px 15px;background:radial-gradient(circle at 100% 0,rgba(58,107,199,.035),transparent 34%),linear-gradient(180deg,#fafbfd,#f7f9fc);scrollbar-width:thin;scrollbar-color:#d4dce8 transparent}
.tnxsc-messages::-webkit-scrollbar{width:5px}.tnxsc-messages::-webkit-scrollbar-thumb{background:#d4dce8;border-radius:10px}
.tnxsc-day-divider{display:flex;justify-content:center;margin:0 0 15px}.tnxsc-day-divider span{padding:4px 10px;border:1px solid #e5eaf2;border-radius:20px;background:rgba(255,255,255,.9);color:#8b97a8;font-size:9px}
.tnxsc-message{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:91%;margin:0 0 13px;min-width:0}
.tnxsc-message.is-own{align-items:flex-end;margin-right:auto;margin-left:0}
.tnxsc-message:not(.is-own){margin-left:auto;margin-right:0}
.tnxsc-bubble{position:relative;min-width:0;max-width:100%;padding:10px 12px 7px;border:1px solid #e5eaf2;border-radius:5px 15px 15px 15px;background:#fff;color:#334560;box-shadow:0 2px 8px rgba(24,43,72,.025);overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:2}
.tnxsc-message.is-own .tnxsc-bubble{border-color:#dbe6fa;border-radius:15px 5px 15px 15px;background:linear-gradient(140deg,#f2f6ff,#eaf1ff);color:#253b60}
.tnxsc-message.is-support .tnxsc-bubble{border-color:#d6eee5;background:linear-gradient(140deg,#f1fbf6,#eaf8f1)}
.tnxsc-message-content:empty{display:none}
.tnxsc-attachment-link{max-width:100%;display:flex;align-items:center;gap:8px;margin-top:5px;padding:8px 9px;border:1px solid rgba(90,111,143,.17);border-radius:10px;background:rgba(255,255,255,.78);color:#2859a9!important;text-decoration:none!important;font-size:10px;font-weight:700;overflow-wrap:anywhere}
.tnxsc-attachment-link svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor}.tnxsc-attachment-link small{display:block;color:#8290a4;font-size:9px;font-weight:400}
.tnxsc-message-meta{display:flex;align-items:center;gap:5px;padding:0 4px;color:#929daf;font-size:9px;line-height:1.6}
.tnxsc-ticks{display:inline-flex;direction:ltr;letter-spacing:-3px;padding-right:2px;font-family:Arial,sans-serif;font-size:13px;font-weight:700;color:#9aa6b7;line-height:1}
.tnxsc-ticks.is-read{color:#1788d8}
.tnxsc-message-actions{display:flex;align-items:center;gap:7px;opacity:.85}
.tnxsc-message-action{padding:0;border:0;background:transparent;color:#73839a;font-size:9px;line-height:1.6;text-decoration:underline;text-underline-offset:2px}
.tnxsc-message-action:hover{color:#b61c1c}
.tnxsc-edit-box{width:min(360px,100%);min-width:205px}
.tnxsc-edit-box textarea{width:100%;min-height:80px;resize:vertical;padding:8px;border:1px solid #cdd8eb;border-radius:10px;background:#fff;color:#263954;font:inherit;font-size:11px;line-height:1.9}
.tnxsc-edit-actions{display:flex;justify-content:flex-start;gap:6px;margin-top:7px}
.tnxsc-mini-btn{min-height:28px;padding:4px 10px;border:1px solid #dce3ee;border-radius:8px;background:#fff;color:#53637a;font-size:10px;font-weight:700}
.tnxsc-mini-btn.is-primary{border-color:#2859cc;background:#2859cc;color:#fff}
.tnxsc-loading,.tnxsc-empty-messages{min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:#8a96a8;text-align:center;font-size:10px;line-height:2;padding:18px}
.tnxsc-spinner{width:27px;height:27px;border:3px solid #e8edf4;border-top-color:#b61c1c;border-radius:50%;animation:tnxsc-spin .8s linear infinite}
@keyframes tnxsc-spin{to{transform:rotate(360deg)}}
.tnxsc-status{flex:0 0 auto;margin:0;padding:8px 13px;border-top:1px solid #f0d5d7;background:#fff4f4;color:#a12630;font-size:10px;line-height:1.9;overflow-wrap:anywhere}
.tnxsc-compose{flex:0 0 auto;padding:11px 12px 9px;border-top:1px solid #e9edf4;background:#fff}
.tnxsc-textarea-wrap{display:block;min-width:0}
.tnxsc-compose textarea{display:block;width:100%;min-height:51px;max-height:130px;resize:vertical;padding:10px 11px;border:1px solid #e6ebf2;border-radius:12px;background:#f9fafc;color:#263954;outline:none;font-size:11px;line-height:1.9;transition:border-color .2s,box-shadow .2s,background .2s}
.tnxsc-compose textarea:focus{border-color:#a9bee9;background:#fff;box-shadow:0 0 0 3px rgba(40,89,204,.06)}
.tnxsc-compose textarea::placeholder{color:#a0aab9}
.tnxsc-compose-foot{display:flex;align-items:center;gap:8px;margin-top:8px}
.tnxsc-attach-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #e6ebf2;border-radius:10px;background:#fff;color:#607087;font-size:10px;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s}
.tnxsc-attach-btn:hover{border-color:#d4dff2;background:#f6f8fc}.tnxsc-attach-btn svg{width:17px;height:17px;stroke:currentColor}.tnxsc-attach-btn input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);opacity:0}
.tnxsc-file-limit{flex:1;min-width:0;color:#a0a9b7;font-size:9px}
.tnxsc-send-btn{min-height:36px;min-width:86px;padding:7px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #a61a1a;border-radius:11px;background:linear-gradient(135deg,#c52f2f,#a91b1b);color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 11px rgba(182,28,28,.13);transition:transform .2s,box-shadow .2s,opacity .2s}
.tnxsc-send-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 15px rgba(182,28,28,.2)}.tnxsc-send-btn:disabled{opacity:.55;cursor:wait}.tnxsc-send-btn svg{width:16px;height:16px;stroke:currentColor}
.tnxsc-attachment-preview{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:7px 9px;border:1px solid #dce8fa;border-radius:10px;background:#f4f8ff;color:#355b96;font-size:10px;overflow-wrap:anywhere}.tnxsc-attachment-preview button{margin-right:auto;padding:2px 6px;border:0;border-radius:6px;background:transparent;color:#b61c1c;font-weight:700}
.tnxsc-chat-footnote{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 9px 9px;color:#9aa4b3;background:#fff;font-size:9px;line-height:1.7}.tnxsc-chat-footnote svg{width:14px;height:14px;stroke:#7e9a8d;flex:0 0 14px}
.tnxsc-guest{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:290px;padding:28px 23px;text-align:center;color:#233251;background:radial-gradient(circle at 100% 0,rgba(71,124,230,.08),transparent 45%),#fff}
.tnxsc-guest--embedded{max-width:560px;min-height:340px;margin:18px auto;padding:clamp(23px,5vw,40px);border:1px solid #e7ecf3;border-radius:22px;box-shadow:0 10px 30px rgba(35,50,81,.05)}
.tnxsc-guest__icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:16px;border:1px solid #f1d6d5;border-radius:19px;background:#fff3f2;color:#b61c1c}.tnxsc-guest__icon svg{width:29px;height:29px;stroke:currentColor}
.tnxsc-guest h3{margin:0 0 8px;color:#233251;font-size:15px;font-weight:700;line-height:1.9}.tnxsc-guest p{max-width:340px;margin:0 0 17px;color:#7f8ca0;font-size:11px;line-height:2.2}
.tnxsc-guest>a{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 18px;border:1px solid #a61a1a;border-radius:12px;background:linear-gradient(135deg,#c52f2f,#a91b1b);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:700;box-shadow:0 6px 15px rgba(182,28,28,.15);transition:transform .2s,box-shadow .2s}.tnxsc-guest>a:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(182,28,28,.22)}
.tnxsc-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.tnxsc-launcher{right:13px;bottom:calc(108px + env(safe-area-inset-bottom,0px));min-height:49px;padding:0 13px;border-radius:16px;font-size:11px}.tnxsc-launcher>svg{width:21px;height:21px}.tnxsc-panel{right:10px;bottom:calc(165px + env(safe-area-inset-bottom,0px));width:min(420px,calc(100vw - 20px));height:min(580px,calc(100dvh - 190px));min-height:330px;border-radius:21px}.tnxsc-app--embedded{height:min(700px,78vh);min-height:450px}.tnxsc-guest{min-height:255px;padding:20px}}
@media(max-width:480px){.tnxsc-panel{right:7px;bottom:calc(160px + env(safe-area-inset-bottom,0px));width:calc(100vw - 14px);height:min(570px,calc(100dvh - 180px));min-height:300px;border-radius:19px}.tnxsc-panel-top{min-height:38px;padding:6px 11px}.tnxsc-chat-head{padding:12px 12px}.tnxsc-brand-mark{width:35px;height:35px;flex-basis:35px}.tnxsc-secure-label span{display:none}.tnxsc-messages{padding:13px 10px}.tnxsc-message{max-width:95%;margin-bottom:11px}.tnxsc-bubble{padding:9px 10px;font-size:11px}.tnxsc-compose{padding:9px 9px 7px}.tnxsc-compose textarea{min-height:47px;padding:8px 10px}.tnxsc-file-limit{font-size:8px}.tnxsc-send-btn{min-width:75px}.tnxsc-app--embedded{height:72vh;min-height:420px;border-radius:17px}.tnxsc-chat-footnote{font-size:8px}}
@media(max-height:600px) and (max-width:900px){.tnxsc-panel{bottom:calc(145px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 165px);min-height:260px}.tnxsc-launcher{bottom:calc(98px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.tnxsc-widget *,.tnxsc-app *,.tnxsc-guest *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ===== Compact Elementor shortcode launcher (V1.1) ===== */
.tnxsc-embedded-widget,
.tnxsc-embedded-widget *{box-sizing:border-box;font-family:TNXSupportIR,Tahoma,sans-serif}
.tnxsc-embedded-widget{--sc-navy:#233251;--sc-red:#b61c1c;--sc-line:#e8edf4;direction:rtl;width:100%;max-width:960px;margin:0 auto;color:#243651;font-size:14px;line-height:1.9}
.tnxsc-embedded-widget [hidden]{display:none!important}
.tnxsc-embedded-widget button,.tnxsc-embedded-widget input,.tnxsc-embedded-widget textarea{font:inherit}
.tnxsc-start-card{position:relative;isolation:isolate;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:18px;overflow:hidden;padding:clamp(18px,3vw,29px);border:1px solid #e5eaf3;border-radius:23px;background:radial-gradient(circle at 0 0,rgba(182,28,28,.07),transparent 34%),radial-gradient(circle at 100% 100%,rgba(40,89,204,.07),transparent 38%),linear-gradient(135deg,#fff 0%,#f8faff 53%,#fbfcff 100%);box-shadow:0 12px 34px rgba(35,50,81,.07)}
.tnxsc-start-card:after{content:"";position:absolute;z-index:-1;left:-48px;top:-68px;width:160px;height:160px;border:1px solid rgba(35,50,81,.07);border-radius:50%;box-shadow:0 0 0 19px rgba(35,50,81,.018),0 0 0 39px rgba(35,50,81,.014);pointer-events:none}
.tnxsc-start-card__icon{width:62px;height:62px;display:grid;place-items:center;border:1px solid #f0d5d4;border-radius:19px;background:linear-gradient(145deg,#fff6f5,#ffe9e7);color:#b61c1c;box-shadow:0 7px 18px rgba(182,28,28,.075)}
.tnxsc-start-card__icon svg{width:30px;height:30px;stroke:currentColor}
.tnxsc-start-card__copy{min-width:0}
.tnxsc-start-card__eyebrow{display:flex;align-items:center;gap:7px;margin-bottom:4px;color:#b61c1c;font-size:11px;font-weight:700}
.tnxsc-start-card__eyebrow i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#20a66b;box-shadow:0 0 0 4px rgba(32,166,107,.10)}
.tnxsc-start-card__copy h2{margin:0 0 5px;color:#233251;font-size:clamp(16px,2vw,21px);font-weight:700;line-height:1.8;letter-spacing:-.2px}
.tnxsc-start-card__copy p{max-width:600px;margin:0;color:#758299;font-size:12px;font-weight:400;line-height:2.1}
.tnxsc-start-button{position:relative;z-index:1;min-height:49px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 18px;border:1px solid #a51a1a;border-radius:14px;background:linear-gradient(135deg,#c52f2f,#a51a1a);color:#fff!important;box-shadow:0 8px 19px rgba(182,28,28,.19),inset 0 1px 0 rgba(255,255,255,.17);font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.tnxsc-start-button:hover{transform:translateY(-2px);filter:saturate(1.07);box-shadow:0 12px 25px rgba(182,28,28,.25)}
.tnxsc-start-button:active{transform:translateY(0) scale(.98)}
.tnxsc-start-button svg{width:18px;height:18px;stroke:currentColor;transition:transform .2s ease}
.tnxsc-start-button:hover svg{transform:translateX(-3px)}
.tnxsc-start-button:focus-visible,.tnxsc-embedded-panel__head button:focus-visible{outline:3px solid rgba(40,89,204,.3);outline-offset:3px}
.tnxsc-embedded-panel{width:100%;margin-top:15px;overflow:hidden;border:1px solid #e2e8f1;border-radius:22px;background:#fff;box-shadow:0 18px 48px rgba(24,43,72,.12);animation:tnxsc-embedded-panel-in .22s ease both}
.tnxsc-embedded-panel[hidden]{display:none!important}
@keyframes tnxsc-embedded-panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.tnxsc-embedded-panel__head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;background:radial-gradient(circle at 0 0,rgba(255,255,255,.12),transparent 38%),linear-gradient(135deg,#233251,#182541);color:#fff}
.tnxsc-embedded-panel__head div{display:flex;flex-direction:column;gap:2px;min-width:0}
.tnxsc-embedded-panel__head strong{font-size:13px;font-weight:700;line-height:1.8}
.tnxsc-embedded-panel__head span{color:rgba(255,255,255,.73);font-size:10px;line-height:1.7}
.tnxsc-embedded-panel__head button{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.19);border-radius:11px;background:rgba(255,255,255,.09);color:#fff;cursor:pointer;transition:background .2s,transform .2s}
.tnxsc-embedded-panel__head button:hover{background:rgba(255,255,255,.18);transform:rotate(3deg)}
.tnxsc-embedded-panel__head button svg{width:17px;height:17px;stroke:currentColor}
.tnxsc-embedded-panel .tnxsc-app--embedded{height:min(610px,68vh);min-height:390px;max-height:calc(100vh - 220px);border:0;border-radius:0;box-shadow:none}
.tnxsc-embedded-panel .tnxsc-guest{min-height:280px;padding:26px 20px;background:radial-gradient(circle at 100% 0,rgba(71,124,230,.06),transparent 45%),#fff}
.tnxsc-embedded-widget .tnxsc-status{overflow-wrap:anywhere}
@media(max-width:760px){.tnxsc-start-card{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:17px;border-radius:19px}.tnxsc-start-card__icon{width:48px;height:48px;border-radius:15px}.tnxsc-start-card__icon svg{width:24px;height:24px}.tnxsc-start-card__copy h2{font-size:16px}.tnxsc-start-card__copy p{font-size:11px;line-height:2}.tnxsc-start-button{grid-column:1/-1;width:100%;min-height:47px}.tnxsc-embedded-panel{margin-top:11px;border-radius:18px}.tnxsc-embedded-panel .tnxsc-app--embedded{height:min(590px,70dvh);min-height:360px;max-height:calc(100dvh - 150px)}}
@media(max-width:420px){.tnxsc-start-card{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:14px}.tnxsc-start-card__icon{width:42px;height:42px;border-radius:13px}.tnxsc-start-card__icon svg{width:21px;height:21px}.tnxsc-start-card__eyebrow{font-size:10px}.tnxsc-start-card__copy h2{font-size:14px;line-height:1.9}.tnxsc-start-card__copy p{font-size:10px}.tnxsc-start-button{font-size:11px}.tnxsc-embedded-panel__head{padding:12px}.tnxsc-embedded-panel__head strong{font-size:12px}.tnxsc-embedded-panel .tnxsc-app--embedded{min-height:340px;height:68dvh}}
@media(prefers-reduced-motion:reduce){.tnxsc-start-card *,.tnxsc-embedded-panel *{animation:none!important;transition:none!important}}

/* ==========================================================
   Tebnex Support Chat 1.3.0 — responsive customer experience
   Scoped overrides: safe for Elementor/theme layouts.
   ========================================================== */
.tnxsc-widget .tnxsc-launcher{
  position:fixed;z-index:1000001;right:max(22px,env(safe-area-inset-right,0px));bottom:22px;
  display:flex;align-items:center;justify-content:flex-start;gap:11px;
  width:auto;min-width:222px;max-width:calc(100vw - 32px);min-height:68px;
  padding:9px 12px;border:1px solid rgba(255,255,255,.25);border-radius:22px;
  background:linear-gradient(135deg,#cc3b3b 0%,#b61c1c 54%,#921414 100%);
  color:#fff;direction:rtl;text-align:right;white-space:normal;isolation:isolate;overflow:visible;
  box-shadow:0 13px 32px rgba(145,19,19,.25),inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}
.tnxsc-widget .tnxsc-launcher::before{
  content:"";position:absolute;z-index:-1;inset:-4px;border:1px solid rgba(182,28,28,.22);border-radius:25px;
  pointer-events:none;animation:tnxsc-launcher-pulse 3.4s ease-out infinite;
}
@keyframes tnxsc-launcher-pulse{0%{transform:scale(.98);opacity:.58}70%,100%{transform:scale(1.08);opacity:0}}
.tnxsc-widget .tnxsc-launcher:hover{transform:translateY(-3px);filter:saturate(1.05);box-shadow:0 17px 37px rgba(145,19,19,.3),inset 0 1px 0 rgba(255,255,255,.24)}
.tnxsc-widget .tnxsc-launcher:active{transform:translateY(0) scale(.985)}
.tnxsc-launcher__icon{width:47px;height:47px;flex:0 0 47px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:16px;background:rgba(255,255,255,.13);box-shadow:inset 0 1px rgba(255,255,255,.12)}
.tnxsc-launcher__icon svg{display:block;width:25px;height:25px;stroke:#fff;stroke-width:1.7}
.tnxsc-launcher__copy{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:2px;line-height:1.65}
.tnxsc-launcher__copy strong{display:block;color:#fff;font-size:12px;font-weight:700;letter-spacing:-.1px}
.tnxsc-launcher__copy small{display:block;color:rgba(255,255,255,.82);font-size:10px;font-weight:400;line-height:1.7}
.tnxsc-launcher>i{width:8px;height:8px;flex:0 0 8px;align-self:flex-start;margin-top:7px;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:#8ce4b4;box-shadow:0 0 0 4px rgba(140,228,180,.15)}

/* The floating panel is a fixed, constrained flex layout: no overflow below the viewport. */
.tnxsc-widget .tnxsc-panel{
  position:fixed;z-index:1000000;right:24px;bottom:100px;left:auto;top:auto;
  display:flex;flex-direction:column;width:min(425px,calc(100vw - 32px));
  height:min(680px,calc(100dvh - 124px));min-height:0;max-height:calc(100dvh - 124px);
  overflow:hidden;border:1px solid #e4e9f2;border-radius:25px;background:#fff;
  box-shadow:0 24px 80px rgba(18,32,54,.25),0 4px 16px rgba(18,32,54,.07);
  transform-origin:bottom right;overscroll-behavior:contain;
}
.tnxsc-widget .tnxsc-panel[hidden]{display:none!important}
.tnxsc-widget .tnxsc-panel-top{
  flex:0 0 auto;min-height:76px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:13px;
  color:#fff;background:radial-gradient(circle at 0 0,rgba(255,255,255,.12),transparent 38%),linear-gradient(130deg,#263959,#182541);
  border-bottom:1px solid rgba(255,255,255,.08);font-size:13px;font-weight:700;
}
.tnxsc-panel-top__brand{min-width:0;display:flex;align-items:center;gap:11px}
.tnxsc-panel-top__mark{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:15px;color:#fff;background:rgba(255,255,255,.1)}
.tnxsc-panel-top__mark svg{display:block;width:24px;height:24px;stroke:currentColor}
.tnxsc-panel-top__copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.tnxsc-panel-top__copy strong{color:#fff;font-size:13px;font-weight:700;line-height:1.7}
.tnxsc-panel-top__copy small{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.72);font-size:10px;font-weight:400;line-height:1.7}
.tnxsc-panel-top__copy small i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#8ce4b4;box-shadow:0 0 0 3px rgba(140,228,180,.12)}
.tnxsc-widget .tnxsc-panel-top>button{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;transition:background .2s ease,transform .2s ease}
.tnxsc-widget .tnxsc-panel-top>button:hover{background:rgba(255,255,255,.18);transform:rotate(4deg)}
.tnxsc-widget .tnxsc-panel-top>button svg{width:18px;height:18px;stroke:currentColor}
.tnxsc-widget .tnxsc-panel>.tnxsc-app{flex:1 1 auto;width:100%;height:auto!important;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none}
.tnxsc-widget .tnxsc-panel>.tnxsc-guest{flex:1 1 auto;width:100%;min-height:0;padding:24px 20px;border-radius:0;overflow:auto}

/* More legible messages and stable composer sizing. */
.tnxsc-app{min-width:0;min-height:0;overflow:hidden;font-size:13px;line-height:1.85}
.tnxsc-app .tnxsc-chat-head{min-height:66px;padding:13px 15px;gap:10px}
.tnxsc-app .tnxsc-chat-head__copy strong{font-size:13px}
.tnxsc-app .tnxsc-chat-head__copy>span{font-size:10px}
.tnxsc-app .tnxsc-messages{flex:1 1 auto;min-height:0;padding:17px 14px 13px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.tnxsc-app .tnxsc-message{max-width:88%;margin-bottom:14px;gap:5px}
.tnxsc-app .tnxsc-bubble{padding:11px 13px 8px;font-size:12px;line-height:2;overflow-wrap:anywhere;word-break:normal}
.tnxsc-app .tnxsc-message-meta{gap:6px;font-size:10px}
.tnxsc-app .tnxsc-ticks{font-size:13px}
.tnxsc-app .tnxsc-compose{padding:12px 13px 9px}
.tnxsc-app .tnxsc-compose textarea{min-height:52px;max-height:120px;padding:10px 12px;font-size:12px;line-height:1.9;border-radius:14px}
.tnxsc-app .tnxsc-compose-foot{gap:9px;flex-wrap:wrap}
.tnxsc-app .tnxsc-attach-btn{min-height:38px;border-radius:11px;font-size:11px}
.tnxsc-app .tnxsc-send-btn{min-height:39px;border-radius:12px;font-size:11px}
.tnxsc-app .tnxsc-file-limit{font-size:9px}
.tnxsc-app .tnxsc-chat-footnote{min-height:31px;padding:7px 10px 9px;font-size:9px}
.tnxsc-app .tnxsc-status{flex-shrink:0;padding:8px 12px;font-size:11px}

/* Embedded shortcode card: comfortable and responsive without changing its behavior. */
.tnxsc-embedded-widget{width:100%;max-width:980px;min-width:0;margin:0 auto;isolation:isolate}
.tnxsc-embedded-widget .tnxsc-start-card{
  grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:17px;
  padding:clamp(18px,3vw,28px);border:1px solid #e3e9f2;border-radius:24px;
  background:radial-gradient(circle at 0 0,rgba(182,28,28,.065),transparent 34%),radial-gradient(circle at 100% 100%,rgba(40,89,204,.065),transparent 38%),linear-gradient(135deg,#fff 0%,#f7f9fe 60%,#fbfcff 100%);
  box-shadow:0 12px 34px rgba(35,50,81,.065)
}
.tnxsc-embedded-widget .tnxsc-start-card__icon{width:60px;height:60px;flex-basis:60px;border-radius:19px}
.tnxsc-embedded-widget .tnxsc-start-card__copy h2{font-size:clamp(17px,2vw,22px);line-height:1.8}
.tnxsc-embedded-widget .tnxsc-start-card__copy p{font-size:12px;line-height:2.15}
.tnxsc-embedded-widget .tnxsc-start-button{
  min-width:190px;min-height:62px;display:flex;align-items:center;justify-content:flex-start;gap:10px;
  padding:9px 10px;border:1px solid #a61b1b;border-radius:17px;
  background:linear-gradient(135deg,#cb3838 0%,#b61c1c 55%,#951515 100%);
  box-shadow:0 10px 22px rgba(182,28,28,.19),inset 0 1px rgba(255,255,255,.18);
  text-align:right;white-space:normal;transition:transform .22s ease,box-shadow .22s ease,filter .22s ease
}
.tnxsc-embedded-widget .tnxsc-start-button:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(182,28,28,.25),inset 0 1px rgba(255,255,255,.2);filter:saturate(1.06)}
.tnxsc-start-button__symbol{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:13px;background:rgba(255,255,255,.12);color:#fff}
.tnxsc-start-button__symbol svg{width:22px;height:22px;stroke:currentColor}
.tnxsc-start-button__copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tnxsc-start-button__copy strong{display:block;color:#fff;font-size:12px;font-weight:700;line-height:1.7}
.tnxsc-start-button__copy small{display:block;color:rgba(255,255,255,.8);font-size:9px;font-weight:400;line-height:1.7}
.tnxsc-start-button__arrow{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;color:#fff;opacity:.9}
.tnxsc-start-button__arrow svg{width:17px;height:17px;stroke:currentColor;transition:transform .2s ease}
.tnxsc-start-button:hover .tnxsc-start-button__arrow svg{transform:translateX(-3px)}
.tnxsc-embedded-widget .tnxsc-embedded-panel{margin-top:16px;border:1px solid #e1e7f0;border-radius:22px;box-shadow:0 18px 46px rgba(24,43,72,.11)}
.tnxsc-embedded-widget .tnxsc-embedded-panel__head{min-height:67px;padding:13px 16px}
.tnxsc-embedded-widget .tnxsc-embedded-panel .tnxsc-app--embedded{
  display:flex;flex:0 1 auto;width:100%;height:clamp(360px,65vh,620px);min-height:min(360px,calc(100dvh - 150px));max-height:calc(100dvh - 160px);
  border:0;border-radius:0;box-shadow:none
}
.tnxsc-embedded-widget .tnxsc-embedded-panel .tnxsc-guest{min-height:0;padding:clamp(20px,4vw,34px);border-radius:0}

@media(max-width:900px){
  .tnxsc-widget .tnxsc-launcher{right:14px;bottom:calc(108px + env(safe-area-inset-bottom,0px));min-width:202px;min-height:60px;max-width:calc(100vw - 28px);padding:8px 10px;border-radius:19px}
  .tnxsc-launcher__icon{width:43px;height:43px;flex-basis:43px;border-radius:14px}
  .tnxsc-launcher__copy strong{font-size:11px}.tnxsc-launcher__copy small{font-size:9px}
  .tnxsc-widget .tnxsc-panel{right:10px;bottom:calc(164px + env(safe-area-inset-bottom,0px));width:calc(100vw - 20px);height:min(610px,calc(100dvh - 184px - env(safe-area-inset-bottom,0px)));min-height:min(310px,calc(100dvh - 184px));max-height:calc(100dvh - 175px);border-radius:23px}
  .tnxsc-widget .tnxsc-panel-top{min-height:69px;padding:11px 13px}
  .tnxsc-panel-top__mark{width:39px;height:39px;flex-basis:39px;border-radius:13px}
  .tnxsc-app .tnxsc-messages{padding:13px 11px 10px}
  .tnxsc-app .tnxsc-message{max-width:92%;margin-bottom:11px}
  .tnxsc-app .tnxsc-bubble{padding:10px 11px;font-size:12px}
  .tnxsc-app .tnxsc-compose{padding:10px 10px 7px}
  .tnxsc-embedded-widget .tnxsc-start-card{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:18px;border-radius:20px}
  .tnxsc-embedded-widget .tnxsc-start-card__icon{width:52px;height:52px;flex-basis:52px;border-radius:16px}
  .tnxsc-embedded-widget .tnxsc-start-button{grid-column:1/-1;width:100%;min-width:0;min-height:58px;justify-content:center}
  .tnxsc-embedded-widget .tnxsc-start-button__copy{flex:0 1 auto}
  .tnxsc-embedded-widget .tnxsc-start-button__arrow{margin-inline-start:auto}
  .tnxsc-embedded-widget .tnxsc-embedded-panel{margin-top:12px;border-radius:19px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel .tnxsc-app--embedded{height:min(610px,66dvh);min-height:min(360px,calc(100dvh - 150px));max-height:calc(100dvh - 150px)}
}
@media(max-width:520px){
  .tnxsc-widget .tnxsc-launcher{right:12px;bottom:calc(108px + env(safe-area-inset-bottom,0px));min-width:190px;min-height:57px}
  .tnxsc-widget .tnxsc-panel{right:7px;bottom:calc(158px + env(safe-area-inset-bottom,0px));width:calc(100vw - 14px);height:calc(100dvh - 176px - env(safe-area-inset-bottom,0px));min-height:min(260px,calc(100dvh - 176px));max-height:calc(100dvh - 168px);border-radius:20px}
  .tnxsc-widget .tnxsc-panel-top{min-height:63px;padding:9px 11px}
  .tnxsc-panel-top__mark{width:36px;height:36px;flex-basis:36px;border-radius:12px}
  .tnxsc-panel-top__copy strong{font-size:12px}.tnxsc-panel-top__copy small{font-size:9px}
  .tnxsc-app .tnxsc-messages{padding:11px 9px 8px}
  .tnxsc-app .tnxsc-message{max-width:95%;gap:4px}
  .tnxsc-app .tnxsc-bubble{font-size:11.5px;line-height:1.95;padding:9px 10px}
  .tnxsc-app .tnxsc-message-meta{font-size:9px}
  .tnxsc-app .tnxsc-compose textarea{min-height:47px;max-height:100px;padding:8px 10px;font-size:12px}
  .tnxsc-app .tnxsc-attach-btn{min-height:35px;padding:6px 9px}
  .tnxsc-app .tnxsc-send-btn{min-height:36px;padding:7px 11px}
  .tnxsc-app .tnxsc-file-limit{font-size:8px}
  .tnxsc-app .tnxsc-chat-footnote{font-size:8px;line-height:1.6}
  .tnxsc-embedded-widget .tnxsc-start-card{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:14px;border-radius:17px}
  .tnxsc-embedded-widget .tnxsc-start-card__icon{width:44px;height:44px;flex-basis:44px;border-radius:13px}
  .tnxsc-embedded-widget .tnxsc-start-card__icon svg{width:22px;height:22px}
  .tnxsc-embedded-widget .tnxsc-start-card__copy h2{font-size:15px;line-height:1.85}
  .tnxsc-embedded-widget .tnxsc-start-card__copy p{font-size:10.5px;line-height:2}
  .tnxsc-embedded-widget .tnxsc-start-card__eyebrow{font-size:10px}
  .tnxsc-embedded-widget .tnxsc-start-button{min-height:54px;border-radius:15px}
  .tnxsc-start-button__symbol{width:36px;height:36px;flex-basis:36px;border-radius:11px}
  .tnxsc-start-button__copy strong{font-size:11px}.tnxsc-start-button__copy small{font-size:9px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel__head{min-height:59px;padding:10px 12px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel__head strong{font-size:12px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel .tnxsc-app--embedded{height:min(600px,63dvh);min-height:min(320px,calc(100dvh - 150px));max-height:calc(100dvh - 145px)}
}
@media(max-width:360px){
  .tnxsc-widget .tnxsc-launcher{right:10px;min-width:178px;min-height:54px;gap:8px}
  .tnxsc-launcher__icon{width:39px;height:39px;flex-basis:39px}
  .tnxsc-launcher__copy strong{font-size:10px}.tnxsc-launcher__copy small{font-size:8px}
  .tnxsc-widget .tnxsc-panel{right:5px;width:calc(100vw - 10px);bottom:calc(151px + env(safe-area-inset-bottom,0px))}
  .tnxsc-app .tnxsc-send-btn{min-width:68px}
  .tnxsc-app .tnxsc-file-limit{display:none}
}
@media(max-height:520px) and (max-width:900px){
  .tnxsc-widget .tnxsc-panel{bottom:calc(145px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 160px - env(safe-area-inset-bottom,0px));min-height:0;max-height:calc(100dvh - 155px)}
  .tnxsc-widget .tnxsc-panel-top{min-height:51px;padding:6px 10px}
  .tnxsc-panel-top__mark{width:32px;height:32px;flex-basis:32px}
  .tnxsc-app .tnxsc-chat-footnote{display:none}
}
@media(prefers-reduced-motion:reduce){
  .tnxsc-widget .tnxsc-launcher::before{animation:none;opacity:0}
  .tnxsc-widget .tnxsc-launcher,.tnxsc-embedded-widget .tnxsc-start-button,.tnxsc-app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(max-width:768px){body.tnxsc-chat-open{touch-action:auto!important}}


/* ==========================================================
   Tebnex Support Chat 1.4.0 — Customer UX polish
   ========================================================== */
#tnxsc-floating-widget .tnxsc-launcher{min-height:60px;padding:7px 13px;gap:10px;border-radius:18px;box-shadow:0 13px 30px rgba(135,22,22,.25),inset 0 1px rgba(255,255,255,.2)}
#tnxsc-floating-widget .tnxsc-launcher__icon{width:43px;height:43px;flex-basis:43px;border-radius:14px}
#tnxsc-floating-widget .tnxsc-launcher__copy strong{font-size:12px;letter-spacing:0}
#tnxsc-floating-widget .tnxsc-launcher__copy small{font-size:10px;line-height:1.75}
#tnxsc-floating-widget .tnxsc-launcher>i{flex:0 0 8px}
#tnxsc-floating-widget .tnxsc-launcher:focus-visible{outline:3px solid rgba(182,28,28,.28);outline-offset:4px}
#tnxsc-floating-widget .tnxsc-panel{width:min(420px,calc(100vw - 20px));max-height:calc(100dvh - 24px);min-height:0;border:1px solid rgba(226,231,240,.98);border-radius:24px;box-shadow:0 25px 85px rgba(17,29,49,.26),0 4px 15px rgba(17,29,49,.09)}
#tnxsc-floating-widget .tnxsc-panel-top{min-height:76px;padding:14px 16px;gap:12px;background:radial-gradient(circle at 8% 0,rgba(255,255,255,.16),transparent 36%),linear-gradient(132deg,#263958,#182541 70%,#341f35)}
#tnxsc-floating-widget .tnxsc-panel-top__brand{gap:12px}
#tnxsc-floating-widget .tnxsc-panel-top__mark{width:45px;height:45px;flex-basis:45px;border:1px solid rgba(255,255,255,.23);border-radius:15px;background:rgba(255,255,255,.12);box-shadow:inset 0 1px rgba(255,255,255,.09)}
#tnxsc-floating-widget .tnxsc-panel-top__copy strong{font-size:14px;line-height:1.8}
#tnxsc-floating-widget .tnxsc-panel-top__copy small{font-size:10px}
#tnxsc-floating-widget .tnxsc-panel-top button{width:36px;height:36px;border-radius:12px}
#tnxsc-floating-widget .tnxsc-app{background:#fff}
#tnxsc-floating-widget .tnxsc-app .tnxsc-messages{background:radial-gradient(circle at 100% 0,rgba(182,28,28,.035),transparent 35%),linear-gradient(180deg,#fbfcfe,#f7f9fc);padding:18px 14px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-bubble{font-size:12px;line-height:2.05;border-radius:6px 16px 16px 16px;box-shadow:0 4px 13px rgba(35,50,81,.035)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-message.is-own .tnxsc-bubble{border-color:#ead0d0;background:linear-gradient(145deg,#fff5f4,#fff0ef);color:#54383a;border-radius:16px 6px 16px 16px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-message.is-support .tnxsc-bubble{border-color:#dce8df;background:linear-gradient(145deg,#f5fbf7,#edf8f1)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-compose{padding:12px 13px 8px;border-top:1px solid #e8edf4;background:linear-gradient(180deg,#fff,#fcfcfe)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-compose textarea{min-height:57px;border-radius:15px;background:#f8f9fc;border-color:#e2e7f0;font-size:12px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-attach-btn{min-height:41px;border-radius:12px;background:#fff}
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn{min-height:41px;min-width:92px;border-radius:12px;background:linear-gradient(135deg,#c52f2f,#a91b1b);box-shadow:0 7px 16px rgba(182,28,28,.16)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-chat-footnote{min-height:34px;background:#fff;color:#8a96a7;font-size:9px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-empty-messages{min-height:100%;gap:10px;padding:22px 14px}
#tnxsc-floating-widget .tnxsc-welcome{width:100%;max-width:300px;margin:auto;display:flex;align-items:center;flex-direction:column;text-align:center;gap:8px}
#tnxsc-floating-widget .tnxsc-welcome__icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid #f0d7d6;border-radius:19px;background:linear-gradient(145deg,#fff7f6,#ffebea);color:#b61c1c;box-shadow:0 7px 18px rgba(182,28,28,.07)}
#tnxsc-floating-widget .tnxsc-welcome__icon svg{width:29px;height:29px;stroke:currentColor}
#tnxsc-floating-widget .tnxsc-welcome__title{margin:2px 0 0;color:#233251;font-size:15px;font-weight:700;line-height:1.9}
#tnxsc-floating-widget .tnxsc-welcome__text{margin:0;color:#7f8ca0;font-size:11px;font-weight:400;line-height:2}
#tnxsc-floating-widget .tnxsc-welcome__quick{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}
#tnxsc-floating-widget .tnxsc-welcome__quick button{min-width:0;min-height:42px;padding:8px 9px;border:1px solid #e8d8d8;border-radius:12px;background:#fff;color:#923030;font-size:10px;font-weight:700;line-height:1.7;white-space:normal;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}
#tnxsc-floating-widget .tnxsc-welcome__quick button:hover{background:#fff5f4;border-color:#dcaeae;box-shadow:0 5px 14px rgba(182,28,28,.07);transform:translateY(-1px)}
#tnxsc-floating-widget .tnxsc-guest{padding:30px 24px;background:radial-gradient(circle at 100% 0,rgba(182,28,28,.06),transparent 45%),#fff}
#tnxsc-floating-widget .tnxsc-guest__icon{width:64px;height:64px;border-radius:21px}
#tnxsc-floating-widget .tnxsc-guest h3{font-size:16px}
#tnxsc-floating-widget .tnxsc-guest p{font-size:12px;line-height:2.1}
@media(max-width:900px){
 #tnxsc-floating-widget .tnxsc-launcher{min-height:56px;padding:6px 11px;border-radius:16px;max-width:calc(100vw - 20px)}
 #tnxsc-floating-widget .tnxsc-launcher__icon{width:41px;height:41px;flex-basis:41px}
 #tnxsc-floating-widget .tnxsc-panel{width:calc(100vw - 18px);border-radius:22px}
 #tnxsc-floating-widget .tnxsc-panel-top{min-height:72px;padding:11px 13px}
 #tnxsc-floating-widget .tnxsc-app .tnxsc-messages{padding:13px 11px}
 #tnxsc-floating-widget .tnxsc-app .tnxsc-compose{padding:10px 10px 7px}
}
@media(max-width:520px){
 #tnxsc-floating-widget .tnxsc-launcher{min-height:52px;gap:8px}
 #tnxsc-floating-widget .tnxsc-launcher__copy strong{font-size:11px}
 #tnxsc-floating-widget .tnxsc-launcher__copy small{font-size:9px}
 #tnxsc-floating-widget .tnxsc-panel-top__mark{width:39px;height:39px;flex-basis:39px}
 #tnxsc-floating-widget .tnxsc-panel-top__copy strong{font-size:13px}
 #tnxsc-floating-widget .tnxsc-app .tnxsc-bubble{font-size:11.5px}
 #tnxsc-floating-widget .tnxsc-welcome__quick{grid-template-columns:minmax(0,1fr)}
 #tnxsc-floating-widget .tnxsc-welcome__quick button{min-height:39px}
}
@media(prefers-reduced-motion:reduce){#tnxsc-floating-widget .tnxsc-launcher,#tnxsc-floating-widget .tnxsc-panel *{animation:none!important;transition:none!important}}

/* ========== V6 Premium UX by Shervin Soluki ========== */
:root{
  --tnx-red:#b71b1c;
  --tnx-red-deep:#9a1516;
  --tnx-navy:#0c2c65;
  --tnx-navy-deep:#081f4a;
}

/* Send button - white text always */
.tnxsc-send-btn,
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn,
.tnxsc-app .tnxsc-send-btn{
  color:#ffffff !important;
  background:linear-gradient(135deg,var(--tnx-red),var(--tnx-red-deep)) !important;
  border:none !important;
  font-weight:700 !important;
}
.tnxsc-send-btn span,
.tnxsc-send-btn svg{color:#fff !important;stroke:#fff !important}

/* Unread badge */
.tnxsc-launcher__badge{
  position:absolute;top:-6px;left:-6px;min-width:22px;height:22px;padding:0 6px;
  display:flex;align-items:center;justify-content:center;
  border-radius:999px;background:var(--tnx-red);color:#fff;
  font-size:11px;font-weight:800;line-height:1;
  box-shadow:0 4px 12px rgba(183,27,28,.45);
  z-index:2;animation:tnxsc-badge-pop .4s cubic-bezier(.2,.8,.2,1);
}
.tnxsc-launcher__badge[hidden]{display:none!important}
@keyframes tnxsc-badge-pop{from{transform:scale(0)}to{transform:scale(1)}}

/* Attract attention first 5s */
.tnxsc-launcher.is-attract{
  animation:tnxsc-attract 1.2s ease-in-out infinite;
}
@keyframes tnxsc-attract{
  0%,100%{transform:translateY(0) scale(1);box-shadow:0 10px 27px rgba(135,22,22,.28)}
  50%{transform:translateY(-8px) scale(1.04);box-shadow:0 18px 40px rgba(183,27,28,.45)}
}
.tnxsc-launcher.has-unread{
  animation:tnxsc-unread-pulse 1.6s ease-in-out infinite;
}
@keyframes tnxsc-unread-pulse{
  0%,100%{box-shadow:0 10px 27px rgba(135,22,22,.28),0 0 0 0 rgba(183,27,28,.4)}
  50%{box-shadow:0 14px 34px rgba(135,22,22,.35),0 0 0 12px rgba(183,27,28,0)}
}

/* Typewriter */
.tnxsc-typewriter{display:inline-block;min-height:1.4em;white-space:nowrap;overflow:hidden;border-left:2px solid rgba(255,255,255,.7);padding-left:2px;animation:tnxsc-caret .8s step-end infinite}
@keyframes tnxsc-caret{50%{border-color:transparent}}

/* Mobile: full screen chat panel */
@media (max-width:768px){
  #tnxsc-floating-widget .tnxsc-panel,
  .tnxsc-widget .tnxsc-panel{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    min-height:100dvh !important;
    border-radius:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    top:0 !important;
    z-index:2147483000 !important;
    transform:none !important;
  }
  #tnxsc-floating-widget .tnxsc-panel-top{border-radius:0;min-height:56px;padding:10px 12px}
  #tnxsc-floating-widget .tnxsc-app{height:calc(100dvh - 56px);min-height:0}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-messages{flex:1;min-height:0}
  body.tnxsc-chat-open{overflow:hidden !important;touch-action:none}
}

/* Hide launcher when mobile menu open or near footer */
.tnxsc-launcher.is-hidden-by-ui{
  opacity:0 !important;
  pointer-events:none !important;
  transform:translateY(20px) scale(.9) !important;
  transition:opacity .25s,transform .25s !important;
}

/* Admin unread highlight */
.tnxsc-admin-wrap .tnxsc-conv-item.has-unread .tnxsc-conv-unread,
.tnxsc-conv-item .tnxsc-unread-count{
  background:var(--tnx-red) !important;
  color:#fff !important;
  font-weight:800;
  animation:tnxsc-badge-pop .35s ease;
}
.tnxsc-admin-wrap .tnxsc-conv-item.has-unread{
  border-right:3px solid var(--tnx-red);
  background:linear-gradient(90deg,rgba(183,27,28,.06),transparent);
}

/* Developer section */
.tnxsc-dev-gate{margin-top:28px;padding:20px;border:1px dashed #cfd8e6;border-radius:16px;background:#f8fafc}
.tnxsc-dev-gate h3{margin:0 0 8px;color:var(--tnx-navy);font-size:15px}
.tnxsc-dev-gate input[type=password]{min-width:180px;padding:8px 12px;border:1px solid #d0d7e2;border-radius:10px}
.tnxsc-dev-panel{display:none;margin-top:16px;padding:18px;border-radius:16px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 8px 24px rgba(12,44,101,.06)}
.tnxsc-dev-panel.is-open{display:block}
.tnxsc-dev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.tnxsc-dev-card{padding:14px;border:1px solid #e8edf4;border-radius:12px;background:#fafbfd}
.tnxsc-dev-card h4{margin:0 0 10px;color:var(--tnx-navy);font-size:13px}
.tnxsc-dev-card label{display:block;margin:8px 0 4px;font-size:12px;color:#54627a}
.tnxsc-dev-card input,.tnxsc-dev-card select,.tnxsc-dev-card textarea{width:100%;padding:8px 10px;border:1px solid #d5dce8;border-radius:8px;font-size:12px}

/* Analytics */
.tnxsc-analytics{margin:24px 0;padding:20px;border-radius:16px;background:#fff;border:1px solid #e6ebf3}
.tnxsc-analytics h3{margin:0 0 14px;color:var(--tnx-navy)}
.tnxsc-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.tnxsc-chart-card{padding:14px;border-radius:12px;background:linear-gradient(145deg,#f8fafc,#fff);border:1px solid #e8edf4;text-align:center}
.tnxsc-chart-card strong{display:block;font-size:22px;color:var(--tnx-red);font-weight:800}
.tnxsc-chart-card span{font-size:12px;color:#6b7a90}

/* Content browser */
.tnxsc-content-browser{margin:20px 0;padding:18px;border-radius:16px;border:1px solid #e6ebf3;background:#fff}
.tnxsc-content-browser table{width:100%;border-collapse:collapse;font-size:12px}
.tnxsc-content-browser th,.tnxsc-content-browser td{padding:8px 10px;border-bottom:1px solid #eef2f7;text-align:right}
.tnxsc-content-browser th{background:#f5f8fc;color:var(--tnx-navy);font-weight:700}

/* Admin fully responsive reply area */
@media (max-width:900px){
  .tnxsc-admin-wrap .tnxsc-admin-layout{display:flex;flex-direction:column}
  .tnxsc-admin-wrap .tnxsc-inbox{max-height:40vh;overflow:auto}
  .tnxsc-admin-wrap .tnxsc-thread{min-height:55vh}
  .tnxsc-admin-wrap .tnxsc-app{min-height:50vh}
}

/* WooCommerce my-account support */
.woocommerce-MyAccount-navigation-link--support a::before{content:"💬 ";}
.tnxsc-myaccount-chat{margin-top:12px;min-height:520px}


/* V7.0 — refined states, typography and interactive feedback */
.tnxsc-empty-state{display:flex;flex:1;min-height:150px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:5px;padding:22px;color:#718097;background:radial-gradient(circle at 50% 25%,rgba(183,27,28,.045),transparent 45%)}
.tnxsc-empty-state[hidden]{display:none!important}
.tnxsc-empty-state>span{display:grid;place-items:center;width:44px;height:44px;margin-bottom:4px;border:1px solid #f0dada;border-radius:15px;background:#fff6f5;color:#b71b1c;font-size:22px}
.tnxsc-empty-state strong{color:#233251;font-size:12px}
.tnxsc-empty-state p{max-width:300px;margin:0;color:#8290a4;font-size:10px;line-height:2}
.tnxsc-status{padding:8px 12px;color:#b71b1c;font-size:11px}
.tnxsc-compose textarea{min-height:44px;max-height:150px;resize:vertical;line-height:1.9}
.tnxsc-send-btn{transition:transform .18s,box-shadow .18s,opacity .18s}
.tnxsc-send-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px rgba(183,27,28,.2)}
.tnxsc-send-btn:disabled{opacity:.65;cursor:wait}
.tnxsc-launcher__copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.tnxsc-launcher__copy strong{font-weight:700}
.tnxsc-launcher__copy small{max-width:min(260px,62vw);font-size:10px}
@media(max-width:768px){
  .tnxsc-panel .tnxsc-app{height:calc(100dvh - 56px - env(safe-area-inset-top));max-height:none;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
  .tnxsc-panel .tnxsc-panel-top{padding-top:max(10px,env(safe-area-inset-top))}
  .tnxsc-panel .tnxsc-compose{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .tnxsc-panel .tnxsc-messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .tnxsc-app .tnxsc-send-btn{min-height:42px;min-width:78px;color:#fff!important}
}
.tnxsc-dev-gate-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tnxsc-dev-gate-row input[type=password]{min-height:40px;max-width:260px;box-sizing:border-box}
.tnxsc-dev-gate-row .button{min-height:40px;border-radius:10px;background:#b71b1c;border-color:#9a1516;color:#fff;font-weight:700}
.tnxsc-dev-status,.tnxsc-dev-save-row span{display:block;font-size:11px;line-height:1.9;color:#64748b}
.tnxsc-dev-status.is-error,.tnxsc-dev-save-row span.is-error{color:#b71b1c}
.tnxsc-dev-status.is-success,.tnxsc-dev-save-row span.is-success{color:#16845d}
.tnxsc-dev-panel[hidden]{display:none!important}
.tnxsc-dev-tools{margin:16px 0;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.tnxsc-dev-tools>h4{margin:0 0 5px;color:#0c2c65;font-size:13px}
.tnxsc-dev-tools>p{margin:0 0 12px;color:#718097;font-size:10px;line-height:2}
.tnxsc-dev-retention-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.tnxsc-dev-retention-form select{min-height:38px;min-width:180px}
.tnxsc-dev-tools .tnxsc-position-card{margin:12px 0 0;box-shadow:none}
.tnxsc-dev-tools .tnxsc-position-card .tnxsc-position-head{display:none}
.tnxsc-dev-save-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #e8edf4}
.tnxsc-dev-save-row .button{min-height:42px;padding:0 16px;background:#b71b1c;border-color:#9a1516;border-radius:10px;color:#fff;font-weight:700}
.tnxsc-dev-card input[type=checkbox]{width:auto;min-height:0}
.tnxsc-dev-card #tnxsc_bale_webhook_url{direction:ltr;text-align:left;font-size:10px}
.tnxsc-content-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.tnxsc-content-actions .button{white-space:nowrap}
.tnxsc-content-delete{color:#b71b1c!important;border-color:#e6b9ba!important}
.tnxsc-content-delete:disabled{opacity:.5}
.tnxsc-analytics-bars{display:grid;grid-template-columns:1fr;gap:11px;margin-top:16px}
.tnxsc-analytics-row{display:grid;grid-template-columns:minmax(130px,190px) minmax(90px,1fr) 46px;gap:12px;align-items:center;color:#64748b;font-size:11px}
.tnxsc-analytics-row strong{color:#233251;font-size:11px;text-align:left}
.tnxsc-analytics-track{height:9px;overflow:hidden;border-radius:20px;background:#eef1f6}
.tnxsc-analytics-track i{display:block;height:100%;min-width:0;border-radius:20px;transition:width .4s ease}
.tnxsc-analytics-track i.is-customer{background:linear-gradient(90deg,#d64b4c,#b71b1c)}
.tnxsc-analytics-track i.is-support{background:linear-gradient(90deg,#1d4f9b,#0c2c65)}
@media(max-width:600px){
  .tnxsc-dev-gate-row{align-items:stretch;flex-direction:column}
  .tnxsc-dev-gate-row input[type=password],.tnxsc-dev-gate-row .button{width:100%;max-width:none;min-height:42px}
  .tnxsc-dev-panel{padding:10px}
  .tnxsc-dev-tools{padding:11px}
  .tnxsc-dev-retention-form{flex-direction:column;align-items:stretch}
  .tnxsc-dev-retention-form select,.tnxsc-dev-retention-form .button{width:100%;min-height:42px}
  .tnxsc-analytics-row{grid-template-columns:minmax(105px,1fr) minmax(65px,1.2fr) 38px;gap:7px;font-size:9px}
  .tnxsc-analytics-row strong{font-size:9px}
  .tnxsc-content-browser{padding:11px}
}

.tnxsc-app .tnxsc-messages[hidden]{display:none!important}

.tnxsc-status.is-error{color:#b71b1c;background:#fff6f5;border-top:1px solid #f4dede}
.tnxsc-status.is-success{color:#16845d;background:#f2fbf7;border-top:1px solid #d7efe3}
.tnxsc-attachment-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 12px 8px;padding:8px 10px;border:1px solid #e3eaf3;border-radius:10px;background:#f8fafc;color:#506078;font-size:10px}
.tnxsc-attachment-preview-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tnxsc-attachment-preview button{flex:0 0 auto;padding:4px 9px;border:1px solid #efc7c8;border-radius:8px;background:#fff;color:#b71b1c;font-size:10px}

/* V7.1 — resilient integration with the existing Tebnex header/footer and polished chat shell */
#tnxsc-floating-widget .tnxsc-launcher.is-hidden-by-ui{
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
  transform:translateY(14px) scale(.94)!important;
}
#tnxsc-floating-widget .tnxsc-launcher__copy small{max-width:min(280px,62vw);overflow-wrap:anywhere}
#tnxsc-floating-widget .tnxsc-panel{isolation:isolate;overscroll-behavior:contain}
#tnxsc-floating-widget .tnxsc-app .tnxsc-chat-head{flex:0 0 auto;background:linear-gradient(135deg,#fff 0%,#fbfcff 100%)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-messages{scrollbar-width:thin;scrollbar-color:#d5dce7 transparent;overscroll-behavior:contain;scroll-behavior:smooth}
#tnxsc-floating-widget .tnxsc-app .tnxsc-messages::-webkit-scrollbar{width:5px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-messages::-webkit-scrollbar-thumb{border-radius:20px;background:#d5dce7}
#tnxsc-floating-widget .tnxsc-app .tnxsc-message-content{overflow-wrap:anywhere;word-break:break-word}
#tnxsc-floating-widget .tnxsc-app .tnxsc-attachment-link{max-width:100%;overflow-wrap:anywhere}
#tnxsc-floating-widget .tnxsc-app .tnxsc-compose{flex:0 0 auto;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
#tnxsc-floating-widget .tnxsc-app .tnxsc-compose textarea{width:100%;min-width:0;max-width:100%;resize:none;overflow-y:auto;outline:none}
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn,
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn span,
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn svg{color:#fff!important;stroke:#fff}
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn{background:linear-gradient(135deg,#c52f2f,#a91b1b);border:1px solid #a51a1a;box-shadow:0 5px 15px rgba(183,27,28,.17)}
#tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn:focus-visible{outline:3px solid rgba(183,27,28,.3);outline-offset:3px}
#tnxsc-floating-widget .tnxsc-app .tnxsc-status{flex:0 0 auto;overflow-wrap:anywhere}
@media(max-width:768px){
  #tnxsc-floating-widget .tnxsc-panel,
  .tnxsc-widget .tnxsc-panel{
    position:fixed!important;inset:0!important;width:100vw!important;width:100dvw!important;
    height:100vh!important;height:100dvh!important;min-height:100vh!important;min-height:100dvh!important;
    max-height:100vh!important;max-height:100dvh!important;right:0!important;bottom:0!important;left:0!important;top:0!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
    padding-top:env(safe-area-inset-top,0px);z-index:2147483000!important;
  }
  #tnxsc-floating-widget .tnxsc-panel-top{min-height:64px;padding:10px 13px}
  #tnxsc-floating-widget .tnxsc-app{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 auto;overflow:hidden}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-messages{flex:1 1 auto;min-height:0;padding:15px 12px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose{padding:10px 11px max(12px,env(safe-area-inset-bottom,0px))}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose-foot{gap:8px;flex-wrap:wrap}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn{min-height:44px;min-width:84px;flex:0 0 auto}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-file-limit{font-size:9px}
  body.tnxsc-chat-open{overflow:hidden!important;overscroll-behavior:none}
}
@media(max-width:380px){
  #tnxsc-floating-widget .tnxsc-panel-top__copy strong{font-size:12px}
  #tnxsc-floating-widget .tnxsc-panel-top__copy small{font-size:9px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose-foot{gap:6px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-attach-btn{padding-inline:8px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-send-btn{min-width:74px;padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){
  #tnxsc-floating-widget .tnxsc-launcher.is-hidden-by-ui,
  #tnxsc-floating-widget .tnxsc-launcher,
  #tnxsc-floating-widget .tnxsc-panel,
  #tnxsc-floating-widget .tnxsc-app *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
@media(max-width:768px){body.tnxsc-chat-open{touch-action:auto!important}}


/* V8 — close control, authored-by credit, blocked-thread state, keyboard/touch comfort */
.tnxsc-widget .tnxsc-panel-close{width:40px!important;height:40px!important;flex:0 0 40px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:13px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;box-shadow:0 3px 12px rgba(0,0,0,.12);transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.tnxsc-widget .tnxsc-panel-close:hover{background:rgba(255,255,255,.22)!important;transform:rotate(5deg) scale(1.04);box-shadow:0 6px 16px rgba(0,0,0,.16)}
.tnxsc-widget .tnxsc-panel-close:active{transform:scale(.94)}
.tnxsc-widget .tnxsc-panel-close svg{width:20px!important;height:20px!important}
.tnxsc-empty-state{gap:9px}
.tnxsc-empty-state__spark{width:43px;height:43px;display:grid;place-items:center;border:1px solid #f1d7d6;border-radius:15px;background:linear-gradient(145deg,#fff8f7,#fff);color:#b71b1c;font-size:25px;box-shadow:0 8px 20px rgba(183,27,28,.08)}
.tnxsc-maker-credit{margin-top:8px;padding:8px 12px;border:1px solid #e8edf5;border-radius:13px;background:linear-gradient(120deg,#fff,#f7f9fd);color:#7a879a;font-size:10px;line-height:1.9}
.tnxsc-maker-credit a{display:inline-block;margin-right:3px;color:#b71b1c!important;font-weight:800;text-decoration:none!important;text-underline-offset:3px}
.tnxsc-maker-credit a:hover{text-decoration:underline!important;color:#0c2c65!important}
.tnxsc-blocked-notice{flex:0 0 auto;margin:0;padding:11px 14px;border-top:1px solid #f5d1d1;border-bottom:1px solid #f5d1d1;background:#fff5f5;color:#9d2020;font-size:11px;line-height:1.9}
.tnxsc-compose.is-conversation-blocked textarea{opacity:.6;cursor:not-allowed;background:#f4f5f7}
.tnxsc-compose.is-conversation-blocked .tnxsc-send-btn,.tnxsc-compose.is-conversation-blocked .tnxsc-attach-btn{opacity:.42;cursor:not-allowed}
.tnxsc-widget .tnxsc-panel[hidden]{display:none!important}
@media(max-width:480px){.tnxsc-widget .tnxsc-panel-close{width:42px!important;height:42px!important;flex-basis:42px!important}.tnxsc-maker-credit{font-size:9px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.tnxsc-panel-close,.tnxsc-maker-credit a{transition:none!important}}

.tnxsc-embedded-widget .tnxsc-panel-close{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border:1px solid #e2e7ef;border-radius:12px;background:#fff;color:#233251;transition:background .18s ease,color .18s ease,transform .18s ease}
.tnxsc-embedded-widget .tnxsc-panel-close:hover{background:#fff2f2;color:#b71b1c;transform:rotate(4deg)}
.tnxsc-embedded-widget .tnxsc-panel-close svg{width:19px;height:19px;stroke:currentColor}

.tnxsc-quick-prompts{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;max-width:100%;margin:3px 0 0}
.tnxsc-quick-prompts button{min-height:32px;padding:6px 10px;border:1px solid #e1e7f1;border-radius:999px;background:#fff;color:#51637e;font-size:9px;line-height:1.5;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.tnxsc-quick-prompts button:hover{border-color:#edc1c1;background:#fff5f4;color:#a21c1c;transform:translateY(-1px)}
.tnxsc-quick-prompts button:focus-visible{outline:3px solid rgba(183,27,28,.22);outline-offset:2px}
@media(max-width:480px){.tnxsc-quick-prompts{gap:5px}.tnxsc-quick-prompts button{min-height:30px;padding:5px 8px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.tnxsc-quick-prompts button{transition:none!important}}


/* =====================================================================
   V9 — refreshed customer chat, predictable close button, polished thread
   ===================================================================== */
.tnxsc-widget,.tnxsc-embedded-widget,.tnxsc-app,.tnxsc-guest{
  --tnxsc-v9-red:#b71b1c;--tnxsc-v9-navy:#0c2c65;--tnxsc-v9-ink:#1d2f4b;
  --tnxsc-v9-muted:#718099;--tnxsc-v9-line:#e5eaf2;--tnxsc-v9-soft:#f6f8fc;
  font-family:TNXSupportIR,Tahoma,sans-serif!important;-webkit-font-smoothing:antialiased
}
.tnxsc-widget .tnxsc-panel,.tnxsc-embedded-widget .tnxsc-embedded-panel{
  isolation:isolate;background:#fff;border-color:#dfe6f0;
  box-shadow:0 26px 84px rgba(16,35,67,.24),0 5px 22px rgba(16,35,67,.08)
}
.tnxsc-widget .tnxsc-panel-top,.tnxsc-embedded-widget .tnxsc-embedded-panel__head{
  position:relative;z-index:2;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:14px;min-height:76px;padding:13px 16px;
  background:radial-gradient(circle at 5% 0,rgba(255,255,255,.15),transparent 34%),linear-gradient(128deg,#17396f 0%,#0c2c65 58%,#172945 100%);
  color:#fff;border:0;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 5px 18px rgba(12,44,101,.12)
}
.tnxsc-panel-top__brand{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px}
.tnxsc-panel-top__mark{width:46px;height:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px rgba(255,255,255,.12)}
.tnxsc-panel-top__mark svg{display:block;width:24px;height:24px;margin:0;flex:0 0 24px}
.tnxsc-panel-top__copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;line-height:1.7}
.tnxsc-panel-top__copy strong{display:block;max-width:100%;color:#fff;font-size:13px;font-weight:800;line-height:1.75;overflow-wrap:anywhere}
.tnxsc-panel-top__copy small{display:flex;align-items:center;gap:7px;min-width:0;color:rgba(255,255,255,.77);font-size:10px;line-height:1.7}
.tnxsc-panel-top__copy small i{display:block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#82e3b0;box-shadow:0 0 0 4px rgba(130,227,176,.12)}
/* Fix the X itself, not just the button box: no baseline, inherited padding, or theme transforms. */
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close{
  position:relative!important;isolation:isolate;box-sizing:border-box!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  flex:0 0 44px!important;align-self:center!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  place-items:center!important;place-content:center!important;gap:0!important;
  margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.25)!important;
  border-radius:14px!important;background:rgba(255,255,255,.105)!important;color:#fff!important;
  line-height:0!important;font-size:0!important;text-align:center!important;text-indent:0!important;
  vertical-align:middle!important;box-shadow:0 4px 13px rgba(0,0,0,.12),inset 0 1px rgba(255,255,255,.1)!important;
  overflow:hidden!important;appearance:none!important;-webkit-appearance:none!important;
  transform:none;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important
}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close:hover,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close:hover{
  background:rgba(255,255,255,.22)!important;border-color:rgba(255,255,255,.48)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.17),inset 0 1px rgba(255,255,255,.12)!important;transform:scale(1.035)!important
}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close:active,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close:active{transform:scale(.95)!important}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close .tnxsc-close-icon,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close .tnxsc-close-icon{
  position:static!important;display:block!important;visibility:visible!important;opacity:1!important;
  width:22px!important;min-width:22px!important;max-width:22px!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;
  margin:0!important;padding:0!important;flex:0 0 22px!important;align-self:center!important;
  transform:none!important;overflow:visible!important;stroke:currentColor!important;stroke-width:2.1!important;
  pointer-events:none!important;vertical-align:middle!important
}
.tnxsc-panel-close .tnxsc-sr-only{position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tnxsc-widget .tnxsc-panel>.tnxsc-app,.tnxsc-widget .tnxsc-panel>.tnxsc-guest{min-height:0;min-width:0}
.tnxsc-widget .tnxsc-panel .tnxsc-app{background:#fff}
.tnxsc-app{font-size:13px!important;line-height:1.9!important;color:var(--tnxsc-v9-ink)!important}
.tnxsc-app .tnxsc-chat-head{min-height:66px;padding:13px 16px;gap:11px;background:linear-gradient(135deg,#fff,#f9fbff)!important;color:#0c2c65!important;border-bottom:1px solid #e7edf6}
.tnxsc-app .tnxsc-brand-mark{width:41px;height:41px;flex:0 0 41px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #e4eaf4;border-radius:14px;background:linear-gradient(145deg,#fff,#eef3fb);color:#0c2c65;box-shadow:0 4px 12px rgba(12,44,101,.07)}
.tnxsc-app .tnxsc-brand-mark svg{display:block;width:23px;height:23px;margin:0}
.tnxsc-app .tnxsc-chat-head__copy strong{color:#0c2c65!important;font-size:13px;font-weight:800;line-height:1.75}
.tnxsc-app .tnxsc-chat-head__copy>span{color:#728199!important;font-size:10px;line-height:1.75}
.tnxsc-app .tnxsc-secure-label{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;border:1px solid #e4eaf4;border-radius:999px;background:#fff;color:#526783;font-size:9px;line-height:1.5}
.tnxsc-app .tnxsc-secure-label svg{width:14px;height:14px;display:block}
.tnxsc-app .tnxsc-messages{background:radial-gradient(circle at 100% 0,rgba(12,44,101,.04),transparent 38%),radial-gradient(circle at 0 100%,rgba(183,27,28,.035),transparent 35%),#f7f9fc!important;padding:20px 15px 16px;scrollbar-width:thin;scrollbar-color:#cbd5e2 transparent}
.tnxsc-app .tnxsc-messages::-webkit-scrollbar{width:5px}
.tnxsc-app .tnxsc-messages::-webkit-scrollbar-thumb{border-radius:20px;background:#cbd5e2}
.tnxsc-app .tnxsc-message{max-width:min(88%,520px);gap:5px;margin-bottom:15px;animation:tnxsc-v9-message-in .18s ease-out both}
@keyframes tnxsc-v9-message-in{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.tnxsc-app .tnxsc-bubble{padding:12px 14px 9px;border:1px solid #e2e8f2;border-radius:17px 6px 17px 17px;background:#fff;color:#2c3f5e;box-shadow:0 3px 12px rgba(18,38,69,.035);font-size:12px;line-height:2.05}
.tnxsc-app .tnxsc-message.is-own .tnxsc-bubble{border-color:#d6e2f7;border-radius:6px 17px 17px 17px;background:linear-gradient(145deg,#f1f6ff,#e8f0ff);color:#203c68}
.tnxsc-app .tnxsc-message.is-support .tnxsc-bubble{border-color:#d4ece1;background:linear-gradient(145deg,#f2fbf6,#e9f7ef);color:#224d3d}
.tnxsc-app .tnxsc-message-meta{color:#8c98aa;font-size:9px;line-height:1.6}
.tnxsc-app .tnxsc-ticks{font-size:13px}
.tnxsc-app .tnxsc-empty-state{flex:1 1 auto;min-height:0;padding:22px 16px;background:radial-gradient(circle at 50% 24%,rgba(12,44,101,.05),transparent 47%),linear-gradient(180deg,#fafcff,#f7f9fc)}
.tnxsc-app .tnxsc-empty-state__spark{width:49px;height:49px;display:grid;place-items:center;margin-bottom:3px;border-radius:17px;border:1px solid #e7dede;background:linear-gradient(145deg,#fff,#fff5f4);color:#b71b1c;box-shadow:0 7px 20px rgba(183,27,28,.07)}
.tnxsc-app .tnxsc-empty-state>strong{color:#0c2c65;font-size:13px;font-weight:800}
.tnxsc-app .tnxsc-empty-state p{font-size:11px;line-height:2.1;color:#75839a}
.tnxsc-quick-prompts{gap:8px;margin-top:8px}
.tnxsc-quick-prompts button{min-height:36px;padding:7px 12px;border-color:#dfe6f1;background:rgba(255,255,255,.94);color:#405572;font-size:10px;box-shadow:0 3px 9px rgba(26,48,82,.025)}
.tnxsc-quick-prompts button:hover{border-color:#e4b8b8;background:#fff4f3;color:#a51d1d}
.tnxsc-maker-credit{max-width:100%;margin-top:11px;padding:8px 12px;border:1px solid #e5eaf2;border-radius:13px;background:rgba(255,255,255,.86);color:#8190a4;font-size:10px;line-height:1.9;text-align:center}
.tnxsc-maker-credit a{color:#b71b1c!important;font-weight:800;text-decoration:none!important;text-underline-offset:3px}
.tnxsc-maker-credit a:hover{color:#0c2c65!important;text-decoration:underline!important}
.tnxsc-app .tnxsc-status{padding:9px 13px;border-top:1px solid #f0d6d6;background:#fff7f7;color:#a01f23;font-size:11px;line-height:1.85}
.tnxsc-app .tnxsc-status.is-success{border-color:#cfeadd;background:#f2fbf6;color:#20714d}
.tnxsc-app .tnxsc-status.is-error{border-color:#f2cccc;background:#fff5f5;color:#a21c1c}
.tnxsc-app .tnxsc-compose{padding:12px 13px 10px;border-top:1px solid #e6ebf3;background:#fff;box-shadow:0 -4px 16px rgba(22,43,76,.025)}
.tnxsc-app .tnxsc-compose textarea{min-height:54px;max-height:145px;padding:12px 13px;border-color:#e0e6ef;border-radius:15px;background:#f8fafc;color:#263a59;font-size:12px;line-height:1.95;resize:none;transition:border-color .16s,background .16s,box-shadow .16s}
.tnxsc-app .tnxsc-compose textarea:focus{border-color:#a9bad7;background:#fff;box-shadow:0 0 0 4px rgba(12,44,101,.065)}
.tnxsc-app .tnxsc-compose textarea::placeholder{color:#9aa6b7}
.tnxsc-app .tnxsc-compose-foot{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:9px}
.tnxsc-app .tnxsc-attach-btn{min-height:42px;padding:7px 12px;border:1px solid #e0e6ef;border-radius:12px;background:#fff;color:#4e607a;font-size:10px;transition:background .17s,border-color .17s,color .17s}
.tnxsc-app .tnxsc-attach-btn:hover{border-color:#bdcada;background:#f8faff;color:#0c2c65}
.tnxsc-app .tnxsc-attach-btn svg{width:17px;height:17px;display:block}
.tnxsc-app .tnxsc-file-limit{margin-inline-start:auto;color:#8d99aa;font-size:9px;line-height:1.6}
.tnxsc-app .tnxsc-send-btn{min-height:42px;min-width:94px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border:1px solid #a71718;border-radius:12px;background:linear-gradient(135deg,#c52f2f,#a7191a);color:#fff!important;box-shadow:0 5px 14px rgba(183,27,28,.15);font-size:11px;font-weight:800;transition:transform .16s,box-shadow .16s,filter .16s}
.tnxsc-app .tnxsc-send-btn span,.tnxsc-app .tnxsc-send-btn svg{color:#fff!important;stroke:#fff!important}
.tnxsc-app .tnxsc-send-btn svg{width:17px;height:17px;display:block;flex:0 0 17px}
.tnxsc-app .tnxsc-send-btn:hover:not(:disabled){transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 8px 18px rgba(183,27,28,.22)}
.tnxsc-app .tnxsc-send-btn:disabled{opacity:.6;cursor:progress;transform:none;box-shadow:none}
.tnxsc-app .tnxsc-chat-footnote{display:flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:7px 10px 8px;border-top:0;color:#8793a5;font-size:9px;line-height:1.8;text-align:center}
.tnxsc-app .tnxsc-chat-footnote svg{width:14px;height:14px;flex:0 0 14px;display:block;color:#6c8bb9}
.tnxsc-app .tnxsc-attachment-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 10px;border:1px solid #dbe5f4;border-radius:11px;background:#f4f8ff;color:#415979;font-size:10px;overflow-wrap:anywhere}
.tnxsc-app .tnxsc-attachment-preview button{flex:0 0 auto;border:0;background:transparent;color:#b71b1c;font-size:10px;font-weight:800}
.tnxsc-app .tnxsc-attachment-link{border-radius:12px;border-color:#dce4ef;background:rgba(255,255,255,.92);color:#0c2c65!important}
.tnxsc-app .tnxsc-edit-box textarea{font-family:TNXSupportIR,Tahoma,sans-serif}
.tnxsc-app .tnxsc-msg-action{min-height:27px;padding:3px 8px;border:1px solid #e4e9f1;border-radius:8px;background:#fff;color:#63748d;text-decoration:none}
.tnxsc-app .tnxsc-msg-action:hover{border-color:#ebcaca;background:#fff6f5;color:#b71b1c}
.tnxsc-app .tnxsc-msg-action.is-danger{color:#b71b1c}
.tnxsc-app .tnxsc-guest{background:radial-gradient(circle at 50% 0,rgba(12,44,101,.055),transparent 50%),#fff;color:#253754}
.tnxsc-app .tnxsc-guest h3{color:#0c2c65}
.tnxsc-widget .tnxsc-panel[hidden],.tnxsc-embedded-widget .tnxsc-embedded-panel[hidden]{display:none!important}
@media(min-width:769px){
  .tnxsc-widget .tnxsc-panel{right:22px;bottom:98px;width:min(440px,calc(100vw - 44px));height:min(700px,calc(100dvh - 125px));border-radius:27px}
  .tnxsc-widget .tnxsc-panel-top{min-height:80px;padding:14px 17px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel{overflow:hidden}
  .tnxsc-embedded-widget .tnxsc-embedded-panel__head{min-height:74px;padding:14px 18px}
}
@media(max-width:768px){
  .tnxsc-widget .tnxsc-panel-top{min-height:calc(72px + env(safe-area-inset-top,0px));padding:max(12px,env(safe-area-inset-top,0px)) 15px 12px}
  .tnxsc-widget .tnxsc-panel-top__mark{width:42px;height:42px;flex-basis:42px;border-radius:14px}
  .tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;flex-basis:46px!important;border-radius:15px!important}
  .tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close .tnxsc-close-icon{width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;min-height:23px!important;max-height:23px!important;flex-basis:23px!important}
  .tnxsc-app .tnxsc-chat-head{min-height:61px;padding:10px 12px}
  .tnxsc-app .tnxsc-messages{padding:14px 11px 12px}
  .tnxsc-app .tnxsc-message{max-width:94%;margin-bottom:12px}
  .tnxsc-app .tnxsc-bubble{font-size:12px;padding:10px 12px 8px}
  .tnxsc-app .tnxsc-compose{padding:10px 10px max(10px,env(safe-area-inset-bottom,0px))}
  .tnxsc-app .tnxsc-compose textarea{min-height:49px;max-height:120px;padding:10px 11px}
  .tnxsc-app .tnxsc-compose-foot{gap:7px}
  .tnxsc-app .tnxsc-send-btn{min-width:86px;min-height:44px}
  .tnxsc-app .tnxsc-attach-btn{min-height:42px}
  .tnxsc-app .tnxsc-file-limit{font-size:8px}
  .tnxsc-app .tnxsc-chat-footnote{font-size:8px;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
  .tnxsc-embedded-widget .tnxsc-embedded-panel__head{min-height:66px;padding:10px 12px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex-basis:44px!important}
}
@media(max-width:420px){
  .tnxsc-widget .tnxsc-panel-top{gap:9px;padding-left:11px;padding-right:11px}
  .tnxsc-panel-top__brand{gap:9px}
  .tnxsc-panel-top__mark{width:38px;height:38px;flex-basis:38px}
  .tnxsc-panel-top__copy strong{font-size:12px}
  .tnxsc-panel-top__copy small{font-size:9px}
  .tnxsc-app .tnxsc-secure-label{padding:4px 6px;font-size:8px}
  .tnxsc-app .tnxsc-compose-foot{gap:6px}
  .tnxsc-app .tnxsc-attach-btn{padding:6px 8px;gap:5px;font-size:9px}
  .tnxsc-app .tnxsc-file-limit{display:none}
  .tnxsc-app .tnxsc-send-btn{flex:1;min-width:0}
  .tnxsc-quick-prompts button{flex:1 1 auto;min-height:34px}
  .tnxsc-maker-credit{font-size:9px;padding:7px 9px}
}
@media(prefers-reduced-motion:reduce){
  .tnxsc-app .tnxsc-message,.tnxsc-panel-close,.tnxsc-quick-prompts button{animation:none!important;transition:none!important}
}

.tnxsc-app.is-sending-message .tnxsc-send-btn{cursor:progress;filter:saturate(.78)}
.tnxsc-app .tnxsc-send-btn.is-sending svg{animation:tnxsc-send-spin .9s linear infinite}
@keyframes tnxsc-send-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.tnxsc-app .tnxsc-send-btn.is-sending svg{animation:none}}


/* =====================================================================
   V10 — simpler composer, fluid fullscreen mobile chat, accessible focus
   ===================================================================== */
.tnxsc-widget,.tnxsc-embedded-widget,.tnxsc-admin-wrap,.tnxsc-app{
  --tnxsc-v10-red:#b71b1c;--tnxsc-v10-navy:#0c2c65;--tnxsc-v10-ink:#1d2f4b;
  --tnxsc-v10-muted:#748198;--tnxsc-v10-line:#e4eaf2;--tnxsc-v10-soft:#f6f8fc;
}
.tnxsc-app .tnxsc-compose-meta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;
  padding:5px 3px 0;color:#8290a4;font-size:9px;line-height:1.6;
}
.tnxsc-app .tnxsc-compose-meta [data-tnxsc-compose-help]{min-width:0;overflow-wrap:anywhere}
.tnxsc-app .tnxsc-compose-meta [data-tnxsc-char-count]{flex:0 0 auto;direction:rtl;font-variant-numeric:tabular-nums;color:#8793a5;white-space:nowrap}
.tnxsc-app .tnxsc-compose-meta [data-tnxsc-char-count].is-near-limit{color:#b71b1c;font-weight:800}
.tnxsc-app .tnxsc-compose textarea:focus-visible{outline:3px solid rgba(12,44,101,.12);outline-offset:1px;border-color:#9eb1d0!important}
.tnxsc-app .tnxsc-send-btn.is-sending{min-width:112px;filter:saturate(.82)}
.tnxsc-app .tnxsc-send-btn.is-sending svg{animation:tnxsc-v10-send-pulse 1s ease-in-out infinite}
.tnxsc-app .tnxsc-send-btn:focus-visible,.tnxsc-app .tnxsc-attach-btn:focus-within{outline:3px solid rgba(183,27,28,.23);outline-offset:3px}
.tnxsc-app .tnxsc-status{border-inline-start:3px solid #d5a0a0}
.tnxsc-app .tnxsc-status.is-success{border-inline-start-color:#39a778}
.tnxsc-app .tnxsc-status.is-error{border-inline-start-color:#b71b1c}
.tnxsc-app .tnxsc-messages{overflow-anchor:auto;scroll-behavior:smooth}
.tnxsc-app .tnxsc-bubble{box-shadow:0 2px 8px rgba(18,35,63,.035)}
.tnxsc-app .tnxsc-message.is-own .tnxsc-bubble{box-shadow:0 4px 13px rgba(183,27,28,.07)}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close{
  order:-1;position:relative;top:auto;right:auto;bottom:auto;left:auto;
  margin-inline-start:0!important;margin-inline-end:0!important;align-self:center!important;
  place-self:center!important;transform:none!important;
}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close:hover,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close:hover{transform:scale(1.035)!important}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close .tnxsc-close-icon,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close .tnxsc-close-icon{position:static!important;inset:auto!important;transform:none!important}
.tnxsc-widget .tnxsc-panel-top>button.tnxsc-panel-close .tnxsc-sr-only,
.tnxsc-embedded-widget .tnxsc-embedded-panel__head>button.tnxsc-panel-close .tnxsc-sr-only{pointer-events:none!important}
.tnxsc-widget .tnxsc-panel{transition:opacity .18s ease,transform .22s cubic-bezier(.2,.75,.25,1);}
.tnxsc-widget .tnxsc-panel[hidden]{display:none!important}
.tnxsc-widget .tnxsc-panel:not([hidden]){animation:tnxsc-v10-panel-in .2s ease-out both}
.tnxsc-launcher:focus-visible,.tnxsc-start-button:focus-visible{outline:3px solid rgba(183,27,28,.25);outline-offset:4px}
.tnxsc-admin-wrap .tnxsc-admin-search input[type=search]:focus-visible{outline:3px solid rgba(12,44,101,.14);outline-offset:1px}
@keyframes tnxsc-v10-panel-in{from{opacity:.75;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tnxsc-v10-send-pulse{0%,100%{opacity:1}50%{opacity:.6}}
@media(max-width:600px){
  #tnxsc-floating-widget .tnxsc-panel{
    position:fixed!important;inset:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px) 0!important;
    top:env(safe-area-inset-top,0px)!important;right:0!important;bottom:env(safe-area-inset-bottom,0px)!important;left:0!important;
    width:100vw!important;height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
    min-width:0!important;min-height:0!important;max-height:none!important;max-width:100vw!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;transform-origin:center!important;
  }
  #tnxsc-floating-widget .tnxsc-panel-top{padding-top:max(12px,env(safe-area-inset-top,0px))!important;min-height:calc(68px + env(safe-area-inset-top,0px))!important;flex-shrink:0!important}
  #tnxsc-floating-widget .tnxsc-panel>.tnxsc-app{height:auto!important;max-height:none!important;min-height:0!important;flex:1 1 auto!important}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-chat-head{min-height:57px;padding:9px 13px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-messages{flex:1 1 0%;min-height:0;height:auto;max-height:none;padding:13px 11px 10px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose{flex:0 0 auto;padding:10px 11px max(10px,env(safe-area-inset-bottom,0px))}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose textarea{min-height:48px;max-height:128px;font-size:16px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-compose-meta{font-size:9px}
  #tnxsc-floating-widget .tnxsc-app .tnxsc-chat-footnote{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
  .tnxsc-app .tnxsc-compose-meta [data-tnxsc-compose-help]{max-width:68%;font-size:8px}
  .tnxsc-app .tnxsc-send-btn.is-sending{min-width:90px}
  .tnxsc-embedded-widget .tnxsc-embedded-panel{overflow:hidden}
  .tnxsc-embedded-widget .tnxsc-embedded-panel .tnxsc-app--embedded{height:min(72dvh,700px);max-height:72dvh;min-height:370px}
}
@media(prefers-reduced-motion:reduce){
  .tnxsc-widget .tnxsc-panel,.tnxsc-widget .tnxsc-panel:not([hidden]),.tnxsc-app .tnxsc-send-btn.is-sending svg{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ==========================================================
   V11 — meticulous spacing, premium maker credit, consistent chat rhythm
   ========================================================== */
.tnxsc-app{
  --tnxsc-v11-ink:#213451;
  --tnxsc-v11-muted:#78869b;
  --tnxsc-v11-line:#e6ebf3;
  --tnxsc-v11-red:#b71b1c;
  --tnxsc-v11-navy:#0c2c65;
  --tnxsc-v11-space-1:4px;
  --tnxsc-v11-space-2:8px;
  --tnxsc-v11-space-3:12px;
  --tnxsc-v11-space-4:16px;
  --tnxsc-v11-space-5:20px;
  --tnxsc-v11-space-6:24px;
  box-sizing:border-box;
  color:var(--tnxsc-v11-ink);
  font-family:TNXSupportIR,Tahoma,sans-serif;
}
.tnxsc-app *, .tnxsc-app *::before, .tnxsc-app *::after{box-sizing:border-box}
.tnxsc-app .tnxsc-chat-head{
  min-height:68px;
  padding:14px clamp(14px,3vw,20px);
  gap:12px;
  margin:0;
}
.tnxsc-app .tnxsc-chat-head__copy{gap:2px}
.tnxsc-app .tnxsc-chat-head__copy strong{font-size:13px;line-height:1.8;letter-spacing:-.12px}
.tnxsc-app .tnxsc-chat-head__copy>span{font-size:10px;line-height:1.75}
.tnxsc-app .tnxsc-secure-label{margin-inline-start:2px;white-space:nowrap}
.tnxsc-app .tnxsc-messages{
  padding:clamp(16px,2.6vw,23px) clamp(14px,3vw,22px) clamp(15px,2.4vw,21px);
  gap:0;
  scroll-padding-block:18px;
}
.tnxsc-app .tnxsc-message{max-width:88%;margin:0 0 16px;gap:6px}
.tnxsc-app .tnxsc-bubble{padding:12px 15px 9px;border-radius:7px 16px 16px 16px;font-size:12px;line-height:2.05}
.tnxsc-app .tnxsc-message.is-own .tnxsc-bubble{border-radius:16px 7px 16px 16px}
.tnxsc-app .tnxsc-message-meta{padding-inline:5px;gap:7px;font-size:9.5px;line-height:1.65}
.tnxsc-app .tnxsc-compose{
  margin:0;
  padding:15px clamp(14px,2.8vw,20px) 12px;
  border-top:1px solid #e5eaf2;
}
.tnxsc-app .tnxsc-compose .tnxsc-textarea-wrap{display:block;width:100%;min-width:0;margin:0}
.tnxsc-app .tnxsc-compose textarea{
  width:100%;min-height:54px;max-height:132px;margin:0;padding:11px 13px;
  border-radius:15px;font-size:12px;line-height:1.95;box-shadow:inset 0 1px 2px rgba(18,36,66,.025);
}
.tnxsc-app .tnxsc-compose-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 2px 0;padding:0 3px;color:#8490a2;font-size:9px;line-height:1.7}
.tnxsc-app .tnxsc-compose-meta>*{min-width:0}
.tnxsc-app .tnxsc-compose-foot{display:flex;align-items:center;gap:9px;margin-top:10px}
.tnxsc-app .tnxsc-attach-btn,.tnxsc-app .tnxsc-send-btn{min-height:42px;border-radius:13px}
.tnxsc-app .tnxsc-attach-btn{padding:8px 12px}
.tnxsc-app .tnxsc-send-btn{min-width:100px;padding:9px 15px}
.tnxsc-app .tnxsc-file-limit{margin-inline:auto 0;line-height:1.7}
.tnxsc-app .tnxsc-chat-footnote{display:flex;align-items:center;justify-content:center;gap:6px;min-height:35px;margin:0;padding:8px 14px 10px;line-height:1.8;text-align:center}
.tnxsc-app .tnxsc-status{margin:0;padding:9px 14px;line-height:1.9}
.tnxsc-app .tnxsc-empty-state{gap:9px;padding:clamp(22px,4vw,34px) clamp(16px,4vw,28px)}
.tnxsc-app .tnxsc-empty-state>span{width:48px;height:48px;margin-bottom:3px;border-radius:17px}
.tnxsc-app .tnxsc-empty-state>strong{font-size:13px;line-height:1.9}
.tnxsc-app .tnxsc-empty-state>p{max-width:340px;font-size:11px;line-height:2.05}
.tnxsc-app .tnxsc-quick-prompts{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:5px}
.tnxsc-app .tnxsc-quick-prompts button{min-height:35px;padding:7px 11px;border-radius:11px;font-size:10px;line-height:1.7}
.tnxsc-app .tnxsc-maker-credit{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 7px;
  width:fit-content;max-width:min(100%,440px);margin:18px auto 0;padding:12px 18px;
  border:1px solid rgba(190,164,112,.36);border-radius:16px;
  background:radial-gradient(circle at 0 0,rgba(213,190,144,.12),transparent 44%),linear-gradient(135deg,#fff 0%,#fffdf8 48%,#f8faff 100%);
  box-shadow:0 7px 22px rgba(27,43,68,.055),inset 0 1px 0 rgba(255,255,255,.95);
  color:#5c687b;font-size:12px;font-weight:700;line-height:2;text-align:center;letter-spacing:-.1px;
}
.tnxsc-app .tnxsc-maker-credit__mark{display:inline-grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border:1px solid rgba(190,164,112,.34);border-radius:7px;background:linear-gradient(145deg,#fffaf0,#f3e7cc);color:#a8884f;font-size:12px;line-height:1}
.tnxsc-app .tnxsc-maker-credit a{display:inline-block;margin:0;padding:0 1px;color:#a51b1c!important;font-size:13px;font-weight:900;line-height:1.8;text-decoration:none!important;text-decoration-thickness:1.5px;text-underline-offset:4px;transition:color .2s ease,text-decoration-color .2s ease}
.tnxsc-app .tnxsc-maker-credit a:hover{color:#0c2c65!important;text-decoration:underline!important}
.tnxsc-app .tnxsc-maker-credit a:focus-visible{outline:2px solid rgba(183,27,28,.35);outline-offset:3px;border-radius:3px}
.tnxsc-widget .tnxsc-panel-top{padding:14px clamp(13px,2.5vw,18px);gap:12px}
.tnxsc-widget .tnxsc-panel-top>button{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;padding:0;line-height:0;box-sizing:border-box}
.tnxsc-widget .tnxsc-panel-top>button svg{display:block;width:19px;height:19px;flex:0 0 19px;margin:0;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){
  .tnxsc-app .tnxsc-chat-head{min-height:62px;padding:11px 13px;gap:9px}
  .tnxsc-app .tnxsc-messages{padding:15px 12px 12px}
  .tnxsc-app .tnxsc-message{max-width:94%;margin-bottom:13px;gap:5px}
  .tnxsc-app .tnxsc-bubble{padding:10px 12px 8px;font-size:11.5px}
  .tnxsc-app .tnxsc-compose{padding:12px 12px max(11px,env(safe-area-inset-bottom,0px))}
  .tnxsc-app .tnxsc-compose textarea{min-height:49px;padding:10px 11px;font-size:12px}
  .tnxsc-app .tnxsc-compose-meta{gap:7px;font-size:8.5px}
  .tnxsc-app .tnxsc-compose-foot{gap:7px;margin-top:8px}
  .tnxsc-app .tnxsc-attach-btn,.tnxsc-app .tnxsc-send-btn{min-height:40px}
  .tnxsc-app .tnxsc-maker-credit{gap:3px 6px;margin-top:14px;padding:10px 12px;font-size:10.5px;border-radius:14px}
  .tnxsc-app .tnxsc-maker-credit a{font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){.tnxsc-app .tnxsc-maker-credit a,.tnxsc-widget .tnxsc-panel-top>button{transition:none!important}}
