.mc-notif-bell { position: relative; }

.mc-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff4d5e;
  font: 700 10px/1 system-ui, sans-serif;
  pointer-events: none;
}

.mc-notif-panel {
  position: fixed;
  z-index: 10000;
  display: flex;
  max-height: min(70vh, 520px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: #edf5fb;
  background: #141920;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  font: 14px/1.45 system-ui, sans-serif;
}
.mc-notif-panel[hidden] { display: none; }

.mc-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mc-notif-link {
  padding: 4px 0;
  border: 0;
  color: #8bd1ff;
  background: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mc-notif-link:disabled { color: #6b7886; cursor: default; }

.mc-notif-list { flex: 1; overflow-y: auto; }
.mc-notif-empty { margin: 0; padding: 28px 16px; color: #93a1b1; text-align: center; }

.mc-notif-item {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: inherit;
  text-decoration: none;
}
.mc-notif-item:hover { background: rgba(255, 255, 255, .04); }
.mc-notif-item.is-unread { background: rgba(0, 163, 255, .08); }
.mc-notif-item.is-unread strong::before { content: "● "; color: #00a3ff; font-size: 10px; vertical-align: 1px; }
.mc-notif-item span { color: #c3cdd8; overflow-wrap: anywhere; }
.mc-notif-item time { color: #7f8c9a; font-size: 12px; }

.mc-notif-push {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #93a1b1;
  font-size: 13px;
}

.mc-notif-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  color: #edf5fb;
  background: #1a212b;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  font: 14px/1.45 system-ui, sans-serif;
  text-decoration: none;
}

.mc-notif-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; color: inherit; background: rgba(255, 255, 255, .08); font-size: 22px; line-height: 1; cursor: pointer; }
.mc-notif-head { gap: 12px; }
.mc-notif-head strong { flex: 1; }

/* Phones and tablets: the notification centre takes the whole screen. */
.mc-notif-panel.is-fullscreen {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  font-size: 15px;
}
.mc-notif-panel.is-fullscreen .mc-notif-head { padding: 14px 16px; }
.mc-notif-panel.is-fullscreen .mc-notif-close { display: grid; place-items: center; }
.mc-notif-panel.is-fullscreen .mc-notif-item { padding: 14px 18px; }
html.mc-notif-open, html.mc-notif-open body { overflow: hidden; }

@media (max-width: 640px) {
  .mc-notif-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}
