/* BSS Advanced Combo Products: what a set product needs in a product box, on pages without the builder.
   Colours come from the theme's tokens, with fallbacks for themes that lack them. */

.acp-box-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-secondary, #4a4340);
}

.acp-box-badge i {
    flex: none;
    font-size: 1.05em;
    line-height: 1;
}

.acp-box-badge__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The rule's own price line stands in for the box's price: the catalogue price after it is not shown. Important,
   because themes style their box prices with longer selectors than a plugin can know. */
.acp-box-price ~ .prices:not(.acp-box-price),
.product-item:has(.acp-box-price) .prices:not(.acp-box-price) {
    display: none !important;
}

.acp-box-price[hidden],
.acp-price-hidden {
    display: none !important;
}

/* Words instead of an amount ("Build your own set") read as a label, not a price. */
.acp-box-price--words .price,
.acp-price-words {
    font-weight: 500;
    font-variant-numeric: normal;
}
