.plg-notifications,
.plg-notifications *,
.plg-notifications *::before,
.plg-notifications *::after {
  box-sizing: border-box;
}

.plg-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #24146f;
  font-family: var(--pik-body-font-family, Inter, "Helvetica Neue", Arial, sans-serif);
  line-height: 1.3;
}

.plg-notifications--desktop {
  margin-right: 8px;
}

.plg-notifications--responsive {
  display: none;
}

.plg-notifications__trigger,
.plg-notifications__trigger:visited {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  color: #6338db;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(87, 54, 172, 0.08);
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
}

.plg-notifications__trigger:hover,
.plg-notifications__trigger[aria-expanded="true"] {
  color: #730062;
  background: rgba(113, 47, 223, 0.11);
  border-color: rgba(115, 0, 98, 0.28);
}

.plg-notifications__trigger:focus-visible,
.plg-notifications__item:focus-visible,
.plg-notifications__view-all:focus-visible,
.plg-notifications__error:focus-visible,
.plg-notifications__heading:focus-visible {
  outline: 3px solid rgba(20, 155, 255, 0.42);
  outline-offset: 3px;
}

.plg-notifications__trigger svg {
  display: block;
  inline-size: 22px;
  block-size: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plg-notifications__dot {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 3px;
  inline-size: 11px;
  block-size: 11px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #df1769;
  box-shadow: 0 0 0 1px rgba(115, 0, 98, 0.16);
}

.plg-notifications__dot[hidden],
.plg-notifications__popover[hidden],
.plg-notifications__error[hidden],
.plg-notifications__empty[hidden] {
  display: none !important;
}

.plg-notifications__popover {
  --plg-notifications-shift-x: 0px;
  position: absolute;
  z-index: 80;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  display: grid;
  inline-size: min(360px, calc(100vw - 24px));
  max-block-size: min(560px, calc(100vh - 88px));
  padding: 0;
  overflow: hidden;
  color: #211752;
  background: #ffffff;
  border: 1px solid rgba(3, 17, 83, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(24, 14, 83, 0.2);
  transform: translateX(var(--plg-notifications-shift-x));
  animation: plg-notifications-popover-in 130ms ease-out;
}

.plg-notifications__heading-row {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(3, 17, 83, 0.08);
}

.plg-notifications__heading {
  margin: 0;
  padding: 0;
  color: #14094f;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.plg-notifications__status,
.plg-notifications__error,
.plg-notifications__empty {
  margin: 0;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 1.4;
}

.plg-notifications__status:empty {
  display: none;
}

.plg-notifications__error {
  color: #8f1749;
  background: #fff1f6;
}

.plg-notifications__empty {
  color: #6c6587;
}

.plg-notifications__list {
  display: grid;
  min-block-size: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.plg-notifications__item,
.plg-notifications__item:visited {
  position: relative;
  display: grid;
  gap: 3px;
  min-block-size: 72px;
  padding: 12px 18px 12px 22px;
  color: #211752;
  border-bottom: 1px solid rgba(3, 17, 83, 0.07);
  text-decoration: none !important;
}

.plg-notifications__item.is-unread::before {
  content: "";
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 9px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: #df1769;
}

.plg-notifications__item:hover,
.plg-notifications__item:focus-visible {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.07);
}

.plg-notifications__event {
  color: #a9045b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plg-notifications__sale-title {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 14px;
  font-weight: 850;
}

.plg-notifications__company,
.plg-notifications__categories,
.plg-notifications__time {
  overflow-wrap: anywhere;
  color: #6c6587;
  font-size: 12px;
}

.plg-notifications__view-all,
.plg-notifications__view-all:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 10px 18px;
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.05);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.plg-notifications__view-all:hover,
.plg-notifications__view-all:focus-visible {
  color: #730062;
  background: rgba(124, 58, 237, 0.1);
}

@keyframes plg-notifications-popover-in {
  from {
    opacity: 0;
    transform: translateX(var(--plg-notifications-shift-x)) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(var(--plg-notifications-shift-x)) translateY(0);
  }
}

@media (max-width: 1024px) {
  .plg-notifications--desktop {
    display: none !important;
  }

  .plg-notifications--responsive {
    display: inline-flex;
  }

  .plg-notifications--responsive .plg-notifications__popover {
    max-block-size: min(520px, calc(100vh - 76px - env(safe-area-inset-top, 0px)));
  }
}

@media (min-width: 1025px) {
  .plg-notifications--responsive {
    display: none !important;
  }

  .plg-notifications--desktop {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .plg-notifications__popover {
    inline-size: calc(100vw - 16px);
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plg-notifications,
  .plg-notifications *,
  .plg-notifications *::before,
  .plg-notifications *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
