/* Customer panel: the notification bell's panel (the button, its badge and its wrapper are styled by customer-panel-header.css).
   Colours come from the theme tokens, so the panel follows light and dark mode; sides are logical, so it mirrors in RTL. */
.notif-shake { animation: notif-shake .55s ease-in-out; }
@keyframes notif-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
}
.notif-bell-panel {
  position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0;
  width: 380px; max-width: 92vw; max-height: 540px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  overflow: hidden; z-index: 10000;
  display: flex; flex-direction: column;
  animation: notif-panel-in .15s ease-out;
}
@keyframes notif-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-header, .notif-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--panel-2);
}
.notif-header { justify-content: space-between; border-block-end: 1px solid var(--border-soft); }
.notif-footer { border-block-start: 1px solid var(--border-soft); }
.notif-list { overflow-y: auto; flex: 1; }
.notif-empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.notif-row {
  display: grid; grid-template-columns: 38px 1fr; gap: 10px;
  padding: 10px 14px; cursor: pointer; border-block-end: 1px solid var(--border-soft);
  transition: background .12s;
}
.notif-row:hover { background: var(--row-hover); }
.notif-row:last-child { border-block-end: none; }
.notif-unread { background: var(--accent-soft); }
.notif-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--info-soft); color: var(--info);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.notif-body { min-width: 0; }
.notif-row1 { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.notif-ago { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
.notif-tid { margin-block-start: 4px; font-size: 11px; }
.notif-tid code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; color: var(--muted); }
.notif-action {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 5px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.notif-action:hover { background: var(--panel); color: var(--text); }
.notif-action:focus-visible, .notif-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notif-action-primary { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); margin-inline-start: auto; }
.notif-action-primary:hover { background: var(--accent-fill); color: #fff; filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) {
  .notif-shake, .notif-bell-panel { animation: none; }
}

/* The notification center (design proposals 25, 27 and 33): bell rows are links with a line icon and one sentence. */
a.notif-row, a.notif-row:hover { color: inherit; text-decoration: none; }
.notif-avatar .ic-svg { inline-size: 18px; block-size: 18px; display: block; }
.notif-empty-ico .ic-svg { inline-size: 28px; block-size: 28px; display: inline-block; color: var(--muted); }
.notif-empty p { margin: 6px 0 0; }
.notif-row1 strong { font-weight: 500; overflow-wrap: anywhere; }
.notif-page-title { margin: 0; flex: 1; }
.notif-page-foot { margin-block-start: 14px; line-height: 1.5; }
.notif-row-unread td { background: var(--accent-soft); }
