/* /deals redesigned, DEALS_V3_ON (deals_v3.py): Design's d3.css (scratch/design/deals-v3-20261114, Brandon 4:45 PM PST Nov 14; Design 00:48Z) on the
   site's rules: corners 6px at most, no dashed or dotted lines, yellow only on the store link, hover only on fine pointers, no motion when reduced,
   24px targets (44px on coarse pointers). The red tag's own rules are deal_tag's, repeated here for when DEAL_TAG_ON is off. */
.d3,.d3-bar{--d3-red:#CC0C39;--d3-red-ink:#CC0C39}
html[data-mode=dark] .d3,html[data-mode=dark] .d3-bar{--d3-red:#B80A33;--d3-red-ink:#FF6B81}
@media (prefers-color-scheme:dark){html:not([data-mode]) .d3,html:not([data-mode]) .d3-bar{--d3-red:#B80A33;--d3-red-ink:#FF6B81}}
/* one filter bar */
.d3-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 16px}
.d3-q{position:relative;flex:1 1 240px;max-width:340px;min-width:0}
.d3-q svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.d3-q input{width:100%;min-height:44px;padding:0 12px 0 36px;border:1px solid var(--field-edge,var(--line));border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;box-sizing:border-box}
.d3-sel{min-width:0}
.d3-sel select{max-width:100%;min-height:44px;padding:0 34px 0 12px;border:1px solid var(--field-edge,var(--line));border-radius:6px;background-color:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.d3-mf{position:relative}
.d3-mf>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-weight:650;font-size:15px;cursor:pointer;list-style:none;box-sizing:border-box;white-space:nowrap}
.d3-mf>summary::-webkit-details-marker{display:none}
.d3-mf>summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.d3-mf>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.d3-mfp{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:320px;max-width:calc(100vw - 32px);box-sizing:border-box;display:grid;gap:4px;padding:8px 16px 16px;border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:0 12px 30px -14px rgba(10,20,22,.45)}
.d3-mfp .filter-group:first-child{border-top:0}
.d3-mfp .ux-filter-select{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:4px 0;font-size:12px;color:var(--ink)}
.d3-mfp .ux-filter-select select{width:100%}
.d3-mfp select,.d3-mfp input[type=number]{min-height:44px;box-sizing:border-box}
/* the site's own select look (.v2-sel): WebKit's native select keeps its own height, whatever min-height says */
.d3-sel select,.d3-mfp select{-webkit-appearance:none;appearance:none;padding-right:36px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b756f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center/12px 8px;cursor:pointer}
.d3-apply{min-height:44px;width:100%}
.d3-bar .d3-clear{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:15px;font-weight:600;color:var(--green);text-decoration:none;white-space:nowrap}
@media (hover:hover) and (pointer:fine){.d3-bar .d3-clear:hover{text-decoration:underline}}
.d3-bar .d3-clear:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* the sale-week shelf: the list's own card and grid */
.bfw .d3-shelf{margin-top:10px}
.d3-count{margin-left:auto;color:var(--muted);font-size:14px;white-space:nowrap}
.d3-count b{color:var(--ink)}
/* cards */
.d3-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.d3{position:relative;display:flex;flex-direction:column;padding:12px 12px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);min-width:0;box-sizing:border-box}
@media (hover:hover) and (pointer:fine){.d3:hover{border-color:var(--field-edge,var(--line));box-shadow:0 6px 18px -12px rgba(10,20,22,.35)}.d3:hover .d3-name{text-decoration:underline}}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.d3{transition:box-shadow .15s,border-color .15s}}
.d3-hit{position:absolute;inset:0;z-index:1;border-radius:6px}
.d3-hit:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.d3-src{display:flex;justify-content:space-between;gap:8px;min-height:16px;margin:0 0 8px;font-size:12px;line-height:1.35;color:var(--muted)}
.d3-src span{font-weight:650;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.d3-src span.dby{font-weight:650}
.d3-src time{flex:none}
.d3-photo{aspect-ratio:1;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.d3-photo img{width:88%;height:88%;object-fit:contain}
.d3-photo .dnop{color:#59645e;font-size:12px}
.d3-save{position:absolute;z-index:2;top:40px;right:18px;width:36px;height:36px;padding:0;border-radius:6px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.d3-save svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.d3-save[aria-pressed=true] svg{fill:currentColor}
.d3-save:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.d3-name{margin:10px 0 6px;font-size:15px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.35em * 3);overflow-wrap:anywhere}
.d3-p{margin:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.d3-p b{font-size:22px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
.d3-p s{font-size:15px;color:var(--d3-red-ink);font-variant-numeric:tabular-nums}
.d3 p.d3-each{margin:2px 0 0;font-size:14px;font-weight:400;line-height:1.35;color:var(--ink)}  /* a pallet's price a unit (Design 04:34Z (d)) */
.d3 p.d3-ck span.d3-nofig{display:block;overflow-wrap:normal}  /* the figure unknown: the old tile's grey words on their own line in the Checked line, words whole (Design 05:49Z) */
.d3 p.dt-row{display:block;margin:6px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.d3 p.dt-row span.dt-tag{display:inline-block;margin-right:6px;padding:3px 7px;border-radius:4px;background:var(--d3-red);color:#fff;font-size:13.5px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.d3 p.dt-row span.dt-basis{display:inline;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.d3 p.dt-row span.dt-basis.d3-line{display:block}  /* /deals/black-friday: each further Law 396 line on a line of its own in the tag row */
.d3 p.dt-row span.bf-sale{color:var(--ink);font-weight:700}  /* "Black Friday price", in ink and bold as on its tile (own.css .bfpage .dprice .bf-sale) */.d3 p.dt-row .d3-sv{color:var(--ink);font-weight:650}
.d3 p.dt-limited{margin:4px 0 0}
.d3 p.d3-why{margin:6px 0 0;font-size:13px;line-height:1.5;color:var(--ink)}
/* the store: option B's row, compact */
.d3 .pm-srow{position:relative;z-index:2;display:flex;align-items:stretch;min-height:44px;margin-top:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);text-decoration:none;overflow:hidden;touch-action:manipulation;box-sizing:border-box}
.d3 .pm-sl{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1;padding:5px 10px}
.d3 .pm-sl b{font-size:13.5px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}  /* the store's name one line, a long one cut with an ellipsis, so the button never grows (Design 04:34Z, item 10); its whole name stays in the text */
.d3 .pm-sl b.deal-seller{min-height:0;margin:0;font-size:13.5px;color:inherit}  /* the forum's class only: the site's old-tile .deal-seller rules stay off it */
.d3 .pm-sl small{font-size:11.5px;font-weight:400;color:var(--muted);line-height:1.3}
.d3 .pm-sgo{display:flex;align-items:center;justify-content:center;gap:2px;padding:0 8px 0 10px;background:var(--store-yellow);color:var(--on-store-yellow);border-left:1px solid var(--store-yellow-edge);white-space:nowrap;font-size:14.5px}
.d3 .pm-sgo b{font-weight:800}
.d3 .pm-chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
.d3 .d3-nolink .pm-sgo{background:none;color:var(--ink);border-left-color:var(--line)}
.d3 a.pm-srow:active .pm-sgo{background:var(--store-yellow-hover)}
.d3 a.pm-srow:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.d3 a.pm-srow:hover{border-color:var(--ink)}.d3 a.pm-srow:hover .pm-sgo{background:var(--store-yellow-hover)}}
.d3 p.d3-ck{margin:4px 0 0;font-size:12px;line-height:1.35;color:var(--muted);text-align:left;text-wrap:wrap}  /* not the site's p{text-wrap:pretty}: it would take the day down with the dot */
.d3 .d3-ck .pm-paid{display:inline;margin:0;font-size:inherit;white-space:nowrap}  /* Design 02:33Z: "Paid link" never broken (the date and the dot held by a no-break space) */
/* the foot row */
.d3-foot{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}
.d3-foot:has(>.d3-more[open]){z-index:7}  /* owner Edit 20261120-8c54a9 (LE 02:32Z): an open More (Expired?, Deal page) panel above every later card's slot, row and foot (all z 2), not under them */
.d3>:nth-last-child(2){margin-bottom:10px}
.d3-vote{display:flex;align-items:center}
.d3-foot button,.d3-more>summary,.d3-talk{display:inline-flex;align-items:center;gap:5px;min-width:40px;min-height:40px;padding:0 6px;border:0;border-radius:6px;background:none;color:var(--muted);font:inherit;font-size:14px;cursor:pointer;box-sizing:border-box;text-decoration:none}
.d3-foot svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.d3-more>summary svg{fill:currentColor;stroke:none}
.d3-foot b{font-weight:600;color:var(--ink)}
.d3-foot button[aria-pressed=true]{color:var(--ink)}
.d3-foot button[aria-pressed=true] svg{fill:currentColor;fill-opacity:.18}
.d3-foot :is(button,summary,a):focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media (hover:hover) and (pointer:fine){.d3-foot button:hover,.d3-more>summary:hover,.d3-talk:hover{background:var(--surface-tint);color:var(--ink)}}
.d3-more{position:relative}
.d3-more>summary{list-style:none}
.d3-more>summary::-webkit-details-marker{display:none}
.d3-menu{position:absolute;z-index:6;left:auto;right:0;bottom:calc(100% + 4px);display:grid;min-width:150px;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:0 8px 24px -12px rgba(10,20,22,.45)}
.d3-menu button,.d3-menu a{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;padding:0 10px;color:var(--ink);font-size:14px;text-decoration:none}
/* the site's .deal-controls and .vote-row rules (a boxed row, a filled pressed vote) give way to the card's plain row */
.d3 .d3-foot.deal-controls{display:flex;gap:2px;margin:auto 0 0}
.d3 .d3-foot .vote-row.d3-vote{display:flex;gap:2px;margin:0;border:0;border-radius:0;overflow:visible;background:none}
.d3 .d3-foot .d3-vote button,.d3 .d3-foot .d3-vote button[aria-pressed]{min-height:40px;min-width:40px;padding:0 6px;border:0;border-radius:6px;background:none;color:var(--muted);justify-content:flex-start}
.d3 .d3-foot .d3-vote button[aria-pressed=true]{color:var(--ink)}
.d3 .d3-foot .d3-vote button b{font-size:14px;font-weight:600;color:var(--ink)}
.d3 .d3-foot .d3-vote button svg{width:19px;height:19px;stroke-width:1.7}
@media (hover:hover) and (pointer:fine){.d3 .d3-foot .d3-vote button:hover{background:var(--surface-tint);color:var(--ink)}}
@media (pointer:coarse){.d3 .d3-foot .d3-vote button,.d3 .d3-foot .d3-vote button[aria-pressed]{min-height:44px;min-width:44px}}
.d3-foot .ended-note,.d3-foot .down-reasons{flex-basis:100%;margin:4px 0}
.d3-foot .ended-note[hidden]{display:none}
@media (pointer:coarse){.d3-foot button,.d3-more>summary,.d3-talk,.d3-menu button,.d3-menu a{min-height:44px;min-width:44px}.d3-save{width:44px;height:44px;top:36px;right:16px}}
/* phones: a compact list */
@media (max-width:640px){
  .d3-bar .d3-q{flex-basis:100%;max-width:none}
  .d3-sel{flex:1 1 40%}.d3-sel select{width:100%}
  .d3-count{margin-left:0}
  .d3-sort{flex:1 1 40%}
  .d3-grid{grid-template-columns:minmax(0,1fr);gap:0;border-top:1px solid var(--line)}
  .d3{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:12px;align-content:start;padding:12px 0 6px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
  .d3:not(.d3-mem) .d3-src{display:none}
  .d3-src{grid-column:2;margin:0 0 4px}
  .d3-photo{grid-column:1;grid-row:1/span 6;width:96px;height:96px;align-self:start}
  .d3-save{z-index:3;top:auto;bottom:6px;right:0;width:40px;height:40px;border:0;background:none}
  .d3-menu{left:auto;right:0}
  .d3-name{grid-column:2;margin:0 0 4px;font-size:15px;-webkit-line-clamp:2;min-height:0}
  .d3-p,.d3>p.d3-each,.d3>p.dt-row,.d3>p.dt-limited,.d3>p.d3-why,.d3 .pm-srow,.d3 p.d3-ck{grid-column:2}
  .d3-p b{font-size:19px}
  .d3 p.dt-row{margin-top:4px}.d3 p.d3-ck{margin-top:4px;font-size:12.5px}
  .d3 .pm-srow{margin-top:6px}
  .d3>:nth-last-child(2){margin-bottom:0}
  .d3-foot,.d3 .d3-foot.deal-controls{grid-column:2;border-top:0;padding-top:2px;margin-top:2px;padding-right:44px}
}
@media (max-width:640px) and (pointer:coarse){.d3-save{width:44px;height:44px;bottom:4px}}
/* Deals card v1 (DEALS_CARD_V1_ON; PM 17:30Z Nov 22, Design's deals-mock-20261122): 4 columns on desktop so a store's name never truncates (long
   names wrap); the size line under the name and the 'more sizes' line before the store row, in the card's quiet text. Off, none of these classes
   is on a page. */
@media (min-width:1100px){.d3-grid.d3-v1{grid-template-columns:repeat(4,minmax(0,1fr))}}
:is(.d3-v1,.d3-names,.bf-b) .d3 .pm-sl b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}  /* d3-names: Best value's sections and the shelf row (Design 11:08Z); .bf-b: the Black Friday lists wrap as /deals does (Design ruling 4, Nov 25) */
:is(.bf-b,.d3-names) .d3 .pm-sl{padding-inline:8px 4px}  /* so a name does not break mid-word (ShopSolar, Signature, Connected at 320) */
@media (max-width:359px){:is(.bf-b,.d3-names) .d3 .pm-chev{display:none}:is(.bf-b,.d3-names) .d3 .pm-sgo{padding-inline:8px}}
.d3 .d3-size{display:block;margin:0 0 6px;font-size:13px;line-height:1.4;color:var(--muted)}
.d3 .d3-size b{font-weight:700;color:var(--ink)}
.d3 .d3-sizes{position:relative;z-index:2;display:block;margin:2px 0 0;font-size:13px;line-height:1.5}
.d3 .d3-sizes a{display:inline-flex;align-items:center;min-height:24px;color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.d3 .d3-sizes a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (pointer:coarse){.d3 .d3-sizes a{min-height:44px}}
.d3-quick{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px}
.d3-quick form{display:contents}
.d3-quick .d3-qb{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;font-weight:650;cursor:pointer;box-sizing:border-box;white-space:nowrap;touch-action:manipulation}
.d3-quick .d3-qb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.d3-quick .d3-qb[aria-pressed=true]{border-color:var(--green);color:var(--green)}
.d3-quick .d3-qb:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.d3-quick .d3-qb[aria-pressed=false]:hover{background:var(--surface-tint)}}
/* Design 03:13Z (deals-hot-live-20261128/fix.css): on phones the Save button sat over the product name on the Hot and More deals cards; the home rule (60 px) for every d3 card under 768 px */
@media (max-width:767px){main .d3.deal-card .d3-name{padding-right:60px!important}}
/* Design 2026-11-28: owner 7:45 PM overlap + 200% text. (1) WebKit row sizing on phone cards (Hot spec rows). (2) store row wraps its price under the name only when the name does not fit; rank line wraps; under 360 CSS px (200% zoom on phones) the card stacks in one column. */
@media (max-width:767px){html main .d3.deal-card{grid-auto-rows:min-content}}
html main .d3.deal-card .pm-srow{flex-wrap:wrap}
html main .d3.deal-card .pm-srow .pm-sl{flex:1 1 auto;min-width:min(100%,max-content)}
html main .d3.deal-card .pm-srow .pm-sgo{flex:1 0 auto;min-height:44px}
html main .d3.deal-card .d3-src{flex-wrap:wrap;column-gap:8px}
@media (max-width:359px){
html main .d3.deal-card{grid-template-columns:minmax(0,1fr)!important}
html main .d3.deal-card>*{grid-column:1/-1!important}
html main .d3.deal-card>.d3-photo{grid-row:auto!important}
}
