/* Notification bell — Forums + Blog headers
   Author: Dave Greenlaw */

.bb-notif-bell {
  position: relative;
  flex-shrink: 0;
}

.bb-notif-bell__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--text, #1f2937);
  cursor: pointer;
}

.bb-notif-bell__btn:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.bb-notif-bell__icon {
  display: block;
}

.bb-notif-bell__badge {
  pointer-events: none;
}

.bb-notif-bell__panel {
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 0;
  z-index: 80;
}

.bb-notif-bell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}

.bb-notif-bell__title {
  font-size: 13px;
  font-weight: 800;
}

.bb-notif-bell__mark {
  border: 0;
  background: transparent;
  color: var(--link, #2563eb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.bb-notif-bell__mark:hover {
  text-decoration: underline;
}

.bb-notif-bell__list {
  display: flex;
  flex-direction: column;
}

.bb-notif-bell__item {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
  padding: 10px 14px !important;
  white-space: normal !important;
  line-height: 1.35;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bb-notif-bell__item-kind {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.bb-notif-bell__item-title {
  font-size: 14px;
  font-weight: 700;
}

.bb-notif-bell__item-meta {
  font-size: 12px;
  opacity: 0.75;
}

.bb-notif-bell__item-excerpt {
  font-size: 12px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-notif-bell__empty {
  margin: 0;
  padding: 16px 14px;
  font-size: 13px;
  opacity: 0.75;
}

html[data-theme="dark"] .bb-notif-bell__btn,
html[data-theme="soft"] .bb-notif-bell__btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .bb-notif-bell__head,
html[data-theme="soft"] .bb-notif-bell__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .bb-notif-bell__item,
html[data-theme="soft"] .bb-notif-bell__item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
