/* EQS_QS_BADGES_V2 (Dec 3, 2026): Best Seller / Best Value corner banner (top-left) on these items wherever their card shows - category pages, brand and collection pages, search results, product-page rows. Not on the home page cards. The banner stays in the card corner, clear of the product photo. A tagged card drops its Closeout tag. Edit TAGS to change them (bs = Best Seller, bv = Best Value). */ (function () { 'use strict'; if (window.EQS_BADGES && window.EQS_BADGES.active) return; var TAGS = {"COEDBLFLOS101MW":"bs","COECOSMO6CB":"bs","OTGHAT6024AML":"bs","N9NRISSD1000CH":"bs","COEOSTHAT5172MWETC":"bs","LLR66903":"bs","GLBF550914NAVY":"bs","COEORIONBLACK1":"bs","OTG11950":"bs","COESERENE":"bs","COE05AG2QHEVBK":"bs","COEOSTW8005PBK":"bs","N9N58811WHTBLU":"bs","LLR60324":"bs","COEOS2460TTMWSI":"bs","COEOS235MH":"bs","COEOSFBM3072GR":"bs","HONSC2472P":"bs","TNNSTS121272CMG":"bs","LLR60552":"bs","LLR99791":"bs","COEOS184CG":"bs","LLR19767":"bs","LLR19770":"bs","LLR55661":"bs","LLR52569":"bs","QRTNA9648F":"bs","QRTG9648W":"bs","FLABRPTT0013M":"bs","FLAWREN60XUA60":"bs","FLAXUA2460RECOAK":"bs","SCXFSH605BDV":"bs","FLABRPTT0013":"bs","COEFL689RE":"bv","COEMARKLE68W":"bv","OTG11920":"bv","LLR60121":"bv","LLR65755":"bv","NPRVF218AABK":"bv","NPRVF218AANY":"bv","COEFL450RE":"bv","UNV43203":"bv","UNV43234":"bv","UNV43625":"bv","FLAFDDESKNTBK":"bv","FLAFDDESKGYGT":"bv","FLAFDDESKGYGY":"bv","FLAFDDESKMPSI":"bv"}; window.EQS_BADGES = { active: true, version: 'EQS_QS_BADGES_V2_2026_12_03', tags: TAGS }; var LABEL = { bs: 'Best Seller', bv: 'Best Value' }; var css = document.createElement('style'); css.textContent = '.eqs-cnr-host{position:relative}' + '.eqs-cnr{position:absolute;top:0;left:0;width:84px;height:84px;overflow:hidden;z-index:5;pointer-events:none;border-top-left-radius:inherit}' + '.eqs-cnr b{position:absolute;top:18px;left:-33px;width:120px;height:18px;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;' + 'color:#fff!important;font:700 9px/18px Arial,sans-serif!important;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;box-shadow:0 2px 4px rgba(0,0,0,.2)}' + '.eqs-cnr-bs b{background:rgb(0,132,61)}.eqs-cnr-bv b{background:#0e7490}' + '.eqs-cnr-card .eqs-co-tag{display:none!important}' + /* tagged cards only: ease the photo away from the corner so the banner never sits on the product */ '.eqs-cnr-host a.product-tile-image .imgthumbnail,.eqm-fc.eqs-cnr-host > .im,.eqs-cnr-host .eqs-pdp-card-img,.eqs-cnr-host .eqs-pdp-sc-img{scale:.86;transform-origin:62% 72%}'; (document.head || document.documentElement).appendChild(css); // card selector, small banner? var SPOTS = [ ['.tileparent[data-sku] > .tile', 0], // category, search and filtered pages (EvoX cards) ['.eqm-fc[data-sku]', 0], // Quick Ship brand / collection / budget / search pages ['.eqs-pdp-card[data-sku]', 0], // product page rows (matching pieces, pairs well with) ['.eqs-pdp-sc[data-sku]', 0] // product page "Add to Your Setup" ]; function skuOf(el) { var c = el.hasAttribute('data-sku') ? el : el.parentNode; return String(c.getAttribute('data-sku') || '').toUpperCase(); } function tag(host, small) { var k = TAGS[skuOf(host)]; if (!k || host.querySelector(':scope > .eqs-cnr')) return; host.classList.add('eqs-cnr-host'); (host.hasAttribute('data-sku') ? host : host.parentNode).classList.add('eqs-cnr-card'); var s = document.createElement('span'); s.className = 'eqs-cnr eqs-cnr-' + k; s.innerHTML = '' + LABEL[k] + ''; host.appendChild(s); } function run() { SPOTS.forEach(function (sp) { [].slice.call(document.querySelectorAll(sp[0])).forEach(function (h) { tag(h, sp[1]); }); }); } var queued = false; function soon() { if (queued) return; queued = true; requestAnimationFrame(function () { queued = false; run(); }); } function start() { if (!document.body) { setTimeout(start, 100); return; } run(); new MutationObserver(soon).observe(document.body, { childList: true, subtree: true }); } start(); })();