/* One complete product name in the DOM, displayed on one line at every width. */
#hc-selectable-cart .hc-cart-name,
.hc-mini-cart .hc-mini-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .hc-checkout-product-name {
 display: block!important;
 min-width: 0;
 min-height: 0!important;
 max-width: 100%;
 -webkit-line-clamp: unset;
 -webkit-box-orient: initial;
 white-space: nowrap;
 overflow-wrap: normal;
 overflow: hidden;
 text-overflow: ellipsis;
}
#hc-selectable-cart .hc-cart-product-copy { min-width: 0; }

/* Preserve the existing editable cart dropdown and its validated save/cancel flow. */
#hc-selectable-cart .hc-variation-toggle {
 display: inline-flex;
 width: fit-content;
 max-width: 100%;
 gap: 8px;
 border-radius: 4px;
 background: #f5f5f6;
 font-weight: 400;
}
#hc-selectable-cart .hc-variation-toggle > span:first-child {
 min-width: 0;
 white-space: nowrap;
 overflow-wrap: normal;
 overflow: hidden;
 text-overflow: ellipsis;
}
#hc-selectable-cart .hc-variation-arrow { flex-shrink: 0; }

/* Short read-only specifications stay compact; long values remain fully visible. */
.hc-mini-cart .hc-mini-details dl.variation,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation {
 box-sizing: border-box;
 padding: 5px 8px;
 border: 1px solid #e2e4e7;
 border-radius: 4px;
 background: #f5f5f6;
 color: #565e67;
 font-size: 12px;
 font-weight: 400;
 line-height: 18px;
 white-space: normal;
 overflow-wrap: anywhere;
 overflow: visible;
}
.hc-mini-cart .hc-mini-details dl.variation { max-width: 100%; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation {
 max-width: calc(100% - var(--hc-checkout-image-size) - var(--hc-checkout-item-gap));
}
.hc-mini-cart .hc-mini-details dl.variation dt,
.hc-mini-cart .hc-mini-details dl.variation dd,
.hc-mini-cart .hc-mini-details dl.variation p,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation dt,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation dd,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation p {
 display: inline;
 float: none;
 margin: 0;
 font-size: inherit;
 font-weight: 400;
 line-height: inherit;
}
.hc-mini-cart .hc-mini-details dl.variation dd::after,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation dd::after { content: ' · '; display: inline; }
.hc-mini-cart .hc-mini-details dl.variation dd:last-child::after,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name dl.variation dd:last-child::after { content: none; }
