/* BestSavings deals widgets (1.0.0). Card rules match the Clearance Finder so tiles look the same everywhere. Site tokens come from theme global styles. */
.bs-cl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.bs-cl-grid .bs-card{position:relative;margin:0;display:flex;flex-direction:column;overflow:visible}.bs-cl-grid .bs-card:has(.bs-tip:hover),.bs-cl-grid .bs-card:has(.bs-tip:focus-visible),.bs-cl-grid .bs-card:has(.bs-tip.is-open){z-index:5}.bs-cl-grid .bs-card p,.bs-cl-grid .bs-card h3{margin:0 0 8px}
.bs-cl-img{display:block;aspect-ratio:1;margin:-16px -16px 12px;background:rgba(127,127,127,.08);border-radius:calc(var(--md-radius-l,16px) - 2px) calc(var(--md-radius-l,16px) - 2px) 0 0;overflow:hidden}.bs-cl-img img{width:100%;height:100%;object-fit:contain;display:block}.bs-cl-noimg{display:flex;align-items:center;justify-content:center;font-size:.8125rem;opacity:.6}
.bs-cl-title{font-size:1rem;line-height:1.35}.bs-cl-meta{font-size:.8125rem}.bs-cl-price{font-size:1.125rem}.bs-cl-was{text-decoration:line-through}.bs-cl-badge{display:inline-block;margin:0 0 8px;padding:2px 10px;border-radius:12px;font-size:.75rem;font-weight:700;background:var(--bs-gold,#e9b949);color:#1f1600;align-self:flex-start}.bs-cl-unv{font-style:italic}
.bs-cl-off{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:12px;font-size:.8125rem;font-weight:600;background:#b3261e;color:#fff;vertical-align:middle}
.bs-dg,.bs-rtop,.bs-promos{margin:0 0 32px}.bs-dg-h{margin:0 0 12px}.bs-sec-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:0 0 12px}.bs-sec-row .bs-dg-h{margin:0}
.bs-dg-ctl{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:0 0 16px;align-items:end}.bs-dg-wide{grid-column:1/-1}
.bs-dg-ctl label{display:flex;flex-direction:column;gap:4px;font-size:.875rem}
.bs-dg-ctl input,.bs-dg-ctl select{padding:10px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit;min-width:0}.bs-dg-ctl select option{color:#1c1b1f}
.bs-dg-count{margin:0 0 8px}.bs-dg-more{text-align:center;margin:20px 0 0}.bs-dg-empty{margin:0}.bs-dg-v{background:transparent;border:1px solid currentColor}
.bs-dg .bs-btn-out,.bs-rtop .bs-btn-out,.bs-promos .bs-btn-out{display:inline-block;padding:9px 18px;border:1.5px solid currentColor;border-radius:20px;background:transparent;color:inherit;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.bs-dg-sk{min-height:260px;display:flex;flex-direction:column;gap:10px}.bs-dg-sk .bs-sk{display:block;height:140px;border-radius:8px}.bs-dg-sk .bs-sk-line{height:12px}
.bs-hubs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin:0 0 24px}.bs-hub-tile{display:block;margin:0;font-weight:600;text-decoration:none}
.bs-rt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.bs-rt-card{display:flex;flex-direction:column;gap:6px;margin:0;text-decoration:none}.bs-rt-card img{max-height:32px;width:auto;align-self:flex-start;background:#fff;border-radius:6px;padding:4px 8px}
.bs-rt-head{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:0 0 20px}.bs-rt-logo{max-height:40px;width:auto;background:#fff;border-radius:8px;padding:6px 10px}
.bs-promo-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.bs-promo{margin:0}.bs-promo h3{margin:8px 0}.bs-promo p{margin:0 0 8px}
.bs-code{font-family:ui-monospace,Consolas,monospace;font-weight:700;letter-spacing:.06em;padding:2px 8px;border:1.5px dashed currentColor;border-radius:6px}
.bs-copy-code{display:inline-flex;align-items:center;min-height:32px;margin-left:6px;padding:0 12px;border:2px solid var(--md-primary,#43c783);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:.8125rem;font-weight:700;cursor:pointer;vertical-align:middle}.bs-copy-code:hover{background:var(--md-primary,#43c783);color:var(--md-on-primary,#06210f)}
.bs-promo-actions{display:flex;align-items:center;gap:10px;margin-top:10px}
.bs-promo .bs-ic-b.bs-ic-lab{width:auto;min-height:44px;padding:0 16px;border:2px solid currentColor;border-radius:999px;font:inherit;font-weight:700;opacity:1;gap:8px}
.bs-coupon-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.bs-coupon-filter{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:2px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:600;text-decoration:none}
.bs-coupon-filter:hover{background:rgba(127,127,127,.18)}
.bs-coupon-filter.is-on{background:var(--md-primary,#43c783);border-color:var(--md-primary,#43c783);color:var(--md-on-primary,#06210f)}
.bs-hub-links{margin:0 0 24px}
/* 1.1.0 filters */
.bs-dg-chips{display:flex;flex-wrap:wrap;gap:8px}.bs-dg-chip{min-height:40px;padding:0 16px;border:2px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.bs-dg-chip[aria-pressed=true]{background:var(--md-primary,#43c783);border-color:var(--md-primary,#43c783);color:var(--md-on-primary,#06210f)}
.bs-dg-check span{display:flex;gap:8px;align-items:center;min-height:42px}.bs-dg-check input{min-width:auto}
/* card footer + votes */
.bs-cl-grid .bs-card{position:relative}.bs-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:4px}
.bs-vote{display:inline-flex;align-items:center;border:2px solid currentColor;border-radius:999px;overflow:hidden;line-height:1}
.bs-vote-b{display:inline-flex;align-items:center;justify-content:center;width:34px;height:32px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.bs-vote-b:hover{background:rgba(127,127,127,.15)}.bs-vote-b[aria-pressed=true][data-v="1"]{background:#1e7a4b;color:#fff}.bs-vote-b[aria-pressed=true][data-v="-1"]{background:#b3261e;color:#fff}
.bs-vote-n{min-width:28px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}.bs-vote-pos{color:#1e7a4b}.bs-vote-neg{color:#b3261e}
.bs-vote-busy{opacity:.5;pointer-events:none}.bs-vote-err{border-color:#b3261e}
.bs-pd-vote{display:flex;align-items:center;gap:10px;margin-top:12px}
/* out of stock: shared */
.bs-oos-flag{display:none}.bs-oos-note{margin:0 0 8px;font-size:.8125rem;font-weight:700;color:#b3261e}
.bs-oos-sep{grid-column:1/-1;margin:16px 0 4px;font-size:1rem}
/* A: dimmed image + dark label on the image */
.bs-oos-a .bs-oos .bs-cl-img img{filter:grayscale(1);opacity:.45}
.bs-oos-a .bs-oos .bs-oos-flag{display:block;position:absolute;top:12px;left:12px;z-index:2;padding:4px 10px;border-radius:8px;background:#0e1712;color:#fff;font-size:.75rem;font-weight:800;letter-spacing:.02em}
/* product page comparison */
.bs-cmp{display:flex;flex-direction:column;gap:8px}.bs-cmp-row{display:grid;grid-template-columns:minmax(150px,1.3fr) 1fr 1fr auto;gap:12px;align-items:center;padding:12px 16px;border:2px solid currentColor;border-radius:12px}
.bs-cmp-self{box-shadow:4px 4px 0 var(--bs-gold,#f0c04f)}.bs-cmp-r{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.bs-cmp-tag{font-size:.75rem;font-weight:700;padding:2px 8px;border:1.5px solid currentColor;border-radius:999px}
.bs-cmp-p strong{font-size:1.25rem}.bs-cmp-a{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end}.bs-cmp-go{padding:8px 16px;border:2px solid currentColor;border-radius:999px;font-weight:700;text-decoration:none;color:inherit}
.bs-cmp-row.bs-oos{opacity:.7}.bs-cmp-note{margin:8px 0 0}
@media(max-width:700px){.bs-cmp-row{grid-template-columns:1fr 1fr}.bs-cmp-a{grid-column:1/-1;justify-content:flex-start}}
.bs-dg-attrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.bs-dg-attrs label{display:flex;flex-direction:column;gap:4px;font-size:.875rem}
.bs-dg-attrs select{padding:10px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit}.bs-dg-attrs select option{color:#1c1b1f}

/* 1.12.0: smaller photos, Standard / Compact view, card buttons, share dialog, dismissable note */
.bs-cl-img{max-height:240px;width:auto}.bs-cl-title a{color:inherit;text-decoration:none}.bs-cl-title a:hover{text-decoration:underline}
.bs-card-foot{flex-wrap:wrap}.bs-cl-go{flex:1 1 100%;font-weight:600}.bs-card-acts{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:1 1 100%}
.bs-card-acts .bs-vote{margin-right:auto}
.bs-ic-b{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:36px;height:36px;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;opacity:.75}
.bs-ic-b:hover{background:rgba(127,127,127,.18);opacity:1}.bs-ic-b:focus-visible{outline:3px solid var(--bs-gold,#f0c04f);outline-offset:1px;opacity:1}
.bs-pd-btns .bs-ic-lab{width:auto;min-height:44px;padding:0 20px;border:2px solid currentColor;font:inherit;font-weight:700;opacity:1}
.bs-view{display:flex;justify-content:flex-end;gap:0;margin:0 0 10px}
.bs-view button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:2px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.bs-view button:first-child{border-radius:999px 0 0 999px}.bs-view button:last-child{border-radius:0 999px 999px 0;margin-left:-2px}
.bs-view button[aria-pressed=true]{background:var(--md-primary,#43c783);border-color:var(--md-primary,#43c783);color:var(--md-on-primary,#06210f);position:relative}
.bs-view button:focus-visible{outline:3px solid var(--bs-gold,#f0c04f);outline-offset:2px}
@media(max-width:600px){
.bs-cl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bs-cl-grid .bs-card{padding:10px}.bs-cl-grid .bs-cl-img{margin:-10px -10px 8px;max-height:170px}
.bs-cl-grid .bs-cl-title{font-size:.875rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bs-cl-grid .bs-cl-price{font-size:1rem}.bs-cl-grid .bs-cl-off{margin-left:4px;padding:1px 6px;font-size:.75rem}.bs-cl-grid .bs-cl-meta{font-size:.75rem}
.bs-cl-grid .bs-vote-b{width:30px}.bs-cl-grid .bs-vote-n{min-width:18px}.bs-cl-grid .bs-ic-b{width:32px;height:32px}.bs-view span{display:none}
}
/* Compact: one listing per row with a small photo */
.bs-view-compact .bs-cl-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:8px}
.bs-view-compact .bs-cl-grid .bs-card{display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:12px;align-content:start;padding:10px}
.bs-view-compact .bs-cl-grid .bs-card>*{grid-column:2;min-width:0}
.bs-view-compact .bs-cl-grid .bs-cl-img{grid-column:1;grid-row:1/span 12;width:84px;height:84px;max-height:none;margin:0;border-radius:8px;overflow:hidden;align-self:start}
.bs-view-compact .bs-cl-grid .bs-card p,.bs-view-compact .bs-cl-grid .bs-card h3{margin:0 0 4px}
.bs-view-compact .bs-cl-grid .bs-cl-title{font-size:.9375rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bs-view-compact .bs-cl-x,.bs-view-compact .bs-cl-grid .bs-cl-badge{display:none}
.bs-view-compact .bs-cl-grid .bs-card-foot{flex-wrap:nowrap;padding-top:2px}.bs-view-compact .bs-cl-go{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-view-compact .bs-card-acts{flex:0 0 auto}
.bs-view-compact.bs-oos-a .bs-oos .bs-oos-flag{top:6px;left:6px;padding:2px 6px;font-size:.625rem}
@media(max-width:600px){.bs-view-compact .bs-cl-grid{grid-template-columns:1fr}.bs-view-compact .bs-cl-grid .bs-cl-img{margin:0;max-height:none}.bs-view-compact .bs-card-acts .bs-ic-b[data-bs-report]{display:none}}
/* Share dialog */
.bs-shr{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:2px solid var(--bs-ink,#0e1712);border-radius:16px;background:var(--md-surface-container,#16251c);color:var(--md-on-surface,#eef4ef);box-shadow:6px 6px 0 var(--bs-gold,#f0c04f)}
.bs-shr::backdrop{background:rgba(5,12,8,.6)}.bs-shr-in{padding:18px 20px 20px}.bs-shr-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.bs-shr-top h2{margin:0;font-size:1.25rem}
.bs-shr-x{width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:1.75rem;line-height:1;cursor:pointer}.bs-shr-x:hover{background:rgba(127,127,127,.18)}
.bs-shr-t{margin:4px 0 14px;color:var(--md-on-surface-variant,#b3c5ba);font-size:.9375rem}
.bs-shr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bs-shr-o{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:8px 4px;border:2px solid var(--md-outline-variant,#2e4638);border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:.8125rem;font-weight:600;text-decoration:none;text-align:center;cursor:pointer}
.bs-shr-o:hover{border-color:var(--md-primary,#43c783)}.bs-shr-o:focus-visible,.bs-shr-x:focus-visible,.bs-shr-c:focus-visible,.bs-shr-go:focus-visible{outline:3px solid var(--bs-gold,#f0c04f);outline-offset:2px}
.bs-shr-o svg{width:24px;height:24px}.bs-shr-ozb{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 6px;border-radius:6px;background:currentColor;font-size:.75rem;font-weight:800;letter-spacing:.02em}
.bs-shr-ozb{color:inherit}.bs-shr-o .bs-shr-ozb{-webkit-text-fill-color:var(--md-surface-container,#16251c)}
.bs-shr-post{margin-top:16px;padding-top:14px;border-top:1px solid var(--md-outline-variant,#2e4638)}.bs-shr-post h3{margin:0 0 4px;font-size:1.0625rem}.bs-shr-n{margin:0 0 12px;font-size:.8125rem;color:var(--md-on-surface-variant,#b3c5ba)}
.bs-shr-f{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:start;margin:0 0 12px;font-size:.8125rem;font-weight:600}.bs-shr-f span{grid-column:1/-1}
.bs-shr-f input,.bs-shr-f textarea{box-sizing:border-box;width:100%;min-height:44px;padding:8px 10px;border:2px solid var(--md-outline,#8fa597);border-radius:10px;background:var(--md-surface,#0e1712);color:var(--md-on-surface,#eef4ef);font:inherit;font-weight:400;font-size:.875rem}
.bs-shr-f textarea{resize:vertical;font-family:ui-monospace,Consolas,monospace;font-size:.8125rem;line-height:1.45}
.bs-shr-c{min-width:72px;min-height:44px;padding:0 14px;border:2px solid var(--bs-ink,#0e1712);border-radius:999px;background:var(--md-primary,#43c783);color:var(--md-on-primary,#06210f);font:inherit;font-weight:700;cursor:pointer}
.bs-shr-go{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:2px solid currentColor;border-radius:999px;color:inherit;font-weight:700;text-decoration:none}
@media(max-width:420px){.bs-shr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* "Please note" card */
.bs-cl-note{position:relative;padding-right:52px}.bs-cl-note strong{font-weight:800}
.bs-note-x{position:absolute;top:6px;right:6px;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer}.bs-note-x:hover{background:rgba(127,127,127,.18)}
.bs-note-x:focus-visible,.bs-note-show:focus-visible{outline:3px solid var(--bs-gold,#f0c04f);outline-offset:2px}
.bs-note-back{margin:0 0 12px}.bs-note-show{padding:0;border:0;background:none;color:inherit;font:inherit;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:32px;opacity:.8}
.bs-cl-note[hidden]{display:none}
/* 1.12.1: the finder page's own grid rule loads later, so the phone grid needs more weight; no gap in an empty score; cashback chip readable on light cards */
@media(max-width:600px){body .bs-cl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .bs-cl-grid .bs-vote-b{width:28px;height:30px}body .bs-cl-grid .bs-ic-b{width:30px;height:30px}.bs-card-acts{gap:2px}
html.bs-view-compact body .bs-cl-grid{grid-template-columns:1fr}}
.bs-vote-n:empty{min-width:4px}.bs-card .bs-cb-chip{color:inherit}
.bs-promo-tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:8px 0;padding:0}
.bs-promo-img{margin:-1px -1px 12px;overflow:hidden;border-radius:10px 10px 0 0}.bs-promo-img img{display:block;width:100%;height:auto}.bs-promo-img-page{margin:0 0 16px;border-radius:12px;max-width:760px}.bs-offer-page h2{margin:24px 0 8px}.bs-offer-page ul:not(.bs-promo-tags){padding-left:1.2em}.bs-promo h3 a{color:inherit}


.bs-price-info { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; margin-left:4px; width:28px; height:28px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
#bs-price-explanation { box-sizing:border-box; width:min(26rem,calc(100% - 2rem)); margin:auto; padding:1.25rem; border:1px solid currentColor; border-radius:12px; }
#bs-price-explanation::backdrop { background:rgb(0 0 0 / .55); }
#bs-price-explanation h2 { margin-top:0; }
