/* Norfloat Product Enquiry */
.norfloat-enquiry{margin:1.25rem 0 0;clear:both}
.norfloat-enquiry-toggle{width:100%;padding:14px 22px;font-weight:700}
.norfloat-enquiry-panel{margin-top:16px;padding:20px 22px 28px;border:1px solid #d9dfe7;background:#fff;box-sizing:border-box;overflow:hidden}
.norfloat-enquiry-panel h3{margin:0 0 14px!important;padding:0!important;letter-spacing:0!important;word-spacing:normal!important;line-height:1.2!important}
.norfloat-selection{font-weight:700;margin:0 0 22px;line-height:1.5}
.norfloat-selection .norfloat-product-name{display:block;margin-bottom:4px}
.norfloat-selection .norfloat-option{display:block}
.norfloat-enquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.norfloat-enquiry-grid p{margin:0}
.norfloat-enquiry-grid label{display:block;margin-bottom:5px;font-weight:600}
.norfloat-enquiry-grid input,.norfloat-enquiry-grid textarea,.norfloat-enquiry-grid select{box-sizing:border-box;width:100%}
.norfloat-enquiry-grid .norfloat-full{grid-column:1/-1}
.norfloat-delivery-heading{margin-top:8px!important;padding-top:16px;border-top:1px solid #d9dfe7}
.norfloat-delivery-heading strong{display:block;font-size:18px;margin-bottom:3px}
.norfloat-delivery-heading small{display:block;font-weight:400;line-height:1.4}
.norfloat-enquiry-actions{grid-column:1/-1;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;clear:both!important;margin:22px 0 0!important;padding:0!important;text-align:center!important}
.norfloat-enquiry-submit{position:static!important;float:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:210px!important;margin:0 auto!important;padding:14px 28px!important;font-weight:700!important;text-align:center!important;transform:none!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important}
.norfloat-enquiry-status{margin-top:12px;font-weight:600;text-align:center;clear:both}
.norfloat-enquiry-status.is-success{color:#16733a}.norfloat-enquiry-status.is-error{color:#b42318}
.norfloat-hp{position:absolute!important;left:-9999px!important;opacity:0!important}.norfloat-enquiry label span{color:#b42318}
.norfloat-enquiry-title{letter-spacing:0!important;word-spacing:normal!important}
/* Enquiry-only products must never expose WooCommerce prices. */
body.single-product .norfloat-enquiry~.price,
body.single-product form.variations_form .woocommerce-variation-price,
body.single-product form.variations_form .single_variation .price{display:none!important}
@media(max-width:640px){.norfloat-enquiry-grid{grid-template-columns:1fr}.norfloat-enquiry-submit{width:100%!important}}

/* v1.0.5 layout fixes */
.norfloat-enquiry-title,.norfloat-product-top-title{letter-spacing:0!important;word-spacing:normal!important;margin:0 0 28px!important;padding:0!important;font-weight:700!important}
.norfloat-enquiry-panel{padding-bottom:32px!important}
.norfloat-enquiry-actions{display:block!important;position:static!important;width:100%!important;margin:24px 0 0!important;padding:0!important;text-align:center!important;float:none!important;clear:both!important}
.norfloat-enquiry-actions .norfloat-enquiry-submit{display:block!important;position:static!important;float:none!important;clear:both!important;width:210px!important;max-width:100%!important;margin:0 auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important}

/* v1.0.6: Elementor RRP label is not used on enquiry-only products. */
.norfloat-hide-rrp{display:none!important;}


/* v1.0.7: On enquiry-only product pages this stylesheet is loaded only for
   enquiry products, so remove Elementor's Product Price widget completely.
   This also removes any RRP: text added with a CSS pseudo-element to the empty price. */
body.single-product .elementor-widget-woocommerce-product-price {
    display:none!important;
}


/* v1.0.8: Simple enquiry products. Elementor renders its own WooCommerce
   Add To Cart widget, so keep the simple cart form present, show our enquiry
   UI inside it, and suppress only WooCommerce's purchasing controls. */
body.single-product form.cart:has(.norfloat-enquiry) > .quantity,
body.single-product form.cart:has(.norfloat-enquiry) > button.single_add_to_cart_button {
    display:none!important;
}
body.single-product form.cart:has(.norfloat-enquiry) {
    display:block!important;
}
body.single-product form.cart:has(.norfloat-enquiry) .norfloat-enquiry {
    width:100%!important;
    margin-top:0!important;
}


/* v1.0.9: Enquiry-only products are not purchasable, so suppress express
   checkout/payment-request UI injected into the simple product cart form. */
body.single-product form.cart:has(.norfloat-enquiry) #wc-stripe-payment-request-wrapper,
body.single-product form.cart:has(.norfloat-enquiry) #wc-stripe-payment-request-button-separator,
body.single-product form.cart:has(.norfloat-enquiry) #wc-stripe-express-checkout-element,
body.single-product form.cart:has(.norfloat-enquiry) .wc-stripe-product-checkout-container,
body.single-product form.cart:has(.norfloat-enquiry) .wc-stripe-express-checkout-container,
body.single-product form.cart:has(.norfloat-enquiry) .wcpay-express-checkout-wrapper,
body.single-product form.cart:has(.norfloat-enquiry) .wcpay-payment-request-wrapper,
body.single-product form.cart:has(.norfloat-enquiry) .payment-request-button,
body.single-product form.cart:has(.norfloat-enquiry) .express-payment-methods {
    display:none!important;
}


/* v1.0.10: Stripe/express checkout is sometimes injected by Elementor outside
   form.cart, so target the entire enquiry-only product page rather than relying
   on :has(.norfloat-enquiry). */
body.norfloat-enquiry-only-product #wc-stripe-payment-request-wrapper,
body.norfloat-enquiry-only-product #wc-stripe-payment-request-button-separator,
body.norfloat-enquiry-only-product #wc-stripe-express-checkout-element,
body.norfloat-enquiry-only-product .wc-stripe-product-checkout-container,
body.norfloat-enquiry-only-product .wc-stripe-express-checkout-container,
body.norfloat-enquiry-only-product .wcpay-express-checkout-wrapper,
body.norfloat-enquiry-only-product .wcpay-payment-request-wrapper,
body.norfloat-enquiry-only-product .payment-request-button,
body.norfloat-enquiry-only-product .express-payment-methods,
body.norfloat-enquiry-only-product [class*="express-checkout"],
body.norfloat-enquiry-only-product [class*="payment-request"],
body.norfloat-enquiry-only-product [id*="express-checkout"],
body.norfloat-enquiry-only-product [id*="payment-request"] {
    display:none!important;
}


/* v1.0.12: Elementor may not render WooCommerce's simple cart form at all.
   The footer fallback is moved into the Product Add To Cart widget by JS. */
body.norfloat-enquiry-only-product .elementor-widget-woocommerce-product-add-to-cart .elementor-widget-container > .norfloat-enquiry {
    display:block!important;
    width:100%!important;
    margin:0!important;
}
body.norfloat-enquiry-only-product .elementor-widget-woocommerce-product-add-to-cart form.cart > .quantity,
body.norfloat-enquiry-only-product .elementor-widget-woocommerce-product-add-to-cart form.cart > button.single_add_to_cart_button {
    display:none!important;
}


/* v1.0.14: Force simple enquiry toggle to match variable product button.
   Deliberately not tied to Elementor wrapper because fallback can be moved by JS/theme. */
body.norfloat-enquiry-only-product .norfloat-enquiry .norfloat-enquiry-toggle,
body.single-product.norfloat-enquiry-only-product button.norfloat-enquiry-toggle.button.alt {
    display:block!important;
    width:327px!important;
    max-width:100%!important;
    margin:0!important;
    padding:14px 28px!important;
    background:#365a82!important;
    background-color:#365a82!important;
    background-image:none!important;
    border:0!important;
    border-radius:999px!important;
    color:#fff!important;
    font-weight:700!important;
    line-height:1.2!important;
    text-align:center!important;
    box-shadow:none!important;
    min-height:0!important;
}
body.norfloat-enquiry-only-product .norfloat-enquiry .norfloat-enquiry-toggle:hover,
body.norfloat-enquiry-only-product .norfloat-enquiry .norfloat-enquiry-toggle:focus {
    background:#2f5075!important;
    background-color:#2f5075!important;
    color:#fff!important;
}
