/**
 * Datei: assets/css/hide-money-frontend.css
 * Zweck: Dritte Sicherungsebene — Frontend-Selektoren.
 *        Wird im Frontend via wp_enqueue_scripts geladen.
 * Hinweis: !important ist in dieser Datei erlaubt (CSS-Fallback-Ebene).
 *
 * Plugin: DP STM Hide Money
 * Version: 1.0.0
 */

/* =============================================================================
   1. Kurs-Karten: Preis-Labels (masterstudy-* Klassen, seit MasterStudy 4.0)
   ============================================================================= */
.masterstudy-course-card__price,
.masterstudy-course-card__price-single,
.masterstudy-course-card__price-sale,
.masterstudy-course-card__price_subscription,
.masterstudy-course-card__popup-price,
.masterstudy-course-card__popup-price-sale,
.masterstudy-course-card__popup-price-single,
.masterstudy-course-card__popup-price-single_sale,
.masterstudy-course-card__popup-price-single_subscription {
	display: none !important;
}

/* =============================================================================
   2. Einzelkurs: Preis-Info (Wrapper und Link bleiben fuer Free-Enrollment)
   ============================================================================= */
.masterstudy-single-course-price-info,
.masterstudy-course-price,
.masterstudy-course-sale-price,
.masterstudy-buy-button-dropdown,
.masterstudy-buy-button__price,
.masterstudy-buy-button__price-info,
.masterstudy-buy-button__price-info-text,
.masterstudy-buy-button__price-value,
.masterstudy-buy-button__price_regular,
.masterstudy-buy-button__price_sale,
.masterstudy-buy-button__single-price-info-text,
.masterstudy-single-course-reviews__buy {
	display: none !important;
}

/* =============================================================================
   3. Checkout
   ============================================================================= */
.masterstudy-checkout-course-info__price,
.masterstudy-checkout-course-info__price-value,
.masterstudy-checkout-course-info__price-guest,
.masterstudy-checkout-course-info__cost-price,
.masterstudy-checkout-course-info__cost-price-current,
.masterstudy-checkout-course-info__cost-price-interval,
.masterstudy-checkout-course-info__cost-price-title,
.masterstudy-checkout-course-info__cost-price-wrapper,
.masterstudy-checkout-course-info__cost-sale-price {
	display: none !important;
}

/* =============================================================================
   4. Bundles
   ============================================================================= */
.masterstudy-bundle-card__price,
.masterstudy-bundle-card__price-bundle,
.masterstudy-bundle-card__price-courses,
.masterstudy-bundle-card__course-price,
.masterstudy-bundle-card__course-price_discounted,
.masterstudy-bundle-course__price,
.masterstudy-bundle-course__price-single,
.masterstudy-bundle-course__price-single_discounted,
.masterstudy-bundle-button__price,
.masterstudy-bundle-button__price-bundle,
.bundle_courses_price,
.bundle_price {
	display: none !important;
}

/* PRICE-07: Bundle-Karten komplett ausblenden (per User-Entscheidung: ohne Preis machen Bundles keinen Sinn) */
.stm_lms_single_bundle_card { display: none !important; }
.stm_lms_my_course_bundles { display: none !important; }

/* =============================================================================
   5. Memberships und Subscriptions
   ============================================================================= */
.masterstudy-membership-plan__price,
.masterstudy-membership-plan__old-price,
.masterstudy-subscription-price,
.masterstudy-upsert-subscription__summary-price {
	display: none !important;
}

/* =============================================================================
   6. Affiliate und Enterprise
   ============================================================================= */
.masterstudy-button-affiliate__price,
.masterstudy-button-affiliate__price_regular,
.masterstudy-button-affiliate__price_sale,
.masterstudy-button-enterprise__price-info,
.masterstudy-button-enterprise__price-value,
.btn.buy-enterprise,
.modal.stm-lms-modal-buy-enterprise {
	display: none !important;
}

/* =============================================================================
   7. Populaere und verwandte Kurse
   ============================================================================= */
.masterstudy-popular-courses__price,
.masterstudy-popular-courses__price-sale,
.masterstudy-popular-courses__price_sale,
.masterstudy-related-courses__price,
.masterstudy-related-courses__price-sale,
.masterstudy-related-courses__price_sale {
	display: none !important;
}

/* =============================================================================
   8. Sonstige Preis-Elemente
   ============================================================================= */
.masterstudy-group-courses-price,
.masterstudy-points__price,
.masterstudy-prerequisites-list__info-price,
.masterstudy-prerequisites-list__info-price_regular,
.masterstudy-prerequisites-list__info-price_sale,
.masterstudy-orders-course-info__price,
.masterstudy-orders-course-info__price-value,
.points_price {
	display: none !important;
}

/* .price ist ein generischer Selektor — nur in MasterStudy-Kontexten ausblenden */
.stm-lms-wrapper .price,
.masterstudy-page .price,
.stm_lms_courses .price {
	display: none !important;
}

/* =============================================================================
   9. Preis-Filter auf Archivseiten
   ============================================================================= */
.masterstudy-lms-course-filters [data-filter="price"] {
	display: none !important;
}

/* PRICE-06: Preis-Filter auf Archivseiten (Free/Paid/Subscription Checkboxen) */
.ms_lms_courses_archive__filter_options_item:has(input[name="price[]"]) { display: none !important; }

/* =============================================================================
   10. Legacy stm_lms_* Klassen
   ============================================================================= */

/* Free-Badge entfernen (per User-Entscheidung: redundant wenn alle Kurse kostenlos) */
.stm_lms_courses__single .free_course { display: none !important; }

/* =============================================================================
   11. Instructor Dashboard (Frontend-Kontext)
   ============================================================================= */

/* DASH-04: Revenue-Stats-Bloecke im Instructor-Dashboard */
.stm_lms_instructor_courses__single--price { display: none !important; }

/* Analytics Revenue-Reiter im Frontend-Dashboard */
.masterstudy-analytics-revenue-page { display: none !important; }
a[href*="analytics/revenue"] { display: none !important; }
li.masterstudy-tabs__item[data-id="revenue"] { display: none !important; }

/* Revenue- und Orders-Bloecke: Parent-Container ausblenden damit Layout nachrueckt */
.masterstudy-analytics-short-report-page-stats__block:has(.masterstudy-stats-block_revenue),
.masterstudy-analytics-short-report-page-stats__block:has(.masterstudy-stats-block_orders) { display: none !important; }

/* Generische Stats-Block-Selektoren (ohne Parent-Einschraenkung)
   Deckt Dashboard-Startseite und alle Analytics-Kontexte ab. */
.masterstudy-stats-block_revenue,
.masterstudy-stats-block_orders { display: none !important; }

/* Kurs-Analyse: Parent-Container fuer Revenue/Orders-Stats ausblenden */
.masterstudy-analytics-course-page-stats__block:has(.masterstudy-stats-block_revenue),
.masterstudy-analytics-course-page-stats__block:has(.masterstudy-stats-block_orders) { display: none !important; }

/* Kurs-Analyse: Revenue-Chart-Container (analytics/course.php) */
.masterstudy-analytics-course-page-line[data-chart-id="revenue-chart"] { display: none !important; }
