/* Keep the complete product/configuration/condition tree in the DOM. */
.discovery-home main:has(>[data-live-results]:not([hidden])) {
  display: block;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}
.discovery-home main:has(>[data-live-results]:not([hidden])) > .home-search.fm-search,
.discovery-home main:has(>[data-live-results]:not([hidden])) > .live-results {
  width: 100%; max-width: none; margin: 20px 0; padding: 0;
}
.live-results .results-heading { margin-bottom: 12px; }
.discovery-home main:has(>[data-live-results]:not([hidden])) .fm-query,
.discovery-home main:has(>[data-live-results]:not([hidden])) .fm-preferences { max-width: none; }
.live-results .results-tools { margin: 12px 0; }
.live-results .results-disclosure { margin: 12px 0; }
.offer-grid.grouped-results { --columns: 1; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 20px; align-items: start; }
.grouped-results .product-family { --offer-columns: 1; min-width: 0; padding-top: 12px; }
.grouped-results .product-family:has(.offer-card ~ .offer-card),
.grouped-results .product-family:has(.product-configuration ~ .product-configuration),
.grouped-results .product-family:has(.condition-group ~ .condition-group) { grid-column: 1 / -1; --offer-columns: var(--columns); }
.grouped-results .product-family > h3 { font-size: 19px; line-height: 25px; min-height: 50px; margin-bottom: 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.grouped-results .product-configuration > h4 { font-size: 13px; line-height: 20px; margin: 8px 0 4px; }
.grouped-results .configuration-note { font-size: 11px; line-height: 17px; margin-bottom: 8px; }
.grouped-results .condition-group { padding: 0; border: 0; background: transparent; margin-top: 10px; }
.grouped-results .condition-heading h5 { font-size: 14px; }
.grouped-results .group-price { font-size: 12px; line-height: 18px; }
.grouped-results .group-order { font-size: 10px; line-height: 16px; margin-bottom: 10px; }
.grouped-results [data-top-offers], .grouped-results .more-offers > div { display: grid; grid-template-columns: repeat(var(--offer-columns), minmax(0, 1fr)); gap: 16px; align-items: start; }
.grouped-results .offer-card { display: flex; flex-direction: column; margin: 0; padding: 0; min-width: 0; }
.grouped-results .offer-media { position: static; width: 100%; height: 170px; min-height: 0; padding: 16px; border: 0; border-bottom: 1px solid #f0ece7; }
.grouped-results .offer-body { display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.grouped-results .offer-title { font-size: 15px; line-height: 21px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: 8px; }
.grouped-results .offer-meta { margin-bottom: 7px; }
.grouped-results .offer-info { margin: 10px 0 0; gap: 2px; font-size: 11px; line-height: 17px; }
.grouped-results .offer-match-note { font-size: 11px; line-height: 17px; }
.grouped-results .offer-purchase { border: 0; border-top: 1px solid #eee9e3; padding: 10px 0 0; gap: 6px; }
.grouped-results .offer-price { font-size: 25px; overflow-wrap: anywhere; }
.grouped-results .offer-details { margin-top: 8px; }
.grouped-results .offer-link { grid-column: auto; grid-row: auto; align-self: auto; }
.grouped-results .more-offers > summary { padding: 12px 0; }
@media (min-width: 680px) { .offer-grid.grouped-results { --columns: 2; } .discovery-home main:has(>[data-live-results]:not([hidden])) .fm-preferences { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .offer-grid.grouped-results { --columns: 3; } }
@media (min-width: 1360px) { .offer-grid.grouped-results { --columns: 4; } }
@media (max-width: 440px) { .discovery-home main:has(>[data-live-results]:not([hidden])) { width: calc(100% - 32px); } }
