:is(.trigger, :global([data-fa-notification-toggle])),
.panel {
  --ink: #171c25;
  --muted: #677184;
  --line: #d9dde4;
  --success: #148343;
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--fa-font-sans);
  font-size: 16px;
  line-height: normal;
  font-synthesis: none;
}

.panel,
.panel * {
  box-sizing: border-box;
}

:is(.trigger, :global([data-fa-notification-toggle])),
.panel :where(button) {
  font: inherit;
}

:is(.trigger, :global([data-fa-notification-toggle])):focus-visible,
.panel button:focus-visible {
  outline: 2px solid #3458f5;
  outline-offset: 2px;
}

:is(.trigger, :global([data-fa-notification-toggle])) {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  place-items: center;
  padding: 0;
  color: #566174;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

:is(.trigger, :global([data-fa-notification-toggle])):hover,
:is(.trigger, :global([data-fa-notification-toggle]))[aria-expanded="true"] {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
}

.triggerDot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #b83e35;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: content-box;
}

.layer {
  position: fixed;
  z-index: 44;
  inset: var(--fa-notification-layer-top, 0) var(--fa-notification-layer-right, 0) var(--fa-notification-layer-bottom, 0) var(--fa-notification-layer-left, 0);
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(20, 26, 36, 0);
  pointer-events: none;
  transition: background-color 180ms ease;
}

.layer[hidden] {
  display: none;
}

.layer:global(.is-open) {
  background: rgba(20, 26, 36, .18);
  pointer-events: auto;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(390px, 100%);
  min-width: 340px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 44px rgba(18, 24, 34, .14);
  transform: translate3d(100%, 0, 0);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.layer:global(.is-open) .panel {
  transform: translate3d(0, 0, 0);
}

:global([dir="rtl"]) .panel {
  border-right: 1px solid var(--line);
  border-left: 0;
  box-shadow: 18px 0 44px rgba(18, 24, 34, .14);
  transform: translate3d(-100%, 0, 0);
}

:global([dir="rtl"]) .layer:global(.is-open) .panel {
  transform: translate3d(0, 0, 0);
}

:global([dir="rtl"]) .layer { justify-content: flex-start; }

.heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 12px 13px 11px 16px;
  border-bottom: 1px solid var(--line);
}

.heading > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -.015em;
}

.heading h2:focus {
  outline: 0;
}

.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 14px;
}

.panel .markRead {
  min-height: 28px;
  margin: 0;
  padding: 0 5px;
  color: #4f5d73;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 750;
  cursor: pointer;
}

.panel .markRead:hover:not(:disabled) {
  color: var(--ink);
  background: #f3f5f7;
}

.panel .markRead:disabled {
  color: #a4abb5;
  cursor: default;
}

.close {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  place-items: center;
  padding: 0;
  color: #667184;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.close:hover {
  color: var(--ink);
  background: #f3f5f7;
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.groupHeading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px 7px 16px;
}

.groupHeading h3 {
  margin: 0;
  color: #7a8493;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rows {
  border-top: 1px solid #edf0f3;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
}

.rowRead {
  background: #fff;
}

.row:hover {
  background: #f8f9fb;
}

.activityIcon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #536175;
  background: #eef1f5;
  border-radius: 7px;
}

.success .activityIcon {
  color: var(--success);
  background: #eaf7ef;
}

.warning .activityIcon {
  color: #a7660d;
  background: #fff4df;
}

.danger .activityIcon,
.error .activityIcon {
  color: #b9433a;
  background: #fff0ef;
}

.copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.titleRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.titleRow strong {
  overflow: hidden;
  color: #273141;
  font-size: 11.5px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.titleRow time {
  color: #87909e;
  font-size: 8.5px;
  line-height: 13px;
  white-space: nowrap;
}

.copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 15px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.actions button {
  min-height: 24px;
  margin: 0;
  padding: 0;
  color: #3f526d;
  background: transparent;
  border: 0;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #aeb5c0;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dismiss {
  display: grid;
  width: 24px;
  height: 24px;
  margin: 0;
  place-items: center;
  padding: 0;
  color: #7a8493;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.dismiss:hover {
  color: var(--ink);
  background: #eceff3;
}

.empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  padding: 28px;
  color: #7a8493;
  text-align: center;
}

.empty strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
}

.empty p {
  max-width: 230px;
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 15px;
}

.empty button {
  min-height: 32px;
  margin-top: 12px;
  padding: 0 12px;
  color: #273141;
  background: #fff;
  border: 1px solid #cbd1da;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.footer {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #8a93a0;
  background: #fbfbfc;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 14px;
}

.screenReader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 782px) {
  .layer {
    z-index: 240;
  }

  .panel {
    width: 100%;
    min-width: 0;
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .heading {
    min-height: 56px;
    padding: 9px 8px 8px 12px;
  }

  .heading h2 {
    font-size: 14px;
    line-height: 19px;
  }

  .heading p {
    font-size: 9px;
    line-height: 13px;
  }

  .close {
    width: 38px;
    height: 38px;
  }

  .groupHeading {
    min-height: 34px;
    padding: 6px 10px 6px 12px;
  }

  .panel .markRead {
    min-height: 26px;
    font-size: 9px;
  }

  .row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 7px 9px 12px;
  }

  .activityIcon {
    width: 26px;
    height: 26px;
  }

  .titleRow strong {
    font-size: 10.5px;
    line-height: 15px;
  }

  .titleRow time {
    font-size: 8px;
  }

  .copy p {
    font-size: 9.5px;
    line-height: 14px;
  }

  .actions button {
    font-size: 9px;
  }

  .footer {
    padding: 8px 12px;
  }
}

@media (max-width: 360px) {
  :is(.trigger, :global([data-fa-notification-toggle])) {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer,
  .panel,
  .layer:global(.is-open),
  .layer:global(.is-open) .panel,
  :global([dir="rtl"]) .layer:global(.is-open) .panel {
    animation: none;
    transition: none;
  }
}
