/**
 * WooKit core — grouped bundle display.
 *
 * Shared by the cart popup, the cart page widget and the checkout order review
 * so the bundle "option" card (included-products list + struck/discounted
 * price) reads identically everywhere. Loaded via the `wookit-core` meta handle,
 * so a single edit here updates all three surfaces. Font sizes are em-relative
 * so the block adapts to each context's base size.
 */

/* Included products: "N× Product name", qty prefix snug against the name. */
.wookit-bundle-lines {
    list-style: none !important;
    margin: 4px 0 6px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wookit-bundle-lines li {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.8em;
    line-height: 1.35;
    color: var( --wookit-muted, #6b7280 );
}
.wookit-bundle-line-qty {
    flex-shrink: 0;
    font-weight: 700 !important;
    color: var( --wookit-text, inherit );
    font-variant-numeric: tabular-nums;
}
/* Pin the name weight so it never inherits a context bold (e.g. the checkout
   .product-name cell is 600) — keeps cart + checkout identical. */
.wookit-bundle-line-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400 !important;
}
/* Out-of-stock line (checkout marks these; the cart simply omits the flag). */
.wookit-bundle-line--oos .wookit-bundle-line-name {
    color: var( --wookit-danger, #dc2626 ) !important;
    text-decoration: line-through !important;
}

/* Price: catalog total struck through, discounted total below — stacked.
   The active price is ALWAYS accent (even with no discount, where it renders
   plain without an <ins>); the struck catalog total is the only muted part. */
.wookit-bundle-grouped-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var( --wookit-accent, #2271b1 );
    font-weight: 700;
}
.wookit-bundle-grouped-price > .woocommerce-Price-amount,
.wookit-bundle-grouped-price > .woocommerce-Price-amount bdi {
    color: var( --wookit-accent, #2271b1 ) !important;
    font-weight: 700 !important;
}
.wookit-bundle-grouped-price del,
.wookit-bundle-grouped-price del .woocommerce-Price-amount,
.wookit-bundle-grouped-price del bdi {
    color: var( --wookit-muted, #9ca3af ) !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    font-size: 0.85em !important;
}
.wookit-bundle-grouped-price ins,
.wookit-bundle-grouped-price ins .woocommerce-Price-amount,
.wookit-bundle-grouped-price ins bdi {
    text-decoration: none !important;
    color: var( --wookit-accent, #2271b1 ) !important;
    font-weight: 700 !important;
}
