/*
 * Virtual free gifts in the Cart/Checkout block discounts area.
 * Fully self-contained styling — WooCommerce's own summary/cart-item CSS is not
 * reliably present where this slot mounts, so nothing here depends on WC classes.
 * Horizontal padding is left at 0 so rows align with the adjacent totals rows
 * (Subtotal / Discount), which the slot already indents.
 */

.promo-free-gifts {
    margin-top: 12px;
}

/*
 * On checkout the slot lands in `.wc-block-components-discounts-meta`, which has
 * no horizontal padding of its own — add 16px so rows align with the adjacent
 * Subtotal / Discount rows. The cart slot resolves to an already-padded
 * container, so this is scoped to avoid double-indenting it.
 */
.wc-block-components-discounts-meta .promo-free-gifts {
    padding-left: 16px;
    padding-right: 16px;
}

.promo-free-gifts__heading {
    margin: 0 0 8px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.promo-free-gift {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.875em;
}

.promo-free-gift__thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.promo-free-gift__details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.promo-free-gift__name {
    font-weight: 500;
    line-height: 1.3;
}

.promo-free-gift__qty {
    margin-top: 2px;
    font-size: 0.85em;
    opacity: 0.6;
}

.promo-free-gift__price {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 600;
}

.promo-free-gift__price del {
    margin-right: 6px;
    font-weight: 400;
    opacity: 0.6;
}
