/**
 * Mode "Invité offert" — toggle réservation BookingSpecialSettingsMetaBox.
 *
 * Quand .mphb-gs-shell a la classe .gs-portal-complimentary, tout
 * affichage de prix dans le portail invité est masqué. Les CTA de
 * commande restent fonctionnels. Côté serveur, depuis 2026-08 le mode
 * bloque aussi TOUTE création de ligne de facturation (garde
 * complimentary dans BillingLineRepository::insert/upsert) : ce fichier
 * ne gère que la couche cosmétique portail.
 *
 * Surfaces couvertes (audit grep `Currency::format` + classes "price"
 * dans templates/partials + includes/components, 2026-06-06) :
 *
 *   - Dashboard cards : hero badges, lignes timeline col-price,
 *     billing card entière, "Pay now" CTA
 *   - Meal cards (entrée, plat, dessert, boisson, breakfast, arrival
 *     meal, à la carte) : .gs-meal-card__price
 *   - Catalog items (services, équipement, boutique) : .mphb-gs-item-price
 *   - Billing details modale + lignes
 *   - Sticky price bars (catalog total, breakfast total, alc total,
 *     meal-plan total, arrival meal total, pré-arrivée total)
 *   - Car rental (price table, breakdown, hero price, status card)
 *   - Equipment rental price tags + summary
 *   - Pre-arrival prices (originals, discount badges, totaux)
 *   - Meal plan radio label "— 12,00€/pers."
 *   - Confirmation modales (modal detail price, modal total)
 *   - Panier épicerie (totaux de ligne, total estimé, mention note du séjour)
 *
 * Si une nouvelle surface prix apparaît, ajoute sa classe ici — c'est
 * le one-stop shop pour ne pas patcher les templates un par un.
 */

/* ───────────────────────────────────────────────────────────────────
   1. Carte facturation : entièrement masquée
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-billing-card,
.mphb-gs-shell.gs-portal-complimentary [data-mphb-portal-zone="billing"],
.mphb-gs-shell.gs-portal-complimentary [data-dashboard-card="billing"],
.mphb-gs-shell.gs-portal-complimentary .gs-billing-pay-cta,
.mphb-gs-shell.gs-portal-complimentary .gs-services-pay-cta,
.mphb-gs-shell.gs-portal-complimentary .gs-billing-totals,
.mphb-gs-shell.gs-portal-complimentary .gs-billing-line__price,
.mphb-gs-shell.gs-portal-complimentary .gs-billing-line__price--original,
.mphb-gs-shell.gs-portal-complimentary [data-billing-details-trigger],
.mphb-gs-shell.gs-portal-complimentary .gs-billing-details-trigger {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   2. Hero badges des dashboard cards (services / équipement / repas /
      transferts / boutique)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-hero-badge[data-day-badge],
.mphb-gs-shell.gs-portal-complimentary .gs-hero-badge.gs-badge-is-info {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   3. Lignes timeline (col-price + variantes alignées)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-timeline__col-price,
.mphb-gs-shell.gs-portal-complimentary .gs-pa-col-price,
.mphb-gs-shell.gs-portal-complimentary .gs-pa-col-total {
	visibility: hidden !important;
	width: 0 !important;
	max-width: 0 !important;
	padding: 0 !important;
}

/* ───────────────────────────────────────────────────────────────────
   4. Meal cards (entrée / plat / dessert / boisson / breakfast /
      arrival meal / à la carte) : prix sous le titre
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-meal-card__price,
.mphb-gs-shell.gs-portal-complimentary .gs-meal-card__price-free,
.mphb-gs-shell.gs-portal-complimentary .gs-meal-card__price-original,
.mphb-gs-shell.gs-portal-complimentary .gs-meal-card__price-sale {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   5. Catalog items (services, équipement, boutique)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-item-price,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-item-price--promo,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-item-price__sale,
.mphb-gs-shell.gs-portal-complimentary .gs-price-unit {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   6. Car rental (price table entière + hero + breakdown + status)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-car-card__pricing,
.mphb-gs-shell.gs-portal-complimentary .gs-car-card__price-table,
.mphb-gs-shell.gs-portal-complimentary .gs-car-card__price-row,
.mphb-gs-shell.gs-portal-complimentary .gs-car-card__season-pill,
.mphb-gs-shell.gs-portal-complimentary .gs-car-confirm-hero__price,
.mphb-gs-shell.gs-portal-complimentary .gs-car-price-breakdown,
.mphb-gs-shell.gs-portal-complimentary .gs-car-status-card__hero-price {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   7. Equipment rental (price tags + summary)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-equipment-price-tag,
.mphb-gs-shell.gs-portal-complimentary .gs-equipment-card__price,
.mphb-gs-shell.gs-portal-complimentary .gs-rental-price-summary,
.mphb-gs-shell.gs-portal-complimentary .gs-rental-price-warning {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   8. Kiosk-style cards (slideshow pdj/svc)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-kiosk-pdj__price,
.mphb-gs-shell.gs-portal-complimentary .gs-kiosk-svc__price {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   9. Sticky bars / totaux sticky (catalog, breakfast, alc, meal-plan,
      arrival meal, pré-arrivée, car-rental duration span #carPriceDuration)

   IMPORTANT : la sticky-price-bar contient *aussi* le bouton "Enregistrer"
   (.gs-sticky-bar-save) — il faut donc cibler les éléments prix internes
   sans cacher le wrapper, sinon le guest ne peut plus enregistrer ses
   choix (cas confirmé sur la page Régime de pension).
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-bar-total,
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-bar-label,
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-bar-details,
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-bar-toggle,
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-bar-chevron,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-total-price,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-total-amount,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-included-line,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-included-amount,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-supplement-line,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-supplement-amount,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-supplement-breakdown,
.mphb-gs-shell.gs-portal-complimentary .gs-total-subline,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-alc-total-price,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-arrival-meal-total-price,
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-breakfast-total-price,
.mphb-gs-shell.gs-portal-complimentary .gs-total-value,
.mphb-gs-shell.gs-portal-complimentary .gs-total-line,
.mphb-gs-shell.gs-portal-complimentary #carPriceDuration,
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-price-bar--catalog-total {
	display: none !important;
}

/* La bar elle-même reste visible (elle contient le CTA "Enregistrer"),
   on rétrécit juste son padding car la moitié de son contenu est cachée. */
