/* ALERTS-1: bell badge + alerts panel (popover on desktop/tablet, top sheet on phones). Tokens only; no gradients. */
#topbarNotifDot.notif-count, .ax-store-row #topbarNotifDot.notif-count {
  position: absolute; top: 2px; right: 0; width: auto; height: 18px; min-width: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: #E5372B; color: #fff; border: 1.5px solid #fff;
  font-size: 10.5px; font-weight: 700; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none;
}
#topbarNotifDot.notif-count[hidden] { display: none; }
.icon-btn#topbarNotifLink { position: relative; }

.al-backdrop { position: fixed; inset: 0; z-index: 1190; background: rgba(15, 23, 42, .35); opacity: 0; transition: opacity .18s ease; }
.al-backdrop.open { opacity: 1; }
.al-panel {
  position: fixed; z-index: 1200; display: flex; flex-direction: column; box-sizing: border-box;
  background: #fff; color: #0F172A; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
  opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease;
}
.al-panel.open { opacity: 1; transform: none; }
.al-panel[hidden], .al-backdrop[hidden] { display: none; }
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F1F5F9; }
.al-head h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 24px; }
.al-head-actions { display: flex; align-items: center; gap: 4px; }
.al-head-actions button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--color-primary, #168A4E); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.al-head-actions button:hover { background: #F1F5F9; }
.al-head-actions .al-x { font-size: 22px; line-height: 1; color: #64748B; padding: 2px 9px 4px; }
.al-list { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.al-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid #F1F5F9; }
.al-item:hover, .al-item:focus-visible { background: #F8FAFC; outline: none; }
.al-item.is-new { background: #F6FBF8; }
.al-item.is-new:hover { background: #EDF7F1; }
.al-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.al-ico svg { width: 18px; height: 18px; }
.al-tone-order { background: #E3F4EB; color: #0F6E3E; }
.al-tone-low { background: #FEF3C7; color: #92400E; }
.al-tone-out { background: #FEE4E2; color: #B42318; }
.al-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-txt b { font-size: 13px; font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-txt span { font-size: 12.5px; line-height: 18px; color: #64748B; }
.al-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 40px; }
.al-meta em { font-style: normal; font-size: 12px; line-height: 18px; color: #94A3B8; white-space: nowrap; }
.al-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5372B; display: block; }
.al-more { padding: 10px 16px; font-size: 12.5px; color: #64748B; }
.al-empty { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.al-empty b { font-size: 14px; font-weight: 600; }
.al-empty span { font-size: 13px; color: #64748B; }
.al-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid #F1F5F9; background: #fff; }
.al-foot a { font-size: 13px; font-weight: 500; color: var(--color-primary, #168A4E); text-decoration: none; padding: 4px 0; }
.al-foot a:hover { text-decoration: underline; }

/* Phones: a full-width sheet dropping from the top, below the status bar. */
@media (max-width: 860px) {
  .al-panel {
    top: 0; left: 0; right: 0; width: 100%; max-height: 82vh; border-radius: 0 0 16px 16px; border-width: 0 0 1px;
    padding-top: env(safe-area-inset-top, 0px); transform: translateY(-12px);
  }
  .al-panel.open { transform: none; }
  .al-item { padding: 14px 16px; }
  .al-head-actions button { padding: 10px 10px; }
  .al-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .al-panel, .al-backdrop { transition: none; } }
