/**
 * The Bought together box (the upsells compo; a Bundle until 09-11-2026, a set price and mix and match until 10-11-2026):
 * its layout, loaded with the box (UpsellsControllerFR_cl::lookFiles()). The design's values — the box, the cards, the
 * picture, the texts, the buttons — are its design presets and its compiled CSS (its blocks' `layouts/bought_together/`).
 */
.cl-upsell-bought-together {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cl-upsell-bought-together .cl-upsell-heading,
.cl-upsell-bought-together-intro {
    margin: 0;
}
/* A heading or text naming @savings while there is none; a product the cart holds already, and the box with none of them
   left (upsells_bought_together.js). */
.cl-upsell-bought-together[hidden],
.cl-upsell-bought-together-item[hidden],
.cl-upsell-bought-together .cl-upsell-heading[hidden],
.cl-upsell-bought-together-intro[hidden] {
    display: none;
}
.cl-upsell-bought-together-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* One product: the tick, the picture, the name, price and pickers. Its card ticks on a tap anywhere but its tick, pickers
   and link (upsells_bought_together.js). */
.cl-upsell-bought-together-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}
.cl-upsell-bought-together-tick {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    cursor: pointer;
}
.cl-upsell-bought-together-image {
    flex-shrink: 0;
    display: block;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
/* The name, price and pickers keep at least 160px. */
.cl-upsell-bought-together-info {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cl-upsell-bought-together-title {
    text-decoration: none;
    overflow-wrap: anywhere;
}
.cl-upsell-bought-together-this-item {
    font-weight: 600;
}
.cl-upsell-bought-together-prices,
.cl-upsell-bought-together-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
/* The total waits for a pick (upsells_bought_together.js sets `hidden`), which the flex box above would otherwise beat. */
.cl-upsell-bought-together-total[hidden] {
    display: none;
}

/* The product's pickers: one row of select boxes. The option list is the pick's source only (variations_all_pages.js),
   never shown. */
.cl-upsell-bought-together-pieces {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cl-upsell-bought-together-pieces:empty {
    display: none;
}
.cl-upsell-bought-together .cl-upsell-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.cl-upsell-bought-together .cl-upsell-pickers .cl-vr-parent {
    flex: 1 1 120px;
    min-width: 0;
}
.cl-upsell-bought-together .cl-upsell-pickers select {
    width: 100%;
    max-width: 100%;
}

.cl-upsell-bought-together-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* The struck own price beside a price with nothing taken off it (upsells_bought_together.js sets `hidden`). */
.cl-upsell-bought-together-regular[hidden],
.cl-upsell-bought-together-this-qty[hidden],
.cl-upsell-bought-together-total-regular[hidden] {
    display: none;
}
.cl-upsell-bought-together-add {
    width: 100%;
    cursor: pointer;
}
