.customer-notif__backdrop { position:fixed; inset:0; z-index:1500; background:rgba(12,8,22,.28); backdrop-filter:blur(3px); }
.customer-notif__backdrop[hidden],.customer-notif__panel[hidden],.customer-notif__item[hidden] { display:none; }
body.customer-notif-open { overflow:hidden; }
.customer-notif__panel { position:fixed; top:100px; right:max(24px,calc((100vw - 1200px)/2)); z-index:1501; width:460px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 130px); display:flex; flex-direction:column; border:1px solid var(--border); border-radius:20px; background:var(--bg-2); box-shadow:var(--shadow-xl); overflow:hidden; animation:none; }
.customer-notif__head { flex-shrink:0; padding:23px 24px 18px; background:var(--bg-2); border:0; }
.customer-notif__eyebrow { display:block; color:var(--primary); font-size:9px; font-weight:600; letter-spacing:2px; margin-bottom:7px; }
.customer-notif__head strong { display:flex; align-items:center; gap:10px; font-size:20px; }
#customerNotifCount { display:grid; place-items:center; min-width:23px; height:23px; padding:0 5px; font-size:11px; background:var(--primary-soft); color:var(--primary); border-radius:8px; }
.customer-notif__close { display:grid; place-items:center; width:34px; height:34px; padding:6px; border:0; border-radius:10px; color:var(--muted); background:var(--bg-3); cursor:pointer; }
.customer-notif__toolbar { display:flex; justify-content:space-between; gap:8px; flex-shrink:0; padding:0 20px 15px; border-bottom:1px solid var(--border); }
.customer-notif__toolbar>div { display:flex; padding:3px; background:var(--bg-3); border-radius:8px; }
.customer-notif__toolbar button { padding:6px 9px; border:0; border-radius:6px; color:var(--muted); background:transparent; font:inherit; font-size:11px; cursor:pointer; }
.customer-notif__toolbar button[aria-pressed="true"] { background:var(--bg-2); color:var(--primary); box-shadow:var(--shadow-xs); }
.customer-notif__toolbar .customer-notif__read-all { padding:5px; color:var(--primary); font-size:10px; }
.customer-notif__toolbar button:disabled { opacity:.45; cursor:default; }
.customer-notif__toolbar button:not(:disabled):hover,.customer-notif__close:hover { background:var(--primary-soft-hover); color:var(--primary); }
.customer-notif__toolbar button:not(:disabled):active,.customer-notif__close:active { background:var(--primary); color:white; }
.customer-notif__item:hover { background:var(--primary-soft-hover); }
.customer-notif__item:active { background:var(--primary-soft); box-shadow:inset 0 0 0 1px var(--primary); }
.customer-notif__list { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:12px; scrollbar-width:thin; scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track); }
.customer-notif__list::-webkit-scrollbar { width:7px; }
.customer-notif__list::-webkit-scrollbar-thumb { border-radius:8px; background:var(--scrollbar-thumb); }
.customer-notif__group { margin:16px 24px 8px; color:var(--muted); font-size:10px; font-weight:500; }
.customer-notif__item { position:relative; gap:12px; align-items:flex-start; width:calc(100% - 24px); margin:4px 12px; padding:16px 12px; border:0; border-radius:12px; }
.customer-notif__item.is-unread { background:var(--primary-soft); }
.customer-notif__item.is-unread::before { left:auto; right:12px; top:23px; width:6px; height:6px; background:var(--primary); }
.customer-notif__item-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:12px; color:var(--primary); background:var(--primary-soft); }
.customer-notif__item-body { min-width:0; gap:5px; padding-right:10px; }
.customer-notif__item-title { font-size:13px; font-weight:600; white-space:normal; overflow-wrap:anywhere; }
.customer-notif__item-text { display:block; color:var(--muted); font-size:11px; line-height:1.8; -webkit-line-clamp:unset; overflow-wrap:anywhere; }
.customer-notif__item-time { margin-top:3px; color:var(--muted); font-size:10px; }
.customer-notif__empty { padding:55px 25px; color:var(--muted); font-size:13px; text-align:center; }
.customer-notif__foot { display:flex; justify-content:center; align-items:center; gap:6px; flex-shrink:0; padding:14px 20px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }
.customer-notif__panel :is(a,button):focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
html[data-theme="light"] .customer-notif__panel,html[data-theme="light"] .customer-notif__head { background:var(--bg-2); }
html[data-theme="light"] .customer-notif__item.is-unread { background:var(--primary-soft); }
@media (max-width:760px) {
  .customer-notif__panel { top:auto; bottom:0; left:0; right:0; width:100%; max-width:none; max-height:88dvh; padding-bottom:env(safe-area-inset-bottom,0px); border-radius:24px 24px 0 0; transform:translateY(var(--notif-drag-y,0px)); transition:transform .18s ease-out; }
  .customer-notif__panel.is-dragging { transition:none; will-change:transform; user-select:none; }
  .customer-notif__panel::before { content:''; width:35px; height:4px; margin-top:10px; border-radius:10px; background:var(--border-strong); align-self:center; flex-shrink:0; }
  .customer-notif__head { padding:20px 20px 16px; }
  .customer-notif__head strong { font-size:19px; }
  .customer-notif__toolbar { padding:0 16px 14px; }
  .customer-notif__toolbar button { font-size:10px; }
  .customer-notif__item { padding:16px 12px; }
  .customer-notif__item-icon { width:36px; height:36px; }
  .customer-notif__item-title { font-size:13px; }
  .customer-notif__item-text { font-size:11px; }
  .customer-notif__item-time { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { .customer-notif__panel { transition:none; } }