.mphb-gs-shell.gs-portal-complimentary .gs-sticky-price-bar {
	min-height: auto;
}

/* Car rental: until step 4 the "Order" button (#carStickySubmit) is hidden
   inline by car-rental-form.js, so with every price element above hidden the
   bar would be an empty strip. Hide the whole bar while no submit is shown. */
.mphb-gs-shell.gs-portal-complimentary #carPriceCalculator:not(:has(#carStickySubmit:not([style*="none"]))) {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   10. Pré-arrivée : prix barré (promo), badge discount, totaux,
       supplément, summary
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-pa-price--original,
.mphb-gs-shell.gs-portal-complimentary .gs-pa-discount-badge {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   11. Meal plan picker : tarif "— 12,00€/pers." sous chaque radio
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .mphb-gs-meal-plan-type-label .gs-text-soft {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   12. Confirmation modales — détail prix + CTA "Payer X €"
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary [data-cta-pay-amount],
.mphb-gs-shell.gs-portal-complimentary .gs-confirm-detail-card__value--price,
.mphb-gs-shell.gs-portal-complimentary .gs-order-summary__total {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   13. Stickers de prix générique (volume tier badge, promo badge)
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-price-original,
.mphb-gs-shell.gs-portal-complimentary .gs-discount-badge,
.mphb-gs-shell.gs-portal-complimentary .gs-volume-tier-badge {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   14. Panier de l'épicerie : total par ligne, total estimé et mention
       « ajouté à la note du séjour » (rien n'est facturé en mode offert).
       Le total de la barre du bas (.gs-sticky-bar-total) et le récap de
       confirmation (.gs-total-line) sont déjà couverts plus haut.
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-cart-line__total,
.mphb-gs-shell.gs-portal-complimentary .gs-cart-drawer__total-row,
.mphb-gs-shell.gs-portal-complimentary .gs-cart-drawer__note {
	display: none !important;
}

/* ───────────────────────────────────────────────────────────────────
   15. Modale « Confirmer ma commande » de la boutique (add-to-cart-modal) :
       le bandeau garde sa première case (quantité ou durée) et perd le
       prix unitaire, le total, les séparateurs, le prix des variantes et
       les paliers de remise.
   ─────────────────────────────────────────────────────────────────── */
.mphb-gs-shell.gs-portal-complimentary .gs-order-card__strip-item ~ .gs-order-card__strip-item,
.mphb-gs-shell.gs-portal-complimentary .gs-order-card__strip-sep,
.mphb-gs-shell.gs-portal-complimentary .gs-modal-variant-chip__price,
.mphb-gs-shell.gs-portal-complimentary .gs-volume-tier-hints {
	display: none !important;
}
