.has-bottom-alerts .app-shell {
  padding-bottom: 86px;
}

.bottom-alerts {
  position: fixed;
  z-index: 18;
  right: 0;
  bottom: 0;
  left: var(--shell-width);
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-top: 1px solid var(--colorNeutralStroke1);
  background: var(--colorNeutralBackground1);
  transition: left 200ms ease;
}

body.sidebar-collapsed .bottom-alerts {
  left: var(--shell-width-collapsed);
}

.bottom-alerts-main {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}

.bottom-alerts-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--colorCompoundBrandForeground1);
}

.bottom-alerts-copy {
  min-width: 0;
}

.bottom-alerts-title,
.bottom-alerts-description {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-alerts-title {
  color: var(--colorNeutralForeground1);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.bottom-alerts-description {
  color: var(--colorNeutralForeground2);
  font-size: 12px;
  line-height: 16px;
}

.bottom-alerts-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
}

.bottom-alerts-link,
.bottom-alerts-settings {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--colorNeutralForeground2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}

.bottom-alerts-link[hidden],
.bottom-alerts-settings[hidden] {
  display: none;
}

.bottom-alerts-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bottom-alerts-settings {
  border: 1px solid #ebebeb;
  background: transparent;
}

.bottom-alerts-settings.is-disabled {
  color: var(--colorNeutralForegroundDisabled);
  cursor: not-allowed;
}

.bottom-alerts-link:hover,
.bottom-alerts-settings:not(.is-disabled):hover {
  background: var(--colorNeutralBackground3);
}

.bottom-alerts-link:focus-visible,
.bottom-alerts-settings:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}

.bottom-alerts-has-items .bottom-alerts-actions::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: -14px;
  border-radius: 999px;
  background: var(--colorStatusDangerForeground1);
}

.bottom-alerts-panel {
  position: absolute;
  right: 24px;
  bottom: calc(100% + 8px);
  width: min(420px, calc(100vw - 32px));
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: 12px;
  background: var(--colorNeutralBackground1);
  box-shadow: var(--shadow-lg);
}

.bottom-alerts-panel[hidden] {
  display: none;
}

.bottom-alert-item {
  padding: 10px;
  border-radius: 8px;
}

.bottom-alert-item + .bottom-alert-item {
  border-top: 1px solid var(--colorNeutralStroke2);
  border-radius: 0;
}

.bottom-alert-item-message {
  color: var(--colorNeutralForeground1);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.bottom-alert-item-time {
  margin-top: 2px;
  color: var(--colorNeutralForeground3);
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 900px) {
  .bottom-alerts,
  body.sidebar-collapsed .bottom-alerts {
    left: 0;
  }
}

@media (max-width: 620px) {
  .has-bottom-alerts .app-shell {
    padding-bottom: 104px;
  }

  .bottom-alerts {
    min-height: 104px;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .bottom-alerts-actions {
    gap: 4px;
  }

  .bottom-alerts-description {
    white-space: normal;
  }

  .bottom-alerts-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-alerts {
    transition: none;
  }
}
