/* پیام تیره‌ی مشترک (طرح تأییدشده‌ی شماره ۱ تا ۴ و ۷ «سفرهای من» مسافر، آبان ۱۴۰۵؛ مرجع docs/design/passenger-trips-all.html)
 * یک پیام در لحظه: نتیجه‌ی کار، خطا، اعلان زنده. چهار لحن: ok (سبز) / info (بنفش) / warn (زرد) / err (قرمز).
 * مستقل از tms-select.css (فقط رنگ‌های خودش) تا روی هر صفحه‌ی افزونه (ثبت سفر، کیف پول، داشبورد) کار کنه.
 * 🔴 قانون «هر دکمه‌ی تازه»: قالب Hello روی hover/focus دکمه رنگ صورتی و nowrap می‌زنه؛ رنگ و پس‌زمینه‌ی دکمه‌ها
 * برای همه‌ی حالت‌ها !important. */
.tms-toast{position:fixed;inset-inline:12px;bottom:18px;max-width:520px;margin-inline:auto;z-index:100120;background:#17191F;color:#fff;border-radius:14px;padding:10px 12px;font:13px/1.6 Vazirmatn,Vazir,IRANSans,Tahoma,sans-serif;direction:rtl;text-align:right;display:flex;gap:10px;align-items:center;box-shadow:0 1px 2px rgba(23,25,31,.05),0 8px 24px rgba(23,25,31,.07);transform:translateY(160%);opacity:0;visibility:hidden;transition:transform .3s,opacity .3s,visibility 0s .3s;box-sizing:border-box}
.tms-toast.on{transform:none;opacity:1;visibility:visible;transition:transform .3s,opacity .3s}
.tms-toast *{box-sizing:border-box}
.tms-toast .pi{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(255,255,255,.12);color:#C9C3FF}
.tms-toast .pi svg{width:18px;height:18px;stroke-width:2.4;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.tms-toast.ok .pi{background:rgba(127,224,188,.18);color:#7FE0BC}
.tms-toast.info .pi{color:#C9C3FF}
.tms-toast.warn .pi{background:rgba(255,210,122,.18);color:#FFD27A}
.tms-toast.err .pi{background:rgba(255,160,150,.2);color:#FFB4AB}
.tms-toast .pt{display:grid;flex:1;min-width:0;line-height:1.6}
.tms-toast .pt b{font-size:13.5px;font-weight:800}
.tms-toast .pt small{font-size:12px;color:rgba(255,255,255,.74)}
.tms-toast .pa,.tms-toast .pa:is(:hover,:focus,:active,:visited){flex:none;min-height:40px;padding:0 14px;border:0!important;border-radius:11px!important;background:#fff!important;color:#17191F!important;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;white-space:normal;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;margin:0}
.tms-toast .px,.tms-toast .px:is(:hover,:focus,:active){flex:none;width:36px;height:36px;border:0!important;border-radius:10px!important;background:transparent!important;color:rgba(255,255,255,.7)!important;display:grid;place-items:center;cursor:pointer;padding:0;margin:0;box-shadow:none!important}
.tms-toast .px svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* دو ردیفه: عنوان و متن بلندتر، دکمه‌ی قدم بعدی زیر متن */
.tms-toast.rich{flex-wrap:wrap;align-items:flex-start;padding:12px}
.tms-toast.rich .pt small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tms-toast.rich .ra{flex:0 0 100%;display:flex;justify-content:flex-start;padding-inline-start:42px;margin-top:2px}
@media (prefers-reduced-motion:reduce){.tms-toast,.tms-toast.on{transition:none}}
