/* ══════════════════════════════════════════════════════════════════════
   ZupiChat toast skin — iziToast (2026-08-25)
   Aditya: "ye jo notification hai isse bhi professional banao"

   Purani file me do `.iziToast-icon` block aapas me lad rahe the (pehla
   soft-square tint, doosra solid gol circle) — jo baad me likha tha wahi
   jeet raha tha, isliye screen par ek bhari-bharkam rangeen gola aur
   uske bagal me "Success / Profile updated successfully" — ek hi baat do
   baar. Saath me 80px ka pill radius aur 50px chaudi close-strip, yaani
   aadhi toast khaali jagah.

   Ab: ek line, ek chhota tinted chip, baayein 3px ka tone-bar, aur wahi
   card system jo poore panel me hai (#fff / radius 10 / 0 0 11px #e9e9e9).
   Rang gaya nahi hai — chip aur bar me hai, bas chillata nahi.
   ══════════════════════════════════════════════════════════════════════ */

/* ── stack ───────────────────────────────────────────────────────────── */
.iziToast-wrapper { gap: 10px; }

/* ── card ────────────────────────────────────────────────────────────── */
.iziToast {
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 10px !important;
    /* inset = baayein wala tone-bar. border-left ke bajaye inset isliye ki
       ye layout ko 3px khiskata nahi aur iziToast ke inline style se ladta
       nahi. Tone har status block me set hota hai. */
    box-shadow: inset 3px 0 0 #c4ccc9, 0 0 11px #e9e9e9 !important;
    min-width: 300px;
    max-width: 420px;
    min-height: 0 !important;
    padding: 13px 40px 13px 15px !important;
    overflow: hidden;
}
.iziToast:after { box-shadow: none; }

/* ── body: icon + text ek line me ────────────────────────────────────── */
.iziToast > .iziToast-body {
    position: unset;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 0 !important;
    height: unset;
    min-height: unset;
}

/* ── icon chip: 22px soft-square, tinted bg + solid glyph ────────────── */
.iziToast > .iziToast-body .iziToast-icon {
    position: unset;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    margin: 0 !important;
    border-radius: 7px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    /* text ki pehli line ke saath optically center — 13.5px/1.45 = ~19.6px */
    margin-top: -1px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    opacity: 1;
    background: #f3f5f5 !important;
    color: #4a5350 !important;
}

/* ── text: sirf ek line. Title JS se hata diya gaya hai (redundant tha) ─ */
.iziToast > .iziToast-body .iziToast-texts {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.iziToast > .iziToast-body .iziToast-message {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #1c1c1c !important;
    white-space: normal;
    word-break: break-word;
}
/* agar kabhi title wapas chahiye ho to ye rehne do — abhi render hi nahi hota */
.iziToast > .iziToast-body .iziToast-title {
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    color: #1c1c1c !important;
}
.iziToast > .iziToast-body .iziToast-title + .iziToast-message { color: #4a5350 !important; }

/* ── close: chhota aur shaant, hover par jaage ───────────────────────── */
.iziToast > .iziToast-close {
    width: 34px !important;
    height: 100%;
    right: 0;
    background: none !important;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #8a938f;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease-out;
}
.iziToast > .iziToast-close::before { content: "\f00d"; }
.iziToast > .iziToast-close:hover { color: #1c1c1c; }

/* ── progress bar: 2px, tone ka halka nishaan ────────────────────────── */
.iziToast > .iziToast-progressbar {
    width: 100% !important;
    bottom: 0;
    background: transparent;
}
.iziToast > .iziToast-progressbar > div {
    height: 2px !important;
    opacity: .45;
}

/* ── 4 tone: chip tint + glyph + baayein wala bar ────────────────────── */
.iziToast.iziToast-color-green .iziToast-icon { background: #e9f6ef !important; color: #17a06a !important; }
.iziToast.iziToast-color-green { box-shadow: inset 3px 0 0 #17a06a, 0 0 11px #e9e9e9 !important; }

.iziToast.iziToast-color-red .iziToast-icon { background: #fdecec !important; color: #d92d20 !important; }
.iziToast.iziToast-color-red { box-shadow: inset 3px 0 0 #d92d20, 0 0 11px #e9e9e9 !important; opacity: 1 !important; }

.iziToast.iziToast-color-orange .iziToast-icon { background: #fdf0e7 !important; color: #b7601c !important; }
.iziToast.iziToast-color-orange { box-shadow: inset 3px 0 0 #b7601c, 0 0 11px #e9e9e9 !important; }

.iziToast.iziToast-color-blue .iziToast-icon { background: #eaf1fe !important; color: #2563eb !important; }
.iziToast.iziToast-color-blue { box-shadow: inset 3px 0 0 #2563eb, 0 0 11px #e9e9e9 !important; }

/* ── mobile: kinare se kinare, par pill nahi ─────────────────────────── */
@media screen and (max-width: 567px) {
    .iziToast-wrapper-topRight,
    .iziToast-wrapper-topCenter {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    .iziToast-wrapper { width: calc(100% - 20px) !important; }
    .iziToast {
        border-radius: 10px !important;
        min-width: 0;
        max-width: none;
    }
}

/* ── reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .iziToast, .iziToast * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
