.fme-hpatc-custom-button-wrapper-shop{
    text-align: center;
}
.fme-hpatc-hide-add-to-cart-button-product{
    margin-bottom: 1.5rem;
    cursor: pointer !important;
}
/* Basic modal styling */
.fme-hpatc-custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.34);
    z-index: 999999;
}

.fme-hpatc-root-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.34);
    z-index: 999999;
}

.fme-hpatc-custom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: fit-content;
    height: 80%;
    width: 50%;
    overflow-y:auto;
    margin-top: 20px;
}

.fme-hpatc-custom-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 30px;
    cursor: pointer;
}

.fme-hpatc-custom-modal-content .wpcf7-submit,
.fme-hpatc-custom-modal-content input.wpcf7-form-control.wpcf7-submit,
.fme-hpatc-custom-modal-content button.wpcf7-submit {
    display: block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* ponytail: WC gallery starts opacity:0 until wc_product_gallery() runs; Elementor can miss init */
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery {
    opacity: 1 !important;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img:not(.zoomImg) {
    opacity: 1 !important;
}

/* ponytail: fallback when theme/Elementor templates bypass WC price/cart filters */
li.product.fme-hpatc-hide-price > .price,
li.product.fme-hpatc-hide-price .price,
.woocommerce ul.products li.product.fme-hpatc-hide-price .price,
.up-sells.products li.product.fme-hpatc-hide-price .price,
.cross-sells li.product.fme-hpatc-hide-price .price,
.related.products li.product.fme-hpatc-hide-price .price,
.single-product .product.fme-hpatc-hide-price .summary .price,
.product.fme-hpatc-hide-price .price:not(:has(.fme-hpatc-hide-price-text)),
.elementor-widget-woocommerce-product-price.fme-hpatc-hide-price .price:not(:has(.fme-hpatc-hide-price-text)) {
    display: none !important;
}

li.product.fme-hpatc-hide-add-to-cart a.add_to_cart_button,
li.product.fme-hpatc-hide-add-to-cart .add_to_cart_button,
li.product.fme-hpatc-hide-add-to-cart .e-loop-add-to-cart-form,
.woocommerce ul.products li.product.fme-hpatc-hide-add-to-cart a.add_to_cart_button,
.up-sells.products li.product.fme-hpatc-hide-add-to-cart a.add_to_cart_button,
.cross-sells li.product.fme-hpatc-hide-add-to-cart a.add_to_cart_button,
.related.products li.product.fme-hpatc-hide-add-to-cart a.add_to_cart_button,
.product.fme-hpatc-hide-add-to-cart form.cart:not(:has(.fme-hpatc-hide-add-to-cart-button-product)),
.product.fme-hpatc-hide-add-to-cart .elementor-add-to-cart form.cart:not(:has(.fme-hpatc-hide-add-to-cart-button-product)),
.elementor-widget-woocommerce-product-add-to-cart.fme-hpatc-hide-add-to-cart .elementor-add-to-cart:not(:has(.fme-hpatc-hide-add-to-cart-button-product)),
.elementor-widget-wc-add-to-cart.fme-hpatc-hide-add-to-cart .elementor-button-wrapper,
.elementor-widget-wc-add-to-cart.fme-hpatc-hide-add-to-cart a.elementor-button,
.elementor-widget-wc-add-to-cart.fme-hpatc-hide-add-to-cart form.cart {
    display: none !important;
}