/* ============================================================================
   GCH Gift Cards — gift card product page styles
   Loaded only on single-product pages where the product is flagged as a
   gift card. Other listings are never touched.
   ============================================================================ */


/* ----------------------------------------------------------------------------
   Hide the APF "Product total / Options total / Grand total" summary box.
   WooCommerce's native price line already shows the customer the chosen
   denomination, so the summary is redundant on gift card products.
   Overridable per-product via the Appearance settings page.
   ---------------------------------------------------------------------------- */
.wapf-totals,
.wapf-summary,
.wapf-totals-display,
.wapf-pricing-summary,
[class*="wapf"][class*="totals"] {
	display: none !important;
}


/* ----------------------------------------------------------------------------
   .gchgc-value-card
   For an APF "horizontal cards" field used as a denomination/value selector.

   Effects:
   • Centers the value text inside each card.
   • Hides the "(+$XX.XX)" price-adjustment annotation APF prints next to it.
   ---------------------------------------------------------------------------- */

/* Centre the value text. APF lays each card out as a flex container with
   the value on the left and the price suffix on the right — switching to
   justify-content:center pulls the remaining content to the middle once
   the price is hidden. */
.gchgc-value-card .wapf-input-inner,
.gchgc-value-card .wapf-field-cards label,
.gchgc-value-card [class*="wapf-card"],
.gchgc-value-card [class*="wapf-card"] > label,
.gchgc-value-card [class*="wapf-card"] > div,
.gchgc-value-card .wapf-radio-card,
.gchgc-value-card .wapf-radio-card label,
.gchgc-value-card .wapf-button-card,
.gchgc-value-card .wapf-button-card label {
	justify-content: center !important;
	text-align: center !important;
}

/* Force the value label itself to span the full width of its container so
   text-align:center actually has room to centre against. */
.gchgc-value-card .wapf-input-inner > span,
.gchgc-value-card [class*="wapf-card"] [class*="label"],
.gchgc-value-card [class*="wapf-card"] [class*="title"],
.gchgc-value-card [class*="wapf-card"] [class*="text"] {
	flex: 1 1 auto !important;
	text-align: center !important;
	width: 100% !important;
}

/* Hide the price suffix. APF Pro/Extended renders the "(+$XX.XX)" annotation
   as .wapf-pricing-hint on current versions; the other selectors are kept
   as fallbacks for older or alternate APF builds. All are scoped under
   .gchgc-value-card so they only fire on a field you've opted in. */
.gchgc-value-card .wapf-pricing-hint,
.gchgc-value-card [class*="wapf"][class*="price"],
.gchgc-value-card .wapf-price,
.gchgc-value-card .wapf-card-price,
.gchgc-value-card .wapf-input-card-price,
.gchgc-value-card .wapf-pricing-display {
	display: none !important;
}
