
/* ── WS40 Alerts widget ────────────────────────────────────────────────── */
.ws40-alerts-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ws40-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dcdcde;
  flex-wrap: wrap;
  gap: 6px;
}
.ws40-alerts-title {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ws40-alerts-meta {
  font-size: 11px;
  color: #646970;
}
.ws40-alert-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: flex-start;
}
.ws40-alert-row:last-of-type { border-bottom: none; }
.ws40-alert-none {
  color: #2c974b;
  align-items: center;
  font-size: 14px;
  gap: 8px;
  background: #f0fdf4;
  border-left-color: #2c974b;
}
.ws40-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ws40-alert-body { flex: 1; min-width: 0; }
.ws40-alert-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ws40-alert-badge {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.ws40-alert-type { font-size: 12px; }
.ws40-alert-desc {
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.5;
}
.ws40-alert-time {
  font-size: 11px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ws40-alert-time .dashicons { font-size: 13px; width: 13px; height: 13px; }
.ws40-alerts-footer {
  padding: 8px 16px;
  border-top: 1px solid #dcdcde;
  font-size: 11px;
  color: #a7aaad;
  background: #f9f9f9;
}
.ws40-alert-area {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Font size scaling — all sizes relative to widget root font-size */
.ws40-alerts-widget .ws40-alerts-title { font-size: 1.15em; }
.ws40-alerts-widget .ws40-alerts-meta  { font-size: 0.85em; }
.ws40-alerts-widget .ws40-alert-badge  { font-size: 0.85em; }
.ws40-alerts-widget .ws40-alert-type   { font-size: 0.92em; }
.ws40-alerts-widget .ws40-alert-area   { font-size: 0.92em; }
.ws40-alerts-widget .ws40-alert-desc   { font-size: 1em; }
.ws40-alerts-widget .ws40-alert-time   { font-size: 0.85em; }
.ws40-alerts-widget .ws40-alerts-footer{ font-size: 0.85em; }
.ws40-alerts-widget .ws40-alert-icon   { font-size: 1.5em; }
