/* Q59: one sorted list and one responsive GET filter form. Cards keep their renderer. */
.q59-all{margin-top:24px;min-width:0}
.q59-all>h2{margin:0 0 12px;line-height:1.4}
.q59-count{font-size:16px;color:var(--muted);font-weight:400}
.q59-all form.d3-bar{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(170px,1.2fr) repeat(3,minmax(112px,1fr)) auto;gap:8px;align-items:start;margin:0 0 20px;min-width:0}
.q59-all .q59-filter-panel{display:contents}
.q59-all .d3-q,.q59-all .d3-sel{display:block;max-width:none;min-width:0;margin:0}
.q59-all .d3-q input,.q59-all .d3-sel select,.q59-all .d3-mfp select,.q59-all .d3-mfp input[type=number]{width:100%;font-size:16px;min-height:44px}
.q59-all .d3-mf>summary{font-size:16px;min-height:44px;white-space:normal;line-height:1.4}
.q59-all .d3-mf{justify-self:end}
.q59-all .d3-mfp{left:auto;right:0}
.q59-all .d3-clear{grid-column:1/-1;justify-self:start}
.q59-all .q59-how{grid-column:1/-1;display:inline-flex;align-items:center;min-height:44px;font-size:14px;justify-self:start}
.q59-filter-toggle{display:none}
@media(max-width:1100px) and (min-width:768px){
 .q59-all form.d3-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
 .q59-all .d3-q{grid-column:span 2}
 .q59-all .d3-mf{justify-self:stretch}
 .q59-all .d3-mf>summary{width:100%;justify-content:center}
}
@media(max-width:767px){
 .q59-all form.d3-bar{display:flex;flex-direction:column;gap:8px}
 .q59-all form.d3-bar>*{width:100%;box-sizing:border-box}
 .q59-all .q59-filter-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 html.q59-js .q59-filter-toggle{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;font-weight:650;cursor:pointer}
 html.q59-js .q59-filter-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
 html.q59-js .q59-all form:not(.q59-filters-open) .q59-filter-panel{display:none}
 html.q59-js .q59-all .d3-mf>summary{display:none}
 .q59-all .d3-mf{width:100%;justify-self:stretch}
 .q59-all .d3-mfp{position:static;width:100%;max-width:none;margin:0;box-shadow:none;box-sizing:border-box}
}

/* The stock word is a real extra child. Give every All deals card the same
   tracks so stock, code and supplementary offer lines never move the store or Checked slots. */
@media(min-width:768px){
 :is(.q59-all,.bfw) .d3-slots{grid-row:span 14}
 :is(.q59-all,.bfw) .d3-slots>.d3-src{grid-row:1}
 :is(.q59-all,.bfw) .d3-slots>.d3-photo{grid-row:2}
 :is(.q59-all,.bfw) .d3-slots>.d3-name{grid-row:3}
 :is(.q59-all,.bfw) .d3-slots>.d3-scores{grid-row:4}
 :is(.q59-all,.bfw) .d3-slots>.d3-slot-price{grid-row:5}
 :is(.q59-all,.bfw) .d3-slots>.d3-slot-tag{grid-row:6}
 :is(.q59-all,.bfw) .d3-slots>.d3-slot-line{grid-row:7}
 :is(.q59-all,.bfw) .d3-slots>.dh-stock{grid-row:8}
 :is(.q59-all,.bfw) .d3-slots>.fc-line{grid-row:9}
 :is(.q59-all,.bfw) .d3-slots>.fc-paypal{grid-row:10}
 :is(.q59-all,.bfw) .d3-slots>:is(.d3-go,.d3-slot-go){grid-row:11;align-self:stretch}
 :is(.q59-all,.bfw) .d3-slots>.sb.d3-go{align-self:end}
 :is(.q59-all,.bfw) .d3-slots>:is(.d3-ck,.d3-slot-ck){grid-row:12}
 :is(.q59-all,.bfw) .d3-slots>.d3-slot-alt{grid-row:13}
 :is(.q59-all,.bfw) .d3-slots>.d3-foot{grid-row:14}
}

/* All deals keeps the Hot card face; empty slots reserve no phone rows. */
html main :is(.q59-all,.bfw) .d3.deal-card>.d3-scores,html main :is(.q59-all,.bfw) .d3.deal-card>.d3-foot{display:none!important}
html main :is(.q59-all,.bfw) .d3 :is(.fc-line,.fc-paypal){line-height:1.4!important}
@media(max-width:767px){
 html main :is(.q59-all,.bfw) .d3-slots{grid-row:auto}
 html main :is(.q59-all,.bfw) .d3-slots>:not(.d3-photo){grid-row:auto}
 html main :is(.q59-all,.bfw) .d3-slots>:is(.d3-slot-tag,.d3-slot-line,.d3-slot-alt,.d3-slot-go,.d3-slot-ck):empty{display:none}
}

/* The phone card uses Hot's Save position and full-width store row. */
@media(max-width:767px){
 html main :is(.q59-all,.bfw) .d3.deal-card>.d3-save{top:14px!important;right:0!important;bottom:auto!important}
 html main :is(.q59-all,.bfw) .d3.deal-card>:is(.d3-go,.d3-ck){grid-column:1/-1}
 html main :is(.q59-all,.bfw) .d3.deal-card>.d3-go{margin-top:8px!important}
}

/* The dated source may wrap beside Save even at 200% text or narrow zoom. */
html main :is(.q59-all,.bfw) .d3.deal-card>.d3-src{box-sizing:border-box;min-width:0;padding-right:48px}
html main :is(.q59-all,.bfw) .d3-src>time{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}

/* Q64: the sale-week shelf uses the same card face; its own columns stay. */
html main .bfw .d3.deal-card>.d3-slot-alt{display:none!important}

/* The shelf's Evidence asterisk is inside the hidden score line. Keep the note
   if any card instead has an asterisk outside the three hidden card slots. */
.bfw:not(:has(.d3 .ev-star:not(.d3-scores .ev-star):not(.d3-foot .ev-star):not(.d3-slot-alt .ev-star)))>.ev-note{display:none}
