.lb-notifications {
  position: relative;
  flex: 0 0 auto;
}

.lb-notification-trigger {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e2e7f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: #fff;
  color: #536482;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.lb-notification-trigger:hover,
.lb-notifications.open .lb-notification-trigger {
  border-color: #c9d2ff;
  background: #f4f6ff;
  color: #3157ff;
}

.lb-notification-trigger img,
.lb-notification-trigger svg {
  width: 19px;
  height: 19px;
}

.lb-notification-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-notification-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ed3347;
  color: #fff;
  font: 700 10px/1 "Segoe UI", system-ui, sans-serif;
}

.lb-notification-count[hidden] {
  display: none;
}

.lb-notification-panel {
  width: min(330px, calc(100vw - 24px));
  max-height: min(480px, calc(100dvh - 88px));
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  position: absolute;
  z-index: 100;
  top: 47px;
  right: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 32, 72, .18);
  color: #111a3a;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.lb-notifications.open .lb-notification-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lb-notification-panel > header {
  min-height: 54px;
  padding: 11px 13px;
  border-bottom: 1px solid #e7eaf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.lb-notification-panel h2 {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.25rem;
}

.lb-notification-panel header button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: #f2f4ff;
  color: #3157ff;
  font: 600 .75rem/1rem "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.lb-notification-panel header button:hover {
  background: #e8ecff;
}

.lb-read-all-short {
  display: none;
}

.lb-notification-list {
  max-height: 424px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lb-notification-item {
  min-height: 44px;
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f5;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  color: #111a3a;
  text-decoration: none;
}

.lb-notification-item:last-child {
  border-bottom: 0;
}

.lb-notification-item:hover,
.lb-notification-item.is-unread {
  background: #f8f9ff;
}

.lb-notification-item > i {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: transparent;
}

.lb-notification-item.is-unread > i {
  background: #3157ff;
}

.lb-notification-item > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lb-notification-item strong {
  font-size: .875rem;
  line-height: 1.1875rem;
}

.lb-notification-item small {
  color: #65708f;
  font-size: .8125rem;
  line-height: 1.125rem;
}

.lb-notification-item em {
  margin-top: 2px;
  color: #3157ff;
  font-size: .75rem;
  line-height: 1rem;
  font-style: normal;
  font-weight: 600;
}

.lb-notification-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #65708f;
  font-size: .875rem;
}

.lb-notifications--tdv2 .lb-notification-trigger {
  border-color: transparent;
}

.lb-notifications--v2 .lb-notification-trigger {
  border-color: transparent;
}

@media (max-width: 620px) {
  .lb-notification-panel {
    width: min(330px, calc(100vw - 24px));
    max-height: calc(100dvh - 80px);
    position: fixed;
    top: 68px;
    right: auto;
    left: 50%;
    border-radius: 16px;
    transform: translate(-50%, -6px);
    box-shadow: 0 14px 34px rgba(18, 32, 72, .2);
  }

  .lb-notifications.open .lb-notification-panel {
    transform: translate(-50%, 0);
  }

  .lb-notification-panel > header {
    min-height: 52px;
    padding: 10px 12px;
  }

  .lb-notification-panel header button {
    padding: 7px 10px;
    white-space: nowrap;
  }

  .lb-read-all-full {
    display: none;
  }

  .lb-read-all-short {
    display: inline;
  }

  .lb-notification-list {
    max-height: calc(100dvh - 132px);
  }

  .lb-notification-item {
    padding: 11px 12px;
  }
}

@media (max-width: 360px) {
  .lb-notification-panel {
    width: calc(100vw - 16px);
    top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-notification-panel,
  .lb-notification-trigger {
    transition: none;
  }
}
