/*
 * CT_PRODUCT_DETAIL_02D_CART_PARENT_ROLE_QUARANTINE_SAFE
 * Quarantena CSS degli attributi parent errati riapplicati dal runtime 02A.
 * Il layout effettivo è:
 * .product-quantity[host-02d] > .p-cartwapper[layout-02d]
 *   > .qty + .add + .leo-compare-wishlist-button
 */
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"] {
    display: block !important;
    grid-template-columns: none !important;
    grid-auto-columns: auto !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]::before,
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]::after {
    content: none !important;
    display: none !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"] {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-flow: row wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    grid-column: 1 / -1 !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]::before,
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]::after {
    content: none !important;
    display: none !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="quantity"] {
    order: 1 !important;
    display: block !important;
    flex: 0 0 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="add"] {
    order: 2 !important;
    display: flex !important;
    flex: 1 1 180px !important;
    align-items: stretch !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: none !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    grid-column: auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="add"]
> *,
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="add"]
.add-to-cart {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="wishlist"] {
    order: 3 !important;
    display: flex !important;
    flex: 0 0 52px !important;
    align-items: stretch !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    grid-column: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> [data-ct-product-cart-role-02d="wishlist"]
> * {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> #stripe-express-checkout-element,
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> #stripe-error-message {
    order: 4 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> #stripe-express-checkout-element:empty,
html body#product
.product-add-to-cart
.product-quantity[data-ct-product-cart-host-02d="active"]
> .p-cartwapper[data-ct-product-cart-layout-02d="active"]
> #stripe-error-message:empty {
    display: none !important;
}

@media (max-width: 767px) {
    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"] {
        gap: 8px !important;
    }

    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"]
    > [data-ct-product-cart-role-02d="quantity"] {
        flex-basis: 88px !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
    }

    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"]
    > [data-ct-product-cart-role-02d="wishlist"] {
        flex-basis: 48px !important;
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }
}

@media (max-width: 479px) {
    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"] {
        gap: 6px !important;
    }

    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"]
    > [data-ct-product-cart-role-02d="quantity"] {
        flex-basis: 86px !important;
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
    }

    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"]
    > [data-ct-product-cart-role-02d="add"] {
        flex-basis: 120px !important;
        min-width: 120px !important;
    }

    html body#product
    .product-add-to-cart
    .product-quantity[data-ct-product-cart-host-02d="active"]
    > .p-cartwapper[data-ct-product-cart-layout-02d="active"]
    > [data-ct-product-cart-role-02d="wishlist"] {
        flex-basis: 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
    }
}
