/* Chat sheet (#chat, App\Livewire\User\ShopChat) and the inbox badges.
   Loaded on every page (site.layouts.head) because the same sheet opens on the shop page and on the profile page.
   Every chat rule starts with #chat so it can not touch anything else. */

/* the sheet itself */
#chat .ch-title{font-size:1.2rem}
#chat .ch-ico{background:var(--brand-s);color:var(--brand);width:72px;height:72px;border-radius:50%;font-size:2rem;display:grid;place-items:center;margin:0 auto 1rem}
#chat .mgw{display:flex;flex-direction:column;gap:.5rem}
#chat .mg{max-width:86%;border-radius:18px 18px 18px 6px;padding:.6rem .85rem;font-size:.9rem;line-height:1.9;align-self:flex-start;background:var(--brand);color:#fff}
#chat .mg small{display:block;opacity:.75;font-size:.7rem;margin-top:.15rem}
#chat .mg.them{align-self:flex-end;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px 18px 6px 18px}
#chat .ch-input{resize:none;border-radius:18px;padding:.7rem 1rem;max-height:110px;min-height:48px}
#chat .ch-send{width:48px;height:48px;padding:0;flex:none}
#chat .ch-send i{display:inline-block;transform:scaleX(-1)}

/* attached product / order: card inside a message, bar above the input, quick-reply chips */
#chat .ac{display:flex;gap:.6rem;align-items:center;background:rgba(255,255,255,.18);border-radius:12px;padding:.45rem .6rem;margin-bottom:.4rem;font-size:.8rem}
#chat .ac i{font-size:1.2rem}
#chat .attc{display:flex;align-items:center;gap:.6rem;background:var(--brand-s);border-radius:14px;padding:.5rem .7rem;margin-bottom:.5rem}
#chat .qch{display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:none;margin-bottom:.5rem}
#chat .qch::-webkit-scrollbar{display:none}
#chat .qch button{flex:none;border:1px solid var(--line);background:#fff;border-radius:99px;padding:.4rem .85rem;font-size:.8rem;color:var(--ink)}
#chat .qch button:active{background:var(--brand-s)}

/* product picker search field */
#chat .srch{background:#fff;border:1.5px solid var(--line);border-radius:18px;display:flex;align-items:center;padding:0 .9rem;gap:.5rem}
#chat .srch input{border:0;outline:0;flex:1;padding:.7rem 0;background:transparent;min-width:0}

/* ---------- inbox badges (shared by every page: account sheet, tab bar, profile) ---------- */
/* round number inside a row (the corner badge of an icon is .bdg from shopig.css) */
.cnb{background:var(--acc);color:#2B1500;border-radius:99px;min-width:26px;height:26px;display:grid;place-items:center;font-size:.78rem;font-weight:800;padding:0 .4rem}

/* ---------- buyer safety notice (partials/buyer-safety): cart payment step, order result, my orders ---------- */
.sfn{background:var(--acc-s);border:1px solid #FFE0C2;border-radius:18px;padding:.8rem .9rem;margin-bottom:.9rem;font-size:.84rem;line-height:1.95;color:var(--ink)}
.sfn-h{display:flex;align-items:center;gap:.5rem;margin-bottom:.15rem}.sfn-h i{font-size:1.15rem;color:#C2560A}
.sfn p{margin:0}
.sfn details{margin-top:.4rem}.sfn summary{cursor:pointer;font-weight:700;color:var(--brand-d)}
.sfn ol{margin:.5rem 0;padding-inline-start:1.2rem}.sfn li{margin-bottom:.35rem}
.sfn a{color:var(--brand);font-weight:700}
.sfn-c{font-size:.8rem;padding:.65rem .8rem}
