(() => { "use strict"; const t = "undefined" != typeof window && "undefined" != typeof document, e = { cartGroups: ["ex-cart"], alternatives: ["ex-cart"], gridTiles: [], productPage: [] }, n = { everyone: !1, labels: ["5336"], accounts: ["2127645"], users: [] }, a = [...n.labels.map((t) => `ex-l-${t}`), ...n.accounts.map((t) => `ex-a-${t}`), ...n.users.map((t) => `ex-u-${t}`)], o = '/* heatons.css — styles for heatons.js (Heatons storefront widgets). Load it with the script, same version.\n *\n * The script sets state; this file decides how it looks. Contract with heatons.js:\n * classes it renders .csw-delivery …, .csw-band …, .csw-delivery-options …, .csw-alt-* (popover)\n * attributes it toggles data-csw-tier, data-csw-grid / -tuned / -compact (cart tables), data-csw-consol(-on)\n * (consolidated-delivery box), data-csw-busy (cart locked), hidden\n * inline values it sets row `order` (band), popover top/left/width, progress-bar width, --csw-font-brand\n * Pages: cart rules are scoped to body.ex-cart.csw-on (csw-on: added by the script where it runs, see AUDIENCE); tiles to .csw-tile, which the script adds to each grid tile it decorates;\n * the product page to body.ex-product.csw-pdp (its buy box gets .csw-pdp-buy and the delivery card).\n * Breakpoints shared with the script: popover 1024 px (cards, 720 px wide) and 768 px (bottom sheet); the cart\'s\n * compact layout below a 920 px wide table. Change them in both files together.\n */\n@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&display=swap"); /* band headings */\n\n:root {\n --csw-blue:#1f4560;\n --csw-blue-deep:#1a2c45;\n --csw-green:#2f6b46;\n --csw-green-deep:#1f4d33;\n --csw-green-tint:#e6f0e8;\n --csw-green-light:#cfe2d5;\n --csw-orange:#e8801f;\n --csw-orange-deep:#d96a24;\n --csw-orange-tint:#fcefe3;\n --csw-orange-light:#f6d9bd;\n --csw-orange-ink:#b5570f;\n --csw-light-grey:#e1e5e7;\n --csw-surface-muted:#f7f8f8;\n --csw-text-body:#3d4852;\n --csw-track-caps: 0.08em;\n --csw-radius: 10px;\n --csw-text-muted:#7b8384;\n --csw-hairline:#e6e9eb;\n --csw-stock-in:#45a56b;\n --csw-font-display: "Oswald", "Arial Narrow", sans-serif;\n --csw-font-title: "Nordique Pro", sans-serif;\n --csw-dl-w: 200px;\n --csw-icon-truck: url("data:image/svg+xml,%3Csvg%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20viewBox%3D\'0%200%2024%2016\'%3E%3Cmask%20id%3D\'w\'%3E%3Crect%20width%3D\'24\'%20height%3D\'16\'%20fill%3D\'white\'%2F%3E%3Cpath%20d%3D\'M14%204.6v3h4.1l-2.7-3z\'%20fill%3D\'black\'%20fill-opacity%3D\'0.8\'%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D\'url(%23w)\'%3E%3Cpath%20d%3D\'M2%203h12.6c.5%200%201%20.2%201.3.6l3.2%203.6%202.4.8c.6.2%201%20.8%201%201.4V13h-1.9a2.6%202.6%200%200%200-5.2%200H8.6a2.6%202.6%200%200%200-5.2%200H1V4a1%201%200%200%201%201-1z\'%2F%3E%3Ccircle%20cx%3D\'6\'%20cy%3D\'13\'%20r%3D\'2\'%2F%3E%3Ccircle%20cx%3D\'18\'%20cy%3D\'13\'%20r%3D\'2\'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");\n --csw-icon-person: url("data:image/svg+xml,%3Csvg%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20viewBox%3D\'0%200%2024%2016\'%3E%3Ccircle%20cx%3D\'12\'%20cy%3D\'4.6\'%20r%3D\'3.6\'%2F%3E%3Cpath%20d%3D\'M4.5%2016a7.5%206%200%200%201%2015%200z\'%2F%3E%3C%2Fsvg%3E");\n --csw-icon-bin: url("data:image/svg+xml,%3Csvg%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20viewBox%3D\'0%200%2024%2024\'%20fill%3D\'none\'%20stroke%3D\'black\'%20stroke-width%3D\'1.5\'%20stroke-linecap%3D\'round\'%20stroke-linejoin%3D\'round\'%3E%3Cpath%20d%3D\'M3%206h18\'%2F%3E%3Cpath%20d%3D\'M19%206v14a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2V6\'%2F%3E%3Cpath%20d%3D\'M8%206V4a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2\'%2F%3E%3Cpath%20d%3D\'M10%2011v6\'%2F%3E%3Cpath%20d%3D\'M14%2011v6\'%2F%3E%3C%2Fsvg%3E");\n --csw-icon-basket: url("data:image/svg+xml,%3Csvg%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20viewBox%3D\'0%200%2034%2030\'%20fill%3D\'none\'%20stroke%3D\'black\'%20stroke-width%3D\'2.4\'%20stroke-linecap%3D\'round\'%20stroke-linejoin%3D\'round\'%3E%3Cpath%20d%3D\'M7%2012l5-8M21%2012l-5-8\'%2F%3E%3Cpath%20d%3D\'M2%2012h24\'%2F%3E%3Cpath%20d%3D\'M4%2012l2.4%2013.2a2%202%200%200%200%202%201.8h11.2a2%202%200%200%200%202-1.8L24%2012\'%2F%3E%3Cpath%20d%3D\'M10%2016.5v6M14%2016.5v6M18%2016.5v6\'%2F%3E%3Cpath%20d%3D\'M29%203v8M25%207h8\'%2F%3E%3C%2Fsvg%3E");\n --csw-icon-configure: url("data:image/svg+xml,%3Csvg%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20viewBox%3D\'0%200%2024%2024\'%20fill%3D\'none\'%20stroke%3D\'black\'%20stroke-width%3D\'2\'%20stroke-linecap%3D\'round\'%20stroke-linejoin%3D\'round\'%3E%3Cpath%20d%3D\'M4%206h8M16%206h4M4%2012h2M10%2012h10M4%2018h11M19%2018h1\'%2F%3E%3Ccircle%20cx%3D\'14\'%20cy%3D\'6\'%20r%3D\'2\'%2F%3E%3Ccircle%20cx%3D\'8\'%20cy%3D\'12\'%20r%3D\'2\'%2F%3E%3Ccircle%20cx%3D\'17\'%20cy%3D\'18\'%20r%3D\'2\'%2F%3E%3C%2Fsvg%3E");\n}\n\n/* ==========================================================================\n * DELIVERY CARD — shared: cart lines and the popover (band label, divider, Local / Group with dots)\n * ========================================================================== */\n.csw-delivery{--csw-dl-bg:var(--csw-surface-muted);--csw-dl-fg:var(--csw-text-muted);--csw-dl-icon:#c5ccd0;--csw-dl-rule:var(--csw-hairline);--csw-dl-glyph:var(--csw-icon-truck);display:flex;flex-direction:column;min-width:0;background:var(--csw-dl-bg);border-radius:6px;overflow:hidden}\n.csw-delivery[data-csw-tier="fast"]{--csw-dl-bg:var(--csw-green-tint);--csw-dl-fg:var(--csw-green-deep);--csw-dl-icon:var(--csw-green);--csw-dl-rule:var(--csw-green-light)}\n.csw-delivery[data-csw-tier="medium"],.csw-delivery[data-csw-tier="slow"]{--csw-dl-bg:var(--csw-orange-tint);--csw-dl-fg:var(--csw-orange-ink);--csw-dl-icon:var(--csw-orange);--csw-dl-rule:var(--csw-orange-light)}\n.csw-delivery[data-csw-tier="unknown"]{--csw-dl-fg:var(--csw-blue);--csw-dl-icon:var(--csw-text-muted);--csw-dl-glyph:var(--csw-icon-person)}\n.csw-dl-status{display:flex;flex-direction:column;align-items:stretch}\n.csw-dl-label{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:11px;font-weight:700;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--csw-dl-fg)}\n.csw-dl-label::before{content:"";flex:none;width:18px;height:12px;background-color:var(--csw-dl-icon);-webkit-mask:var(--csw-dl-glyph) center/contain no-repeat;mask:var(--csw-dl-glyph) center/contain no-repeat}\n.csw-stock-list{display:grid;grid-template-columns:6px minmax(0,1fr) auto;column-gap:8px;align-items:center;padding:0 12px 12px;font-size:12px;line-height:1.4;color:var(--csw-text-body);white-space:nowrap}\n.csw-stock-list::before{content:"";grid-column:1/-1;height:1px;margin-bottom:8px;background:var(--csw-dl-rule)}\n.csw-stock-list[hidden],.csw-delivery[data-csw-tier="unknown"] .csw-stock-list{display:none!important}\n.csw-stock-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;padding:2px 0}\n.csw-stock-row strong{justify-self:end;font-weight:600;font-variant-numeric:tabular-nums;color:var(--csw-blue)}\n.csw-dot{width:6px;height:6px;border-radius:50%}.csw-dot--in{background:var(--csw-stock-in)}.csw-dot--out{background:var(--csw-light-grey)}\n\n/* ==========================================================================\n * SITE STYLES — buttons, wherever the script runs for this audience (body.csw-on; for now the cart page only)\n * ========================================================================== */\nbody.csw-on .btn,\nbody.csw-on .btn.btn-sm,\nbody.csw-on .btn.btn-lg {\n display: inline-flex; align-items: center; justify-content: center; gap: 8px;\n width: auto; height: auto; padding: 14px 24px; border-radius: 6px;\n background: transparent; color: var(--csw-blue);\n font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: var(--csw-track-caps); text-transform: uppercase;\n text-decoration: none; cursor: pointer;\n transition: background-color 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;\n}\n/* Primary and btn-black (Checkout): blue outline; the cart totals turn Checkout orange below */\nbody.csw-on .btn.btn-primary,\nbody.csw-on .btn.btn-black { background: transparent; border: 1px solid var(--csw-blue); color: var(--csw-blue); }\nbody.csw-on .btn.btn-black i { color: var(--csw-blue); }\n/* Secondary: blue outline */\nbody.csw-on .btn.btn-default { background: transparent; border-color: var(--csw-blue); color: var(--csw-blue); }\nbody.csw-on .btn:is(.btn-primary, .btn-black, .btn-default):is(:hover, :focus) { background: var(--csw-blue); color: #fff; }\nbody.csw-on .btn.btn-black:is(:hover, :focus) i { color: #fff; }\nbody.csw-on .btn.btn-block { display: flex; width: 100%; }\nbody.csw-on .btn:is([disabled], .disabled) { opacity: 0.5; pointer-events: none; }\n\n/* ==========================================================================\n * CART DELIVERY GROUPS (body.ex-cart)\n * ========================================================================== */\n/* ================= DESKTOP GRID (base) ================= */\n.desktop table.items-list[data-csw-grid] { display: grid; column-gap: 16px; width: 100%; }\n.desktop table.items-list[data-csw-grid] > thead, .desktop table.items-list[data-csw-grid] > tbody { display: contents; }\n.desktop table.items-list[data-csw-grid] tr { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; }\n.desktop table.items-list[data-csw-grid] thead tr { order: -1; }\n.desktop table.items-list[data-csw-grid] td, .desktop table.items-list[data-csw-grid] th {\n min-width: 0;\n border-bottom: none !important; /* site\'s per-cell border breaks into fragments in a grid */\n}\n\n/* ================= DESKTOP (tuned 6-column markup) =================\n thumb | name ......... | delivery | price | [- 1 +] | total | bin\n td.name spans name + delivery; the delivery block floats into the reserved right-hand padding. */\n.desktop table.items-list[data-csw-grid][data-csw-tuned] {\n grid-template-columns:\n 102px minmax(160px, 1fr) var(--csw-dl-w) minmax(68px, max-content)\n 104px minmax(76px, max-content) 56px;\n}\n.desktop table.items-list[data-csw-grid][data-csw-tuned] > thead { display: none !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned] tbody > tr:not(.csw-band) { padding: 18px 0; border-top: 0; border-bottom: 1px solid var(--csw-hairline); background: none; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned] tbody > tr:not(.csw-band) > td { padding: 0 !important; background: none !important; text-align: left; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned] tbody > tr:not(.csw-band) > td.name { width: auto !important; /* site pins td.name to 50% */ }\n\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td { grid-row: 1; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.thumb { grid-column: 1; padding-left: 16px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.name { grid-column: 2 / 4; display: block; padding-right: calc(var(--csw-dl-w) + 16px) !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.name > .csw-delivery { float: right; width: var(--csw-dl-w); margin: 0 calc(-1 * (var(--csw-dl-w) + 16px)) 0 0; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.price { grid-column: 4; text-align: right; padding-top: 2px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.qnt-count { grid-column: 5; margin-top: -6px; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.total { grid-column: 6; text-align: right; padding-top: 2px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned]:not([data-csw-compact]) tbody > tr:not(.csw-band) > td.delete { grid-column: 7; text-align: right; padding-right: 16px !important; margin-top: -4px; }\n\n/* ============== DESKTOP COMPACT (narrow table) ==============\n [thumb] | name / code / delivery + stock\n price ............... | [- 1 +] | total | bin */\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] { grid-template-columns: 72px minmax(0, 1fr) max-content max-content max-content; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) { row-gap: 12px; padding: 14px 0; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.thumb { grid-column: 1; grid-row: 1; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.name { grid-column: 2 / -1; grid-row: 1; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.price { grid-column: 1 / 3; grid-row: 2; align-self: center; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.qnt-count { grid-column: 3; grid-row: 2; align-self: center; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.total { grid-column: 4; grid-row: 2; align-self: center; text-align: right; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.delete { grid-column: 5; grid-row: 2; align-self: center; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.thumb .thumb-wrapper { width: 72px; height: 72px; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.price::before,\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.total::before {\n display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;\n color: var(--csw-text-muted); margin-bottom: 2px;\n}\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.price::before { content: "Price"; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.total::before { content: "Total"; }\n\n/* ================= MOBILE =================\n [thumb] | name / code / delivery + stock\n PRICE £14.58 TOTAL £14.58\n [- 1 +] bin\n Own grid per row (mobile\'s tbody is a flex column so the rows\' "order" takes effect). */\n.mobile table.items-list[data-csw-grid] > tbody { display: flex; flex-direction: column; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) {\n display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 12px;\n align-items: center; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--csw-hairline);\n}\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td { min-width: 0; width: auto !important; padding: 0 !important; background: none !important; text-align: left; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td:not(.qnt-count) { border: 0 !important; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb { grid-column: 1; grid-row: 1; align-self: start; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name { grid-column: 2 / -1; grid-row: 1; align-self: start; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.price { grid-column: 1 / 3; grid-row: 2; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.total { grid-column: 3; grid-row: 2; justify-self: end; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.qnt-count { grid-column: 1 / 3; grid-row: 3; justify-self: start; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.delete { grid-column: 3; grid-row: 3; justify-self: end; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb .thumb-wrapper { width: 72px; height: 72px; }\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.price, .mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.total { display: flex; align-items: baseline; gap: 8px; }\n/* Site\'s data-title labels: back into normal flow. */\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.price::before,\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.total::before {\n position: static !important; width: auto !important; font-size: 11px; font-weight: 700;\n letter-spacing: 0.06em; text-transform: uppercase; color: var(--csw-text-muted);\n}\n/* Site\'s <767px no-more-tables rule makes .content_value inline with padding-left: inherit. */\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) td div.content_value,\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) td span.content_value { display: block; padding-left: 0 !important; margin: 0 !important; }\n\n/* EvoX\'s empty
spacer before the stepper shoves it sideways in a flex cell. */\ntable.items-list[data-csw-grid] td.qnt-count > div:empty { display: none; }\n\n/* ================= ITEM CELLS (desktop + mobile) ================= */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb .thumb-wrapper {\n position: relative; box-sizing: border-box; width: 86px; height: 86px; padding: 6px; background: #fff;\n border: 1px solid #f4f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb .thumb-wrapper::after { content: ""; position: absolute; inset: 0; background: rgba(123, 131, 132, 0.08); pointer-events: none; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb .thumb-wrapper > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.thumb img {\n display: block; max-width: 100% !important; max-height: 100%; width: auto !important; height: auto !important;\n object-fit: contain; margin: 0 !important;\n}\n\n/* Name cell: a column, so the delivery block (inserted first) can show after the name, except on wide desktop. */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name { display: flex; flex-direction: column; align-items: stretch; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name > .csw-delivery { order: 1; margin-top: 10px; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name > a.show-more-info { align-self: flex-start; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name a.bolder {\n font-size: 14px !important; font-weight: 400 !important; line-height: 1.4 !important;\n color: var(--csw-blue) !important; text-decoration: none;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name a.bolder:hover { text-decoration: underline; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--csw-text-body); }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-sku-wrapper,\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-pack-size-wrapper {\n display: inline-block !important; margin: 0 14px 0 0 !important; font-size: 12px !important; color: var(--csw-text-muted);\n}\n/* "Product Code" / "Pack Size" -> "Code" / "Pack", CSS only. */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-sku-value.item_sku{margin-left:5px}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-sku-label,\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-pack-size-label { font-size: 0 !important; font-weight: 600; color: var(--csw-text-body); }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-sku-label::before { content: "Code"; font-size: 12px; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .item-pack-size-label::before { content: "Pack"; font-size: 12px; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .add-reference { display: block !important; margin-top: 8px; font-size: 12px !important; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .ref-label { color: var(--csw-orange) !important; font-size: 12px !important; text-decoration: none; cursor: pointer; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .ref-label > i { display: none; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name .more-info .ref-label::before { content: "+ "; }\n\n/* Price: quiet. Total: the strong number. */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.price .content_value,\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.price .content_value * {\n background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;\n font-size: 14px !important; font-weight: 400 !important; color: var(--csw-text-muted) !important;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.total .content_value,\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.total .content_value * {\n background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important;\n font-size: 15px !important; font-weight: 600 !important; color: var(--csw-blue) !important;\n}\n\n/* Quantity: one outlined stepper. */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.qnt-count {\n display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; height: 34px;\n border: 1px solid var(--csw-hairline) !important; border-radius: 6px; overflow: hidden; background: #fff !important;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.qnt-count a.incr-btn {\n flex: none; display: flex !important; align-items: center; justify-content: center; width: 32px !important;\n height: 32px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;\n background: none !important; box-shadow: none !important; color: var(--csw-blue) !important; font-size: 16px !important;\n line-height: 1; text-decoration: none;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.qnt-count a.incr-btn:hover { background: var(--csw-surface-muted) !important; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.qnt-count input.quantity {\n flex: none; width: 40px !important; height: 32px !important; padding: 0 !important; margin: 0 !important;\n border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;\n text-align: center; font-size: 14px !important; font-weight: 600; color: var(--csw-blue) !important;\n}\n\n/* Remove: bin icon only; the "Remove" text stays in the DOM (font-size 0) as the link\'s accessible name. */\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.delete a.delete-btn {\n display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px;\n padding: 0 !important; border: 0 !important; border-radius: 6px; background: none !important; box-shadow: none !important;\n color: var(--csw-text-muted) !important; font-size: 0 !important; text-decoration: none;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.delete a.delete-btn > i { display: none !important; }\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.delete a.delete-btn::before {\n content: ""; width: 18px; height: 18px; background-color: currentColor;\n -webkit-mask: var(--csw-icon-bin) center / contain no-repeat; mask: var(--csw-icon-bin) center / contain no-repeat;\n}\ntable.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.delete a.delete-btn:hover { color: var(--csw-blue) !important; background: var(--csw-surface-muted) !important; }\n\n/* Search alternatives (Contact Us only). The site\'s link rules inside the cart table strip the bottom\n border, so every side is set explicitly with !important. */\ntable.items-list a.csw-alt-link {\n display: inline-block !important; align-self: flex-start; box-sizing: border-box; height: auto !important;\n min-height: 0 !important; margin: 0 12px 10px !important; padding: 5px 10px !important; background: #fff !important;\n border: 1px solid var(--csw-orange) !important; border-bottom: 1px solid var(--csw-orange) !important;\n border-radius: 6px !important; box-shadow: none !important; overflow: visible !important; color: var(--csw-orange) !important;\n font-size: 11px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: 0.06em;\n text-transform: uppercase; text-decoration: none !important;\n}\ntable.items-list a.csw-alt-link:hover,\ntable.items-list a.csw-alt-link:focus-visible { background: var(--csw-orange) !important; color: #fff !important; }\n\n/* Outside wide desktop the card sits under the name: card-sized, not the whole name column. */\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-compact] tbody > tr:not(.csw-band) > td.name > .csw-delivery,\n.mobile table.items-list[data-csw-grid] tbody > tr:not(.csw-band) > td.name > .csw-delivery { align-self: flex-start; width: 100%; max-width: 260px; }\n\n/* ================= BANDS ================= */\ntr.csw-band { margin-top: 24px; }\ntr.csw-band:first-child { margin-top: 0; }\ntr.csw-band > td { grid-column: 1 / -1; display: block; padding: 0 !important; border: 0 !important; background: none !important; }\ntr.csw-band[data-csw-tier="fast"] { --csw-band-accent: var(--csw-green); --csw-band-bg: var(--csw-green-tint); --csw-band-fg: var(--csw-green); }\ntr.csw-band[data-csw-tier="medium"],\ntr.csw-band[data-csw-tier="slow"] { --csw-band-accent: var(--csw-orange); --csw-band-bg: var(--csw-orange-tint); --csw-band-fg: var(--csw-orange-ink); }\ntr.csw-band[data-csw-tier="unknown"] { --csw-band-accent: var(--csw-blue-deep); --csw-band-bg: var(--csw-light-grey); --csw-band-fg: var(--csw-blue-deep); }\ntr.csw-band[data-csw-tier="loading"] { --csw-band-accent: #c5ccd0; --csw-band-bg: var(--csw-surface-muted); --csw-band-fg: var(--csw-text-muted); }\n.csw-band-inner {\n display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 10px 16px 10px 20px; border-radius: 4px;\n background: linear-gradient(90deg, var(--csw-band-accent) 4px, var(--csw-band-bg) 4px);\n}\n.csw-band-label {\n font-family: var(--csw-font-display); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;\n text-transform: uppercase; color: var(--csw-band-fg);\n}\n.csw-band-count { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--csw-text-muted); white-space: nowrap; }\n\n/* ================= DELIVERY OPTIONS PANEL ================= */\n.csw-delivery-options {\n margin-bottom: 16px; padding: 24px; border-radius: 10px; overflow: hidden; background-color: #3a5545;\n background-image: linear-gradient(rgba(67, 95, 78, 0.68), rgba(67, 95, 78, 0.68)), url("https://eu.evocdn.io/dealer/1655/content/media/My_Theme/complete-delivery-bg.png"); background-size: cover; background-position: center;\n color: #fff; font-size: 13px; line-height: 1.5; text-align: left;\n}\n.csw-dopt-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }\n.csw-dopt-title {\n font-family: var(--csw-font-title, inherit); font-size: 2.25rem; font-weight: 700; line-height: 1;\n letter-spacing: -0.03em; text-transform: lowercase; color: #fff;\n}\n.csw-dopt-title em { font-style: normal; color: var(--csw-orange); }\n.csw-dopt-copy { margin: 12px 0 18px; font-size: 13px; line-height: 1.55; color: #fff; }\n.csw-dopt-list { display: flex; flex-direction: column; gap: 10px; }\n/* Not a native : something on this page scoped to radio inputs swallowed clicks. */\n.csw-delivery-radio {\n display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.5);\n border-radius: 8px; background: transparent; color: #fff; cursor: pointer; pointer-events: auto;\n transition: background-color 0.15s, color 0.15s;\n}\n.csw-delivery-radio:hover { background: rgba(255, 255, 255, 0.08); }\n.csw-delivery-radio.csw-checked { background: #fff; border-color: #fff; color: var(--csw-blue); }\n.csw-delivery-radio:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }\n.csw-radio-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: #fff; }\n.csw-delivery-radio.csw-checked .csw-radio-dot { background: var(--csw-orange); }\n.csw-radio-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.csw-radio-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; }\n.csw-radio-badge {\n padding: 3px 6px; border-radius: 4px; background: var(--csw-orange); color: #fff; font-size: 10px; font-weight: 700;\n line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase;\n}\n.csw-radio-lines { display: flex; flex-direction: column; font-size: 13px; line-height: 1.45; }\n.csw-dopt-footer { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.4); font-size: 12px; line-height: 1.5; color: #fff; }\n.csw-dopt-footer[hidden] { display: none; }\n.csw-delivery-options.csw-is-busy .csw-delivery-radio { cursor: progress; }\n\n/* ================= COMPLETE ORDER DELIVERY LINE =================\n Marker line only: picture + name, pinned above every band. Keyed off the item_ class Vue renders.\n The delete cell stays in the DOM, just hidden, so the radio can still trigger its Remove button. */\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] { order: -1 !important; }\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] > td:not(.thumb):not(.name),\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] :is(.gift-element, .show-more-info, .more-info, .loader_item, .csw-delivery) { display: none !important; }\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] a { pointer-events: none; cursor: default; }\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] {\n background: var(--csw-green-tint); border: 1px solid #cdead4 !important; border-radius: 8px;\n padding: 14px 0 !important; margin: 0 0 24px;\n}\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] > td.name { align-self: center; padding-right: 0 !important; }\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] > td.name::before {\n content: "Consolidated delivery"; display: block; width: fit-content; margin-bottom: 6px; padding: 2px 9px;\n border-radius: 999px; background: var(--csw-green); color: #fff; font-size: 10.5px; font-weight: 700;\n letter-spacing: 0.05em; text-transform: uppercase;\n}\nbody.ex-cart.csw-on table.items-list tr.item_148061607[class] > td.name::after {\n content: "Everything arrives together in one delivery once all items are ready, and we\\2019ll plant a tree on your behalf.";\n display: block; max-width: 62ch; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--csw-text-body);\n}\n/* "Free" tag on the right. Grid-only: in a real table row ::after would become a stray cell. */\ntable.items-list[data-csw-grid] tr.item_148061607[class]::after {\n content: "Free"; grid-row: 1; justify-self: end; align-self: center; padding: 4px 11px; border: 1px solid #cdead4;\n border-radius: 999px; background: #fff; color: var(--csw-green); font-size: 12px; font-weight: 700;\n letter-spacing: 0.05em; text-transform: uppercase;\n}\n.desktop table.items-list[data-csw-grid][data-csw-tuned] tbody > tr.item_148061607[class] > td.name { grid-column: 2 / -3 !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned] tbody > tr.item_148061607[class]::after { grid-column: -3 / -1; margin-right: 16px; }\n.mobile table.items-list[data-csw-grid] tbody > tr.item_148061607[class] > td.name { grid-column: 2 / -2 !important; }\n.mobile table.items-list[data-csw-grid] tbody > tr.item_148061607[class]::after { grid-column: -2 / -1; margin-right: 12px; }\n\n/* ============ CONSOLIDATED DELIVERY BOX (marker line + dated bands, when "together" is chosen) ============\n One frame round the marker line, the dated bands and their lines; Contact Us follows outside it. Vue owns the\n rows, so they can\'t be wrapped: each row draws its part of the frame (sides; "first" the top, "last" the bottom)\n and keeps a 12 px inset inside it. After the marker-line rules on purpose: same specificity, so these win. */\nbody.ex-cart.csw-on { --csw-frame: #465f4e; --csw-frame-gap: 12px; }\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr[data-csw-consol] {\n margin: 0 !important;\n padding-left: var(--csw-frame-gap) !important;\n padding-right: var(--csw-frame-gap) !important;\n border: 0 !important;\n border-left: 3px solid var(--csw-frame) !important;\n border-right: 3px solid var(--csw-frame) !important;\n border-radius: 0 !important;\n}\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr[data-csw-consol="first"] {\n border-top: 3px solid var(--csw-frame) !important;\n border-radius: 8px 8px 0 0 !important;\n}\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr[data-csw-consol="last"] {\n border-bottom: 3px solid var(--csw-frame) !important;\n border-radius: 0 0 8px 8px !important;\n}\n/* The hairline between lines stops at the inset, like the content */\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr[data-csw-consol="mid"]:not(.csw-band) {\n background: linear-gradient(var(--csw-hairline), var(--csw-hairline)) center bottom / calc(100% - 2 * var(--csw-frame-gap)) 1px no-repeat !important;\n}\n/* Band headers inside: 12 px gap above, accent bar on the left; "fast" in the frame colour */\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr.csw-band[data-csw-consol] { padding-top: var(--csw-frame-gap) !important; /*! border-top: 0 !important; */}\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr.csw-band[data-csw-consol][data-csw-tier="fast"] {\n --csw-band-accent: var(--csw-frame); --csw-band-fg: var(--csw-frame);\n}\n/* The marker line: its own tinted box inside the frame (a ::before behind the cells, so the row can keep the frame) */\nbody.ex-cart.csw-on table.items-list[data-csw-consol-on] tr.item_148061607[data-csw-consol] {\n padding-top: calc(var(--csw-frame-gap) + 14px) !important;\n padding-bottom: 14px !important;\n background: none !important;\n}\ntable.items-list[data-csw-grid][data-csw-consol-on] tr.item_148061607[data-csw-consol]::before {\n content: ""; grid-column: 1 / -1; grid-row: 1; align-self: stretch; margin: -14px 0;\n border-radius: 6px; background: var(--csw-green-tint);\n}\n/* Desktop rows share the table\'s columns, so the inset comes out of the first and last ones: tighter cell padding there */\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-consol-on]:not([data-csw-compact]) tbody > tr[data-csw-consol]:not(.csw-band) > td.thumb { padding-left: 2px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-consol-on]:not([data-csw-compact]) tbody > tr[data-csw-consol]:not(.csw-band) > td.delete { padding-right: 2px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-consol-on]:not([data-csw-compact]) tbody > tr.item_148061607[data-csw-consol] > td.thumb { padding-left: 12px !important; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-consol-on]:not([data-csw-compact]) tbody > tr.item_148061607[data-csw-consol] > td.thumb .thumb-wrapper { width: 74px; height: 74px; }\n.desktop table.items-list[data-csw-grid][data-csw-tuned][data-csw-consol-on][data-csw-compact] tbody > tr[data-csw-consol]:not(.csw-band) > td.thumb .thumb-wrapper { width: 58px; height: 58px; }\n/* Mobile: thumb off the box edge; the Free tag drops under the text so the text keeps its width */\n.mobile table.items-list[data-csw-grid][data-csw-consol-on] tbody > tr.item_148061607[data-csw-consol] > td.thumb { margin-left: 12px; }\n.mobile table.items-list[data-csw-grid][data-csw-consol-on] tbody > tr.item_148061607[data-csw-consol] > td.name { grid-column: 2 / -1 !important; padding-right: 12px !important; }\n.mobile table.items-list[data-csw-grid][data-csw-consol-on] tbody > tr.item_148061607[data-csw-consol]::after { grid-column: 2 / -1; grid-row: 2; justify-self: start; margin: 0; }\n.mobile table.items-list[data-csw-grid][data-csw-consol-on] tbody > tr.item_148061607[data-csw-consol]::before { grid-row: 1 / span 2; }\n\n/* ================= BUSY (adding/removing the marker line) ================= */\n.shopping-cart[data-csw-busy] { opacity: 0.55; transition: opacity 0.15s; }\n/* Progress card in , outside the dimmed/inert cart. Desktop: sticky inside the cart\'s area.\n Mobile: fixed to the middle of the screen. */\n.csw-busy-overlay { position: absolute; z-index: 1000; pointer-events: none; }\n.csw-busy-card {\n position: sticky; top: calc(50vh - 40px); width: max-content; max-width: calc(100% - 32px); margin: 40px auto 0;\n display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: #fff; border: 1px solid #cdead4;\n border-radius: 10px; box-shadow: 0 8px 28px rgba(31, 58, 40, 0.16); color: var(--csw-blue); font-size: 14px; line-height: 1.4;\n}\n.csw-busy-title { font-weight: 700; }\n.csw-busy-sub { font-size: 12.5px; color: var(--csw-text-muted); }\n.csw-spinner {\n flex: none; width: 26px; height: 26px; box-sizing: border-box; border: 3px solid var(--csw-green-tint);\n border-top-color: var(--csw-green); border-radius: 50%; animation: csw-spin 0.8s linear infinite;\n}\n@keyframes csw-spin { to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) {\n .csw-spinner { animation-duration: 2.4s; }\n .csw-delivery-radio { transition: none; }\n}\n@media (max-width: 768px) {\n .csw-busy-card { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }\n}\n\na.to-checkout.csw-checkout-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }\nbody.ex-cart.csw-on .shopping-cart .cart-resume { float: unset; }\n\n/* ==========================================================================\n * SEARCH ALTERNATIVES POPOVER (body.ex-cart) — anchored on desktop, a bottom sheet under 768 px\n * ========================================================================== */\n.csw-alt-pop{display:none;position:fixed;margin:0;inset:auto;z-index:100000;box-sizing:border-box;background:#fff;color:#2b2e33;border:1px solid #e4e6ea;border-radius:10px;box-shadow:0 14px 36px rgba(20,30,50,.18);padding:0;max-height:min(560px,calc(100vh - 24px));overflow:auto;font-size:14px;line-height:1.45;text-align:left}\n.csw-alt-pop:popover-open{display:block}\n.csw-alt-pop *{box-sizing:border-box}\n.csw-alt-pop [hidden]{display:none!important}\n.csw-alt-pop.is-sheet{left:0!important;right:0;top:auto!important;bottom:0;width:100%!important;max-height:80vh;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}\n.csw-alt-h{display:flex;align-items:center;gap:8px;padding:10px 10px 10px 14px;border-bottom:1px solid #e4e6ea;position:sticky;top:0;background:#fff;z-index:1}\n.csw-alt-h span{font-size:12.5px;color:#8b9098;margin-right:auto}.csw-alt-h b{color:#2b2e33;font-weight:600}\n.csw-alt-x{border:0;background:transparent;width:32px;height:32px;border-radius:6px;display:grid;place-items:center;color:#8b9098;cursor:pointer;padding:0;flex:none}\n.csw-alt-x:hover{background:#f4f5f7;color:#2b2e33}.csw-alt-x svg{width:14px;height:14px}\n.csw-alt-b{padding:0 14px}\n.csw-alt-steps{list-style:none;margin:0;padding:14px 0;display:flex;flex-direction:column;gap:9px}\n.csw-alt-step{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:13px;color:#8b9098;margin:0;padding:0}\n.csw-alt-bar{flex-basis:100%;height:4px;margin:-3px 0 0 27px;background:#eceef1;border-radius:2px;overflow:hidden;display:none}\n.csw-alt-step.is-active .csw-alt-bar,.csw-alt-step.is-done .csw-alt-bar{display:block}\n.csw-alt-bar i{display:block;height:100%;width:0;border-radius:2px;background:#ef7d1d;transition:width .5s ease}\n.csw-alt-step.is-active .csw-alt-bar i{background:repeating-linear-gradient(45deg,#ef7d1d 0 8px,#f5a05a 8px 16px);background-size:23px 100%;animation:csw-alt-stripes 1s linear infinite}\n.csw-alt-step.is-done .csw-alt-bar i{background:#4ea35a}\n@keyframes csw-alt-stripes{to{background-position:23px 0}}\n.csw-alt-ind{width:18px;height:18px;border-radius:50%;border:2px solid #e4e6ea;display:grid;place-items:center;flex:none}\n.csw-alt-ind svg{width:10px;height:10px;display:none}\n.csw-alt-step.is-active{color:#2b2e33}.csw-alt-step.is-active .csw-alt-ind{border-color:#ef7d1d;border-right-color:transparent;animation:csw-alt-spin .8s linear infinite}\n.csw-alt-step.is-done{color:#2b2e33}.csw-alt-step.is-done .csw-alt-ind{border-color:#4ea35a;background:#4ea35a;animation:none}.csw-alt-step.is-done .csw-alt-ind svg{display:block;color:#fff}\n.csw-alt-row{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid #e4e6ea}\n.csw-alt-list>.csw-alt-row:first-child{border-top:0}\n.csw-alt-top{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:start}\n.csw-alt-thumb{width:48px;height:48px;border-radius:6px;background:#f4f5f7;display:grid;place-items:center;overflow:hidden}\n.csw-alt-thumb img{width:100%;height:100%;object-fit:contain;display:block}\n.csw-alt-title{color:#2f3b70;font-size:13px;line-height:1.3;font-weight:500;margin:0 0 2px;text-decoration:none;display:block}\na.csw-alt-title:hover{text-decoration:underline}\n.csw-alt-code{color:#8b9098;font-size:11.5px;letter-spacing:.02em}\n.csw-alt-price{color:#ef7d1d;font-weight:700;font-size:16px;white-space:nowrap}\n.csw-alt-bot{display:flex;align-items:stretch;gap:6px}\n.csw-alt-card{flex:1;min-width:0;display:flex}\n.csw-alt-buy{display:flex;gap:6px}\n.csw-alt-qty{display:grid;grid-template-columns:22px 1fr 22px;align-items:center;height:36px;width:70px;border:1px solid #e4e6ea;border-radius:6px;background:#fff;overflow:hidden}\n.csw-alt-qty button{border:0;background:transparent;height:100%;padding:0;margin:0;color:#2f3b70;font-size:15px;line-height:1;cursor:pointer}\n.csw-alt-qty input{width:100%;min-width:0;height:100%;border:0;margin:0;padding:0;text-align:center;background:transparent;font-weight:600;font-size:13px;color:#2b2e33;-moz-appearance:textfield}\n.csw-alt-qty input::-webkit-outer-spin-button,.csw-alt-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n.csw-alt-add{width:44px;height:36px;flex:none;border:0;border-radius:6px;background:#ef7d1d;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;margin:0;transition:background .15s}\n.csw-alt-add:hover{background:#d86c10}.csw-alt-add svg{width:22px;height:20px}\n.csw-alt-add-lbl{display:none}\n.csw-alt-swap{flex:1;min-width:84px;height:36px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:0;border-radius:6px;background:#ef7d1d;color:#fff;font:inherit;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}\n.csw-alt-swap:hover{background:#d86c10}.csw-alt-swap svg{width:18px;height:18px;flex:none}\n.csw-alt-swap.is-done{background:#4ea35a}.csw-alt-swap.is-error{background:#c0392b}.csw-alt-swap:disabled{opacity:.6;cursor:not-allowed}\n.csw-alt-buy .csw-alt-add--secondary{flex:none;width:44px;background:#fff;color:#ef7d1d;border:1px solid #ef7d1d}\n.csw-alt-buy .csw-alt-add--secondary:hover{background:#ef7d1d;color:#fff}\n.csw-alt-buy .csw-alt-add--secondary .csw-alt-add-lbl{display:none}\n.csw-alt-note{margin:0;padding:8px 10px;border-radius:6px;background:#fcefe3;color:#b5570f;font-size:12px;line-height:1.4}\n@media (min-width:1024px){\n .csw-alt-pop:not(.is-sheet){max-height:min(700px,calc(100vh - 24px))}\n .csw-alt-h{padding-left:20px}.csw-alt-b{padding:0 20px}\n .csw-alt-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0} /* space below too: the next line\'s border never touches the cards */\n .csw-alt-list:empty{padding:0}\n .csw-alt-row,.csw-alt-list>.csw-alt-row:first-child{gap:10px;padding:12px;border:1px solid #e4e6ea;border-radius:8px}\n .csw-alt-title{font-size:12.5px}\n .csw-alt-bot{flex-wrap:wrap}\n .csw-alt-card{flex-basis:100%}\n .csw-alt-buy{flex:1}\n .csw-alt-add{flex:1;width:auto;display:flex;align-items:center;justify-content:center;gap:8px}\n .csw-alt-add svg{width:20px;height:18px}\n .csw-alt-add-lbl{display:inline;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}\n .csw-alt-more{margin-top:0}\n}\n/* The delivery card itself comes from the core styles; in the popover it\'s a slim strip */\n.csw-alt-pop .csw-delivery--strip{flex:1;flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:2px;min-height:36px;padding:5px 10px;box-sizing:border-box}\n.csw-alt-pop .csw-delivery--strip .csw-dl-label{padding:0;gap:7px;font-size:10.5px;letter-spacing:.07em;white-space:nowrap}\n.csw-alt-pop .csw-delivery--strip .csw-stock-list{display:flex;align-items:center;gap:10px;padding:0;font-size:11.5px}\n.csw-alt-pop .csw-delivery--strip .csw-stock-list::before{width:1px;height:16px;margin:0}\n.csw-alt-pop .csw-delivery--strip .csw-stock-row{display:flex;align-items:center;gap:5px;padding:0}\n.csw-alt-add.is-done{background:#4ea35a}.csw-alt-add.is-error{background:#c0392b}\n.csw-alt-add:disabled{background:#c9cdd2;cursor:not-allowed}\n.csw-alt-more{width:100%;height:36px;margin:4px 0 10px;border:1px solid #ef7d1d;border-radius:6px;background:#fff;color:#ef7d1d;font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;font-family:inherit}\n.csw-alt-more:hover{background:#ef7d1d;color:#fff}.csw-alt-more:disabled{color:#8b9098;border-color:#e4e6ea;cursor:progress}\n.csw-alt-foot{font-size:12px;color:#8b9098;padding:10px 0 12px;border-top:1px solid #e4e6ea;display:flex;align-items:center;gap:8px}\n.csw-alt-empty{font-size:13px;color:#2b2e33;padding:18px 0 14px;margin:0}\n.csw-alt-cat{margin:0;padding:10px 0 12px;border-top:1px solid #e4e6ea;font-size:12.5px;color:#4b5661}\n.csw-alt-cat a{color:#ef7d1d;font-weight:600;text-decoration:none}.csw-alt-cat a:hover{text-decoration:underline}\n.csw-alt-cat.is-cta{border-top:0;padding:0 0 16px}\n.csw-alt-cat .csw-alt-cat-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:6px 14px;box-sizing:border-box;border:1px solid #ef7d1d;border-radius:6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;text-align:center}\n.csw-alt-cat .csw-alt-cat-btn:hover{background:#ef7d1d;color:#fff;text-decoration:none}\n.csw-alt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n.csw-alt-spin{width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:csw-alt-spin .7s linear infinite;flex:none}\n.csw-alt-pop :focus-visible{outline:2px solid #ef7d1d;outline-offset:2px}\n@keyframes csw-alt-spin{to{transform:rotate(360deg)}}\n@media (prefers-reduced-motion:reduce){.csw-alt-pop *{animation-duration:.001s!important}}\n\n/* ==========================================================================\n * PRODUCT-GRID TILES (.csw-tile, added by the script on PAGES.gridTiles)\n * name\n * £21.99 ..................... COPYA4NOR\n * ┌ delivery card ┐ [ − 1 + ]\n * │ │ [ basket ]\n * The store\'s input, Add button and addcart() stay where they are; this lays them out.\n * ========================================================================== */\n.csw-tile.tileparent {\n border-top: 0;\n}\n.csw-tile .tile {\n padding: 0;\n border: 1px solid #eee !important;\n border-radius: 10px;\n overflow: hidden;\n}\n.csw-tile .tile .footer {\n padding: 0 15px 15px;\n}\n\n/* Badges: one tab shape for every ribbon, stacked in the image\'s top-left corner (grid tiles and the product page).\n * The store\'s ribbon colours (inline background/colour on .ribbon) are kept; its folded ends are hidden. */\n.csw-tile .tile { position: relative; }\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n z-index: 2;\n display: flex !important;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n width: auto !important;\n height: auto !important;\n margin: 0 !important;\n padding: 0 !important;\n}\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper .ribbon-wrapper {\n position: static !important;\n display: block !important;\n width: auto !important;\n height: auto !important;\n margin: 0 !important;\n padding: 0 !important;\n transform: none !important;\n}\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper :is(.ribbon-side, .ribbon-tips) { display: none !important; }\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper .ribbon {\n position: static !important;\n display: flex !important;\n align-items: center;\n width: auto !important;\n max-width: 100%;\n height: 36px !important;\n margin: 0 !important;\n padding: 0 16px 0 14px !important;\n border: 0 !important;\n border-radius: 10px 0 10px 0 !important;\n box-shadow: none !important;\n transform: none !important;\n font-size: 13px !important;\n font-weight: 700 !important;\n line-height: 1 !important;\n letter-spacing: -0.01em;\n text-transform: none;\n white-space: nowrap;\n}\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper .ribbon span {\n position: static !important;\n display: inline !important;\n padding: 0 !important;\n font: inherit !important;\n color: inherit !important;\n}\n/* image badges (e.g. eco aware, if it\'s a picture): same height and corners */\n:is(.csw-tile, body.ex-product.csw-pdp .productimage_container) .badges-wrapper img {\n display: block;\n width: auto !important;\n height: 36px !important;\n border-radius: 14px 0 14px 0;\n}\n.csw-tile .footer-wrapper,\n.csw-tile .footer-wrapper-description,\n.csw-tile .buttons.group { height: auto !important; }\n.csw-tile :is(.brand-label, .indicators-grid, .product-category, .product-points, .uom, .multiple-uom, .multiple-uom-label,\n .price-label-inc-vat, .product-sku, .product-stock-wrap, .live-inventory-v2-wrapper, .addtoquicklist-wrapper,\n .product-compare-action) { display: none !important; }\n.csw-tile .product-name a { color: var(--csw-blue); font-size: 14px; font-weight: 400; line-height: 1.4; text-decoration: none; }\n.csw-tile .product-name a:hover { text-decoration: underline; }\n\n/* price on the left, product code on the right */\n.csw-tile .footer-wrapper-price {\n display: flex !important;\n align-items: baseline;\n justify-content: space-between;\n width: 100%;\n}\n.csw-tile .footer-wrapper-price .price-label { float: none !important; width: auto !important; margin: 0 !important; font-size: 20px; font-weight: 700; color: var(--csw-orange); }\n.csw-tile-code { margin-left: auto; font-size: 11px; color: var(--csw-text-muted); letter-spacing: 0.02em; white-space: nowrap; }\n\n/* card on the left (both rows); stepper, then the Add button, on the right */\n.csw-tile .buttons.group {\n display: grid !important;\n grid-template-columns: minmax(0, 1fr) 28px minmax(28px, 40px) 28px;\n grid-template-rows: 36px minmax(44px, auto);\n align-items: stretch;\n padding: 12px 0 0;\n border-top: 1px solid var(--csw-hairline);\n text-align: left !important;\n margin-top: 0;\n}\n.csw-tile .buttons.group > .csw-delivery { grid-column: 1; grid-row: 1 / 3; margin-right: 10px; }\n.csw-tile .buttons.group > :is(script, .addtoquicklist-wrapper) { display: none !important; }\n.csw-tile .buttons.group > .csw-tile-step--dec { grid-column: 2; grid-row: 1; }\n.csw-tile .buttons.group > :is(.qty-list, .inputquantity) {\n grid-column: 3; grid-row: 1; width: 100% !important; height: 36px !important; min-width: 0; margin: 0 !important; padding: 0 !important;\n border: 1px solid var(--csw-hairline) !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important;\n box-shadow: none !important; background: #fff !important; text-align: center; font-size: 14px; font-weight: 600; color: var(--csw-blue);\n}\n.csw-tile .buttons.group > .csw-tile-step--inc { grid-column: 4; grid-row: 1; }\n.csw-tile-step {\n display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; background: #fff;\n border: 1px solid var(--csw-hairline); color: var(--csw-blue); font-size: 16px; line-height: 1; cursor: pointer;\n}\n.csw-tile-step--dec { border-right: 0; border-radius: 6px 0 0 0; }\n.csw-tile-step--inc { border-left: 0; border-radius: 0 6px 0 0; }\n.csw-tile-step:hover { background: var(--csw-surface-muted); }\n/* The store\'s Add button fills the column under the stepper, whatever widths the theme gives it or its wrapper */\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper {\n grid-column: 2 / 5; grid-row: 2; position: relative; display: flex !important;\n width: auto !important; max-width: none !important; min-width: 0 !important; float: none !important; margin: 0 !important; padding: 0 !important;\n}\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart {\n flex: 1 1 auto !important; display: block !important; float: none !important; width: 100% !important; max-width: none !important;\n height: auto !important; min-height: 44px; margin: 0 !important; padding: 0 !important;\n border: 0 !important; border-radius: 0 0 6px 6px !important; background: var(--csw-orange) !important; box-shadow: none !important;\n font-size: 0 !important; line-height: 0 !important; color: transparent !important; /* the store\'s text stays: accessible name, Adding/Added states */\n}\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart::before,\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart::after,\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart > i { display: none !important; } /* the theme\'s own icons */\n/* the basket icon sits on the wrapper, over the button, so theme button rules can\'t hide it; clicks pass through */\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper::after {\n content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 22px; background-color: #fff; pointer-events: none;\n -webkit-mask: var(--csw-icon-basket) center / contain no-repeat; mask: var(--csw-icon-basket) center / contain no-repeat;\n}\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart:hover { background: #d86c10 !important; }\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart:is(:disabled, .disabled) { opacity: 1; cursor: progress; }\n/* still waiting for prices and stock (disabled, not adding): the basket icon stays, faded */\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper[data-csw-wait] { opacity: 0.55; }\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper[data-csw-wait] .btn-add-to-cart { cursor: not-allowed; }\n/* The store\'s own states ("Adding" with a spinner, "Added"): the script marks the wrapper data-csw-state while the\n button isn\'t at rest; the store\'s text and icon show instead of the basket */\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper[data-csw-state]::after { display: none; }\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper[data-csw-state] .btn-add-to-cart {\n display: flex !important; align-items: center; justify-content: center; gap: 6px;\n font-size: 12px !important; line-height: 1.2 !important; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;\n color: #fff !important;\n}\n.csw-tile .buttons.group > .live-inventory-v2-add-to-cart-wrapper[data-csw-state] .btn-add-to-cart > i { display: inline-block !important; }\n\n/* Contact us: the Search alternatives button inside the card */\n/* Configurable products: the store\'s Configure button where the stepper and basket go (it opens the product page) */\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master {\n grid-column: 2 / 5 !important; grid-row: 1 / 3 !important; display: flex !important; box-sizing: border-box;\n max-width: none !important; min-width: 0 !important; text-indent: 0 !important; overflow: hidden; align-items: center; justify-content: center;\n width: 100% !important; height: auto !important; min-height: 80px; margin: 0 !important; padding: 0 8px !important; float: none !important;\n border: 0 !important; border-radius: 6px !important; background: var(--csw-orange) !important; box-shadow: none !important;\n color: #fff !important; font-size: 11px !important; font-weight: 700; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; white-space: normal;\n}\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master > span { color: inherit !important; font: inherit !important; }\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master:hover { background: #d86c10 !important; }\n/* no lead time on a configurable product: no card, the button takes the row */\n.csw-tile[data-csw-mode="configure"][data-csw-card="0"] .buttons.group > .btn-list.is-master { grid-column: 1 / -1 !important; min-height: 44px; }\n/* Call for price (no quantity box, no basket): the store\'s notice in their place */\n.csw-tile[data-csw-mode="other"] .buttons.group > .price-call {\n grid-column: 2 / 5 !important; grid-row: 1 / 3 !important; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;\n box-sizing: border-box; width: auto !important; min-width: 0; overflow: hidden; float: none !important;\n margin: 0 !important; padding: 6px !important; border: 1px solid var(--csw-hairline) !important; border-radius: 6px; background: #fff !important;\n color: var(--csw-blue) !important; font-size: 11px !important; font-weight: 700; line-height: 1.25 !important; letter-spacing: 0.04em;\n text-align: center; text-transform: uppercase; white-space: normal !important;\n}\n.csw-tile[data-csw-mode="other"] .buttons.group > .price-call :is(span, i) { font-size: inherit !important; line-height: inherit !important; color: inherit !important; }\n\n/* ---------- Slim tiles: nothing under the lead time, or no card ([data-csw-slim="1"]) ----------\n configurable: [ 3-5 DAYS ............ ][ CONFIGURE ] (no card: [ CONFIGURE ] across)\n buyable: [ 3-5 DAYS ................................ ]\n [ − 1 + ][ basket ] */\n.csw-tile .buttons.group > .csw-delivery.csw-delivery--strip {\n flex-direction: row; align-items: center; height: 36px; min-height: 0; padding: 0 10px; box-sizing: border-box; margin-right: 0;\n}\n.csw-tile .buttons.group > .csw-delivery--strip .csw-dl-status { flex-direction: row; }\n.csw-tile .buttons.group > .csw-delivery--strip .csw-dl-label { padding: 0; gap: 7px; white-space: nowrap; }\n\n.csw-tile[data-csw-mode="configure"][data-csw-slim="1"] .buttons.group {\n grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 36px; column-gap: 6px; row-gap: 0; /* the button takes what its label needs */\n}\n.csw-tile[data-csw-mode="configure"][data-csw-slim="1"] .buttons.group > .csw-delivery { grid-column: 1; grid-row: 1; }\n.csw-tile[data-csw-mode="configure"][data-csw-slim="1"] .buttons.group > .btn-list.is-master {\n grid-column: 2 !important; grid-row: 1 !important; height: 36px !important; min-height: 0; text-align: center !important;\n padding: 0 16px !important; white-space: nowrap !important;\n}\n.csw-tile[data-csw-mode="configure"][data-csw-slim="1"] .buttons.group > .csw-delivery--strip .csw-dl-label { overflow: hidden; text-overflow: ellipsis; }\n.csw-tile[data-csw-mode="configure"][data-csw-slim="1"][data-csw-card="0"] .buttons.group > .btn-list.is-master { grid-column: 1 / -1 !important; }\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master {\n justify-content: center !important; gap: 8px; text-align: center !important; line-height: 1 !important;\n}\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master > span {\n display: inline !important; flex: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;\n float: none !important; text-align: center !important;\n}\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master::before {\n content: ""; flex: none; width: 16px; height: 16px; background-color: currentColor;\n -webkit-mask: var(--csw-icon-configure) center / contain no-repeat; mask: var(--csw-icon-configure) center / contain no-repeat;\n}\n.csw-tile[data-csw-mode="configure"] .buttons.group > .btn-list.is-master > i { display: none !important; }\n\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group {\n grid-template-columns: 28px minmax(28px, 1fr) 28px 72px; grid-template-rows: 36px 36px; column-gap: 0; row-gap: 6px;\n}\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > .csw-delivery { grid-column: 1 / -1; grid-row: 1; }\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > .csw-tile-step--dec { grid-column: 1; grid-row: 2; border-radius: 6px 0 0 6px; }\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > :is(.qty-list, .inputquantity) { grid-column: 2; grid-row: 2; }\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > .csw-tile-step--inc { grid-column: 3; grid-row: 2; border-radius: 0 6px 6px 0; }\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > .live-inventory-v2-add-to-cart-wrapper { grid-column: 4; grid-row: 2; margin-left: 6px !important; }\n.csw-tile[data-csw-mode="buy"][data-csw-slim="1"] .buttons.group > .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart { min-height: 36px; border-radius: 6px !important; }\n\n:is(.csw-tile, .csw-pdp-buy) .csw-delivery a.csw-alt-link {\n display: block;\n margin: 0 10px 10px;\n padding: 5px 8px;\n border: 1px solid var(--csw-orange);\n border-radius: 6px;\n background: #fff;\n color: var(--csw-orange);\n font-size: 11px;\n font-weight: 700;\n line-height: 1.25;\n letter-spacing: 0.06em;\n text-align: center;\n text-transform: uppercase;\n text-decoration: none;\n white-space: wrap;\n}\n:is(.csw-tile, .csw-pdp-buy) .csw-delivery a.csw-alt-link:hover,\n:is(.csw-tile, .csw-pdp-buy) .csw-delivery a.csw-alt-link:focus-visible { background: var(--csw-orange); color: #fff; }\n/* 0 stock with a known lead time: a full-width Search alternatives button under the card and the basket */\n.csw-tile .buttons.group > a.csw-alt-link.csw-alt-link--below {\n grid-column: 1 / -1; grid-row: 3; display: flex !important; align-items: center; justify-content: center;\n height: 36px; margin: 8px 0 0 !important; padding: 0 10px !important; box-sizing: border-box;\n border: 1px solid var(--csw-orange) !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important;\n color: var(--csw-orange) !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1 !important;\n letter-spacing: 0.06em !important; text-transform: uppercase; text-decoration: none !important; white-space: nowrap;\n}\n.csw-tile .buttons.group > a.csw-alt-link.csw-alt-link--below:hover,\n.csw-tile .buttons.group > a.csw-alt-link.csw-alt-link--below:focus-visible { background: var(--csw-orange) !important; color: #fff !important; }\n\n/* ==========================================================================\n * PRODUCT PAGE (body.ex-product) — the store\'s own markup, laid out like the PDP mockup:\n * breadcrumb\n * [ image ][ title, code, category, points ][ buy box ] ≥1200 px\n * [ image ][ title … / buy box under it ] 768–1199 px\n * one column <768 px\n * [ description ][ specifications ]\n * The store\'s columns (col-lg-10 > row > image + summary, col-lg-2 filter-container) are flattened into one grid with\n * display: contents; nothing is moved.\n *\n * The main image comes two ways, both in the same square frame (.main-image):\n * one picture .main-image > .row > .col-md-12 > .magnify > img.productimagesolo — centred\n * gallery .main-image > .prod-gal (MasterSlider: slides + .ms-thumb-list) — with 2+ slides the thumbnails\n * sit over the frame\'s bottom-left and the picture keeps clear of them; a 1-slide gallery looks like\n * one picture. MasterSlider still sizes its own view and slides; only the pictures inside are fitted.\n * Pictures are fitted with max-width / max-height (container units), never stretched, so jQuery Magnify\'s lens\n * (which works on the box) still lines up.\n * ========================================================================== */\nbody.ex-product.csw-pdp {\n --csw-icon-zoom: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2711%27%20cy=%2711%27%20r=%277%27/%3E%3Cpath%20d=%27m21%2021-4.3-4.3M11%208v6M8%2011h6%27/%3E%3C/svg%3E");\n --csw-icon-check-white: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27white%27%20stroke-width=%273.2%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%2012.5l4%204L18%208%27/%3E%3C/svg%3E");\n --csw-pdp-shadow: 0 2px 8px rgba(27, 66, 87, 0.14);\n}\n\n/* ---------- Layout ---------- */\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-areas: "bc" "pre" "img" "info" "buy" "post";\n margin: 0;\n}\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row::before,\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row::after,\nbody.ex-product.csw-pdp .mainproductpagedesktop > .details-wrap > .row::before,\nbody.ex-product.csw-pdp .mainproductpagedesktop > .details-wrap > .row::after { display: none; }\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .col-lg-10,\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .col-lg-10 > .row:has(> .productimage_container) { display: contents; }\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > :is(.row-breadcrumb, .filter-container),\nbody.ex-product.csw-pdp :is(.productimage_container, .productsummary_container) {\n float: none; width: auto; min-width: 0; padding: 0;\n}\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .row-breadcrumb { grid-area: bc; }\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .col-lg-10 > .row:has(~ .row > .productimage_container) { grid-area: pre; margin: 0; }\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .col-lg-10 > .row:has(> .productimage_container) ~ .row { grid-area: post; margin: 0; }\nbody.ex-product.csw-pdp .productimage_container { grid-area: img; align-self: start; width: 100%; max-width: 460px; }\nbody.ex-product.csw-pdp .productsummary_container { grid-area: info; margin-top: 24px; }\nbody.ex-product.csw-pdp .mainproductpagedesktop > .row > .filter-container { grid-area: buy; margin-top: 24px; }\n@media (min-width: 768px) {\n body.ex-product.csw-pdp .mainproductpagedesktop > .row {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);\n grid-template-areas: "bc bc" "pre pre" "img info" "img buy" "post post";\n column-gap: 32px;\n }\n body.ex-product.csw-pdp .productsummary_container { margin-top: 0; }\n body.ex-product.csw-pdp .mainproductpagedesktop > .row > .filter-container { margin-top: 32px; }\n}\n@media (min-width: 1200px) {\n body.ex-product.csw-pdp .mainproductpagedesktop > .row {\n grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) 340px;\n grid-template-areas: "bc bc bc" "pre pre pre" "img info buy" "post post post";\n column-gap: 40px;\n }\n body.ex-product.csw-pdp .mainproductpagedesktop > .row > .filter-container { margin-top: 0; }\n}\n\n/* ---------- Breadcrumb ---------- */\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb {\n display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;\n margin: 0 0 24px; padding: 0; background: none; font-size: 12px;\n}\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb > li + li::before { content: "›"; padding: 0 8px; color: var(--csw-text-muted); font-size: 14px; }\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb a { color: var(--csw-text-muted); text-decoration: none; white-space: nowrap; }\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb > li.breadcrumb_home a { color: var(--csw-blue); }\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb > li:last-child a { color: var(--csw-blue); font-weight: 600; }\nbody.ex-product.csw-pdp .row-breadcrumb .breadcrumb a:hover { color: var(--csw-blue); text-decoration: underline; }\n\n/* ---------- Main image: the frame ---------- */\nbody.ex-product.csw-pdp .productimage_container > div:has(> .main-image) { position: relative; } /* badges sit on its corner */\nbody.ex-product.csw-pdp .productimage_container .main-image {\n position: relative;\n aspect-ratio: 1 / 1;\n container-type: size;\n border: 1px solid #f4f5f5;\n border-radius: 10px;\n overflow: hidden;\n background: #fff;\n}\nbody.ex-product.csw-pdp .productimage_container .product-brand { display: none; } /* the brand is in the details; no logo under the picture */\nbody.ex-product.csw-pdp .productimage_container .icons-block { float: none; width: auto; margin-top: 12px; padding: 0; }\n\n/* one picture */\nbody.ex-product.csw-pdp .main-image > .row { height: 100%; margin: 0; }\nbody.ex-product.csw-pdp .main-image > .row::before,\nbody.ex-product.csw-pdp .main-image > .row::after { display: none; }\nbody.ex-product.csw-pdp .main-image > .row > [class*="col-"] {\n position: static; float: none; width: 100%; height: 100%;\n display: flex; align-items: center; justify-content: center;\n padding: 16px;\n}\nbody.ex-product.csw-pdp .main-image .magnify { position: relative; display: inline-block; max-width: 100%; line-height: 0; }\nbody.ex-product.csw-pdp .main-image img.productimagesolo {\n display: block !important;\n width: auto !important; height: auto !important;\n max-width: calc(100cqw - 32px) !important; max-height: calc(100cqh - 32px) !important;\n margin: 0 !important;\n}\n\n/* gallery (MasterSlider) */\nbody.ex-product.csw-pdp .main-image .prod-gal { position: static !important; height: 100%; margin: 0 !important; }\nbody.ex-product.csw-pdp .main-image .ms-slide { container-type: size; }\nbody.ex-product.csw-pdp .main-image .ms-slide-bgcont {\n display: flex !important; align-items: center; justify-content: center;\n box-sizing: border-box; padding: 16px;\n}\nbody.ex-product.csw-pdp .main-image .ms-slide-bgcont img {\n display: block !important;\n width: auto !important; height: auto !important;\n max-width: calc(100cqw - 32px) !important; max-height: calc(100cqh - 32px) !important;\n margin: 0 !important;\n}\n/* 2+ slides: picture at the top, clear of the thumbnail strip */\nbody.ex-product.csw-pdp .main-image .prod-gal:has(.ms-slide + .ms-slide) .ms-slide-bgcont { align-items: flex-start; padding-bottom: 88px; }\nbody.ex-product.csw-pdp .main-image .prod-gal:has(.ms-slide + .ms-slide) .ms-slide-bgcont img { max-height: calc(100cqh - 104px) !important; }\nbody.ex-product.csw-pdp .main-image .ms-thumb-list {\n top: auto !important; right: 64px !important; bottom: 10px !important; left: 10px !important;\n width: auto !important; height: 72px !important;\n padding: 4px; box-sizing: border-box; z-index: 3; overflow: hidden;\n}\nbody.ex-product.csw-pdp .main-image .prod-gal:not(:has(.ms-slide + .ms-slide)) .ms-thumb-list { display: none !important; }\nbody.ex-product.csw-pdp .main-image .ms-thumb-frame {\n width: 64px !important; height: 64px !important; margin: 0 8px 0 0 !important; padding: 6px;\n box-sizing: border-box; border: 1px solid #dce3e2; border-radius: 8px; background: #fff;\n box-shadow: var(--csw-pdp-shadow); opacity: 0.5; transition: opacity 0.2s; cursor: pointer;\n}\nbody.ex-product.csw-pdp .main-image .ms-thumb-frame:hover,\nbody.ex-product.csw-pdp .main-image .ms-thumb-frame-selected { opacity: 1; }\nbody.ex-product.csw-pdp .main-image .ms-thumb { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }\nbody.ex-product.csw-pdp .main-image :is(.ms-thumb-ol, .ms-thumblist-fwd, .ms-thumblist-bwd) { display: none !important; }\n\n/* zoom (the store\'s lightbox button), bottom-right in both */\nbody.ex-product.csw-pdp .main-image .product-lightbox-open {\n position: absolute !important; top: auto !important; right: 14px !important; bottom: 14px !important; left: auto !important;\n z-index: 4; display: flex; align-items: center; justify-content: center;\n width: 40px; height: 40px; margin: 0; padding: 0;\n border: 0; border-radius: 50%; background: #fff; box-shadow: var(--csw-pdp-shadow);\n color: var(--csw-blue); cursor: zoom-in;\n}\nbody.ex-product.csw-pdp .main-image .prod-gal:has(.ms-slide + .ms-slide) .product-lightbox-open { bottom: 26px !important; } /* level with the thumbnails */\nbody.ex-product.csw-pdp .main-image .product-lightbox-open .lightbox-icon { display: none; }\nbody.ex-product.csw-pdp .main-image .product-lightbox-open::before {\n content: ""; width: 18px; height: 18px; background-color: currentColor;\n -webkit-mask: var(--csw-icon-zoom) center / contain no-repeat; mask: var(--csw-icon-zoom) center / contain no-repeat;\n}\nbody.ex-product.csw-pdp .main-image .product-lightbox-open:hover { color: var(--csw-orange); }\n\n/* ---------- Summary: title, code, indicators, category, options, points ---------- */\nbody.ex-product.csw-pdp .productsummary_container .product-summary { text-align: left; }\nbody.ex-product.csw-pdp .productsummary_container .row { margin: 0; }\nbody.ex-product.csw-pdp .productsummary_container .row > [class*="col-"] { float: none; width: auto; padding: 0; }\nbody.ex-product.csw-pdp .productsummary_container .product-title h1.product-name {\n margin: 0; font-family: var(--csw-font-display); font-size: 34px; font-weight: 600; line-height: 1.05;\n letter-spacing: 0.01em; text-transform: uppercase; color: var(--csw-blue);\n}\nbody.ex-product.csw-pdp .productsummary_container .product-title::after {\n content: ""; display: block; width: 40px; height: 3px; margin: 18px 0 20px; background: var(--csw-orange);\n}\nbody.ex-product.csw-pdp .productsummary_container .productdetails {\n display: flex; flex-wrap: wrap; align-items: center; gap: 8px;\n padding-bottom: 18px; border-bottom: 1px solid var(--csw-hairline);\n}\nbody.ex-product.csw-pdp .productsummary_container .productdetails > * { margin: 0 !important; }\nbody.ex-product.csw-pdp .productsummary_container .productdetails > :not(.prod-code, .product-indicators) { flex-basis: 100%; }\nbody.ex-product.csw-pdp .productsummary_container .productdetails > .prod-code + * + :not(.prod-code, .product-indicators),\nbody.ex-product.csw-pdp .productsummary_container .productdetails > .product-indicators + :not(.prod-code, .product-indicators) { margin-top: 10px !important; }\nbody.ex-product.csw-pdp .productsummary_container .prod-code .label {\n display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--csw-blue); color: #fff;\n font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;\n}\nbody.ex-product.csw-pdp .productsummary_container .product-indicators { display: flex; align-items: center; gap: 8px; }\nbody.ex-product.csw-pdp .productsummary_container .product-indicators > i:not(.fa-stack) {\n display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;\n border-radius: 50%; background: var(--csw-light-grey); color: var(--csw-blue); font-size: 14px;\n}\nbody.ex-product.csw-pdp .productsummary_container .product-indicators > i.fa-leaf { background: var(--csw-green); color: #fff; }\nbody.ex-product.csw-pdp .productsummary_container .product-indicators > i.fa-stack {\n width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: var(--csw-light-grey); color: var(--csw-blue); font-size: 11px;\n}\nbody.ex-product.csw-pdp .productsummary_container :is(.prod-category, .manufacturer-name) > span {\n display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 22px; font-size: 14px; color: var(--csw-text-body);\n}\nbody.ex-product.csw-pdp .productsummary_container :is(.prod-category, .manufacturer-name) strong { color: var(--csw-blue); font-weight: 700; }\nbody.ex-product.csw-pdp .productsummary_container .prod-category a { color: var(--csw-text-body); }\n/* configurable: the option selects */\nbody.ex-product.csw-pdp .productsummary_container .product-options { margin-top: 18px; }\nbody.ex-product.csw-pdp .productsummary_container .option-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 12px; }\nbody.ex-product.csw-pdp .productsummary_container .option-group > label { margin: 0; font-size: 14px; font-weight: 700; color: var(--csw-blue); }\nbody.ex-product.csw-pdp .productsummary_container .option-group .has-tooltip { color: var(--csw-text-muted); }\nbody.ex-product.csw-pdp .productsummary_container .option-group-values { flex-basis: 100%; }\nbody.ex-product.csw-pdp .productsummary_container .option-group select {\n width: 100%; max-width: 360px; height: 44px; padding: 0 12px;\n border: 1px solid var(--csw-hairline); border-radius: 6px; background: #fff; color: var(--csw-blue); font-size: 14px;\n}\nbody.ex-product.csw-pdp .productsummary_container .option-group.is-not-selected select { border-color: var(--csw-orange); }\n/* selling points: orange tick bullets */\nbody.ex-product.csw-pdp .productsummary_container .product-points ul {\n display: flex; flex-direction: column; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none;\n font-size: 14px; line-height: 1.45; color: var(--csw-text-body);\n}\nbody.ex-product.csw-pdp .productsummary_container .product-points ul:not(:has(li)) { display: none; }\nbody.ex-product.csw-pdp .productsummary_container .product-points li { display: flex; gap: 10px; align-items: flex-start; }\nbody.ex-product.csw-pdp .productsummary_container .product-points li::before {\n content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%;\n background: var(--csw-orange) var(--csw-icon-check-white) center / 12px no-repeat;\n}\n\n/* ---------- Buy box (.product-shopping-actions; csw-pdp-buy when the script gave it the delivery card) ---------- */\nbody.ex-product.csw-pdp .filter-container .product-shopping-actions {\n display: flex; flex-direction: column; gap: 18px;\n margin: 0; padding: 24px; border-radius: 10px; background: var(--csw-surface-muted);\n text-align: left !important;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .row { margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions .row > [class*="col-"] { float: none; width: auto; padding: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions > .row:not(:has(> *)) { display: none; } /* empty store rows: no gap */\nbody.ex-product.csw-pdp .product-shopping-actions > .deliv-text { order: 1; }\nbody.ex-product.csw-pdp .product-shopping-actions > :is(.row:has(.product-shopping-actions-addtocart), .prod-tools-wrap) { order: 2; }\n/* price panel */\nbody.ex-product.csw-pdp .product-shopping-actions .row > .product-shopping-actions-prices {\n display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px;\n padding: 18px 20px; border-radius: 8px; background: #fff;\n}\nbody.ex-product.csw-pdp .product-shopping-actions-prices > :is(.alert, .price-from, .price-label-inc-vat) { flex-basis: 100%; margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions-prices > .live-inventory-v2-wrapper { display: none; }\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price-from { font-size: 13px; color: var(--csw-text-muted); }\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price {\n display: flex !important; flex: 1 1 auto; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0;\n}\nbody.ex-product.csw-pdp .product-shopping-actions-prices .has-price { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--csw-orange); }\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price .uom { display: block !important; margin: 0; padding-top: 4px; font-size: 13px; color: var(--csw-text-body); text-align: right; }\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price-label-inc-vat { font-size: 13px; color: var(--csw-text-muted); }\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price-call {\n display: flex; align-items: center; gap: 10px; flex-basis: 100%; font-size: 20px; font-weight: 700; color: var(--csw-blue);\n}\nbody.ex-product.csw-pdp .product-shopping-actions-prices .price-call .fa { color: var(--csw-orange); }\n/* tier prices */\nbody.ex-product.csw-pdp .product-shopping-actions .row:has(.tierBoxes) :is(.group-focus, .arrow-down) { display: none; }\nbody.ex-product.csw-pdp .product-shopping-actions .tierBoxes {\n display: flex !important; flex-direction: column; padding: 6px 16px; border-radius: 8px; background: #fff;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox {\n display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px 0;\n border-bottom: 1px solid var(--csw-hairline); font-size: 13px; color: var(--csw-text-body);\n}\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox:last-child { border-bottom: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox:first-child { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--csw-text-muted); }\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox:not(:first-child) .tierPrice { font-weight: 600; color: var(--csw-blue); }\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox > .tierDiscount { text-align: right; }\nbody.ex-product.csw-pdp .product-shopping-actions .tierBox:not(:first-child) > .tierDiscount { color: var(--csw-green); font-weight: 600; }\n/* the card replaces the store\'s stock rows and its "Next Day Delivery" line */\nbody.ex-product.csw-pdp .csw-pdp-buy:has(.csw-delivery) :is(.product-stock-wrap, .deliv-text) { display: none !important; }\nbody.ex-product.csw-pdp .csw-pdp-buy .row > [class*="col-"]:has(> .product-stock-wrap) { display: none; }\nbody.ex-product.csw-pdp .csw-pdp-buy .csw-dl-label { padding: 12px 20px; }\nbody.ex-product.csw-pdp .csw-pdp-buy .csw-stock-list { padding: 0 20px 15px; }\n/* no card (e.g. a configurable product): the store\'s delivery line, as a strip */\nbody.ex-product.csw-pdp .product-shopping-actions > .deliv-text {\n display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 20px; border-radius: 6px;\n background: var(--csw-green-tint); color: var(--csw-green-deep);\n font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase;\n}\nbody.ex-product.csw-pdp .product-shopping-actions:not([data-leadtime]) > .deliv-text { background: #fff; color: var(--csw-blue); }\nbody.ex-product.csw-pdp .product-shopping-actions > .deliv-text img { width: 22px !important; height: auto; }\nbody.ex-product.csw-pdp .product-shopping-actions > .deliv-text p { margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions > .deliv-text .text-orange { color: inherit; }\n/* quantity + Add to basket: one 52 px bar, the card above it */\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group {\n display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-flow: row dense; row-gap: 18px;\n height: auto !important; margin: 0;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group > * { grid-column: 1 / -1; margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group > .qnt-count {\n grid-column: 1; display: flex !important; align-items: stretch; height: 52px; margin: 0; padding: 0;\n border: 1px solid var(--csw-hairline); border-right: 0; border-radius: 6px 0 0 6px; background: #fff; overflow: hidden; float: none;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .qnt-count .incr-btn {\n display: flex; align-items: center; justify-content: center; width: 40px; margin: 0; padding: 0;\n border: 0; background: none; color: var(--csw-blue); font-size: 17px; text-decoration: none;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .qnt-count .incr-btn:hover { background: var(--csw-surface-muted); }\nbody.ex-product.csw-pdp .product-shopping-actions .qnt-count .inputquantity {\n width: 44px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none;\n color: var(--csw-blue); font-size: 15px; font-weight: 600; text-align: center;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group > .live-inventory-v2-add-to-cart-wrapper { grid-column: 2; display: flex; margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group:not(:has(> .qnt-count)) > .live-inventory-v2-add-to-cart-wrapper { grid-column: 1 / -1; }\nbody.ex-product.csw-pdp .product-shopping-actions .live-inventory-v2-add-to-cart-wrapper .live-inventory-v2-wrapper { display: none; }\nbody.ex-product.csw-pdp .product-shopping-actions .live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart {\n display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1 1 auto; width: 100%; height: 52px; margin: 0; padding: 0 12px;\n border: 0; border-radius: 0 6px 6px 0; background: var(--csw-orange); color: #fff; box-shadow: none;\n font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;\n}\nbody.ex-product.csw-pdp .product-shopping-actions .buttons.group:not(:has(> .qnt-count)) .btn-add-to-cart { border-radius: 6px; }\nbody.ex-product.csw-pdp .product-shopping-actions .btn-add-to-cart:is(:hover, :focus-visible) { background: var(--csw-orange-ink); color: #fff; }\nbody.ex-product.csw-pdp .product-shopping-actions .btn-add-to-cart:is(:disabled, .disabled) { opacity: 0.55; }\nbody.ex-product.csw-pdp .product-shopping-actions .btn-add-to-cart .fa { padding: 0 !important; font-size: 15px; }\nbody.ex-product.csw-pdp .csw-pdp-buy .buttons.group > a.csw-alt-link--below {\n display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 10px;\n border: 1px solid var(--csw-orange); border-radius: 6px; background: #fff; color: var(--csw-orange);\n font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;\n}\nbody.ex-product.csw-pdp .csw-pdp-buy .buttons.group > a.csw-alt-link--below:is(:hover, :focus-visible) { background: var(--csw-orange); color: #fff; }\n/* Order pad / Compare: two outlined buttons */\nbody.ex-product.csw-pdp .product-shopping-actions .prod-tools-wrap { margin: 0; }\nbody.ex-product.csw-pdp .product-shopping-actions .prod-tools-wrap:not(:has(> .prod-tools-wrap)) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }\nbody.ex-product.csw-pdp .product-shopping-actions :is(a.addtoquicklist, .product-compare-action) {\n display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; margin: 0; padding: 0 8px;\n border: 1px solid var(--csw-blue); border-radius: 6px; background: #fff; color: var(--csw-blue);\n font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;\n}\nbody.ex-product.csw-pdp .product-shopping-actions :is(a.addtoquicklist, .product-compare-action):hover { background: var(--csw-blue); color: #fff; }\nbody.ex-product.csw-pdp .product-shopping-actions .product-compare-action .fa-stack { width: 1.4em; height: 1.4em; line-height: 1.4em; font-size: 10px; }\n/* under the box: banners, share links */\nbody.ex-product.csw-pdp .filter-container .singlebanner_wrapper { margin-top: 18px; }\nbody.ex-product.csw-pdp .filter-container .singlebanner_wrapper img { max-width: 100%; height: auto; border-radius: 10px; }\nbody.ex-product.csw-pdp .filter-container .social-links { margin-top: 12px; }\n\n/* ---------- Description / Specifications: two cards ---------- */\nbody.ex-product.csw-pdp .mainproductpagedesktop > .details-wrap > .row {\n display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; margin: 48px 0 0;\n}\nbody.ex-product.csw-pdp .mainproductpagedesktop > .details-wrap > .row:not(:has(> *)) { display: none; }\nbody.ex-product.csw-pdp .details-wrap .row > :is(.productdescription_container, .productspecs_container) { float: none; width: auto; min-width: 0; padding: 0; }\nbody.ex-product.csw-pdp .details-wrap .product-panel { height: 100%; margin: 0; }\nbody.ex-product.csw-pdp .details-wrap .panel {\n display: flex; flex-direction: column; height: 100%; margin: 0;\n border: 1px solid var(--csw-hairline); border-radius: 10px; overflow: hidden; box-shadow: none; background: var(--csw-surface-muted);\n}\nbody.ex-product.csw-pdp .details-wrap .panel-heading {\n display: flex; align-items: center; justify-content: space-between; padding: 16px 22px;\n border: 0; background: var(--csw-surface-muted); cursor: pointer;\n}\nbody.ex-product.csw-pdp .details-wrap .panel-heading h3 {\n margin: 0; font-family: var(--csw-font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; color: var(--csw-blue);\n}\nbody.ex-product.csw-pdp .details-wrap .panel-heading::after { content: "–"; font-size: 18px; line-height: 1; color: var(--csw-blue); }\nbody.ex-product.csw-pdp .details-wrap .panel-heading.collapsed::after { content: "+"; }\nbody.ex-product.csw-pdp .details-wrap .panel-collapse { flex: 1 1 auto; background: #fff; }\nbody.ex-product.csw-pdp .details-wrap .panel-body { padding: 20px 22px; border: 0 !important; font-size: 14px; line-height: 1.6; color: var(--csw-text-body); }\nbody.ex-product.csw-pdp .details-wrap .panel-body .row { margin: 0; }\nbody.ex-product.csw-pdp .details-wrap .panel-body [class*="col-"] { float: none; width: auto; padding: 0; }\nbody.ex-product.csw-pdp .details-wrap .panel-body .form-group { margin: 0; }\nbody.ex-product.csw-pdp .details-wrap .tech-specs .item:not(.see-more) > .row {\n display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px;\n padding: 10px 0; border-bottom: 1px solid var(--csw-hairline); font-size: 13px;\n}\nbody.ex-product.csw-pdp .details-wrap .tech-specs .item > .row::before,\nbody.ex-product.csw-pdp .details-wrap .tech-specs .item > .row::after { display: none; }\nbody.ex-product.csw-pdp .details-wrap .tech-specs .item:not(.see-more) > .row > :first-child { text-align: left !important; color: var(--csw-text-muted); }\nbody.ex-product.csw-pdp .details-wrap .tech-specs .item > .row > :last-child p { margin: 0; font-weight: 600; color: var(--csw-blue); }\nbody.ex-product.csw-pdp .details-wrap .see-more a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; text-decoration: none; }\n\n/* ================= "DELETE BASKET AFTER CHECKOUT" SWITCH (cart totals) =================\n The script adds it only when the basket has the store\'s select; the select is hidden only while the switch exists. */\nbody.ex-cart.csw-on:has(.csw-onetime) .costcentre:has(> select[name="update-is-onetime"]) { display: none !important; }\n.csw-onetime {\n display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; /*! padding-top: 16px; */\n /*! border-top: 1px solid var(--csw-hairline); */ color: var(--csw-text-body); font-size: 13px; line-height: 1.3; text-align: left;\n}\n.csw-onetime-label { flex: 1 1 auto; min-width: 0; }\n.csw-onetime-value { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--csw-blue); }\n.csw-onetime .csw-switch {\n position: relative; flex: none; width: 36px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 999px;\n background: #c5ccd0; cursor: pointer; transition: background-color 0.15s;\n}\n.csw-onetime .csw-switch[aria-checked="true"] { background: var(--csw-orange); }\n.csw-onetime .csw-switch:focus-visible { outline: 2px solid var(--csw-blue); outline-offset: 2px; }\n.csw-switch-knob {\n position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s;\n}\n.csw-onetime .csw-switch[aria-checked="true"] .csw-switch-knob { transform: translateX(16px); }\n@media (prefers-reduced-motion: reduce) { .csw-onetime .csw-switch, .csw-switch-knob { transition: none; } }\n\n/* ================= CART SIDEBAR: totals, Save / Checkout, coupon (as the mockup) ================= */\nbody.ex-cart.csw-on .shopping-cart .softgraybackground { background-color: var(--csw-surface-muted); border-radius: var(--csw-radius); }\nbody.ex-cart.csw-on .shopping-cart table td { border: none; }\nbody.ex-cart.csw-on .items-list .show-more-info,\nbody.ex-cart.csw-on .cart-header-actions { display: none; }\nbody.ex-cart.csw-on .cartheader_container { margin-bottom: 10px; }\n/* totals box first, the coupon under it */\nbody.ex-cart.csw-on .carttotals_container .cart-resume { display: flex; flex-direction: column; margin-top: 0; }\nbody.ex-cart.csw-on .carttotals_container .cart-resume .promotion_discount { order: 2; }\n/* totals: rows, the line, Order total, then the switch and the two buttons side by side */\nbody.ex-cart.csw-on .carttotals_container .cart-totals { display: flex !important; flex-wrap: wrap; gap: 0 12px; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > :is(table, .csw-onetime, .content_loading) { flex: 0 0 100%; width: 100%; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > table { margin: 0 0 4px; border-collapse: collapse; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > table td { padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--csw-text-body); background: none; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > table tr.devider td { padding: 0; /*! height: 0; */ /*! border-top: 1px solid var(--csw-text-muted); */ }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > table tr.devider + tr td { padding-top: 16px; padding-bottom: 10px; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals > table tr.cart-order-total td { font-size: 18px; font-weight: 700; color: var(--csw-blue); }\nbody.ex-cart.csw-on .carttotals_container .cart-totals .btn { width: calc(50% - 6px); min-width: 200px; flex-grow: 1; margin: 0 0 10px; white-space: wrap; } /* side by side, stacked when narrow */\nbody.ex-cart.csw-on .carttotals_container .cart-totals a { border-color: var(--csw-orange); background-color: var(--csw-orange); color: #fff; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals a:is(:hover, :focus) { border-color: var(--csw-orange-deep); background-color: var(--csw-orange-deep); color: #fff; }\nbody.ex-cart.csw-on .carttotals_container .cart-totals a i { color: #fff; }\n/* coupon: muted field, outline button, one row */\nbody.ex-cart.csw-on .carttotals_container input.coupon_code {\n height: auto; padding: 11px 14px; border-color: transparent; border-radius: 5px; box-shadow: none;\n background-color: var(--csw-surface-muted); color: var(--csw-blue);\n}\nbody.ex-cart.csw-on .carttotals_container input.coupon_code:focus { border-color: var(--csw-blue); box-shadow: none; }\nbody.ex-cart.csw-on .carttotals_container button.coupon_apply { padding-block: 11px; top: 0 !important; width: 100%; margin: 0; }\nbody.ex-cart.csw-on .carttotals_container .promotion_discount > .row { display: flex; flex-wrap: wrap; row-gap: 10px; }\nbody.ex-cart.csw-on .carttotals_container .promotion_discount > .row::before,\nbody.ex-cart.csw-on .carttotals_container .promotion_discount > .row::after { display: none; }\nbody.ex-cart.csw-on .carttotals_container .promotion_discount > .row > * { flex-grow: 1; padding-inline: 15px !important; }\n', i = (t) => "*" === t || Boolean(document.body?.classList.contains(t)), r = t && (n.everyone || a.some(i)), s = (t) => r && e[t].some(i), c = s("cartGroups"), d = s("gridTiles"), p = s("productPage"), l = s("alternatives") || d || p; if (t && ((!c && !d && !p && !l) || window.__cswLoaded)) return; if ( t && (document.body.classList.add("csw-on"), p && document.body.classList.add("csw-pdp"), o && !document.getElementById("heatons-inline-css")) ) { const t = document.createElement("style"); ((t.id = "heatons-inline-css"), (t.textContent = o), (document.head || document.documentElement).appendChild(t)); } const u = (...t) => console.warn("[csw]", ...t), m = (t) => String(t ?? "").replace(/[&<>"']/g, (t) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[t]), w = (t) => new Promise((e) => setTimeout(e, t)), g = { 1: "Next Day Delivery", 2: "1-2 Day Delivery", 3: "3-5 Day Delivery", 4: "4 Day Delivery", 5: "5-8 Day Delivery", 6: "6-8 Day Delivery", 7: "7-10 Day Delivery", 8: "8-10 Day Delivery", 10: "10-14 Day Delivery", 14: "14-18 Day Delivery", 15: "15-20 Day Delivery", 21: "21-28 Day Delivery", 28: "28-36 Day Delivery", 49: "42-49 Day Delivery", 63: "63 Day Delivery", 99: "Made to Order", 901: "Next Day Delivery", 902: "1-2 Day Delivery", 904: "4-6 Day Delivery", 905: "5-7 Working Days Delivery", 907: "7-10 Working Days Delivery", 915: "15-20 Working Days Delivery", }, b = (t) => (99 === t ? 1 / 0 : t > 900 ? t - 900 : t), h = (t) => (t <= 2 ? "fast" : t <= 10 ? "medium" : "slow"), f = (t) => h(b(t)), x = (t) => g[t]?.replace(/ Delivery$/, "").replace(/(\d) Day$/, "$1 Days"); function y(t) { const e = Number(t.quantity) || 0, n = String(t.location_name || "").replace(/\s*Stock$/i, ""); return `${m(n)} ${e}`; } function v(t) { const e = (t || []).filter((t) => /local|group/i.test(String(t.location_name || ""))); return e.length > 0 && e.every((t) => (Number(t.quantity) || 0) <= 0); } const k = (t) => t.map(([t, e]) => encodeURIComponent(t) + "=" + encodeURIComponent(e ?? "")).join("&"); async function _(t, e, n) { const a = await fetch(t, { method: "POST", signal: n ? AbortSignal.timeout(n) : void 0, headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "X-Requested-With": "XMLHttpRequest", "X-CSRF-TOKEN": document.querySelector('meta[name="csrf-token"]')?.content || "", }, body: k(e), }); if (!a.ok) throw Object.assign(new Error(`${t}: HTTP ${a.status}`), { status: a.status }); return { data: await a.json().catch(() => {}), redirected: a.redirected }; } const S = new Map(); function E(t) { if (((t = String(t)), !S.has(t))) { const e = _(`/api/products/${t}`, [["compare", "1"]], 15e3).then( ({ data: e }) => { if (!e?.product) throw Object.assign(new Error(`/api/products/${t}: status ${e?.status}`), { final: !0 }); return { product: e.product, available: "success" === e.status }; }, (t) => { throw (t.status >= 400 && t.status < 500 && 408 !== t.status && 429 !== t.status && (t.final = !0), t); }, ); (e.catch(() => S.delete(t)), S.set(t, e)); } return S.get(t); } async function q(t) { const e = t.map((t) => ["products[]", t.sku]); t.forEach((t, n) => e.push( [`productData[${n}][item_id]`, t.itemId], [`productData[${n}][sku]`, t.sku], [`productData[${n}][uom]`, t.uom], [`productData[${n}][template_item]`, t.template ?? ""], [`productData[${n}][inventory_v2]`, t.inventoryV2 ?? ""], ), ); const { data: n } = await _(`/ajax/live-inventory?_=${Date.now()}`, e, 15e3); if ("success" !== n?.status || !Array.isArray(n.data)) throw new Error(`live-inventory: status ${n?.status}`); return n.data; } async function C(t, e = 15e3) { const n = `table.items-list tr.item_${t}`, a = document.querySelector(`${n} .delete-btn`); if (!a) return !document.querySelector(n); a.click(); const o = Date.now(); for (; document.querySelector(n); ) { if (Date.now() - o > e) return !1; await w(100); } return !0; } async function M(t, e, n) { const { data: a, redirected: o } = await _("/cart/addcart", [ ["product", JSON.stringify(t)], ["qty", e], ]); if (o || !a || "object" != typeof a) throw new Error("addcart: not added (redirected or not JSON)"); if ("status" in a && !/^(200|success|ok|true)$/i.test(String(a.status))) throw new Error("addcart: " + (a.message || a.status)); let i = !1; if ("function" == typeof window.updateminicart) try { window.updateminicart(a, !1, "add-item"); } catch (t) { u("updateminicart", t); } const r = document.querySelector(".shopping-cart")?.__vue__; if (r && Array.isArray(a.minicart_items)) try { const t = new Set((r.items || []).map((t) => t.session_cart_id)); (r.updateItemsInTheCart({ ...a, minicart_items: a.minicart_items.map(({ item_obj: e, created_at: n, updated_at: a, ...o }) => t.has(o.session_cart_id) ? o : r.transformCartItems([ { ...o, created_at: n, quote_id: o.session_id, item_shipping_type: o.item_shipping_type ?? 3, product_labels: o.product_labels ?? "", }, ])[0], ), }), a.minicart_totals && (r.totals = { ...r.totals, ...a.minicart_totals }), await new Promise((t) => r.$nextTick(t))); } catch (t) { (u("cart table update", t), (i = "cart" === n)); } else i = "cart" === n; return (document.dispatchEvent(new CustomEvent("cart-total-update")), { data: a, reload: i }); } const D = Object.assign( { api: "https://api.heymojo.dev/alternatives/v1/eu/stores/1655/products/", track: !0, searchTimeoutMs: 3e4, searchConcurrency: 3, pollDelaysMs: [5e3, 1e4, 15e3], runCapMs: 6e4, removeTimeoutMs: 15e3, maxCandidates: 40, showMax: 4, showAllMax: 20, stockCheckMax: 40, closeMaxRatio: 3, packRatioLimit: 20, }, (t && window.cswAlternativesConfig) || {}, ), A = { title: "Alternatives for", inStock: "in stock", queued: "Waiting for the previous search to finish", step1: "Preparing your search", step2: "Searching the store", step3: "Checking suitability", checking: "Still checking… more may appear", empty: "No in-stock alternatives right now.", stillChecking: "Still checking alternatives for this item. Try again in a minute.", added: "Added", add: "Add to basket", addAlso: "Add {sku} to basket as well", swap: "Swap", swapping: "Swapping…", swapTitle: "Replace {orig} in your basket with this", swapPartial: "Added. We couldn't remove {orig} — please remove it from your basket.", adding: "Adding…", failed: "Try again", cannotAdd: "Not available to add", showAll: "Show all {n}", showFewer: "Show fewer", showMore: "Show more", loadingMore: "Searching…", srSearching: "Searching the store", srResults: "alternatives in stock", browse: "Or browse similar products in", browseMore: "Not quite right? Browse", browseCta: "Browse {name}", }, z = (t) => Number(String(t ?? "").replace(/[^\d.]/g, "")), T = (t) => { const e = String(t ?? "").trim(); return /^[1-9]\d{0,11}$/.test(e) ? e : ""; }, $ = (t) => ([t.productId, t.catalogId, t.supplierId, t.price].every((t) => Number.isFinite(t) && t > 0) && t.sku && t.title ? t : null); function L(t) { try { return (JSON.parse(document.getElementById("cartdata")?.value || "{}").store_cart || []).find((e) => Number(e.item_id) === t) || null; } catch { return null; } } function I(t) { const e = t?.href || t?.url, n = String(t?.textContent || t?.title || t?.name || "").trim(); if (!e || !n || !/^(https?:\/\/|\/)/.test(e)) return null; try { const t = new URL(e, "https://www.heatons.co.uk"); return (t.searchParams.set("in_stock_only", "true"), { name: n, url: /^\//.test(e) ? t.pathname + t.search + t.hash : t.href }); } catch { return { name: n, url: e }; } } async function j(t, e) { const n = await fetch(D.api + t, { signal: AbortSignal.timeout(e) }); if (200 !== n.status) throw Object.assign(new Error("HTTP " + n.status), { status: n.status }); return n.json(); } function N(t, e) { let n = 0, a = "", o = !1; for (let i = e; i < t.length; i++) { const r = t[i]; if (a) o ? (o = !1) : "\\" === r ? (o = !0) : r === a && (a = ""); else if ('"' === r || "'" === r) a = r; else if ("[" === r || "{" === r) n++; else if (("]" === r || "}" === r) && 0 === --n) return t.slice(e, i + 1); } return null; } function P(t) { const e = t.indexOf("$evodata.products.list = "); if (e < 0) return []; const n = e + 25, a = t.slice(n, n + 6).search(/[[{]/), o = a < 0 ? null : N(t, n + a); if (!o) return []; let i; try { i = JSON.parse(o); } catch { return []; } return (Array.isArray(i) ? i : i && "object" == typeof i ? (i.sku ? [i] : Object.values(i)) : []).filter( (t) => t && "object" == typeof t && t.sku, ); } function O(t, e) { const n = t[e]; let a, o; if ('"' === n || "'" === n) { let i = e + 1; for (; i < t.length && t[i] !== n; ) i += "\\" === t[i] ? 2 : 1; ((a = t.slice(e, i + 1)), (o = i + 1)); } else if ("[" === n || "{" === n) ((a = N(t, e)), (o = a ? e + a.length : t.length)); else { const n = t.indexOf(";", e); ((a = n < 0 ? null : t.slice(e, n).trim()), (o = n < 0 ? t.length : n)); } if (!a || "undefined" === a) return [void 0, o]; const i = a.match(/^'([^'\\]*)'$/); if (i) return [i[1], o]; try { return [JSON.parse(a), o]; } catch { return [void 0, o]; } } function F(t) { const e = new Map(), n = (e) => [...t.matchAll(e)].map((t) => t.index), a = [...t.matchAll(/\$t_item\.item_sku\s*=\s*"([^"]+)"\s*;/g)], o = [...n(/\$t_item\s*=\s*\{/g), ...a.map((t) => t.index)], i = [...o, ...n(//gi)]; for (const n of a) { if (e.has(n[1])) continue; const a = Math.max(0, ...i.filter((t) => t < n.index)), o = Math.min(t.length, ...r.filter((t) => t > n.index)), s = t.slice(a, o), c = {}, d = /\$t_item\.([A-Za-z_]\w*)\s*=\s*/g; let p; for (; (p = d.exec(s)); ) { const [t, e] = O(s, d.lastIndex); (void 0 !== t && (c[p[1]] = t), (d.lastIndex = Math.max(d.lastIndex, e))); } e.set(n[1], c); } return e; } const R = (t) => t.replace(/&(quot|amp|lt|gt|#39);/g, (t, e) => ({ quot: '"', amp: "&", lt: "<", gt: ">", "#39": "'" })[e]); function B(t) { const e = new Map(), n = [...t.matchAll(/]*\bdata-sku="([^"]+)"[^>]*>/g)]; return ( n.forEach((a, o) => { if (e.has(a[1])) return; const i = t.slice(a.index, n[o + 1]?.index ?? t.length), r = i.match(/]*class="[^"]*product-tile-image[^"]*"[^>]*\bhref="([^"]+)"/) || i.match(/class="product-name">\s* R(a[0].match(new RegExp(`\\b${t}="([^"]*)"`))?.[1] ?? ""); e.set(a[1], { url: r ? R(r[1]) : "", vendorCode: s("data-seller-vendor-code"), inventoryV2: s("data-inventory-v2"), leadTime: s("data-leadtime"), }); }), e ); } function H(t) { const e = P(t); if (!e.length) return []; const n = F(t), a = B(t); return e .map((t) => { const e = String(t.sku).trim(), o = n.get(e) || null, i = a.get(e) || {}; return { item: Number(t.item), sku: e, name: String(t.name ?? "").trim(), price: z(t.price), image: t.image ? String(t.image) : "", url: i.url || "", vendorCode: i.vendorCode || "", inventoryV2: i.inventoryV2 || "", leadTime: Number(i.leadTime) || null, catalogId: T(o?.item_catalog_id), supplierId: T(o?.item_supplier_id) || T(t.supplier), cart: o, }; }) .filter((t) => T(t.item)); } async function U(t, e, n) { const a = "/search?query=" + encodeURIComponent(t) + (e ? "&in_stock_only=true" : ""), o = await fetch(a, { signal: AbortSignal.any ? AbortSignal.any([n, AbortSignal.timeout(D.searchTimeoutMs)]) : n }); return o.ok ? H(await o.text()) : []; } function V(t, e) { const n = new Map(), a = [], o = Math.max(0, ...t.map((t) => t.products.length)); for (let i = 0; i < o; i++) for (const o of t) { const t = o.products[i]; if (!t || t.item === e.productId || t.sku === e.sku || /^M-/i.test(t.sku) || !t.supplierId) continue; const r = n.get(t.item); if (r) { r.inStock ||= o.inStock; continue; } if (a.length >= D.maxCandidates) continue; const s = { ...t, inStock: o.inStock }; (n.set(t.item, s), a.push(s)); } return a; } function G(t) { const e = String(t ?? "").match(/\b(?:pack|box|tub|case) of (\d+)\b|\b(\d+)\s*(?:pack|pk)\b/i), n = e && Number(e[1] ?? e[2]); return n > 0 ? n : null; } function J(t, e) { const n = G(e.title), a = G(t.name); return n && a && Math.max(n, a) / Math.min(n, a) < D.packRatioLimit ? (t.price * n) / a : t.price; } function W(t) { const e = String(t ?? "") .toLowerCase() .split(/[^a-z0-9]+/) .filter(Boolean); return (e.length > 1 && /^\d{5,}$/.test(e[e.length - 1]) && e.pop(), new Set(e)); } function Y(t, e) { const [n, a] = [W(t), W(e)], [o, i] = n.size <= a.size ? [n, a] : [a, n]; return [...o].every((t) => i.has(t)) && i.size - o.size <= 1; } function K(t, e, n, a) { const o = new Map(e.map((t) => [t.item, t])), i = (t) => Math.max(n.price * (3 === t ? D.closeMaxRatio : 2), n.price + 5), r = (t) => b(t.leadTime), s = []; for (const e of t) { const t = o.get(e); if (!(t && t.inStock && Number.isFinite(t.price) && x(t.leadTime))) continue; const r = a?.get(e) ?? 2, c = J(t, n); c >= n.price / 2 && c <= i(r) && s.push({ ...t, compare: c, level: r }); } s.sort( (t, e) => (r(t) === r(e) ? 0 : r(t) - r(e)) || e.level - t.level || Math.abs(t.compare - n.price) - Math.abs(e.compare - n.price), ); const c = []; for (const t of s) c.some((e) => Y(e.name, t.name)) || c.push(t); return c; } const X = (t, e) => t.slice(0, e ? D.showAllMax : D.showMax), Q = (t) => t.length >= D.showMax && t.every((t) => 3 === t.level && b(t.leadTime) <= 1), Z = (t) => (t.length <= 2 ? [t] : [t.slice(0, 2), t.slice(2)]), tt = (t) => Boolean(t) && t.local <= 0 && t.group <= 0; function et(t, e) { const n = !tt(e) && x(t.leadTime), a = (t, e) => `${t} ${e}`; return ( `
${n || "Contact Us for Availability"}
` + (n && e ? `
${a("Local", e.local)}${a("Group", e.group)}
` : "") + "
" ); } const nt = { item_is_multiple: 0, item_minimum_order: 1, item_maximum_order: 0, item_multiple_qty: 0, item_is_contract: 0, pack_uom: "1", item_pack: "1", item_cost_center_id: 0, item_department_id: 0, item_images: [], item_price_type: 0, item_price_unit: 1, modifiers: null, og_sku: "", swap_type: "", line_ref: "", additional_data: "{}", }; function at(t) { const e = Object.assign({}, nt, t.cart || {}, { item_id: t.item, item_sku: t.sku, item_catalog_id: Number(t.catalogId) || 0, item_supplier_id: Number(t.supplierId) || 0, item_name: t.cart?.item_name || t.name, }); return (t.vendorCode && (e.additional_data = JSON.stringify({ vendor_code: t.vendorCode })), delete e.item_vendor_code, e); } if (t) { window.__cswLoaded = !0; for (const [t, e] of [ [ c, function () { const t = [], e = new Map(); Object.keys(g) .map(Number) .sort((t, e) => b(t) - b(e) || t - e) .forEach((n) => { const a = g[n]; let o = t.find((t) => t.label === a); (o || ((o = { id: `lt-${n}`, label: a, tier: h(b(n)) }), t.push(o)), e.set(n, o)); }); const n = { id: "contact-us", label: "Contact Us for Availability", tier: "unknown" }, a = { id: "loading", label: "Checking Availability…", tier: "loading" }, o = [...t, a, n], i = new Map(o.map((t, e) => [t.id, e])), r = 148061607, s = "COMPLETEDEL", c = { item_id: r, item_sku: s, item_catalog_id: 1e3, item_catalog_item_id: 167157880, item_supplier_id: 1e3, item_is_multiple: 0, item_minimum_order: 1, item_maximum_order: 0, item_multiple_qty: 0, item_is_contract: 0, item_name: "Complete Order Delivery", item_image_thumbnail_path: "", item_image_thumbnail: "", item_cost_center_id: 0, item_department_id: 0, pack_uom: "EA", item_pack: "1", item_price_type: 0, item_price_unit: 1, item_shipping_type: 3, modifiers: null, line_ref: "", additional_data: '{"vendor_code":"2614"}', }, d = {}, p = new Set(), l = {}, f = {}, x = {}; let k = [], _ = !0, S = "partial", D = !1; const A = (t) => `${t} ${1 === t ? "item" : "items"}`; function z() { const t = document.getElementById("cartdata"); if (!t || !t.value.trim()) return []; try { return JSON.parse(t.value).store_cart || []; } catch (t) { return (console.error("cartdata: invalid JSON", t), []); } } const T = (t) => t && null != t.item_id && t.item_sku, $ = () => !!document.querySelector("table.items-list tr.item_148061607"), L = (t, e) => t.querySelectorAll(`tr.item_${e}`); function I(t) { const o = t.item_catalog_item_id; if (null == o) return n; if (!Object.prototype.hasOwnProperty.call(l, o)) return a; if (p.has(t.item_sku) && !d[t.item_sku]) return a; if (v(d[t.item_sku])) return n; const i = l[o]; return null == i ? n : e.get(i) || n; } function j() { (document.querySelectorAll(".csw-delivery-options .csw-delivery-radio").forEach((t) => { const e = t.getAttribute("data-value") === S; (t.classList.toggle("csw-checked", e), t.setAttribute("aria-checked", e ? "true" : "false")); }), document.querySelectorAll('.csw-delivery-options input[name="csw_delivery_method"]').forEach((t) => { t.value = S; })); } function N(t, e = !1) { if (D || t === S) return; ((S = t), j()); const n = e ? "Updating delivery options…" : "together" === t ? "Arranging a single delivery…" : "Switching to separate deliveries…", a = ( "together" === t ? (async function () { const { reload: t } = await M(c, 1, "cart"); t && window.location.reload(); })() : H() ).catch((t) => console.error("Delivery choice update failed:", t)); (B(!0, n), Promise.race([a, w(15e3)]).then(() => { (B(!1), tt()); })); } function P(t, e, n) { if (!t) return; let a = Array.from(t.children).find((t) => t.classList.contains("csw-delivery-options")); n ? (a || ((a = (function () { const t = document.createElement("div"); return ( (t.className = "csw-delivery-options"), (t.innerHTML = `
Delivery options
one delivery, one tree

Available items will arrive together on a consolidated delivery as soon as everything is ready. This helps to reduce carbon emissions, and as a thank you, we’ll plant a tree on your behalf.

`), t.querySelectorAll(".csw-delivery-radio").forEach((t) => { const e = (e) => { (e.preventDefault(), e.stopPropagation(), N(t.getAttribute("data-value"))); }; (t.addEventListener("click", e), t.addEventListener("keydown", (t) => { (" " !== t.key && "Enter" !== t.key) || e(t); })); }), t.classList.toggle("csw-is-busy", D), t ); })()), t.insertBefore(a, e || null)), (function (t, e) { const n = (t) => t.map((t) => `${m(t)}`).join(""); ((t.querySelector('[data-csw-lines="together"]').innerHTML = n(e.together)), (t.querySelector('[data-csw-lines="partial"]').innerHTML = n(e.partial))); const a = t.querySelector(".csw-dopt-footer"); ((a.textContent = e.footer), (a.hidden = !e.footer)); })(a, n)) : a && a.remove(); } function O(t) { document.querySelectorAll("a.btn.to-checkout").forEach((e) => { t ? (e.hasAttribute("data-csw-href") || e.setAttribute("data-csw-href", e.getAttribute("href") || ""), e.removeAttribute("href"), e.setAttribute("aria-disabled", "true"), e.classList.add("csw-checkout-disabled")) : e.hasAttribute("data-csw-href") && (e.setAttribute("href", e.getAttribute("data-csw-href")), e.removeAttribute("data-csw-href"), e.removeAttribute("aria-disabled"), e.classList.remove("csw-checkout-disabled")); }); } let F = null; function R() { const t = document.querySelector(".shopping-cart"); if (!F || !t) return; const e = t.getBoundingClientRect(); ((F.style.top = `${e.top + window.scrollY}px`), (F.style.left = `${e.left + window.scrollX}px`), (F.style.width = `${e.width}px`), (F.style.height = `${e.height}px`)); } function B(t, e = "Updating your basket…") { ((D = t), t ? (function (t) { (F || ((F = document.createElement("div")), (F.className = "csw-busy-overlay"), (F.innerHTML = '
Please wait while we update your basket.
'), document.body.appendChild(F)), (F.querySelector(".csw-busy-title").textContent = t), (F.hidden = !1), R(), window.addEventListener("resize", R)); })(e) : (F && (F.hidden = !0), window.removeEventListener("resize", R)), document.querySelectorAll(".shopping-cart").forEach((e) => { ((e.inert = t), e.toggleAttribute("data-csw-busy", t), e.setAttribute("aria-busy", String(t))); }), document.querySelectorAll(".csw-delivery-options").forEach((e) => e.classList.toggle("csw-is-busy", t)), O(t)); } const H = () => C(r, 15e3); function U(t) { const e = t.querySelector("td.name"); if (!e) return null; let n = e.querySelector(":scope > .csw-delivery"); return ( n || ((n = document.createElement("div")), (n.className = "csw-delivery"), (n.innerHTML = '
'), e.insertBefore(n, e.firstChild)), n ); } const V = new WeakSet(), G = "undefined" != typeof ResizeObserver ? new ResizeObserver((t) => { t.forEach((t) => { const e = t.contentRect.width; 0 !== e && t.target.toggleAttribute("data-csw-compact", e < 920); }); }) : null; function J(e, o) { const r = (function (t) { const e = t.querySelector("thead tr"); return (e && e.children.length) || 6; })(e); !(function (t, e) { t.dataset.cswGrid || ((t.dataset.cswGrid = "1"), ((t) => !!t.closest(".mobile"))(t) || (6 === e ? ((t.dataset.cswTuned = "1"), (function (t) { if (V.has(t)) return; V.add(t); const e = t.clientWidth; (e > 0 && t.toggleAttribute("data-csw-compact", e < 920), G && G.observe(t)); })(t)) : (t.style.gridTemplateColumns = `repeat(${e}, minmax(0, max-content))`))); })(e, r); const s = e.querySelector("tbody"); if (!s) return; s.querySelectorAll("tr.csw-band").forEach((t) => t.remove()); const c = new Map(); o.forEach((t, o) => { (L(e, o.item_id).forEach((e) => { ((e.style.order = i.get(t.id)), (function (t, e, o) { const i = U(t); i && i.dataset.cswBucket !== e.id && ((i.dataset.cswBucket = e.id), (i.dataset.cswTier = e.tier), (i.querySelector(".csw-dl-status").innerHTML = (function (t, e) { if (t.id === a.id) return 'Checking availability…'; const o = `${m(t.label)}`; return t.id !== n.id ? o : o + `Search alternatives`; })(e, o))); })(e, t, o), (function (t, e) { const n = U(t)?.querySelector(".csw-stock-list"), a = e ? e.map((t) => `${t.location_name}:${t.quantity}`).join("|") : ""; n && n.dataset.key !== a && ((n.dataset.key = a), (n.innerHTML = e ? e.map(y).join("") : ""), (n.hidden = !e?.length)); })(e, d[o.item_sku])); }), c.set(t, (c.get(t) || 0) + 1)); }); const p = document.createDocumentFragment(); ([...c] .sort(([t], [e]) => i.get(t.id) - i.get(e.id)) .forEach(([t, e]) => p.appendChild( (function (t, e, n) { const a = document.createElement("tr"); return ( (a.className = "csw-band"), a.setAttribute("data-csw-bucket", t.id), a.setAttribute("data-csw-tier", t.tier), (a.style.order = i.get(t.id)), (a.innerHTML = `
${m(t.label)}${A(e)}
`), a ); })(t, e, r), ), ), s.insertBefore(p, s.firstChild), (function (e, n) { const a = [...e.querySelectorAll("tbody > tr")]; a.forEach((t) => t.removeAttribute("data-csw-consol")); const o = e.querySelector("tbody > tr.item_148061607"), i = [...e.querySelectorAll("tbody > tr.csw-band")].filter((e) => t.some((t) => t.id === e.dataset.cswBucket)); n.forEach((t, n) => { W.has(t) && i.push(...L(e, n.item_id)); }); const r = Boolean(o && i.length); if ((e.toggleAttribute("data-csw-consol-on", r), !r)) return; const s = new Map(a.map((t, e) => [t, e])), c = i.reduce((t, e) => { return ( (n = e), (a = t), ((Number(n.style.order) || 0) - (Number(a.style.order) || 0) || s.get(n) - s.get(a)) > 0 ? e : t ); var n, a; }); (o.setAttribute("data-csw-consol", "first"), i.forEach((t) => t.setAttribute("data-csw-consol", t === c ? "last" : "mid"))); })(e, o)); } const W = new Set(t); function Y() { const t = new Map(k.map((t) => [t, I(t)])); (Array.from(document.querySelectorAll("table.items-list")).forEach((e) => J(e, t)), (function (t) { const e = t.every((t) => t.id !== a.id), o = e && new Set(t.map((t) => t.id)).size > 1, r = o ? (function (t) { const e = new Map(); let a = 0; t.forEach((t) => { t.id !== n.id ? (e.has(t.id) || e.set(t.id, { bucket: t, count: 0 }), (e.get(t.id).count += 1)) : (a += 1); }); const o = Array.from(e.values()).sort((t, e) => i.get(t.bucket.id) - i.get(e.bucket.id)), r = o.reduce((t, e) => t + e.count, 0), s = o[o.length - 1]; return { together: [...(s ? [`${A(r)} – ${s.bucket.label}`] : []), "One delivery, one tree"], partial: o.map((t) => `${A(t.count)} – ${t.bucket.label}`), footer: a ? `${A(a)} ${1 === a ? "has" : "have"} no date yet and will follow separately.` : "", }; })(t) : null; (O(D || !e), document.querySelectorAll(".desktop .carttotals_container").forEach((t) => { const e = t.querySelector(".cart-resume"); P(t, e && e.parentNode === t ? e : t.firstChild, r); }), document.querySelectorAll(".mobile .cart-header-actions").forEach((t) => { P(t.parentNode, t, r); }), o && j(), e && !o && !D && $() && N("partial", !0)); })([...t.values()]), X()); } const K = 'select[name="update-is-onetime"]'; function X() { const t = document.querySelector(K); document.querySelectorAll(".cart-totals").forEach((e) => { let n = e.querySelector(":scope > .csw-onetime"); const a = e.querySelector(":scope > table"); if (!t || !a) return void n?.remove(); n || ((n = document.createElement("div")), (n.className = "csw-onetime"), (n.innerHTML = ''), a.after(n)); const o = t.closest(".costcentre")?.querySelector("strong")?.textContent.trim() || "Delete basket after checkout", i = "yes" === t.value, r = n.querySelector(".csw-switch"); ((n.querySelector(".csw-onetime-label").textContent = o), (n.querySelector(".csw-onetime-value").textContent = t.selectedOptions[0]?.textContent.trim() || (i ? "Yes" : "No")), r.setAttribute("aria-checked", String(i)), r.setAttribute("aria-label", o)); }); } let Q; function Z() { (clearTimeout(Q), (Q = setTimeout(tt, 300))); } function tt() { if (D) return; const t = (function () { const t = _ ? z() : (function () { const t = window.$mini_cart; if (t) { if (Array.isArray(t)) return t; if (Array.isArray(t.store_cart)) return t.store_cart; } return z(); })(); return ( (function (t) { t.forEach((t) => { null != t.item_id && null != t.item_catalog_item_id && (x[t.item_id] = t.item_catalog_item_id); }); })(t), t.forEach((t) => { null == t.item_catalog_item_id && null != x[t.item_id] && (t.item_catalog_item_id = x[t.item_id]); }), t ); })().filter(T); ((_ = !1), (S = $() ? "together" : "partial"), (k = t.filter((t) => !((t) => Number(t.item_id) === r || t.item_sku === s)(t))), k.length ? (Y(), (function () { const t = [...new Map(k.filter((t) => !d[t.item_sku] && !p.has(t.item_sku)).map((t) => [t.item_sku, t])).values()]; t.length && (t.forEach((t) => p.add(t.item_sku)), q( t.map((t) => ({ sku: t.item_sku, itemId: t.item_id, uom: t.item_pack_uom || t.pack_uom || "EA", template: t.item_og_sku || "", inventoryV2: t.inventory_v2 ? JSON.stringify(t.inventory_v2) : "", })), ) .then((t) => t.forEach((t) => { t.sku && Array.isArray(t.shipping?.warehouses) && (d[t.sku] = t.shipping.warehouses); }), ) .catch((t) => console.error("Stock fetch error:", t)) .finally(() => { (t.forEach((t) => p.delete(t.item_sku)), Y()); })); })(), (function () { const t = [...new Set(k.map((t) => t.item_catalog_item_id))].filter( (t) => null != t && !Object.prototype.hasOwnProperty.call(l, t) && !f[t], ); t.length && (t.forEach((t) => { f[t] = (async function (t) { for (let e = 1; ; e += 1) try { const { product: e, available: n } = await E(t); if (!n) throw Object.assign(new Error(`/api/products/${t}: not available`), { final: !0 }); const a = parseInt(e.item_lead_time, 10); return void (l[t] = Number.isNaN(a) ? null : a); } catch (n) { if (n.final || e >= 2) return ( (n.final ? u : console.error)("Lead time unavailable, showing Contact Us:", n.message), void (l[t] = null) ); await w(1500); } })(t).finally(() => { delete f[t]; }); }), Promise.allSettled(t.map((t) => f[t])).then(Y)); })()) : $() && N("partial", !0)); } (document.addEventListener("click", (t) => { if (!t.target.closest(".csw-onetime .csw-switch")) return; const e = document.querySelector(K), n = e && [...e.options].find((t) => t.value !== e.value && !t.disabled); n && ((e.value = n.value), e.dispatchEvent(new Event("change", { bubbles: !0 })), X()); }), document.addEventListener("change", (t) => { t.target.matches?.(K) && X(); }), (function () { const t = document.querySelector("h1"), e = t && getComputedStyle(t).fontFamily; e && document.documentElement.style.setProperty("--csw-font-brand", e); })(), tt(), document.addEventListener("live-pricing-done", Z), document.addEventListener("cart-total-update", () => setTimeout(Z, 0))); }, ], [ d || p, function () { function t(t) { const e = t.querySelector(".buttons.group"); if (!e) return; const a = t.matches(".product-shopping-actions"); if (a ? !p : !d) return; const o = a ? "csw-pdp-buy" : "csw-tile"; t.classList.contains(o) || t.classList.add(o); const i = "1" === t.dataset.configurablemaster || "true" === t.dataset.configurableproduct || Boolean(e.querySelector(":scope > .is-master")), r = Boolean( e.querySelector(":scope > :is(.qty-list, .inputquantity), :scope > .qnt-count .inputquantity") && e.querySelector(".live-inventory-v2-add-to-cart-wrapper .btn-add-to-cart"), ) ? "buy" : i ? "configure" : "other"; t.dataset.cswMode !== r && (t.dataset.cswMode = r); const s = Number(t.dataset.leadtime), c = x(s); let l = e.querySelector(":scope > .csw-delivery"); const u = !(i && !c); (t.dataset.cswCard !== (u ? "1" : "0") && (t.dataset.cswCard = u ? "1" : "0"), u || (l?.remove(), (l = null)), u && !l && ((l = document.createElement("div")), (l.className = "csw-delivery"), e.prepend(l))); const w = (function (t) { try { const e = JSON.parse(t.querySelector("[data-locations]")?.dataset.locations || "null"); if (Array.isArray(e) && e.length) return e; } catch {} const e = [...t.querySelectorAll(".product-stock-wrap .stock-entry")].map((t) => ({ location_name: t.querySelector(".stock-warehouse")?.textContent.trim(), quantity: Number(t.querySelector(".stock-quanitity")?.textContent.replace(/[^\d-]/g, "")), })); return e.length ? e : null; })(t), g = !i && !c, b = '
' + (g ? `Contact usSearch alternatives` : `${m(c)}`) + "
" + (!g && w ? `
${w.map(y).join("")}
` : ""); l && l.dataset.key !== b && ((l.dataset.key = b), (l.dataset.cswTier = g ? "unknown" : f(s)), (l.innerHTML = b)); const h = !g && !i && v(w); let k = e.querySelector(":scope > .csw-alt-link--below"); h && !k ? e.insertAdjacentHTML( "beforeend", `Search alternatives`, ) : !h && k && k.remove(); const _ = !l || (!g && !l.querySelector(".csw-stock-list")); if ( (l?.classList.toggle("csw-delivery--strip", _), t.dataset.cswSlim !== (_ ? "1" : "0") && (t.dataset.cswSlim = _ ? "1" : "0"), a) ) return; ("buy" !== r ? e.querySelectorAll(":scope > .csw-tile-step").forEach((t) => t.remove()) : e.querySelector(".csw-tile-step") || e.insertAdjacentHTML( "beforeend", '', ), n(e.querySelector(".btn-add-to-cart"))); const S = t.querySelector(".footer-wrapper-price"); S && !S.querySelector(".csw-tile-code") && S.insertAdjacentHTML("beforeend", `${m(t.dataset.sku || "")}`); } const e = (t) => String(t || "") .replace(/["']/g, '"') .replace(/\s+/g, " ") .trim(); function n(t) { const n = t?.closest(".live-inventory-v2-add-to-cart-wrapper"); if (!n) return; const a = e(t.innerHTML), o = Boolean(t.querySelector("i")) || [t.dataset.loadingText, t.dataset.completeText].some((t) => t && e(t) === a), i = !o && (t.disabled || t.classList.contains("disabled")); (n.hasAttribute("data-csw-state") !== o && n.toggleAttribute("data-csw-state", o), n.hasAttribute("data-csw-wait") !== i && n.toggleAttribute("data-csw-wait", i)); } const a = () => document.querySelectorAll(".product[data-item-id]").forEach(t); (document.addEventListener("click", (t) => { const e = t.target.closest(".csw-tile .csw-tile-step"); if (!e) return; const n = e.closest(".buttons.group")?.querySelector(".qty-list, .inputquantity"); n && ((n.value = Math.max(1, (parseInt(n.value, 10) || 1) + Number(e.dataset.step))), n.dispatchEvent(new Event("input", { bubbles: !0 })), n.dispatchEvent(new Event("change", { bubbles: !0 }))); }), a()); let o = 0; new MutationObserver((t) => { let e = !1; for (const a of t) { const t = (1 === a.target.nodeType ? a.target : a.target.parentElement)?.closest?.(".csw-tile .btn-add-to-cart"); t ? n(t) : ("childList" !== a.type && "data-locations" !== a.attributeName && "data-leadtime" !== a.attributeName) || (e = !0); } e && !o && (o = setTimeout(() => { ((o = 0), a()); }, 100)); }).observe(document.body, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeFilter: ["data-locations", "data-leadtime", "disabled", "class"], }); }, ], [ l, function () { const t = new Map(); let e = Promise.resolve(); class n { constructor(t) { ((this.product = t), (this.state = { phase: "phrases", queued: !0, searched: 0, searchTotal: 0, pending: [], ranked: [], shown: [], expanded: !1, stoppedEarly: !1, searching: !1, loadingMore: !1, stock: {}, category: null, finished: !1, stillPending: !1, }), (this.listener = null), (this.candidates = []), (this.controller = new AbortController()), (this.seed = !1), (this.sets = []), (this.skipped = []), (this.lastRes = null), (this.capped = !1), (this.polls = 0), (this.pollTimer = null), (this.capTimer = null), (this.nextPollAt = 0), (this.active = !1), (this.busy = !1), (this.livePrices = new Map()), (this.stockRequested = new Set())); } set(t) { (Object.assign(this.state, t), this.listener?.(this.state)); } clearTimers() { (clearTimeout(this.capTimer), clearTimeout(this.pollTimer), (this.capTimer = this.pollTimer = null)); } armCap() { (clearTimeout(this.capTimer), (this.capTimer = setTimeout(() => this.expire(), D.runCapMs))); } schedulePoll(t) { (clearTimeout(this.pollTimer), (this.pollTimer = setTimeout(() => this.poll(), t))); } resume() { ((this.active = !0), this.state.finished || ("checking" === this.state.phase && (this.capped = !1), this.armCap(), "checking" !== this.state.phase || !this.state.pending.length || this.pollTimer || this.busy || this.state.loadingMore || this.schedulePoll(Math.max(0, this.nextPollAt - Date.now())))); } pause() { ((this.active = !1), this.clearTimers()); } async loadCategory() { if (!this.categoryAsked) if (((this.categoryAsked = !0), this.product.category)) this.set({ category: this.product.category }); else if (this.product.catalogItemId) try { const { product: t } = await E(this.product.catalogItemId), e = I({ url: t.public_category_url, name: t.item_category_name }); e && this.set({ category: e }); } catch {} } expire() { this.state.finished || ((this.capped = !0), "searching" === this.state.phase || this.state.loadingMore ? this.controller.abort() : "checking" === this.state.phase && this.pollTimer && this.finish({ stillPending: this.state.pending.length > 0 })); } finish(t = {}) { (this.clearTimers(), this.set({ ...t, pending: [], searching: !1, loadingMore: !1, finished: !0 }), this.state.shown.length || this.state.stillPending || i(this.product.productId, "none")); } fail(e, n) { (u(e, n), this.finish(), t.delete(this.product.productId)); } retryChecks() { ((this.polls = 0), (this.capped = !1), this.set({ finished: !1, phase: "checking", stillPending: !1 }), this.armCap(), this.poll()); } async start() { if (this.state.finished) return; let t; (this.set({ queued: !1 }), this.armCap()); try { t = await (async function (t) { const e = await j(`${t.productId}/phrases?catalogId=${t.catalogId}&supplierId=${t.supplierId}`, 2e4), n = Array.isArray(e?.queries) ? e.queries.filter((t) => "string" == typeof t && t.trim()).slice(0, 6) : []; if (!n.length) throw new Error("phrases: empty answer"); return { queries: n, seed: !0 === e.seed }; })(this.product); } catch (t) { return void (404 === t.status || 503 === t.status ? this.finish() : this.fail("phrases", t)); } this.seed = t.seed; const e = this.seed ? [t.queries] : Z(t.queries); this.set({ phase: "searching", searching: !0, searchTotal: t.queries.length * (this.seed ? 2 : 1) }); for (let t = 0; t < e.length && !this.capped; t++) { if ((this.sets.push(...(await this.runSearches(e[t], this.seed))), this.state.finished)) return; if (((this.candidates = V(this.sets, this.product)), this.candidates.length)) { if (!(await this.judge())) return; if (!this.seed && t < e.length - 1 && Q(X(this.state.ranked, !1))) { ((this.skipped = e.slice(t + 1).flat()), this.set({ stoppedEarly: !0 })); break; } } } this.state.finished || (this.candidates.length ? (this.set({ phase: "checking", searching: !1 }), (this.capped = !1), this.armCap(), this.afterJudge(this.lastRes)) : this.finish()); } async runSearches(t, e) { const n = t.flatMap((t) => [ { inStock: !0, phrase: t, products: [] }, ...(e ? [{ inStock: !1, phrase: t, products: [] }] : []), ]); let a = 0; return ( await Promise.all( Array.from({ length: D.searchConcurrency }, async () => { for (; a < n.length && !this.capped; ) { const t = n[a++]; try { t.products = await U(t.phrase, t.inStock, this.controller.signal); } catch {} this.set({ searched: this.state.searched + 1 }); } }), ), n ); } async judge() { if (this.state.finished) return null; this.busy = !0; try { const t = await (async function (t, e, n) { const a = e.map((t) => `${t.item}:${t.catalogId}:${t.supplierId}`).join(","), o = await j( `${t.productId}/picks?catalogId=${t.catalogId}&supplierId=${t.supplierId}&c=${a}${n ? "&seed=1" : ""}`, 15e3, ), i = (t) => (Array.isArray(t) ? t.map(Number).filter(Number.isFinite) : null), r = i(o?.approved), s = i(o?.pending); if (!r || !s) throw new Error("picks: malformed answer"); const c = new Map(); for (const [t, e] of Object.entries(o.match || {})) [1, 2, 3].includes(e) && c.set(Number(t), e); return { approved: r, pending: s, match: c }; })(this.product, this.candidates, this.seed); if (this.state.finished) return null; const e = new Map(this.candidates.map((t) => [t.item, t])); if ((await this.priceCandidates(t.approved.map((t) => e.get(t)).filter((t) => t?.inStock)), this.state.finished)) return null; const n = this.candidates.map((t) => (this.livePrices.has(t.sku) ? { ...t, price: this.livePrices.get(t.sku) } : t)), a = K(t.approved, n, this.product, t.match); if ((await this.loadStock(a.slice(0, D.stockCheckMax)), this.state.finished)) return null; const o = a.filter((t) => !tt(this.state.stock[t.sku])), i = X(o, this.state.expanded); return ((this.lastRes = t), this.set({ pending: t.pending, ranked: o, shown: i }), this.loadStock(i), t); } catch (t) { return ( 404 === t.status ? this.finish() : "TimeoutError" === t.name ? this.finish({ stillPending: !0 }) : this.fail("picks", t), null ); } finally { this.busy = !1; } } afterJudge(t) { if (!t.pending.length || this.polls >= D.pollDelaysMs.length || this.capped) return void this.finish({ stillPending: t.pending.length > 0 }); const e = D.pollDelaysMs[this.polls]; ((this.nextPollAt = Date.now() + e), this.active && this.schedulePoll(e)); } async poll() { if (this.state.finished) return; this.pollTimer = null; const t = await this.judge(); t && !this.state.finished && (this.polls++, this.afterJudge(t)); } toggleExpanded() { if (this.state.stoppedEarly) return void this.showMore(); const t = !this.state.expanded; (this.set({ expanded: t, shown: X(this.state.ranked, t) }), this.loadStock(this.state.shown)); } async showMore() { if (this.state.loadingMore || !this.skipped.length) return; (this.clearTimers(), (this.capped = !1), this.controller.signal.aborted && (this.controller = new AbortController()), this.set({ loadingMore: !0, finished: !1, phase: "checking", stoppedEarly: !1 }), this.armCap()); const t = this.skipped; if (((this.skipped = []), this.sets.push(...(await this.runSearches(t, !1))), this.state.finished)) return; this.candidates = V(this.sets, this.product); const e = await this.judge(); e && !this.state.finished && (this.set({ loadingMore: !1, expanded: !0, shown: X(this.state.ranked, !0) }), this.loadStock(this.state.shown), e.pending.length ? ((this.polls = 0), this.afterJudge(e)) : this.finish()); } async priceCandidates(t) { const e = t.filter((t) => !this.livePrices.has(t.sku)); if (e.length) try { const t = await (async function (t) { const e = []; t.forEach((t, n) => { (e.push( [`products[${n}][pack_uom]`, t.cart?.pack_uom ?? "1"], [`products[${n}][sku]`, t.sku], [`products[${n}][pack]`, t.cart?.item_pack ?? "1"], [`products[${n}][qty]`, 1], [`products[${n}][template_item]`, t.cart?.template_item ?? ""], ), t.vendorCode && e.push([`products[${n}][vendor_code]`, t.vendorCode]), e.push([`products[${n}][item_id]`, t.item])); }); const { data: n } = await _("/ajax/live-pricing", e, 15e3), a = {}; for (const t of n?.data || []) Number.isFinite(Number(t.price)) && (a[t.sku] = Number(t.price)); return a; })(e); for (const n of e) Number.isFinite(t[n.sku]) && this.livePrices.set(n.sku, t[n.sku]); } catch (t) { u("live pricing (comparing on search-page prices)", t); } } async loadStock(t) { const e = t.filter((t) => !this.stockRequested.has(t.sku)); if (!e.length) return; e.forEach((t) => this.stockRequested.add(t.sku)); const n = await (async function (t) { const e = await q( t.map((t) => ({ sku: t.sku, itemId: t.item, uom: t.cart?.pack_uom ?? "1", template: t.cart?.template_item ?? "", inventoryV2: t.inventoryV2, })), ), n = {}; for (const t of e) { let e = 0, a = 0; for (const n of t.shipping?.warehouses || []) /^local/i.test(String(n.warehouse || n.location_name)) ? (e += Number(n.quantity) || 0) : (a += Number(n.quantity) || 0); n[t.sku] = { local: e, group: a, count: Number(t.shipping?.count) || 0, hideAdd: 1 === Number(t.shipping?.hide_addtocart), }; } return n; })(e).catch(() => ({})); Object.values(n).some((t) => t.count > 0 || t.local + t.group > 0) && this.set({ stock: { ...this.state.stock, ...n } }); } } function a(t, e, n) { if (D.track) try { const a = D.api + t + "/events/" + e + (n ? "?" + new URLSearchParams(n) : ""); if (navigator.sendBeacon?.(a)) return; fetch(a, { method: "POST", keepalive: !0 }).catch(() => {}); } catch (t) { u("track", t); } } const o = new Set(); function i(t, e) { o.has(e + ":" + t) || (o.add(e + ":" + t), a(t, e)); } const r = '', s = '', c = '', d = '', p = () => window.innerWidth < 768, l = (t, e) => `${t}${m(e)}`; let w = null, g = null; const b = () => Boolean(w?.matches(":popover-open")); function h() { b() && w.hidePopover(); } let f = 0; function x() { g && b() && !f && (f = requestAnimationFrame(() => { ((f = 0), g && b() && y()); })); } function y() { if (!document.contains(g.link)) { const t = [...document.querySelectorAll(".csw-alt-link")].find( (t) => t.dataset.cswSku === g.link.dataset.cswSku && t.getClientRects().length, ); t && (g.link = t); } if ((w.classList.toggle("is-sheet", p()), p())) return void (w.style.cssText = ""); const t = g.link.getBoundingClientRect(), e = Math.min(window.innerWidth >= 1024 ? 720 : 560, window.innerWidth - 16); w.style.width = e + "px"; const n = w.offsetHeight; let a = t.bottom + 8; (a + n > window.innerHeight - 8 && (a = Math.max(8, t.top - n - 8)), (w.style.left = Math.min(Math.max(8, t.left + t.width / 2 - e / 2), window.innerWidth - e - 8) + "px"), (w.style.top = a + "px")); } const v = (t, e) => `
  • ${s}${m(e)}${1 === t ? '' : ""}
  • `, k = (t, e) => `${t}${m(e)}`; function S(t) { if (!g) return; const e = (t) => w.querySelector(t), n = t.shown.length > 0, a = ["phrases", "searching", "checking"].indexOf(t.phase), o = e(".csw-alt-steps"); ((o.hidden = n || t.finished), o.querySelectorAll(".csw-alt-step").forEach((e, n) => { if ( (e.classList.toggle("is-done", !o.hidden && n < a), e.classList.toggle("is-active", !o.hidden && n === a), 0 === n && (e.querySelector(".csw-alt-lbl").textContent = t.queued ? A.queued : A.step1), 1 === n) ) { const o = t.searchTotal ? Math.round((100 * Math.min(t.searched, t.searchTotal)) / t.searchTotal) : 0; e.querySelector(".csw-alt-bar i").style.width = (n < a ? 100 : n === a ? Math.max(o, 6) : 0) + "%"; } })); const i = e(".csw-alt-list"), s = new Map([...i.children].map((t) => [t.dataset.sku, t])); (t.shown.forEach((t, e) => { let n = s.get(t.sku); if (n) s.delete(t.sku); else { const e = document.createElement("template"); ((e.innerHTML = (function (t, e) { const n = "cart" === e?.context, a = n ? e.qty : 1, o = n ? `` : ``, i = t.url ? `${m(t.name)}` : `${m(t.name)}`; return `
    \n
    \n
    ${t.image ? `` : ""}
    \n
    ${i}${m(t.sku)}
    \n ${((s = t.price), "£" + (Number.isFinite(s) ? s.toFixed(2) : "—"))}\n
    \n
    \n
    ${o}
    \n
    \n
    `; var s; })(t, g.product)), (n = e.content.firstElementChild)); } i.children[e] !== n && i.insertBefore(n, i.children[e] || null); }), s.forEach((t) => t.remove()), i.querySelectorAll(".csw-alt-row").forEach((e) => { const n = et( t.shown.find((t) => t.sku === e.dataset.sku), t.stock[e.dataset.sku], ), a = e.querySelector(".csw-alt-card"); a.innerHTML !== n && (a.innerHTML = n); const o = Boolean(t.stock[e.dataset.sku]?.hideAdd); e.querySelectorAll(".csw-alt-add, .csw-alt-swap").forEach((t) => { ((t.disabled = o || Boolean(g.swapping)), o ? ((t.dataset.title ??= t.title), (t.title = A.cannotAdd)) : t.title === A.cannotAdd && (t.title = t.dataset.title || "")); }); })); const u = e(".csw-alt-more"); let h = ""; (t.stoppedEarly || t.loadingMore ? (h = n ? (t.loadingMore ? A.loadingMore : A.showMore) : "") : t.ranked.length > D.showMax && (h = t.expanded ? A.showFewer : A.showAll.replace("{n}", Math.min(t.ranked.length, D.showAllMax))), (u.hidden = !h), (u.disabled = t.loadingMore), (u.innerHTML = (t.loadingMore ? d : "") + m(h)), u.setAttribute("aria-expanded", String(t.expanded)), (e(".csw-alt-count").textContent = n ? ` · ${t.shown.length} ${A.inStock}` : ""), (e(".csw-alt-foot").hidden = !(n && (t.pending.length || t.searching || t.loadingMore)))); const f = e(".csw-alt-empty"); ((f.hidden = !(t.finished && !n)), (f.textContent = t.stillPending ? A.stillChecking : A.empty)); const x = e(".csw-alt-cat"), v = t.category ? (n ? "more" : t.finished && !t.stillPending ? "cta" : "line") : ""; if (((x.hidden = !v), v && x.dataset.key !== v + t.category.url)) { const { url: e, name: n } = t.category; ((x.dataset.key = v + e), x.classList.toggle("is-cta", "cta" === v), (x.innerHTML = "cta" === v ? `${m(A.browseCta.replace("{name}", n))}` : `${m("more" === v ? A.browseMore : A.browse)} ${m(n)}`)); } const _ = n ? `${t.shown.length} ${A.srResults}` : t.finished ? f.textContent : A.srSearching; (_ !== g.srText && ((g.srText = _), (e(".csw-alt-sr").textContent = _)), !p() && b() && y()); } function T(t) { const e = t.closest(".csw-alt-row"), n = g?.run.state.shown.find((t) => t.sku === e.dataset.sku); return n && { row: e, c: n, qty: Math.max(1, parseInt(e.querySelector("input").value, 10) || 1) }; } async function N(t) { if (t.target.closest(".csw-alt-x")) return void h(); if (t.target.closest(".csw-alt-cat a")) return void (g && i(g.product.productId, "category")); if (t.target.closest(".csw-alt-more")) return void g?.run.toggleExpanded(); const e = t.target.closest("[data-qty]"); if (e) { const t = e.parentElement.querySelector("input"); return void (t.value = Math.max(1, (parseInt(t.value, 10) || 1) + Number(e.dataset.qty))); } const n = t.target.closest(".csw-alt-swap"); if (n) return void (async function (t) { if (!g || t.disabled || g.swapping) return; const e = T(t); if (!e) return; const { row: n, c: o, qty: i } = e, { productId: r, sku: p, lineRef: l } = g.product; ((g.swapping = !0), S(g.run.state), t.classList.add("is-busy"), (t.innerHTML = k(d, A.swapping))); const w = () => { g && ((g.swapping = !1), S(g.run.state)); }; try { const { reload: e } = await M({ ...at(o), line_ref: l || "" }, i, "cart"); a(r, "added", { alternative: o.item, qty: Math.min(i, 9999), swap: 1 }); const c = await C(r, D.removeTimeoutMs); if (e) return void setTimeout(() => window.location.reload(), 700); if (c) return (w(), void h()); (t.classList.replace("is-busy", "is-done"), (t.innerHTML = k(s, A.added)), n.insertAdjacentHTML( "beforeend", `

    ${m(A.swapPartial.replace("{orig}", p))}

    `, )); } catch (e) { (u("swap", e), t.classList.replace("is-busy", "is-error"), (t.innerHTML = k(c, A.failed)), setTimeout(() => { (t.classList.remove("is-error"), (t.innerHTML = k(c, A.swap))); }, 2e3)); } w(); })(n); const o = t.target.closest(".csw-alt-add"); if (!o || o.classList.contains("is-busy") || o.classList.contains("is-done")) return; const p = T(o); if (!p) return; const { c: w, qty: b } = p, { context: f, productId: x } = g.product; (o.classList.add("is-busy"), (o.innerHTML = l(d, A.adding))); try { const { reload: t } = await M(at(w), b, f); if ( (a(x, "added", { alternative: w.item, qty: Math.min(b, 9999) }), o.classList.replace("is-busy", "is-done"), (o.innerHTML = l(s, A.added)), (o.title = A.added), t) ) return void setTimeout(() => window.location.reload(), 700); } catch (t) { (u("add to basket", t), o.classList.replace("is-busy", "is-error"), (o.innerHTML = l(r, A.failed)), (o.title = A.failed)); } setTimeout(() => { (o.classList.remove("is-done", "is-error"), (o.innerHTML = l(r, A.add)), (o.title = "")); }, 2e3); } function P(a, o) { w || ((w = document.createElement("div")), (w.className = "csw-alt-pop"), w.setAttribute("role", "dialog"), w.setAttribute("aria-label", "Alternatives"), w.setAttribute("popover", "auto"), w.addEventListener("toggle", (t) => { "closed" === t.newState && (function () { if (!g || b()) return; const { run: t, link: e } = g; (t.pause(), (t.listener = null), (g = null), document.contains(e) && e.focus({ preventScroll: !0 })); })(); }), w.addEventListener("click", N), w.addEventListener("auxclick", (t) => { 1 === t.button && t.target.closest(".csw-alt-cat a") && g && i(g.product.productId, "category"); }), document.body.appendChild(w), window.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x)); const r = (function (a) { let o = t.get(a.productId); return (o || ((o = new n(a)), t.set(a.productId, o), (e = e.then(() => o.start()).catch((t) => o.fail("run", t)))), o); })(o); if ((r.loadCategory(), g?.run === r && b())) return ((g.link = a), void y()); (g && (g.run.pause(), (g.run.listener = null), (g = null), h()), (g = { run: r, link: a, product: o, srText: "" }), (w.innerHTML = (function (t) { const e = `csw-alt-list-${m(t.productId)}`; return `
    ${m(A.title)} ${m(t.sku)}
    \n
    \n
      ${v(0, A.step1)}${v(1, A.step2)}${v(2, A.step3)}
    \n
    \n \n \n \n \n

    \n
    `; })(o)), (r.listener = S), y(), w.showPopover(), S(r.state), r.state.finished && r.state.stillPending && r.retryChecks(), r.resume(), w.querySelector(".csw-alt-x").focus({ preventScroll: !0 })); } document.addEventListener("click", (t) => { const e = t.target.closest(".csw-alt-link"); if (!e || (!e.closest(".cartproductlines_container") && !e.closest(".product[data-item-id]"))) return; t.preventDefault(); const n = (function (t) { if (t.closest(".cartproductlines_container")) { const e = t.closest("tr.item"), n = [...(e?.classList ?? [])].find((t) => /^item_\d+$/.test(t)), a = Number(n?.slice(5)), o = (Array.isArray(window.$mini_cart) ? window.$mini_cart : []).find((t) => Number(t.item_id) === a); return $({ productId: a, catalogId: Number(o?.item_catalog_id), supplierId: Number(o?.item_supplier_id), price: z(o?.item_price || e?.querySelector(".item_line_price")?.textContent), title: String(o?.item_name ?? e?.querySelector("td.name a.bolder")?.textContent ?? "").trim(), sku: String(t.dataset.cswSku ?? "").trim(), qty: Math.max(1, parseInt(e?.querySelector("input.quantity")?.value || o?.qty, 10) || 1), lineRef: String(e?.querySelector("input.ref")?.value || o?.line_ref || "").trim(), catalogItemId: Number(o?.item_catalog_item_id || L(a)?.item_catalog_item_id) || null, context: "cart", }); } const e = t.closest(".product[data-item-id]"); if (!e) return null; const n = String(t.dataset.cswSku || e.dataset.sku || "").trim(), a = F(e.innerHTML).get(n); return $({ productId: Number(e.dataset.itemId), catalogId: Number(a?.item_catalog_id), supplierId: Number(e.dataset.supplierId || a?.item_supplier_id), price: z(e.querySelector(".price-label[data-value]")?.dataset.value || e.dataset.nativePrice), title: String(e.dataset.itemName || a?.item_name || "").trim(), sku: n, category: I(e.querySelector(".product-category a")), context: "grid", }); })(e); n && (i(n.productId, "opened"), P(e, n)); }); }, ], ]) if (t) try { e(); } catch (t) { console.error("[csw]", e.name, t); } } else "object" == typeof module && module.exports && (module.exports = { deliveryHTML: et, parseProductsList: P, parseCards: F, parseTiles: B, parseSearchPage: H, buildCandidates: V, packCount: G, comparablePrice: J, sameProduct: Y, rankAlternatives: K, chooseToShow: X, fullOfCloseMatches: Q, stagesOf: Z, cartProductFor: at, CONFIG: D, }); })();