#brdmenu {
  position: relative;
}

#brdmenu ul {
  position: relative;
  padding-right: 24px;
}

#brdmenu #navnotifications {
  float: none;
  position: absolute;
  z-index: 2000;
  top: 50%;
  right: 0;
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateY(-50%);
}

#astral-notification-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  color: #aab2bd !important;
  line-height: 1;
  text-decoration: none !important;
}

#astral-notification-toggle:hover,
#astral-notification-toggle:focus,
#astral-notification-toggle.has-unread {
  color: #eef3f8 !important;
}

.astral-notification-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.astral-notification-icon-shape,
.astral-notification-glyph {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask-image: var(--astral-icon);
  mask-image: var(--astral-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.astral-notification-icon-shape {
  --astral-icon: url('../images/notification-icons/bell.svg');
  width: 18px;
  height: 18px;
}

#astral-notification-toggle.has-unread .astral-notification-icon-shape {
  --astral-icon: url('../images/notification-icons/bell-unread.svg');
}

.astral-notification-unread-dot {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e05252;
}

#astral-notification-toggle.has-unread .astral-notification-unread-dot {
  display: block;
}

.astral-notification-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.astral-notification-popover {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 7px);
  right: 0;
  width: 370px;
  max-height: 470px;
  overflow: hidden;
  border: 1px solid #3c3c3c;
  background: #161616;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .58);
  text-align: left;
}

.astral-notification-popover[hidden],
.astral-notification-count[hidden] {
  display: none !important;
}

.astral-notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #2f2f2f;
  background: #1d1d1d;
}

.astral-notification-popover-head strong {
  color: #eef3f8;
  font-size: 12px;
}

.astral-notification-popover-head button {
  border: 0;
  background: transparent;
  color: #e1e1e1;
  cursor: pointer;
  font-size: 10px;
}

.astral-notification-popover-head button:disabled {
  color: #6b6b6b;
  cursor: default;
}

.astral-notification-popover-list {
  max-height: 382px;
  overflow-y: auto;
}

.astral-notification-popover-item,
.astral-notification-page-item {
  display: flex !important;
  gap: 10px;
  padding: 10px 12px !important;
  border-bottom: 1px solid #2a2a2a;
  background: #181818;
  color: #c9d1da !important;
  text-decoration: none !important;
}

.astral-notification-popover-item:hover,
.astral-notification-page-item:hover {
  background: #202020;
}

.astral-notification-popover-item.is-unread,
.astral-notification-page-item.is-unread {
  background: linear-gradient(90deg, rgba(199, 199, 199, .16), #191919 46%);
  box-shadow: inset 2px 0 #c7c7c7;
}

.astral-notification-type {
  --astral-icon: url('../images/notification-icons/notification.svg');
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid #3c3c3c;
  border-radius: 50%;
  background: #262626;
  color: #e1e1e1;
  line-height: 1;
}

.astral-notification-type[data-type="badge"] { --astral-icon: url('../images/notification-icons/badge.svg'); }
.astral-notification-type[data-type="reputation"] { --astral-icon: url('../images/notification-icons/reputation.svg'); }
.astral-notification-type[data-type="reply"] { --astral-icon: url('../images/notification-icons/reply.svg'); }
.astral-notification-type[data-type="quote"] { --astral-icon: url('../images/notification-icons/quote.svg'); }
.astral-notification-type[data-type="mention"] { --astral-icon: url('../images/notification-icons/mention.svg'); }
.astral-notification-type[data-type="private_message"] { --astral-icon: url('../images/notification-icons/private-message.svg'); }
.astral-notification-type[data-type="staff"] { --astral-icon: url('../images/notification-icons/staff.svg'); }

.astral-notification-type[data-type="badge"] { color: #ffd76a; }
.astral-notification-type[data-type="reputation"] { color: #68d69b; }
.astral-notification-type[data-type="mention"] { color: #c6c6c6; }
.astral-notification-type[data-type="quote"] { color: #e6a86a; }
.astral-notification-type[data-type="private_message"] { color: #e1e1e1; }
.astral-notification-type[data-type="staff"] { color: #f18d96; }

.astral-notification-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.astral-notification-copy strong {
  overflow: hidden;
  color: #f1f4f7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astral-notification-copy > span {
  color: #9e9e9e;
  font-size: 10px;
  line-height: 1.35;
}

.astral-notification-copy time {
  color: #6d6d6d;
  font-size: 9px;
}

.astral-notification-popover-footer {
  display: block !important;
  padding: 9px !important;
  background: #1d1d1d;
  color: #e1e1e1 !important;
  text-align: center;
}

.astral-notification-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 14px;
  color: #818181;
  text-align: center;
}

.astral-notification-empty strong {
  color: #c7cfd8;
}

.astral-notifications-page .inbox {
  padding: 12px;
}

.astral-notifications-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.astral-notification-page-list {
  border: 1px solid #393939;
}

.astral-notification-page-item {
  align-items: center;
}

.astral-notification-page-item time {
  flex: 0 0 125px;
  color: #757575;
  font-size: 9px;
  text-align: right;
}

@media (max-width: 640px) {
  .astral-notification-popover {
    position: fixed;
    top: 66px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  .astral-notification-page-item time {
    display: none;
  }
}
