/*
 * ND Parts campaign line on product cards, under the price (2026-11-24; see miniatures/product.tpl).
 * Loaded on every page because product cards appear in listings, home, search and related products.
 */

body.ndp-theme .ndp-card-campaign {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 2px;
  padding: 6px 6px 6px 11px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--ndp-graphite, #111b29);
  border-inline-start: 3px solid var(--ndp-red, #d91d2d);
  border-radius: 10px;
}

body.ndp-theme .ndp-card-campaign__off {
  padding: 3px 8px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ndp-graphite, #111b29);
  background: var(--ndp-lime, #c9ed68);
  border-radius: 999px;
}

/* Two-column cards on phones are ~140px wide inside: tighter tracking keeps the line on one row. */
@media (max-width: 575.98px) {
  body.ndp-theme .ndp-card-campaign {
    gap: 6px;
    padding: 5px 5px 5px 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  body.ndp-theme .ndp-card-campaign__off {
    padding: 2px 6px;
    font-size: 11px;
  }
}
