/**
 * Single Donation template — visibility helpers only.
 *
 * All visual styling for the donation single lives in Elementor (the template
 * was cloned from the designed page #4585). This file only:
 *   1. Hides whole sections when their per-post ACF enable/disable toggle is OFF
 *      (functions.php adds a `dn-hide-*` body class when the boolean is false).
 *   2. Empty-hides an individual "Immediate Impact" feature card when both its
 *      title and description fields are blank (Elementor drops a heading widget
 *      whose dynamic value is empty, leaving the card with only its icon).
 */

/* ── 1. Per-block enable / disable (default = shown) ───────────────────────── */
.dn-hide-band       .donation-sec-band,
.dn-hide-impact     .donation-sec-impact,
.dn-hide-ongoing    .donation-sec-ongoing,
.dn-hide-newsletter .donation-sec-newsletter {
    display: none !important;
}

/* ── 2. Empty-hide a single Immediate-Impact feature card ──────────────────── */
/* When a card's title + description are both empty, both heading widgets are
   dropped by Elementor and only the paw icon remains — hide the whole card.   */
.aaps-single-donation .donation-impact-item:not(:has(.elementor-widget-heading)) {
    display: none !important;
}
