.fme-cacu-upsell-product {
    padding: 15px;
    border-radius: 5px;
    display: flex!important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fme-cacu-upsell-products .slick-slide {
    height: auto !important;
}

.fme-cacu-upsell-container .fme-cacu-upsell-products .slick-slide .fme-cacu-add-to-cart {
    line-height: 1.3;
    min-height: 2.75em;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;
}

.fme-cacu-block-theme .fme-cacu-upsell-container .fme-cacu-upsell-products .slick-slide .fme-cacu-add-to-cart,
.fme-cacu-block-theme .fme-cacu-upsell-container .fme-cacu-add-to-cart,
.fme-cacu-upsell-container-block .fme-cacu-upsell-products .slick-slide .fme-cacu-add-to-cart,
.fme-cacu-upsell-container-block .fme-cacu-add-to-cart {
    line-height: 1.3;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    white-space: normal;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
}

.fme-cacu-block-theme .fme-cacu-upsell-container .fme-cacu-upsell-product,
.fme-cacu-upsell-container-block .fme-cacu-upsell-product {
    height: auto !important;
    justify-content: flex-start;
}

/* Block themes often scale WooCommerce price markup on order-received; keep upsell prices compact. */
.fme-cacu-upsell-container .fme-cacu-product-price,
.fme-cacu-upsell-container-block .fme-cacu-product-price,
.fme-cacu-block-theme .fme-cacu-product-price {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
}

.fme-cacu-upsell-container .fme-cacu-product-price del,
.fme-cacu-upsell-container-block .fme-cacu-product-price del,
.fme-cacu-block-theme .fme-cacu-product-price del {
    opacity: 0.7;
    text-decoration: line-through;
}

.fme-cacu-upsell-container .fme-cacu-product-price ins,
.fme-cacu-upsell-container-block .fme-cacu-product-price ins,
.fme-cacu-block-theme .fme-cacu-product-price ins {
    text-decoration: none;
    font-weight: 600;
}

.fme-cacu-block-theme .fme-cacu-product-price,
.fme-cacu-upsell-container-block .fme-cacu-product-price {
    font-weight: 400;
}

.fme-cacu-block-theme .fme-cacu-product-price .price,
.fme-cacu-block-theme .fme-cacu-product-price .woocommerce-Price-amount,
.fme-cacu-block-theme .fme-cacu-product-price ins,
.fme-cacu-block-theme .fme-cacu-product-price del,
.fme-cacu-block-theme .fme-cacu-product-price bdi,
.fme-cacu-upsell-container-block .fme-cacu-product-price .price,
.fme-cacu-upsell-container-block .fme-cacu-product-price .woocommerce-Price-amount,
.fme-cacu-upsell-container-block .fme-cacu-product-price ins,
.fme-cacu-upsell-container-block .fme-cacu-product-price del,
.fme-cacu-upsell-container-block .fme-cacu-product-price bdi {
    font-size: 1rem;
    line-height: 1.4 !important;
    font-weight: inherit;
}
.fme-cacu-upsell-container .added_to_cart.wc-forward,
.fme-cacu-upsell-container-block .added_to_cart.wc-forward {
    display: none !important;
}
.fme-cacu-thankyou-notice {
    margin: 1em auto;
    max-width: 90%;
}

.fme-cacu-upsell-container, .fme-cacu-upsell-container-block {
    /* padding: 20px; */
    margin-top: 10px;
    margin-bottom: 10px;
    width: 90%!important;
    margin-left: auto;
    margin-right: auto;
}

/* Keep widget hidden until slider/products are initialized (cart, checkout, thank you). */
.fme-cacu-upsell-container:not(.fme-cacu-upsell-ready),
.fme-cacu-upsell-container-block:not(.fme-cacu-upsell-ready) {
    display: none !important;
}

/* Off-screen layout pass for Slick width measurement without flashing the widget. */
.fme-cacu-upsell-container.fme-cacu-upsell-measuring,
.fme-cacu-upsell-container-block.fme-cacu-upsell-measuring {
    display: block !important;
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    width: 90% !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
}
.remove-item-checkout, .product-info .product-title {
    color: #e74c3c;
    text-decoration: none!important;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    margin-top:4px;
    font-size: 0.85rem;
    width: fit-content;
    padding-left: 4px;
    padding-right: 4px;
}

.remove-item-checkout:hover {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

.woocommerce-checkout-review-order.processing {
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce-checkout-review-order.processing::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}