/* The notifications bell and its panel (templates/account/_bell.html, notifications.js). Black, white and yellow. */
.bell { position: relative; }
.bell-btn { border: 0; cursor: pointer; }
.bell-btn[aria-expanded="true"] { background: var(--chrome, #0a0a0b); color: var(--yellow); }
.bell-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 120px)); border-radius: 18px; background: var(--d-k, #fff);
  border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(10, 10, 11, .14); overflow: hidden; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; background: var(--chrome, #0a0a0b); color: #fff; }
.bell-head b { flex: 1; font-size: 15px; }
.bell-all, .bell-close { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--on-y);
  font: 600 13px/1 var(--font); cursor: pointer; }
.bell-all:disabled { opacity: .5; cursor: default; }
.bell-close { display: none; padding: 0 8px; background: transparent; color: #fff; }
.bell-close .ic { width: 20px; height: 20px; }
.bell-head :focus-visible { outline-color: var(--yellow); }
.bell-list { margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.bell-item a { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; padding: 11px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; }
.bell-item a:hover, .bell-item a:focus-visible { background: var(--sunk); }
.bell-dot { grid-row: 1 / span 3; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: transparent; }
.bell-item.unread .bell-dot { background: var(--chrome, #0a0a0b); box-shadow: 0 0 0 2px var(--yellow); }
.bell-title { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.bell-item:not(.unread) .bell-title { font-weight: 500; }
.bell-body { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.bell-time { color: var(--faint); font-size: 12.5px; }
.bell-empty { margin: 0; padding: 22px 18px; color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 599px) {
  .bell { position: static; }
  .bell-panel { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 60; width: 100%; max-height: 80vh;
    border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .bell-close { display: inline-flex; align-items: center; }
}
/* Dashivo: a Cloud payment problem (cloud_hold_line.py): pinned on top in red while it lasts; its notification's dot is red */
.bell-pin { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; margin: 0 8px 6px; padding: 10px 12px 10px 10px; border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0; background: var(--d-clear, var(--red-bg)); color: var(--text); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.bell-pin.warn { border-left-color: var(--amber); background: var(--d-clear, #fff8e8); }
.bell-pin > .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--red); }
.bell-pin.warn > .ic { color: var(--amber); }
.bell-pin b { color: var(--red); }
.bell-pin.warn b { color: var(--text); }
.bell-pin em { grid-column: 2; font-style: normal; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.bell-item.payment.unread .bell-dot { background: var(--red); box-shadow: 0 0 0 2px var(--red-bg); }
