/* Non-rope family tables reuse the accepted catalogue styles. */
.catalog-layout.family-layout-single { grid-template-columns:minmax(0,1fr); }
.family-table { min-width:0; }
.family-table th,.family-table td { white-space:normal; }
.family-table .action-cell { width:184px; }
.family-table .product-detail-link { overflow-wrap:anywhere; }
.family-table .family-attribute { font-variant-numeric:tabular-nums; }
.family-order-form .quick-order-fields { grid-template-columns:minmax(0,1fr) 150px; align-items:start; }
.family-order-form .quick-order-submit { grid-column:auto; }
.family-order-form .quick-quantity>label { display:block; font-size:12px; min-height:18px; line-height:18px; margin-bottom:6px; }
.family-order-form .optional-fields { margin:8px 0; }
.family-order-form .optional-fields .field { display:block; min-width:0; }
.family-order-form .optional-fields .field>span,.family-order-form .optional-fields .field>label { display:block; margin-bottom:6px; }
.family-order-form .optional-fields input,.family-order-form .optional-fields textarea { width:100%; }
.family-table .row-request-summary,.family-table .request-chips { min-width:0; max-width:100%; }
.family-table .request-chip { min-width:0; max-width:100%; }
.family-table .request-chip>span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.generic-order-form .quick-order-fields:has(fieldset) { grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) 150px; }
.generic-order-form fieldset { min-width:0; }
.generic-order-form .grades { flex-wrap:wrap; }
.generic-order-form .grades label { min-width:0; overflow-wrap:anywhere; }
.generic-order-form .grade>span { white-space:normal; overflow-wrap:anywhere; }
.generic-order-form .quick-order-fields .grades.motion-segment .grade>span { height:auto; min-height:42px; padding:10px 8px; line-height:1.4; }
.source-reference-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:24px; }
.source-reference-gallery figure { margin:0; background:white; border:1px solid var(--line); border-radius:12px; padding:20px; }
.source-reference-gallery .image-open { width:100%; }
.source-reference-gallery img { width:100%; height:240px; object-fit:contain; }
@media(max-width:800px) {
 .generic-order-form .grades { flex-direction:column; }
 .generic-order-form .grade { flex:none; width:100%; }
 .family-table .family-attribute { grid-column:1 / -1; font-size:12px; color:var(--muted); }
 .family-table .action-cell { width:auto; }
 .family-order-form .quick-order-fields { grid-template-columns:minmax(0,1fr); }
 .generic-order-form .quick-order-fields:has(fieldset) { grid-template-columns:minmax(0,1fr); }
 .family-order-form .quick-order-submit { grid-column:1; padding-top:0; }
}
