.archive.single .product, .single.single-product .woocommerce-product-gallery{
    anchor-name: --product-gallery;
}

.all-tip-upsell-products-wrapper{
    position-anchor: --product-gallery;
}

.arof-rapid-order-summary{
    anchor-name: --arof-rapid-summary;
}


.arof-all-tip-upsell-products-wrapper{
    position-anchor:--arof-rapid-summary;
}

.all-tip-upsell-products-wrapper, .arof-all-tip-upsell-products-wrapper{
    position: absolute;
    top: anchor(top);
    left: anchor(left);
    width:min(100%, 320px);
    padding: 1rem;
    border: 1px solid #198bcd;
    z-index: 10;
    background-color: #f5f5f5;
    visibility: hidden;
    scale: 0%;
    transition: scale 0.3s ease-in-out;
}

.all-tip-upsell-products-wrapper :is(p, button), .arof-all-tip-upsell-products-wrapper :is(p, button){
    display: block !important;
    margin: auto !important;
    text-align: center;
}

.swiper-slide .all-tip-upsell-products-wrapper,.related.products .all-tip-upsell-products-wrapper,.swiper-slide .arof-all-tip-upsell-products-wrapper{
    display: none;
}

.all-tip-upsell-products-wrapper.show, .arof-all-tip-upsell-products-wrapper.show{
    scale: 100%;
    visibility: visible;
}

.archive .product:has(.show)::before, .home .product:has(.show)::before,
    .single-product:has(.show)::before
     {
        content: "";
        position: fixed;
        inset: 0;
        transition: opacity .2s;
        pointer-events: none;
        z-index: 5;
        background: linear-gradient(
        to bottom,
        rgb(0 0 0 / 30%),
        rgb(0 0 0 / 70%)
    );

}

.upsell-product{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upsell-product a{
    text-align: center;
}

.product.increaseZindex{
    z-index: 99999;
}

.tip-upsell-products-wrapper{
    padding: 1rem;
    display : flex;
    gap: 1rem;
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
}

.upsell-notif-div.successAnimateUpsellMsg{
    display: block;
    border: 2px solid green;
}

.upsell-notif-div.errorAnimateUpsellMsg{
    display: block;
    border: 2px solid red;
}