/**
 * Private Messages - Unified Notifications (Archive + Thread)
 * Bottom-right pill stack and animations
 */

/* Stack container - pills are stacked vertically, right aligned */
.sa-notif-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  align-items: flex-end;
}

/* Inline pill with message + CTA */
.sa-notif-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #ffffff;
  color: #0b1e4a;
  border: 1px solid rgba(2, 26, 79, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  /* start fully off-screen to the right; JS adds sa-anim-in */
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease;
}

.sa-notif-pill .pill-text {
  font-size: 13px;
  font-weight: 600;
}

.sa-notif-pill .pill-action {
  font-size: 12px;
  font-weight: 700;
  background: #021a4f;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.sa-notif-pill:hover {
  filter: brightness(1.02);
}

/* Animation helpers */
.sa-anim-in {
  transform: translateX(0);
  opacity: 1;
}
.sa-anim-out {
  transform: translateX(120%);
  opacity: 0;
}

/* Message envelope styles */
.message-unread .message-badge {
  display: inline-block;
}

.message-envelope-container {
  position: relative;
  margin-right: 4px !important;
}

.message-envelope-container a {
  display: flex;
  padding: 0.5em;
  align-items: center;
}

.message-envelope-icon {
  box-sizing: content-box !important;
  height: 1.5em;
  min-height: 1.4375em;
  min-width: 1.4375em;
  width: 1.5em;
}

.unread-badge {
  position: absolute;
  background: #dc3545;
  color: white;
  align-items: center;
  border-radius: 1em;
  box-sizing: border-box;
  /* font-size: .875em; */
  /* font-weight: 600; */
  height: 12px;
  /* justify-content: center; */
  left: 100%;
  margin-left: -48%;
  width: 12px;
  /* padding: 0 .25em; */
  transform: translateY(-48%);
  /* white-space: nowrap; */
  z-index: 1;
}

/* Archive styles */
.wp-block-post-author-name {
  font-weight: 500;
  color: #021a4f;
}
