/* =========================
   Alerts
   Figma: Alerts / Banner.
========================= */

@use "../kit-deps" as *;

.alert {
  display: flex;
  align-items: flex-start;
  gap: $space-3;
  width: 100%;
  max-width: 760px;
  padding: $space-3 $space-4;
  border: $border-width-base $border-style-base transparent;
  border-radius: $radius-md;
  background-color: $neutral-100;
  color: $neutral-900;
  font-family: $font-family-base;
  font-size: 14px;
  line-height: 1.4;

  .vmk-icon {
    flex-shrink: 0;
    font-size: $icon-size-lg;
    color: currentColor;
  }

  .alert-content {
    flex: 1;
  }

  .alert-title {
    font-weight: $font-weight-semibold;
    margin-bottom: $space-1;
  }

  // Variants
  &.alert-primary {
    background-color: $yellow-100;
    color: $neutral-900;
  }

  &.alert-secondary {
    background-color: $mint-50;
    color: $mint-900;
  }

  &.alert-accent {
    background-color: $yellow-100;
    color: $neutral-900;
  }

  &.alert-success {
    background-color: $success-bg;
    color: $success-text;
  }

  &.alert-warning {
    background-color: $warning-bg;
    color: $warning-text;
  }

  &.alert-info {
    background-color: $info-bg;
    color: $info-text;
  }

  &.alert-danger,
  &.alert-error {
    background-color: $danger-bg;
    color: $danger-text;
  }
}
