.jtf-app{--jtf-brand:#5c50ed;--jtf-soft:#f1efff;--jtf-text:#171826;--jtf-muted:#6f7485;--jtf-line:#e6e8ef;max-width:1120px;margin:24px auto;background:#fff;border:1px solid var(--jtf-line);border-radius:24px;box-shadow:0 20px 60px rgba(29,31,55,.09);overflow:hidden;font-family:Tahoma,"Vazirmatn","IRANSans",Arial,sans-serif;color:var(--jtf-text)}.jtf-header{padding:26px 28px 17px;background:linear-gradient(180deg,#fff,#fcfbff);border-bottom:1px solid var(--jtf-line);display:flex;justify-content:space-between;gap:18px}.jtf-kicker{color:var(--jtf-brand);font-weight:800;font-size:12px;margin-bottom:6px}.jtf-header h2{margin:0 0 7px;font-size:24px}.jtf-header p{margin:0;color:var(--jtf-muted);font-size:13px;line-height:1.9}.jtf-live{height:max-content;white-space:nowrap;border:1px solid #dfdcff;background:var(--jtf-soft);color:#4943a3;border-radius:12px;padding:9px 11px;font-size:10px}.jtf-chips{display:flex;gap:7px;flex-wrap:wrap;padding:14px 28px;border-bottom:1px solid var(--jtf-line)}.jtf-chips button{border:1px solid #dddaf8;background:#fff;color:#4943a3;padding:8px 12px;border-radius:999px;cursor:pointer;font-size:11px}.jtf-chips button:hover{background:var(--jtf-soft)}.jtf-messages{min-height:300px;max-height:650px;overflow:auto;padding:21px 25px}.jtf-msg{display:flex;gap:9px;align-items:flex-start;margin-bottom:14px}.jtf-user{flex-direction:row-reverse}.jtf-avatar{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;font-size:11px;font-weight:900;background:var(--jtf-soft);color:var(--jtf-brand)}.jtf-user .jtf-avatar{background:#eceef4;color:#555a69}.jtf-bubble{max-width:78%;padding:11px 14px;border-radius:15px;background:#f8f8fb;border:1px solid var(--jtf-line);border-top-right-radius:5px;font-size:12px;line-height:1.9}.jtf-user .jtf-bubble{background:#1d1d2b;color:#fff;border:0;border-top-left-radius:5px}.jtf-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 41px 20px 0}.jtf-card{border:1px solid var(--jtf-line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 7px 18px rgba(27,28,43,.05)}.jtf-image{height:145px;background:#eef0f5;display:block;position:relative;overflow:hidden;text-decoration:none}.jtf-image img{width:100%;height:100%;display:block;object-fit:cover}.jtf-image b{position:absolute;right:8px;top:8px;background:rgba(25,25,36,.86);color:#fff;border-radius:8px;padding:5px 7px;font-size:9px}.jtf-card-body{padding:11px}.jtf-card h3{font-size:11.5px;line-height:1.75;height:41px;overflow:hidden;margin:0}.jtf-card p{font-size:9.5px;line-height:1.7;color:var(--jtf-muted);min-height:31px;margin:7px 0}.jtf-card-meta{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f1f5;padding-top:8px;font-size:10px}.jtf-card-meta em{font-style:normal;color:#16815c;font-size:9px}.jtf-view{display:block;text-align:center;text-decoration:none;background:var(--jtf-brand);color:#fff;border-radius:9px;padding:8px 6px;margin-top:9px;font-size:10px}.jtf-form{display:flex;gap:7px;padding:14px 17px 10px;border-top:1px solid var(--jtf-line)}.jtf-form input{flex:1;min-width:0;border:1px solid #dcdfea;border-radius:15px;padding:12px;font-size:12px;outline:0}.jtf-form input:focus{border-color:#aaa4ff;box-shadow:0 0 0 4px rgba(92,80,237,.08)}.jtf-form button{width:46px;border:0;border-radius:13px;background:var(--jtf-brand);color:#fff;font-size:17px;cursor:pointer}.jtf-hint{text-align:center;color:#9a9eaa;font-size:9px;padding:0 10px 12px}.jtf-typing{display:flex;gap:4px}.jtf-typing i{width:5px;height:5px;border-radius:50%;background:#9a9eaa;animation:jtf-b .9s infinite alternate}.jtf-typing i:nth-child(2){animation-delay:.16s}.jtf-typing i:nth-child(3){animation-delay:.32s}@keyframes jtf-b{to{transform:translateY(-3px);opacity:.45}}@media(max-width:700px){.jtf-app{margin:0;border-radius:0;border-left:0;border-right:0}.jtf-header{padding:18px 15px 13px}.jtf-header h2{font-size:19px}.jtf-header p{font-size:11px}.jtf-live{display:none}.jtf-chips{padding:12px 15px;flex-wrap:nowrap;overflow:auto}.jtf-chips button{white-space:nowrap}.jtf-messages{padding:16px 13px}.jtf-bubble{max-width:88%;font-size:12px}.jtf-results{grid-template-columns:1fr;margin-right:40px}.jtf-image{height:175px}}
.jtf-floating{position:fixed;right:22px;bottom:22px;z-index:99999;font-family:Tahoma,"Vazirmatn","IRANSans",Arial,sans-serif}.jtf-fab{width:62px;height:62px;border:0;border-radius:50%;background:linear-gradient(145deg,#6357f3,#4237c8);color:#fff;box-shadow:0 12px 28px rgba(70,57,205,.35);cursor:pointer;display:grid;place-items:center;position:relative;transition:.22s}.jtf-fab:hover{transform:translateY(-2px) scale(1.03)}.jtf-fab-icon{font-size:28px;line-height:1}.jtf-fab i{position:absolute;right:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#22b982;border:2px solid #fff}.jtf-popover{position:absolute;right:0;bottom:76px;width:360px;background:#fff;border:1px solid #e4e5ed;border-radius:20px;box-shadow:0 18px 55px rgba(28,29,55,.2);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(10px) scale(.97);transform-origin:bottom right;transition:.22s}.jtf-floating.is-open .jtf-popover{opacity:1;visibility:visible;transform:none}.jtf-popover-head{height:58px;padding:0 15px;background:linear-gradient(135deg,#5c50ed,#756aff);color:#fff;display:flex;align-items:center;justify-content:space-between}.jtf-popover-head strong{display:block;font-size:12px}.jtf-popover-head small{display:block;font-size:9px;opacity:.8;margin-top:3px}.jtf-close{border:0;background:rgba(255,255,255,.16);color:#fff;width:27px;height:27px;border-radius:9px;font-size:20px;line-height:1;cursor:pointer}.jtf-popover-messages{max-height:390px;overflow:auto;padding:14px 13px}.jtf-popover-messages .jtf-msg{margin-bottom:12px}.jtf-popover-messages .jtf-bubble{font-size:11px;padding:10px 11px}.jtf-popover-form{display:flex;gap:6px;border-top:1px solid #edf0f4;padding:10px}.jtf-popover-form input{min-width:0;flex:1;border:1px solid #dfe1e9;border-radius:12px;padding:10px;font-size:11px;outline:0}.jtf-popover-form input:focus{border-color:#aaa4ff}.jtf-popover-form button{width:38px;border:0;border-radius:11px;background:#5c50ed;color:#fff;cursor:pointer}.jtf-popover .jtf-results{display:grid;grid-template-columns:1fr;margin:0 0 12px}.jtf-popover .jtf-card{box-shadow:none}.jtf-popover .jtf-image{height:120px}.jtf-popover .jtf-card h3{font-size:10.5px}.jtf-popover .jtf-card p{font-size:9px}.jtf-popover .jtf-card-meta{font-size:9px}.jtf-popover .jtf-card-meta em{font-size:8px}.jtf-popover .jtf-view{font-size:9px;padding:7px}.jtf-popover .jtf-msg .jtf-bubble{max-width:90%}@media(max-width:520px){.jtf-floating{right:14px;bottom:14px}.jtf-fab{width:56px;height:56px}.jtf-popover{right:-5px;bottom:68px;width:min(350px,calc(100vw - 28px))}}

/* کارت‌ها عمداً خلاصه‌اند: ویژگی‌های مشترک بیرون کارت و تفاوت‌ها داخل هر کارت می‌آید. */
.jtf-app{--jtf-brand:#6255e8;--jtf-ink:#1c1c2b;--jtf-surface:#f7f7fb;--jtf-mint:#eaf9f3;border-color:#e9e9f1}
.jtf-header{background:radial-gradient(circle at 85% 0,#edeaff 0,rgba(237,234,255,0) 32%),linear-gradient(135deg,#fff 20%,#f9f8ff)}
.jtf-header h2{color:var(--jtf-ink);letter-spacing:-.35px}.jtf-live{border:0;background:#eeecff;color:#5145be;font-weight:700}
.jtf-results{align-items:stretch}.jtf-card{border-color:#e9e9f0;border-radius:18px;box-shadow:0 8px 22px rgba(33,32,61,.055);transition:transform .2s,box-shadow .2s}.jtf-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(33,32,61,.11)}
.jtf-card-body{padding:13px}.jtf-card h3{height:auto;min-height:38px;font-size:12px;line-height:1.75;color:var(--jtf-ink)}.jtf-card-note{min-height:31px;color:#7a7d8b}
.jtf-card-facts{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 10px}.jtf-card-facts span,.jtf-common-facts span{display:inline-flex;align-items:baseline;gap:4px;max-width:100%;border-radius:8px;background:var(--jtf-surface);padding:5px 7px;color:#484a59;font-size:9px;line-height:1.4}.jtf-card-facts small,.jtf-common-facts small{color:#898c9d;font-size:8px;white-space:nowrap}.jtf-card-meta{margin-top:auto;color:#282938}.jtf-card-meta em{background:var(--jtf-mint);border-radius:99px;padding:3px 6px;color:#147758;font-size:8.5px}.jtf-view{background:#262537;border-radius:10px;font-weight:700;transition:background .2s}.jtf-view:hover{background:var(--jtf-brand)}
.jtf-common-facts{margin:-3px 41px 17px 0;border:1px solid #dfdbff;border-radius:14px;background:#faf9ff;padding:10px 12px;color:#4b4595}.jtf-common-facts strong{display:block;font-size:10px;margin-bottom:7px}.jtf-common-facts div{display:flex;flex-wrap:wrap;gap:5px}.jtf-common-facts span{background:#fff;border:1px solid #eeecfa;color:#494463}.jtf-choice{display:flex;gap:7px;margin-top:9px}.jtf-choice button{border:1px solid #dedbf7;background:#fff;color:#5147b4;border-radius:9px;padding:7px 9px;font:inherit;font-size:10px;cursor:pointer;transition:.18s}.jtf-choice button:first-child{background:var(--jtf-brand);border-color:var(--jtf-brand);color:#fff}.jtf-choice button:hover:not(:disabled){transform:translateY(-1px)}.jtf-choice button:disabled{opacity:.5;cursor:default}
.jtf-popover .jtf-common-facts{margin:0 0 12px;padding:9px}.jtf-popover .jtf-common-facts strong{font-size:9px}.jtf-popover .jtf-common-facts span{font-size:8px}.jtf-popover .jtf-card-facts{margin:6px 0}.jtf-popover .jtf-card-facts span{font-size:8px;padding:4px 5px}.jtf-popover .jtf-choice button{font-size:9px;padding:6px}.jtf-popular-results{margin-top:-2px}
@media(max-width:700px){.jtf-common-facts{margin-right:40px}.jtf-card-facts span{font-size:10px}.jtf-results{gap:10px}}

/* پنجرهٔ شناور: برای صفحهٔ کوچک، کارت افقی و ارتفاع کاملاً کنترل‌شده. */
.jtf-floating,.jtf-floating *{box-sizing:border-box}.jtf-floating{right:20px;bottom:20px}.jtf-popover{width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 96px);display:flex;flex-direction:column;border:0;border-radius:22px;background:#fff;box-shadow:0 22px 60px rgba(20,22,48,.24)}
.jtf-popover-head{height:64px;min-height:64px;padding:0 17px;background:linear-gradient(125deg,#28244d,#6658ee 58%,#8a7cff);border-radius:22px 22px 0 0}.jtf-popover-head strong{font-size:13px;letter-spacing:-.2px}.jtf-popover-head small{font-size:9px;opacity:.72}.jtf-popover-head .jtf-close{box-sizing:border-box!important;width:30px!important;min-width:30px!important;height:30px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:9px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font:400 23px/25px Arial,sans-serif!important;text-align:center!important;box-shadow:none!important;transform:none!important}
.jtf-popover-messages{flex:1 1 auto;min-height:0;max-height:none;padding:14px 13px 10px;background:#fcfcfe;scrollbar-color:#c9c7d8 transparent;scrollbar-width:thin}.jtf-popover-messages .jtf-msg{gap:7px;margin-bottom:10px}.jtf-popover-messages .jtf-avatar{width:27px;height:27px;border-radius:9px;font-size:9px}.jtf-popover-messages .jtf-bubble{max-width:calc(100% - 34px);padding:9px 10px;border-radius:13px;font-size:10.5px;line-height:1.75}.jtf-popover-messages .jtf-user .jtf-bubble{background:#302d44}
.jtf-popover .jtf-results{grid-template-columns:1fr;gap:8px;margin:0 0 12px}.jtf-popover .jtf-card{display:grid;grid-template-columns:96px minmax(0,1fr);min-height:112px;border-radius:14px;box-shadow:0 4px 13px rgba(34,32,58,.06);transform:none}.jtf-popover .jtf-card:hover{transform:none;box-shadow:0 4px 13px rgba(34,32,58,.06)}.jtf-popover .jtf-image{height:auto;min-height:112px;background:#eeedf5}.jtf-popover .jtf-image img{height:100%;position:absolute;inset:0}.jtf-popover .jtf-image b{right:5px;top:5px;border-radius:6px;padding:3px 4px;font-size:7px}.jtf-popover .jtf-card-body{min-width:0;padding:9px 10px;display:flex;flex-direction:column}.jtf-popover .jtf-card h3{min-height:0;margin:0;font-size:10px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.jtf-popover .jtf-card-facts{gap:4px;margin:6px 0}.jtf-popover .jtf-card-facts span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f5f5fa;font-size:8px;padding:3px 5px}.jtf-popover .jtf-card-facts span:nth-child(n+3){display:none}.jtf-popover .jtf-card-note{margin:5px 0;font-size:8px;line-height:1.45;min-height:0}.jtf-popover .jtf-card-meta{padding-top:5px;margin-top:auto;font-size:8px}.jtf-popover .jtf-card-meta em{padding:2px 4px;font-size:7px}.jtf-popover .jtf-view{align-self:flex-start;margin-top:6px;padding:5px 8px;border-radius:7px;font-size:8px;line-height:1.2}.jtf-popover .jtf-common-facts{margin:0 0 10px;padding:8px 9px;border-radius:11px}.jtf-popover .jtf-common-facts div{gap:4px}.jtf-popover .jtf-common-facts strong{margin-bottom:5px}.jtf-popover .jtf-choice{gap:5px;margin-top:7px}.jtf-popover .jtf-choice button{padding:6px 7px;border-radius:7px;font-size:8.5px}
.jtf-popover-form{flex:0 0 auto;gap:7px;padding:10px 12px 12px;background:#fff;border-top:1px solid #ececf2}.jtf-popover-form input{height:40px;border-color:#e1e0e9;border-radius:12px;padding:0 11px;background:#f8f8fb;color:#282638;font-size:11px;box-shadow:none}.jtf-popover-form input:focus{border-color:#6c5ef0;box-shadow:0 0 0 3px rgba(108,94,240,.1)}.jtf-popover-form button{width:40px;height:40px;border-radius:12px;background:#5e50e7;font-size:16px}
@media(max-width:520px){.jtf-floating{right:16px;bottom:16px}.jtf-popover{right:0;bottom:70px;width:calc(100vw - 32px);max-height:calc(100dvh - 88px);border-radius:20px}.jtf-popover-head{border-radius:20px 20px 0 0}.jtf-fab{width:54px;height:54px}.jtf-fab-icon{font-size:24px}}

/* تصویر محصول هیچ‌وقت برش نمی‌خورد؛ متن و کل طرح قالب قابل دیدن می‌ماند. */
.jtf-image{background:#fff;padding:6px}.jtf-image img{object-fit:contain!important;background:#fff;border-radius:10px}.jtf-popover .jtf-card{grid-template-columns:126px minmax(0,1fr);min-height:126px}.jtf-popover .jtf-image{min-height:126px;padding:6px}.jtf-popover .jtf-image img{position:static;inset:auto;width:100%;height:100%;object-fit:contain!important}.jtf-popover .jtf-card h3{-webkit-line-clamp:3}.jtf-popover .jtf-card-body{padding:10px}

/* دکمهٔ بازکننده مستقل از استایل قالب سایت، همیشه گرد و شبیه حباب گفت‌وگو است. */
.jtf-floating .jtf-fab{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;width:58px!important;min-width:58px!important;height:58px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#6f61f3,#4a3bd1)!important;box-shadow:0 14px 30px rgba(67,52,197,.38)!important;overflow:visible!important}.jtf-floating .jtf-fab:hover{background:linear-gradient(145deg,#796df5,#4a3bd1)!important}.jtf-floating .jtf-fab-icon{display:block!important;position:relative;width:24px;height:18px;border:2px solid #fff;border-radius:7px}.jtf-floating .jtf-fab-icon:before{content:"";position:absolute;top:6px;right:5px;width:3px;height:3px;border-radius:50%;background:#fff;box-shadow:5px 0 0 #fff,10px 0 0 #fff}.jtf-floating .jtf-fab-icon:after{content:"";position:absolute;right:3px;bottom:-5px;width:7px;height:7px;border-right:2px solid #fff;transform:skewY(-34deg)}.jtf-floating .jtf-fab>i{right:1px!important;top:1px!important;width:10px!important;height:10px!important;border:2px solid #fff!important;background:#28c98b!important}.jtf-floating .jtf-fab:focus-visible{outline:3px solid rgba(111,97,243,.3);outline-offset:4px}
@media(max-width:520px){.jtf-floating .jtf-fab{width:54px!important;min-width:54px!important;height:54px!important}.jtf-popover .jtf-card{grid-template-columns:116px minmax(0,1fr);min-height:120px}.jtf-popover .jtf-image{min-height:120px}}

/* نسخهٔ نهایی کارت‌های موبایل: تصویر ثابت و پُر، اطلاعات کوتاه و خوانا. */
.jtf-popover .jtf-bot .jtf-avatar{display:none}.jtf-popover .jtf-bot .jtf-bubble{max-width:100%}.jtf-popover .jtf-card{grid-template-columns:132px minmax(0,1fr);height:132px;min-height:132px;overflow:hidden}.jtf-popover .jtf-image{height:132px;min-height:132px;padding:0;background:#e9e8ee}.jtf-popover .jtf-image img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;border-radius:0!important;object-fit:cover!important;object-position:center!important;background:#e9e8ee}.jtf-popover .jtf-card-body{height:132px;padding:10px 11px}.jtf-popover .jtf-card h3{font-size:10.5px;line-height:1.6}.jtf-popover .jtf-card-facts{margin:5px 0}.jtf-popover .jtf-card-facts span{padding:3px 5px}.jtf-popover .jtf-view{margin-top:5px}
.jtf-floating .jtf-fab-icon{display:block!important;width:25px!important;height:25px!important;border:0!important;border-radius:0!important;color:#fff!important;fill:none!important;stroke:currentColor!important;stroke-width:2.1!important;stroke-linecap:round!important;stroke-linejoin:round!important}.jtf-floating .jtf-fab-icon:before,.jtf-floating .jtf-fab-icon:after{display:none!important;content:none!important}.jtf-floating .jtf-fab-icon circle,.jtf-floating .jtf-fab-icon path{fill:none!important;stroke:currentColor!important}
@media(max-width:520px){.jtf-popover .jtf-card{grid-template-columns:122px minmax(0,1fr);height:122px;min-height:122px}.jtf-popover .jtf-image{height:122px;min-height:122px}.jtf-popover .jtf-card-body{height:122px;padding:9px 10px}.jtf-popover .jtf-card h3{font-size:10px}.jtf-popover .jtf-card-facts span:nth-child(n+2){display:none}.jtf-popover .jtf-card-meta{display:none}.jtf-popover .jtf-view{padding:5px 7px;margin-top:auto}}

/* تایپوگرافی و نسبت تصویر نهایی */
.jtf-app,.jtf-floating{font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important}.jtf-popover .jtf-card{grid-template-columns:148px minmax(0,1fr);height:126px;min-height:126px}.jtf-popover .jtf-image{height:126px;min-height:126px}.jtf-popover .jtf-card-body{height:126px}.jtf-popover .jtf-image img{object-fit:fill!important;object-position:center!important}.jtf-view,.jtf-popover .jtf-view{background:#6355e8!important;color:#fff!important}.jtf-view:hover,.jtf-popover .jtf-view:hover{background:#4e41cf!important}
@media(max-width:520px){.jtf-popover .jtf-card{grid-template-columns:140px minmax(0,1fr);height:122px;min-height:122px}.jtf-popover .jtf-image{height:122px;min-height:122px}.jtf-popover .jtf-card-body{height:122px}.jtf-popover .jtf-view{font-size:8.5px;padding:5px 8px}}

/* انتخاب‌ها همیشه کنتراست کافی دارند، حتی وقتی قالب سایت روی دکمه‌ها استایل می‌گذارد. */
.jtf-choice .jtf-choice-yes,.jtf-popover .jtf-choice .jtf-choice-yes{border:1px solid #6554e9!important;background:linear-gradient(135deg,#7566fa,#5543d8)!important;color:#fff!important;opacity:1!important;font-weight:700!important;box-shadow:0 5px 12px rgba(91,72,220,.22)!important}.jtf-choice .jtf-choice-no,.jtf-popover .jtf-choice .jtf-choice-no{border:1px solid #ffc7dd!important;background:#fff0f6!important;color:#b52a68!important;opacity:1!important;font-weight:600!important}.jtf-choice .jtf-choice-yes:hover:not(:disabled){background:linear-gradient(135deg,#8678ff,#604bdc)!important}.jtf-choice .jtf-choice-no:hover:not(:disabled){background:#ffe1ed!important}.jtf-choice button:disabled{opacity:.52!important;box-shadow:none!important}

/* تراز سربرگ و خوانایی متن گفتگو */
.jtf-popover-head{align-items:stretch!important}.jtf-popover-head>div{display:flex!important;min-height:64px;flex-direction:column;justify-content:center;gap:4px;padding:2px 0}.jtf-popover-head strong{margin:0!important;line-height:1.3!important}.jtf-popover-head small{margin:0!important;line-height:1.25!important}.jtf-popover-head .jtf-close{align-self:center}.jtf-popover-messages .jtf-bubble{font-size:12px!important;line-height:1.9!important}.jtf-popover-messages .jtf-card h3{font-size:11px}.jtf-popover-messages .jtf-card-facts span{font-size:8.5px}.jtf-popover-form input{font-size:12px}.jtf-popover-form button{font-size:18px}

/* کارت محصول: بدون برچسب اضافی و با فضای امن زیر دکمه. */
.jtf-image b{display:none!important}.jtf-card-meta em{display:none!important}.jtf-popover .jtf-card{height:138px;min-height:138px}.jtf-popover .jtf-image{height:138px;min-height:138px}.jtf-popover .jtf-card-body{height:138px;padding:10px 11px 13px}.jtf-popover .jtf-view{margin:6px 0 2px!important;line-height:1.25!important}
@media(max-width:520px){.jtf-popover .jtf-card{height:134px;min-height:134px}.jtf-popover .jtf-image{height:134px;min-height:134px}.jtf-popover .jtf-card-body{height:134px;padding:10px 10px 12px}.jtf-popover .jtf-view{margin:6px 0 2px!important}}

/* پنجرهٔ چت هرگز تمام ارتفاع صفحه را اشغال نمی‌کند؛ فقط پیام‌ها اسکرول می‌شوند. */
.jtf-popover{max-height:min(660px,calc(100dvh - 160px))!important}.jtf-popover-messages{overscroll-behavior:contain}
@media(max-width:700px){.jtf-popover{max-height:min(600px,calc(100dvh - 112px))!important}}

/* پیش‌نمایش با نسبت افقی‌تر، تا طرح قالب فشرده و تقریباً مربع دیده نشود. */
.jtf-popover .jtf-card{grid-template-columns:180px minmax(0,1fr);height:124px;min-height:124px}.jtf-popover .jtf-image{width:180px;height:124px;min-height:124px;align-self:stretch}.jtf-popover .jtf-image img{height:124px!important}
@media(max-width:520px){.jtf-popover .jtf-card{grid-template-columns:165px minmax(0,1fr);height:116px;min-height:116px}.jtf-popover .jtf-image{width:165px;height:116px;min-height:116px;align-self:stretch}.jtf-popover .jtf-image img{height:116px!important}.jtf-popover .jtf-card-body{height:116px;padding:8px 10px 10px}}

/* هویت بصری گفتگو: کاربر و دستیار هوش مصنوعی با آیکون‌های واضح. */
.jtf-avatar{display:grid!important;place-items:center;color:#5f51e6}.jtf-avatar-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.jtf-user .jtf-avatar{background:#302d44;color:#fff}.jtf-popover .jtf-bot .jtf-avatar{display:grid!important}.jtf-popover .jtf-bot .jtf-bubble{max-width:calc(100% - 34px)}

/* Product card expands to fit the action button at every viewport width. */
.jtf-popover .jtf-card{height:auto!important;min-height:132px!important;overflow:hidden;grid-template-columns:minmax(110px,45%) minmax(0,1fr)}
.jtf-popover .jtf-image{width:100%!important;height:auto!important;min-height:132px!important;overflow:hidden}
.jtf-popover .jtf-image img{height:100%!important;min-height:132px;position:absolute!important;inset:0!important}
.jtf-popover .jtf-card-body{height:auto!important;min-width:0;min-height:132px;padding:9px 10px 11px!important;overflow:visible;display:flex;flex-direction:column;align-items:stretch}
.jtf-popover .jtf-card-meta{display:flex!important;min-height:22px}
.jtf-popover .jtf-view{box-sizing:border-box!important;display:block!important;align-self:stretch!important;flex-shrink:0;min-height:30px;margin:7px 0 0!important;padding:6px 4px!important;line-height:1.5!important;text-align:center;white-space:normal;overflow:visible}
@media(max-width:520px){.jtf-popover .jtf-card{grid-template-columns:minmax(105px,43%) minmax(0,1fr)}.jtf-popover .jtf-card-body{min-height:132px}}

/* Keep the entire rectangular template thumbnail visible without distortion. */
.jtf-app .jtf-image img,.jtf-popover .jtf-image img{object-fit:contain!important;object-position:center!important;background:#f5f5f8!important}
.jtf-popover .jtf-image{background:#f5f5f8!important}

/* Media and details share the card height; the action belongs to the image. */
.jtf-card-media{display:flex;flex-direction:column;min-width:0}
.jtf-card-media .jtf-view{box-sizing:border-box;min-height:32px;margin:7px 8px 8px;text-align:center;align-content:center}
.jtf-popover .jtf-card{grid-template-columns:minmax(0,48%) minmax(0,52%)!important;min-height:150px!important;height:auto!important;align-items:stretch}
.jtf-popover .jtf-card-media{align-self:stretch;min-height:150px;background:#f5f5f8;overflow:hidden}
.jtf-popover .jtf-card-media .jtf-image{flex:1 1 auto;display:block;position:relative;width:100%!important;height:auto!important;min-height:105px!important;padding:0!important;background:#f5f5f8!important;overflow:hidden}
.jtf-popover .jtf-card-media .jtf-image img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important;object-position:center!important;background:#f5f5f8!important}
.jtf-popover .jtf-card-media .jtf-view{flex:0 0 auto;align-self:stretch!important;min-height:32px;margin:0 7px 7px!important;padding:7px 4px!important;font-size:10px;line-height:1.4!important;white-space:nowrap}
.jtf-popover .jtf-card-body{box-sizing:border-box;min-height:150px!important;height:auto!important;padding:11px 10px!important}
.jtf-popover .jtf-privacy{display:block;padding:4px 12px 8px;color:#777b89;font-size:10px;line-height:1.5;text-align:center}
