/* NobleMetric alerts — loaded last to override legacy theme CSS */

.nm-alert-stack {
  width: 100%;
  margin: 0 0 22px;
}

.nm-alert {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 56px 18px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  animation: nm-alert-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nm-alert-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nm-alert.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nm-alert__row {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
}

.nm-alert__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.nm-alert__copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.nm-alert__label {
  display: block;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.nm-alert__title {
  display: block;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
}

.nm-alert__message,
.nm-alert__hint {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.nm-alert__hint {
  margin-bottom: 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.nm-alert__list {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nm-alert__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px !important;
  padding: 11px 12px !important;
  border-radius: 10px;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nm-alert__list li:last-child {
  margin-bottom: 0 !important;
}

.nm-alert__list li::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  line-height: 1.6;
  flex-shrink: 0;
}

.nm-alert__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nm-alert__close:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Error */
.nm-alert--error {
  background: linear-gradient(135deg, rgba(58, 16, 24, 0.98), rgba(34, 10, 16, 0.98));
  border-color: rgba(248, 113, 113, 0.42);
}

.nm-alert--error .nm-alert__icon {
  background: rgba(239, 68, 68, 0.18);
  color: #ff8080 !important;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

.nm-alert--error .nm-alert__label {
  color: #ffb4b4 !important;
}

.nm-alert--error .nm-alert__list li::before {
  color: #ff8080;
}

/* Success */
.nm-alert--success {
  background: linear-gradient(135deg, rgba(14, 44, 32, 0.98), rgba(8, 28, 20, 0.98));
  border-color: rgba(74, 222, 128, 0.42);
}

.nm-alert--success .nm-alert__icon {
  background: rgba(34, 197, 94, 0.18);
  color: #6ee7a8 !important;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28);
}

.nm-alert--success .nm-alert__label {
  color: #a7f3c7 !important;
}

.nm-alert--success .nm-alert__list li::before {
  content: "\f058";
  color: #6ee7a8;
}

/* Warning */
.nm-alert--warning {
  background: linear-gradient(135deg, rgba(52, 34, 8, 0.98), rgba(34, 22, 6, 0.98));
  border-color: rgba(251, 191, 36, 0.42);
}

.nm-alert--warning .nm-alert__icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d !important;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.nm-alert--warning .nm-alert__label {
  color: #fde68a !important;
}

.nm-alert--warning .nm-alert__list li::before {
  color: #fcd34d;
}

/* Info */
.nm-alert--info {
  background: linear-gradient(135deg, rgba(12, 28, 58, 0.98), rgba(8, 18, 38, 0.98));
  border-color: rgba(61, 139, 255, 0.42);
}

.nm-alert--info .nm-alert__icon {
  background: rgba(26, 110, 255, 0.18);
  color: #7cb4ff !important;
  box-shadow: inset 0 0 0 1px rgba(61, 139, 255, 0.28);
}

.nm-alert--info .nm-alert__label {
  color: #bfdbfe !important;
}

.nm-alert--info .nm-alert__list li::before {
  color: #7cb4ff;
}

@media (max-width: 640px) {
  .nm-alert {
    padding: 16px 48px 16px 16px;
  }

  .nm-alert__row {
    gap: 12px;
  }

  .nm-alert__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
