/* AbabioApps global notification inbox */
.abn-root,
.abn-root * {
  box-sizing: border-box;
}

.abn-root {
  --abn-bg: #ffffff;
  --abn-text: #211b2d;
  --abn-muted: #746d7d;
  --abn-border: #e8e3ed;
  --abn-accent: #5e548e;
  --abn-accent-dark: #493f78;
  --abn-danger: #b42318;
  --abn-shadow: 0 12px 40px rgba(25, 18, 42, .22);
  font-family: inherit;
  color: var(--abn-text);
}

.abn-bell {
  position: fixed;
  z-index: 99980;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--abn-accent);
  color: #fff;
  box-shadow: 0 5px 18px rgba(25, 18, 42, .25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.abn-bell:hover {
  background: var(--abn-accent-dark);
}

.abn-bell:focus-visible,
.abn-root button:focus-visible,
.abn-root a:focus-visible {
  outline: 3px solid #d5c7ff;
  outline-offset: 3px;
}

.abn-bell svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.abn-root[data-position="bottom-right"] .abn-bell {
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
}

.abn-root[data-position="bottom-left"] .abn-bell {
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
}

.abn-root[data-position="top-right"] .abn-bell {
  right: 20px;
  top: max(20px, env(safe-area-inset-top));
}

.abn-root[data-position="top-left"] .abn-bell {
  left: 20px;
  top: max(20px, env(safe-area-inset-top));
}

.abn-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #d92d20;
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
}

.abn-count[hidden],
.abn-overlay[hidden],
.abn-clear[hidden] {
  display: none !important;
}

.abn-overlay {
  position: fixed;
  z-index: 99990;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 12, 23, .58);
}

.abn-modal {
  width: min(100%, 480px);
  max-height: min( min(760px, 88dvh), 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--abn-border);
  border-radius: 18px;
  background: var(--abn-bg);
  color: var(--abn-text);
  box-shadow: var(--abn-shadow);
}

.abn-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 14px;
  border-bottom: 1px solid var(--abn-border);
}

.abn-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
}

.abn-subtitle {
  margin: 5px 0 0;
  color: var(--abn-muted);
  font-size: 13px;
}

.abn-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f0f6;
  color: var(--abn-text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.abn-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 20px;
}

.abn-status {
  color: var(--abn-muted);
  font-size: 12px;
}

.abn-status[data-kind="error"] {
  color: var(--abn-danger);
}

.abn-refresh,
.abn-clear,
.abn-delete {
  border: 0;
  background: transparent;
  color: var(--abn-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.abn-refresh:disabled,
.abn-clear:disabled,
.abn-delete:disabled {
  opacity: .55;
  cursor: wait;
}

.abn-list {
  min-height: 100px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 12px;
}

.abn-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--abn-border);
}

.abn-item h3,
.abn-subscribe-prompt h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
}

.abn-message,
.abn-subscribe-prompt p {
  margin: 6px 0 8px;
  color: #514a5b;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.abn-meta {
  color: var(--abn-muted);
  font-size: 11px;
  line-height: 1.4;
}

.abn-item-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 11px;
}

.abn-open-link {
  color: var(--abn-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.abn-open-link:hover {
  text-decoration: underline;
}

.abn-delete {
  color: var(--abn-danger);
}

.abn-empty,
.abn-subscribe-prompt {
  padding: 30px 12px;
  text-align: center;
  color: var(--abn-muted);
  font-size: 14px;
  line-height: 1.5;
}

.abn-subscribe-prompt {
  color: var(--abn-text);
}

.abn-subscribe-prompt p {
  color: var(--abn-muted);
}

.abn-subscribe-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--abn-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.abn-subscribe-link:hover {
  background: var(--abn-accent-dark);
}

.abn-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--abn-border);
}

.abn-clear {
  color: var(--abn-danger);
}

html.abn-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .abn-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .abn-modal {
    width: 100%;
    max-height: 86dvh;
    border-radius: 17px;
  }

  .abn-root[data-position$="left"] .abn-bell {
    left: 14px;
  }

  .abn-root[data-position$="right"] .abn-bell {
    right: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .abn-bell,
  .abn-subscribe-link {
    transition: background-color .15s ease, transform .15s ease;
  }

  .abn-bell:active {
    transform: scale(.96);
  }
}