/* Site-wide notification bell. Sits next to the shared account widget
   ([data-velo-account]) in every product header. Tokens mirror
   shared-account.css so the bell reads as part of the same chrome. */

.velo-notif { position: relative; display: inline-flex; align-items: center; }

.velo-notif[hidden] { display: none !important; }

.velo-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(116, 132, 151, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: inherit;
  cursor: pointer;
}
.velo-notif-bell:hover { border-color: #2d77d0; }
.velo-notif-bell[aria-expanded="true"] { border-color: #2d77d0; background: #fff; }

.velo-notif-bell svg { width: 18px; height: 18px; display: block; }

.velo-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d83a4a;
  color: #fff;
  font: 700 11px/18px Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.velo-notif-badge[hidden] { display: none !important; }

.velo-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  border: 1px solid #dce3ea;
  border-radius: 14px;
  background: #fff;
  color: #14233a;
  box-shadow: 0 24px 70px rgba(20, 35, 58, .2);
  overflow: hidden;
  font: 14px/1.5 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.velo-notif-panel[hidden] { display: none !important; }

.velo-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  font-weight: 700;
}
.velo-notif-header button {
  border: 0;
  background: transparent;
  color: #1f65d6;
  cursor: pointer;
  font: inherit;
  padding: 2px 4px;
  border-radius: 6px;
}
.velo-notif-header button:disabled { color: #b6c0cc; cursor: default; }

.velo-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.velo-notif-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #f1f4f8;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.velo-notif-item:last-child { border-bottom: 0; }
.velo-notif-item:hover { background: #f5f8fb; }
.velo-notif-item[data-unread="true"] { background: rgba(31, 101, 214, .05); }
.velo-notif-item[data-unread="true"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #1f65d6;
  vertical-align: middle;
}

.velo-notif-item-title {
  display: block;
  font-weight: 600;
  word-break: break-word;
}
.velo-notif-item-body {
  display: block;
  margin-top: 2px;
  color: #5a6b80;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}
.velo-notif-item-time {
  display: block;
  margin-top: 4px;
  color: #98a4b3;
  font-size: 12px;
}

.velo-notif-empty,
.velo-notif-error {
  padding: 22px 14px;
  text-align: center;
  color: #98a4b3;
  font-size: 13px;
}
