.bambu-stock-modal[hidden],.bambu-main-availability [hidden],.bambu-stock-modal [hidden],.bambu-stock-etd[hidden] {display:none !important;}
.bambu-stock-etd {color:#ff5a00; font-size:13px; font-weight:700; line-height:1.5; margin:12px 0; overflow-wrap:anywhere;}
.bambu-notify-actions {display:flex; gap:12px; margin-block:16px;}
.bambu-notify-actions .button {flex:1; min-width:0; white-space:normal; padding:12px; line-height:1.4;}
.bambu-notify-actions .bambu-restocking,.etheme-sticky-cart .bambu-sticky-add:disabled {cursor:default;}
.bambu-notify-actions .bambu-notify-open {background:#fff; color:#111; border:1px solid #111;}
body.bambu-notify-selected form.cart .single_add_to_cart_button {display:none !important;}
.bambu-preorder-badge {display:inline-block; border:1px solid #ff2383; border-radius:3px; color:#ff2383; padding:1px 5px; font-size:12px; line-height:1.5;}
.bambu-preorder-shipping {color:#ff2383; font-size:12px;}
/* Promote the existing Blocks metadata above the name, without duplicating
   it or moving React-owned nodes. Only pre-order Cart/Checkout rows qualify. */
:is(body.woocommerce-cart .wc-block-cart-item__wrap, body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description):has(.bambu-preorder-badge) {
    display:flex; flex-direction:column; min-width:0;
}
:is(body.woocommerce-cart .wc-block-cart-item__wrap, body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description):has(.bambu-preorder-badge) > .wc-block-components-product-metadata {
    display:contents;
}
:is(body.woocommerce-cart .wc-block-cart-item__wrap, body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description) .wc-block-components-product-details:has(.bambu-preorder-badge) {
    order:-1; margin:0 0 6px;
}
:is(body.woocommerce-cart .wc-block-cart-item__wrap, body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description) .wc-block-components-product-details__availability:has(.bambu-preorder-badge) > .wc-block-components-product-details__name {
    display:none;
}
:is(body.woocommerce-cart .wc-block-cart-item__wrap, body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description) .wc-block-components-product-details__value:has(> .bambu-preorder-badge) {
    display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .wc-block-components-product-details__value > .bambu-preorder-badge {flex:0 0 auto;}
:is(body.woocommerce-cart, body.woocommerce-checkout) .wc-block-components-product-details__value > .bambu-preorder-shipping {min-width:0; flex:1 1 140px; overflow-wrap:anywhere;}
body.woocommerce-checkout:not(.woocommerce-order-received) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__description:has(.bambu-preorder-badge) .wc-block-components-product-details:not(:has(.bambu-preorder-badge)) {order:2;}
.bambu-configurator__availability.bambu-stock-etd {color:#ff5a00; margin:0; padding:0 24px 12px;}
.bambu-configurator__buy.bambu-preorder-buy {background:#00b84a; border-color:#00b84a; color:#fff;}
.bambu-stock-modal {position:fixed; inset:0; z-index:1000001; display:flex; align-items:center; justify-content:center; padding:24px;}
.bambu-stock-modal__backdrop {position:absolute; inset:0; background:rgb(0 0 0 / .52);}
.bambu-stock-modal__dialog {position:relative; background:#fff; color:#333; width:100%; max-width:520px; max-height:calc(100dvh - 48px); overflow:auto; border-radius:9px; padding:28px 24px; box-shadow:0 8px 32px #0003; font-family:Manrope,sans-serif;}
.bambu-stock-modal .bambu-stock-modal__dialog h2 {font-size:24px; line-height:1.25; margin:0 30px 8px 0; color:#333;}
.bambu-stock-modal .bambu-stock-modal__dialog h3 {font-size:19px; margin:24px 0 18px; color:#333;}
.bambu-stock-modal__dialog > p {font-size:14px; line-height:1.5; margin:0 0 16px;}
.bambu-stock-modal__close {position:absolute; top:14px; right:14px; width:30px; height:30px; border:0; background:transparent; color:#555; font-size:25px; padding:0;}
.bambu-stock-modal label {display:block; margin-bottom:18px; font-size:13px;}
.bambu-stock-modal input[type=email],.bambu-stock-modal input[readonly] {display:block; width:100%; height:46px; margin-top:6px; border:1px solid #ccc; border-radius:4px; background:#fff; color:#333; padding:10px 14px; font:inherit;}
.bambu-stock-modal .bambu-stock-consent {display:flex; align-items:flex-start; gap:9px; line-height:1.5; color:#555;}
.bambu-stock-consent input {margin-top:3px; flex:0 0 auto;}
.bambu-stock-modal .bambu-stock-submit {width:100%; background:#00b84a; color:#fff; border:0; border-radius:4px; min-height:46px; white-space:normal; font:700 14px/1.4 Manrope,sans-serif; padding:12px;}
.bambu-stock-modal .bambu-stock-submit:disabled {opacity:.65; cursor:wait;}
.bambu-stock-modal [data-stock-status] {font-size:13px; line-height:1.5; margin-top:12px;}
.bambu-stock-modal__dialog .bambu-stock-privacy {font-size:13px; color:#777; margin:26px 0 0;}
.bambu-stock-trap {position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden;}
.bambu-stock-modal button:focus-visible,.bambu-stock-modal input:focus-visible {outline:2px solid #00b84a; outline-offset:3px;}
.etheme-sticky-cart.bambu-sticky-ready .bambu-stock-etd {flex:1 1 0; min-width:0; margin:0 20px 0 0; align-self:center; text-align:left;}
@media(min-width:768px) and (max-width:991px){.etheme-sticky-cart.bambu-has-etd .et-wrap-columns > .et_column:last-child {flex-wrap:wrap;} .etheme-sticky-cart.bambu-sticky-ready .bambu-stock-etd {flex:0 0 100%; margin:0 0 5px;}}
.etheme-sticky-cart.bambu-sticky-ready .bambu-sticky-buy.bambu-sticky-notify {display:flex; align-items:center; justify-content:center; background:#fff !important; color:#111 !important; border:1px solid #111 !important; white-space:normal; line-height:1.2 !important; padding:0 8px !important;}
@media(max-width:767px){.bambu-stock-modal {padding:12px;} .bambu-stock-modal__dialog {max-height:calc(100dvh - 24px); padding:26px 20px;} .bambu-stock-modal .bambu-stock-modal__dialog h2 {font-size:22px !important;} .bambu-notify-actions {gap:8px;} .bambu-notify-actions .button {font-size:12px;} .etheme-sticky-cart.bambu-sticky-ready .bambu-stock-etd {max-width:none; margin:0; font-size:12px;}}
