/* Notification bell dropdown — nav component */

.notif-bell {
  position: relative;
}

.notif-badge {
  font-size: .65rem;
  position: absolute;
  top: 2px;
  right: -2px;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  z-index: 1050;
  min-width: 16rem;
  max-height: 20rem;
  overflow: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  padding: .25rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.notif-dropdown {
  transform-origin: top right;
}

/* Bell open/close transition is the site-wide .cc-t-pop-* preset in theme.css
   (reduced-motion handled by the global token block there). The per-component
   enter/leave transition hooks were removed when the bell migrated off them. */

.notif-item {
  display: block;
  padding: .4rem .6rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border-radius: .25rem;
}

.notif-item:hover {
  background: var(--bs-tertiary-bg);
}

.notif-empty {
  padding: .5rem .6rem;
  margin: 0;
}

.notif-actions {
  display: flex;
  justify-content: flex-end;
  padding: .2rem .3rem .25rem;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: .15rem;
}

.notif-clear-all {
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  font-size: .8rem;
  padding: .15rem .25rem;
}

.notif-clear-all:hover,
.notif-clear-all:focus {
  color: var(--bs-body-color);
  text-decoration: underline;
}

.notif-item-row {
  display: flex;
  align-items: stretch;
  gap: .15rem;
  border-radius: .25rem;
}

.notif-item-link {
  flex: 1 1 auto;
  min-width: 0;
}

.notif-clear-item {
  flex: 0 0 auto;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bs-secondary-color);
  line-height: 1;
}

.notif-clear-item:hover,
.notif-clear-item:focus {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

[x-cloak] { display: none !important; }
