/* ==========================================================
   PATHREST ACCOUNT UNREAD BADGE — V1
   Общий бейдж непрочитанных сообщений на элементе .account
   ========================================================== */

.account[data-pathrest-unread-mounted="1"] {
  overflow: visible !important;
}

.account[data-pathrest-unread-mounted="1"] > .pathrest-account-unread-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ff8b21;
  color: #ffffff;
  box-shadow:
    0 5px 14px rgba(255, 139, 33, 0.34),
    0 1px 3px rgba(42, 101, 131, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translateZ(0);
}

.account[data-pathrest-unread-mounted="1"] > .pathrest-account-unread-badge[hidden] {
  display: none !important;
}

.account[data-pathrest-unread-mounted="1"] > .pathrest-account-unread-badge.is-pulse {
  animation: pathrest-account-unread-pulse 0.48s ease;
}

@keyframes pathrest-account-unread-pulse {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .account[data-pathrest-unread-mounted="1"] > .pathrest-account-unread-badge {
    top: -6px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-width: 2px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account[data-pathrest-unread-mounted="1"] > .pathrest-account-unread-badge.is-pulse {
    animation: none;
  }
}
