#toast-layer {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: auto;
  max-height: calc(100% - 24px);
  padding: 0;
  pointer-events: none;
}

#toast-layer .toast {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--black);
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  pointer-events: auto;
  animation: toast-enter 240ms var(--transition-ease) both;
}

#toast-layer .toast.closing {
  pointer-events: none;
  animation: toast-exit 160ms ease both;
}

#toast-layer .toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  background: var(--transparent);
  color: var(--black);
}

#toast-layer .toast-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

#toast-layer .toast-content {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.toast-marquee {
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.toast-date {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--black);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#toast-layer .toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--transparent);
  color: var(--black);
  transition: opacity 120ms ease;
}

#toast-layer .toast-close:hover {
  opacity: 0.6;
}

#toast-layer .toast-close:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

#toast-layer .toast-close svg {
  width: 18px;
  height: 18px;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-24px) scale(0.98);
  }
}