/* =========================================================
   FREE PRODUCTS — ONE CLEAR PRIMARY ACTION
   ========================================================= */

/*
 * FluentCart keeps its native direct-checkout behavior. PHP filters change
 * the label to "Get For Free" while free products hide the quantity selector
 * and redundant Add To Cart action. The server-side body class handles known
 * free products immediately. Dynamic FluentCart views follow the same native
 * server-filtered free-product label rather than parsing formatted DOM prices.
 * Paid and mixed-price products are untouched.
 */
body:not(.wp-admin).gentleland-fct-free-product .fct-product-quantity-container,
body:not(.wp-admin).gentleland-fct-free-product .fct_buy_section [data-fluent-cart-add-to-cart-button],
body:not(.wp-admin).gentleland-fct-free-product .fct_buy_section .fluent-cart-add-to-cart-button,
body:not(.wp-admin).gentleland-fct-free-product .fct-single-product-page [data-fluent-cart-add-to-cart-button],
body:not(.wp-admin).gentleland-fct-free-product .fct-single-product-page .fluent-cart-add-to-cart-button,
body:not(.wp-admin) [data-gentleland-free-product-hidden="true"] {
    display: none !important;
}

/*
 * Free purchase buttons use one shared footprint everywhere. Product-card
 * buttons already occupy the full card width; embedded/single-product direct
 * checkout links are explicitly expanded to the full action row so the label
 * cannot wrap into the small square button FluentCart otherwise produces.
 */
body:not(.wp-admin) .fct-product-card .fluent-cart-add-to-cart-button[data-gentleland-free-card-button="true"],
body:not(.wp-admin) .fct-product-card [data-fluent-cart-add-to-cart-button][data-gentleland-free-card-button="true"],
body:not(.wp-admin) .fct-product-card .fct-product-view-button[data-gentleland-free-card-button="true"],
body:not(.wp-admin) [data-gentleland-free-primary-button="true"],
body:not(.wp-admin).gentleland-fct-free-product .fct_buy_section [data-fluent-cart-direct-checkout-button],
body:not(.wp-admin).gentleland-fct-free-product .fct_buy_section .fluent-cart-direct-checkout-button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 18px !important;
    flex: 1 1 100% !important;
    grid-column: 1 / -1 !important;
    white-space: nowrap !important;
}