
/* Main container */

.kgcode-product-page-upsell {
    background: #edf6f4;
    border-radius: 26px;
    padding: 20px 24px 24px;
    margin: 20px 0;
}


/* Title */

.kgcode-product-page-upsell-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 2px;
}


/* Simple product card */

.kgcode-product-page-upsell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 17px;
    padding: 12px;
    margin-bottom: 8px;
    min-height: 104px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
}


/* Product image */

.kgcode-product-page-upsell-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.kgcode-product-page-upsell-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Product details */

.kgcode-product-page-upsell-details {
    flex: 1;
    min-width: 0;
}

.kgcode-product-page-upsell-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
}

.kgcode-product-page-upsell-name a {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.kgcode-product-page-upsell-size {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}


/* Prices */

.kgcode-product-page-upsell-price {
    color: #222;
    font-size: 14px;
    line-height: 1.5;
}

.kgcode-product-page-upsell-price del,
.kgcode-product-page-upsell-bundle-price del {
    color: #999;
    opacity: 1;
    margin-right: 5px;
}

.kgcode-product-page-upsell-price ins,
.kgcode-product-page-upsell-bundle-price ins {
    color: #d92323;
    text-decoration: none;
}

.kgcode-product-page-upsell-price-per-liter {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
}

.kgcode-product-page-upsell-price-per-liter del {
    margin-right: 4px;
    opacity: 0.7;
}

.kgcode-product-page-upsell-price-per-liter ins {
    text-decoration: none;
}


/* Circular add-to-cart button */

.kgcode-product-page-upsell-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1.5px solid #24856e;
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.kgcode-product-page-upsell-add img {
    display: block;
    width: 20px;
    height: 20px;
}

.kgcode-product-page-upsell-add:hover {
    background: #edf6f4;
}


/* Bundle card */

.kgcode-product-page-upsell-bundle {
    background: #fff;
    border-radius: 17px;
    padding: 12px 16px 16px;
    margin-top: 8px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
}


/* Bundle name */

.kgcode-product-page-upsell-bundle-name {
    margin-bottom: 4px;
}

.kgcode-product-page-upsell-bundle-name a {
    color: #222;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}


/* Bundle members */

.kgcode-product-page-upsell-bundle-members {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 3px;
}

.kgcode-product-page-upsell-member-category {
    font-size: 12px;
    color: #999;
}


/* Bundle price */

.kgcode-product-page-upsell-bundle-price {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}


/* Bundle add-to-cart */

.kgcode-product-page-upsell-bundle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 4px solid #31866f;
    border-radius: 30px;
    background: #fff;
    color: #24856e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.kgcode-product-page-upsell-bundle-button:hover {
    background: #24856e;
    color: #fff;
}


/* Mobile adjustments */

@media (max-width: 480px) {

    .kgcode-product-page-upsell {
        padding: 16px;
        border-radius: 20px;
    }

    .kgcode-product-page-upsell-item {
        gap: 8px;
        padding: 10px;
    }

    .kgcode-product-page-upsell-add {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

}
