.ds-family-set { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px 24px; margin: 26px 0 36px; padding: clamp(16px, 2vw, 24px); background: var(--mist); border-top: 4px solid var(--blue); border-radius: 4px; scroll-margin-top: 120px; min-width: 0; }
.ds-family-set [hidden] { display: none !important; }
.woocommerce div.product:has(> .ds-family-set--product) { row-gap: 24px; }
.woocommerce div.product:has(> .ds-family-set--product) > div.summary { margin-bottom: 0; }
.ds-family-set--product { clear: both; grid-column: 1 / -1; margin-top: 0; }
.ds-family-set__heading { grid-column: 1; min-width: 0; }
.ds-family-set__heading .eyebrow { margin: 0 0 8px; }
.ds-family-set__heading h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.ds-family-set__heading > p:last-child { margin: 0; max-width: 52ch; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.ds-family-set:has(> .ds-family-set__form[hidden]) .ds-family-set__heading { grid-column: 1 / -1; }
.ds-family-set__form { display: contents; }
.ds-family-set__primary-fields { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 14px; align-items: end; align-self: center; min-width: 0; }
.ds-family-set__primary-fields .ds-family-set__field { margin-bottom: 0; }
.ds-family-set__primary-fields .ds-family-set__quantity-minimum { grid-column: 1 / -1; margin: 0; }
.ds-family-set__grid { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
/* Collapse the empty initial row; real choices and status messages retain their space. */
.ds-family-set__grid:has([data-set-offer-field][hidden]):has([data-set-summary][hidden]):has([data-set-hint]:empty) { display: none; }
.ds-family-set__choices, .ds-family-set__summary { min-width: 0; }
.ds-family-set__field { display: grid; gap: 7px; margin-bottom: 18px; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--navy); }
.ds-family-set__field select, .ds-family-set__field input { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); font: inherit; font-weight: 400; }
.ds-family-set__device-quantity input { max-width: 130px; }
.ds-family-set h3 { margin: 0 0 12px; font-size: 1.05rem; }
.ds-family-set__option { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; margin-bottom: 12px; padding: 12px; background: white; border-radius: 3px; overflow-wrap: anywhere; }
.ds-family-set__option > input { width: 18px; height: 18px; margin: 3px 0 0; }
.ds-family-set__option-name { display: block; font-weight: 600; color: var(--navy); }
.ds-family-set__option-item { display: block; font-size: .8rem; line-height: 1.5; margin-top: 5px; color: var(--muted); }
.ds-family-set__included { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.ds-family-set__shared { background: white; border-radius: 3px; padding: 12px; margin-top: 12px; }
.ds-family-set__shared input { max-width: 130px; margin-top: 10px; }
.ds-family-set__included ul { margin: 0; padding-left: 18px; }
.ds-family-set__hint { font-size: .85rem; margin: 14px 0 0; color: var(--muted); }
.ds-family-set__summary { background: white; padding: 18px; border-radius: 4px; }
.ds-family-set__table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.ds-family-set__table th, .ds-family-set__table td { text-align: left; vertical-align: top; padding: 10px 5px; border-bottom: 1px solid var(--line); font-size: .8rem; overflow-wrap: anywhere; }
.ds-family-set__table th { font-weight: 600; }
.ds-family-set__table th:first-child { width: 57%; }
.ds-family-set__table th:nth-child(2) { width: 15%; }
.ds-family-set__table th:last-child { width: 28%; text-align: right; }
.ds-family-set__table td:last-child { text-align: right; }
.ds-family-set__table a { display: block; color: var(--navy); font-weight: 600; text-decoration: none; }
.ds-family-set__table a:hover { text-decoration: underline; }
.ds-family-set__sku { display: block; font-size: .75rem; margin-top: 4px; color: var(--muted); }
.ds-family-set__purchase { margin-top: 22px; }
.ds-family-set__total { display: grid; gap: 3px; text-align: right; color: var(--navy); }
.ds-family-set__total > span { font-size: .82rem; }
.ds-family-set__total strong { font-size: clamp(1.4rem, 2vw, 1.8rem); overflow-wrap: anywhere; }
.ds-family-set__total small { color: var(--muted); font-size: .72rem; }
.ds-family-set__add { margin-top: 20px; width: 100%; min-height: 44px; }
.ds-family-set__add:disabled { opacity: .6; cursor: default; }
.ds-family-set__result { grid-column: 1 / -1; margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.ds-family-set__result:empty { display: none; }
.ds-family-set > noscript { grid-column: 1 / -1; }
@media (max-width: 1100px) { .ds-family-set { grid-template-columns: minmax(0, 1fr); } .ds-family-set__primary-fields { grid-column: 1; } .ds-family-set__heading > p:last-child { max-width: none; } }
@media (max-width: 900px) { .ds-family-set__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
@media (max-width: 480px) { .ds-family-set { padding: 16px 12px; } .ds-family-set__primary-fields { grid-template-columns: minmax(0, 1fr); } .ds-family-set__summary { padding: 14px 10px; } .ds-family-set__field select, .ds-family-set__field input { font-size: 16px; } .ds-family-set__table th:first-child { width: 49%; } .ds-family-set__table th:nth-child(2) { width: 18%; } .ds-family-set__table th:nth-child(2), .ds-family-set__table td:nth-child(2) { padding-left: 2px; padding-right: 2px; overflow-wrap: normal; } .ds-family-set__table th:last-child { width: 33%; } }
