/* "More from this set" – sits underneath the main Add to cart */

.px-product-set {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e6e6e6;
}

.px-product-set .product-upsell-title-wrapper {
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.px-product-set .px-set-intro {
    margin: 4px 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}

/* Rows */
.px-product-set .px-set-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e6e6e6;
}

.px-product-set .px-set-row:last-child {
    border-bottom: 0;
}

.px-product-set .upsell-product-image {
    flex: 0 0 75px;
}

.px-product-set .upsell-product-image img {
    display: block;
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.px-product-set .upsell-product-name {
    flex: 1 1 auto;
    min-width: 0;
}

.px-product-set .px-set-name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.px-product-set .px-set-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin-top: 4px;
    font-size: 13px;
    color: #6b6b6b;
}

.px-product-set .px-set-price,
.px-product-set .px-set-price .amount {
    color: inherit;
    font-weight: 600;
}

.px-product-set .px-set-stock.is-instock {
    color: #2e7d4f;
}

.px-product-set .px-set-stock.is-instock::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}

.px-product-set .px-set-stock.is-preorder {
    color: #2b5ea8;
}
.px-product-set .upsell-product-quantity,
.px-product-set .upsell-product-add {
    flex: 0 0 auto;
}

.px-product-set .upsell-product-quantity .quantity {
    margin: 0;
}

/* Per-row basket button – WooCommerce's standard ajax add-to-cart button, restyled as a square */
.px-product-set .button.px-set-add {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 0;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #242424;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.px-product-set .button.px-set-add:hover,
.px-product-set .button.px-set-add:focus-visible {
    border-color: #c8323b;
    background: #fff;
    color: #c8323b;
}

.px-product-set .px-set-add__icon {
    width: 20px;
    height: 20px;
}

.px-product-set .px-set-add__icon--tick,
.px-product-set .px-set-add__text {
    display: none;
}

/* Visually hidden label for screen readers */
.px-product-set .px-set-add__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.px-product-set .button.px-set-add.loading {
    opacity: .55;
    pointer-events: none;
}

/* Hide any theme spinner/label pseudo-elements on our compact button */
.px-product-set .button.px-set-add::before,
.px-product-set .button.px-set-add::after {
    display: none;
}

.px-product-set .button.px-set-add.added {
    border-color: #2e7d4f;
    background: #2e7d4f;
    color: #fff;
}

.px-product-set .button.px-set-add.added .px-set-add__icon--bag {
    display: none;
}

.px-product-set .button.px-set-add.added .px-set-add__icon--tick {
    display: block;
}

.px-product-set .button.px-set-add.is-disabled {
    opacity: .4;
    pointer-events: none;
}

/* WooCommerce adds a "View cart" link after the button – not needed here */
.px-product-set .added_to_cart {
    display: none !important;
}

.px-product-set .button.px-set-view {
    margin: 0;
}

@media (max-width: 600px) {
    .px-product-set .px-set-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .px-product-set .upsell-product-image {
        flex-basis: 60px;
    }

    .px-product-set .upsell-product-image img {
        width: 60px;
        height: 60px;
    }

    .px-product-set .upsell-product-name {
        flex-basis: calc(100% - 70px);
    }

    .px-product-set .upsell-product-quantity {
        margin-left: 70px;
    }
}
