/* OfferVela — per-type storefront preview styles for the Offers explorer.
   Each ".w[data-kind]" reuses the preset CSS variables defined in main.css
   (--bg, --fg, --sub, --rowb, --sel, --bb, --bf, --btn, --btnf, --rr …) so all
   previews restyle correctly under the Bold / Minimal / Classic switch. */

.w-ph{display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fg) 10%,transparent);border-radius:8px;flex-shrink:0}

/* shared summary / total bar */
.w-sum{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--rowb);border-radius:var(--rr)}
.w-sum > span{font-size:13px;color:var(--sub)}
.w-sum b{font-weight:700;margin-inline-start:auto}
.w-sum b s{color:var(--sub);font-weight:500;margin-inline-start:5px}
.w-tag{background:var(--bb);color:var(--bf);border-radius:6px;padding:3px 8px;font-size:11px;font-weight:700;white-space:nowrap}
.w-tag.sm{padding:2px 6px;font-size:10px}
.w-plus{color:var(--sub);display:inline-flex;flex-shrink:0}.w-plus svg{width:16px;height:16px}

/* bundle + frequently-bought strips */
.w-bundle,.w-fbt{display:flex;align-items:flex-start;gap:8px;justify-content:center}
.w-chip,.w-fbti{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0}
.w-chip{flex:1}
.w-chip .w-ph{width:46px;height:46px}
.w-chip b{font-size:13px;font-weight:600;line-height:1.1}
.w-chip small,.w-fbti small{font-size:12px;color:var(--sub)}
.w-fbti .w-ph{width:52px;height:52px}
.w-bundle .w-plus,.w-fbt .w-plus{align-self:center;margin-top:14px}

/* mix & match tiles */
.w-count{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--sub)}
.w-count b{color:var(--fg);font-weight:700}
.w-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.w-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border:1px solid var(--rowb);border-radius:var(--rr)}
.w-tile .w-ph{width:34px;height:34px}
.w-tn{font-size:12px;font-weight:600}
.w-tile.on{border-color:var(--sel);box-shadow:inset 0 0 0 1px var(--sel)}
.w-ck{position:absolute;top:-7px;inset-inline-end:-7px;width:20px;height:20px;border-radius:999px;background:var(--btn);color:var(--btnf);display:flex;align-items:center;justify-content:center}
.w-ck svg{width:12px;height:12px}

/* lines: bogo, gift tiers, upsell cards */
.w-lines,.w-gifts,.w-ups{display:flex;flex-direction:column;gap:10px}
.w-line,.w-grow,.w-up{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--rowb);border-radius:var(--rr)}
.w-line .w-ph,.w-up .w-ph{width:38px;height:38px}
.w-lmeta{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.w-lmeta b{font-size:14px;font-weight:600}
.w-lmeta small{font-size:12px;color:var(--sub)}
.w-lp{font-weight:700;font-size:14px;white-space:nowrap}
.w-line.free{border-color:var(--sel);box-shadow:inset 0 0 0 1px var(--sel)}
.w-line.free .w-ph{background:var(--bb);color:var(--bf)}
.w-line.free .w-ph svg{width:20px;height:20px}
.w-free{font-weight:800;font-size:13px;letter-spacing:.04em;color:var(--bf);background:var(--bb);border-radius:6px;padding:4px 9px}

/* free-gift tiers */
.w-gi{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fg) 10%,transparent);flex-shrink:0}
.w-gi svg{width:17px;height:17px}
.w-grow.on .w-gi{background:var(--bb);color:var(--bf)}
.w-gp{font-size:11px;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.w-grow.on .w-gp{color:var(--sel)}

/* shipping progress */
.w-ship{display:flex;flex-direction:column;gap:12px;padding:16px 14px 14px;border:1px solid var(--rowb);border-radius:var(--rr)}
.w-shiptrack{position:relative;height:10px;border-radius:999px;background:color-mix(in srgb,var(--fg) 14%,transparent);margin-top:16px}
.w-shiptrack i{display:block;height:100%;border-radius:999px;background:var(--btn)}
.w-shipcar{position:absolute;top:-16px;transform:translateX(-50%);color:var(--fg)}
.w-shipcar svg{width:20px;height:20px}
.w-shiptxt b{display:block;font-size:14px;font-weight:700}
.w-shiptxt small{font-size:12px;color:var(--sub)}

/* upsell add button */
.w-add{width:32px;height:32px;border-radius:999px;border:0;background:var(--btn);color:var(--btnf);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.w-add svg{width:16px;height:16px}

/* wholesale table */
.w-tbl{border:1px solid var(--rowb);border-radius:var(--rr);overflow:hidden}
.w-tr{display:grid;grid-template-columns:1.2fr 1fr .8fr;align-items:center;gap:8px;padding:11px 12px;border-top:1px solid var(--rowb);font-size:13px}
.w-tr:first-child{border-top:0}
.w-th{background:color-mix(in srgb,var(--fg) 6%,transparent);font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--sub);font-weight:700}
.w-tq{font-weight:600;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.w-tu{color:var(--sub)}
.w-tt{font-weight:700;text-align:end}
.w-tr.on{background:color-mix(in srgb,var(--sel) 14%,transparent)}
