/**
 * The material line: a static row on products without variations, and the
 * variation weight shown as part of it.
 */

/* On a variable product the attributes sit between two rules: the first comes
   from `.cart`, which is the variations form itself. A static row is printed
   before the form, so it has to carry that rule — same values — or it collides
   with the price. */
.entry-summary .product-material-line {
    margin: 22px 0 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 22px;
}

/* The static row borrows `table.variations`, whose label cell styles a
   `<label>` element. There is no control to label here, so the caption is a
   span and carries the spacing itself. */
.product-material-line .label .material-line-label {
    display: block;
    margin: 0 0 10px;
}

/* Sits after the composition, so it wraps onto its own line when the
   composition already fills the row. `nowrap` keeps it whole when it does:
   the weight is one figure, and a line break inside "210 g/m2" reads as two. */
.variations .material-line-weight {
    display: inline;
    white-space: nowrap;
    color: #666;
    margin-inline-start: 8px;
}

/* WooCommerce hands over the description as a paragraph. */
.variations .material-line-weight p {
    display: inline;
    margin: 0;
}

/* Hidden only where the weight has a material row to move to; elsewhere
   WooCommerce's own placement is left alone. */
.variations_form.has-material-line-weight .woocommerce-variation-description {
    display: none;
}
