/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Add-to-cart upsell popup (accessories) */
.mfp-content .custom-added-to-cart-popup,
.custom-added-to-cart-popup.wd-popup {
    max-width: 720px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto !important;
    box-sizing: border-box;
}
.custom-added-to-cart-popup .tplus-upsells-title {
    margin: 10px 0 16px;
}
.tplus-upsell-thumb img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}
.tplus-upsells-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tplus-upsell-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.tplus-upsell-item img {
    max-width: 100%;
    height: auto;
}
.tplus-upsell-name {
    font-weight: 600;
    font-size: 14px;
}
.tplus-upsell-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}
.tplus-upsell-qty {
    width: 56px;
    padding: 6px;
    text-align: center;
}
@media (max-width: 768px) {
    .tplus-upsells-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tplus-upsells-grid { grid-template-columns: 1fr; }
}

/* Existing native catalogue/gallery sale labels; percentage values are unchanged. */
.products .product-labels>.onsale.product-label,
.woocommerce-product-gallery .product-labels>.onsale.product-label{background:#171717;color:#fff;font-size:14px;min-width:56px;padding:7px 12px;white-space:nowrap;word-break:normal}
@media(max-width:576px){
 .products .product-labels>.onsale.product-label,
 .woocommerce-product-gallery .product-labels>.onsale.product-label{font-size:12px;min-width:44px;padding:6px 8px}
}
