/*
 * wdi-design.css - the new look, as a layer.
 * ==========================================
 *
 * SCOPING, WHICH IS THE WHOLE DISCIPLINE OF THIS FILE. Two kinds of rule live here.
 *
 *   1. THE CHROME - the utility strip, the header row, the category bar, the trust strip and the
 *      footer. Site-wide, unavoidably: there is one header and one footer, and there is no such
 *      thing as restyling them on some pages only. They carry .wdi-topbar / .wdi-header / .wdi-nav
 *      / .wdi-trust / .wdi-footer, classes that exist nowhere else.
 *
 *   2. EVERYTHING ELSE - the page ground, the cards, the panels, the tables. Scoped under
 *      .wdi-scope--dashboard or .wdi-scope--nav, which WDI_Dashboard::body_class() puts on the
 *      signed-in homepage and the account dashboard and NOWHERE ELSE. A category page, a product
 *      page, the basket and the checkout are untouched, and the browser tests assert it.
 *
 * Adding a new area to the refresh is then a matter of adding a scope class, not of copying values.
 *
 * THE COLOURS ARE SAMPLED, NOT INVENTED. Every value in the palette below was read out of the
 * approved concept (reports/w2b-design/page-05.png) pixel by pixel, which is also how we know the
 * concept's content ground is WHITE with pale blue-grey cards on it, rather than the other way
 * round. See the note at --wdi-page.
 *
 * Tokens live on :root because custom properties have to be declared somewhere inheritable - they
 * paint nothing on their own, so declaring them globally changes no pixel outside a scope.
 *
 * The brand is unchanged: same logo, same blue, same white. What changes is everything around it -
 * a real type scale, space on a grid, and buttons that have more than one state, because today
 * every button on this site is the same solid blue and nothing has a hierarchy.
 */

:root {
  /*
   * ONE SOURCE OF TRUTH IS wdi-system.css. Everything here is an ALIAS of a system token, kept so
   * that four rounds of page composition do not have to be rewritten in one go to reach it. New
   * work uses the system names; these are the bridge, and they shrink as pages are rebuilt.
   *
   * Two values genuinely CHANGE as a result, both deliberate:
   *   --wdi-ink-4 was #8a9299, which measures 3.16:1 on white. Column headers are 12px, where the
   *     bar is 4.5:1, so it failed everywhere it was used. It is now the system's --wdi-ink-3.
   *   --wdi-ink was #14181d, an invented near-black. It is now #373736, sampled from the wordmark
   *     in the logo, so headings are set in the company's own charcoal.
   */
  --wdi-blue-pale: var(--wdi-tint);
  --wdi-card: var(--wdi-bg);
  --wdi-card-pale: var(--wdi-pale);
  --wdi-card-tint: var(--wdi-tint);
  --wdi-page: var(--wdi-bg);
  --wdi-bg-2: var(--wdi-pale);
  --wdi-bg-3: var(--wdi-pale);
  --wdi-ink-4: var(--wdi-ink-3);
  --wdi-trust-bg: var(--wdi-tint);
  --wdi-foot-bg: var(--wdi-pale);
  --wdi-btn-pressed: var(--wdi-tint);
  --wdi-ok-bg: #e8f5ec;
  --wdi-warn-bg: #fef3e0;
  --wdi-bad-bg: #fee2e2;
}


/* ==================================================================== dashboard */

.wdi-scope--dashboard .wdi-dash {
  font-family: var(--wdi-font);
  color: var(--wdi-ink);
  font-size: 16px;
  line-height: 1.5;
}

.wdi-scope--dashboard .wdi-dash *,
.wdi-scope--dashboard .wdi-dash *::before,
.wdi-scope--dashboard .wdi-dash *::after { box-sizing: border-box; }

/* ---- header ---- */
.wdi-dash__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wdi-4);
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 var(--wdi-5);
}
.wdi-dash__greeting {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 var(--wdi-1);
  color: var(--wdi-ink);
}
.wdi-dash__sub {
  margin: 0;
  font-size: 14px;
  color: var(--wdi-ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wdi-3);
  align-items: center;
}
.wdi-dash__code {
  font-weight: 600;
  color: var(--wdi-ink-2);
  background: var(--wdi-bg-3);
  border-radius: var(--wdi-r-sm);
  padding: 2px var(--wdi-2);
  letter-spacing: .02em;
}
.wdi-dash__notice { margin: 0 0 var(--wdi-5); }

/* ---- the one number, as the concept leads with ---- */
.wdi-credit-card {
  background: var(--wdi-card-pale);
  border: 0;
  border-radius: 10px;
  padding: var(--wdi-3) var(--wdi-5);
  text-align: right;
  min-width: 230px;
}
.wdi-credit-card__label {
  display: block;
  font-size: 13px;
  color: var(--wdi-ink-3);
}
.wdi-credit-card__amount {
  /* The concept sets this figure in the brand blue, and it is the only blue number on the page.
     inline-block, not block, so "of GBP 2,000" sits on its baseline rather than under it. */
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wdi-credit);
  font-variant-numeric: tabular-nums;
}
.wdi-credit-card__of { font-size: 13px; color: var(--wdi-ink-3); margin-left: 4px; }
.wdi-credit-card--over { background: var(--wdi-bad-bg); border-color: var(--wdi-bad); }
.wdi-credit-card--over .wdi-credit-card__amount { color: var(--wdi-bad); }
.wdi-credit-card--proforma { background: var(--wdi-warn-bg); border-color: var(--wdi-warn); }

/* ---- the three action cards ---- */
.wdi-dash__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wdi-4);
  margin: 0 0 var(--wdi-6);
}
.wdi-card {
  background: var(--wdi-card);
  border: 0;                      /* the concept has no card borders at all */
  border-radius: 10px;
  padding: var(--wdi-5);
  display: flex;
  flex-direction: column;
}
/* Order again is the card the page is FOR, so it is tinted and carries the only solid button in
   the row. Saved lists and Quick add are pale and quiet. Never two solid blues competing. */
.wdi-card--active { background: var(--wdi-card-tint); }
.wdi-card--quiet  { background: var(--wdi-card-pale); }

.wdi-card__title { font-size: 16px; font-weight: 700; margin: 0 0 var(--wdi-1); color: var(--wdi-ink); }
.wdi-card__sub   { font-size: 14px; color: var(--wdi-ink-3); margin: 0 0 var(--wdi-4); flex: 1 1 auto; }

.wdi-dash__quick { display: flex; gap: var(--wdi-2); }
.wdi-dash__quick .wdi-input { flex: 1 1 auto; min-width: 0; }
/* The quick-add field is a white well on a pale card, and it is the whole control - the concept
   shows no button beside it. */
.wdi-scope--app .wdi-input--code { background: #fff; }

/* ---- buttons: one shape, four states ----
   W2d: the info scope (About, Contact, Track, the brochure) named in every list too - its pages carry
   forms now, and the theme beat the bare component there exactly as it did in the app scope. */
.wdi-scope--app .wdi-btn,
.wdi-scope--info .wdi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wdi-2);
  font-family: var(--wdi-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 0 var(--wdi-4);
  height: 44px;                       /* a real touch target */
  border-radius: var(--wdi-r-sm);
  /* WIDTH AND STYLE ONLY - never border-color.
   *
   * This rule is (0,2,0) and exists to beat the theme. The system's modifiers are (0,1,0), so a
   * `border: 1px solid transparent` shorthand here silently overrode the border-colour of every
   * modifier this file does not also restate - which was .wdi-btn--outline and .wdi-btn--ghost.
   * Enquire rendered as bare blue text with an invisible outline wherever it appeared inside the
   * app scope. Declaring the two harmless longhands leaves the colour to the modifier that owns
   * it, and the system's own .wdi-btn supplies transparent when there is no modifier. */
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.wdi-scope--app .wdi-btn--primary,
.wdi-scope--info .wdi-btn--primary {
  background: var(--wdi-btn);
  color: #fff;
}
.wdi-scope--app .wdi-btn--primary:hover,
.wdi-scope--app .wdi-btn--primary:focus,
.wdi-scope--info .wdi-btn--primary:hover,
.wdi-scope--info .wdi-btn--primary:focus { background: var(--wdi-btn-hover); color: #fff; }
.wdi-scope--app .wdi-btn--primary:active,
.wdi-scope--app .wdi-btn--primary[aria-pressed="true"],
.wdi-scope--info .wdi-btn--primary:active,
.wdi-scope--info .wdi-btn--primary[aria-pressed="true"] {
  background: var(--wdi-tint);
  color: var(--wdi-blue-dark);
}

.wdi-scope--app .wdi-btn--secondary,
.wdi-scope--info .wdi-btn--secondary {
  background: var(--wdi-bg);
  color: var(--wdi-blue);
  border-color: var(--wdi-line-strong);
}
.wdi-scope--app .wdi-btn--secondary:hover,
.wdi-scope--app .wdi-btn--secondary:focus,
.wdi-scope--info .wdi-btn--secondary:hover,
.wdi-scope--info .wdi-btn--secondary:focus {
  background: var(--wdi-blue-pale);
  border-color: var(--wdi-blue);
  color: var(--wdi-blue-dark);
}
.wdi-scope--app .wdi-btn[disabled],
.wdi-scope--app .wdi-btn[aria-disabled="true"],
.wdi-scope--info .wdi-btn[disabled],
.wdi-scope--info .wdi-btn[aria-disabled="true"] {
  background: var(--wdi-bg-3);
  color: var(--wdi-ink-3);
  border-color: var(--wdi-line);
  cursor: not-allowed;
}
.wdi-scope--app .wdi-btn--block,
.wdi-scope--info .wdi-btn--block { width: 100%; }
.wdi-scope--app .wdi-btn--sm { height: 32px; font-size: 13px; padding: 0 var(--wdi-4); }

/* Pills, as the concept draws them - every button on this page, at every size. A pill is the
   site's one button shape now; the square-cornered blue slab was the old look. */
.wdi-scope--app .wdi-btn,
.wdi-scope--info .wdi-btn { border-radius: var(--wdi-r-pill); }

/* ---- inputs ---- */
.wdi-scope--app .wdi-input {
  font-family: var(--wdi-font);
  font-size: 15px;
  height: 44px;
  padding: 0 var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-bg);
  color: var(--wdi-ink);
  width: 100%;
}
.wdi-scope--app .wdi-input--qty { width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.wdi-scope--app .wdi-input:focus,
.wdi-scope--app .wdi-btn:focus-visible,
.wdi-scope--app .wdi-link:focus-visible {
  outline: 2px solid var(--wdi-blue);
  outline-offset: 2px;
}

/* ---- panels and tables ---- */
/*
 * The concept does NOT put Your products or Recent orders in a box. They sit straight on the page,
 * with a heading row, uppercase column headers and hairline separators doing all the structuring -
 * which is why the three action cards above read as cards at all. Boxing everything would flatten
 * that hierarchy back out.
 */
.wdi-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 var(--wdi-6);
}
.wdi-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wdi-3);
  padding: 0 0 var(--wdi-3);
  border-bottom: 0;
}
.wdi-panel__title { font-size: 16px; font-weight: 700; margin: 0; }
.wdi-link { color: var(--wdi-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.wdi-link:hover { text-decoration: underline; }

.wdi-table { width: 100%; border-collapse: collapse; margin: 0; }
.wdi-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-4);
  text-align: left;
  padding: var(--wdi-2) var(--wdi-3);
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  background: none;
}
.wdi-table td {
  padding: var(--wdi-3);
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  font-size: 14px;
  vertical-align: middle;
  height: 72px;
}
.wdi-table th:first-child, .wdi-table td:first-child { padding-left: 0; }
.wdi-table th:last-child,  .wdi-table td:last-child  { padding-right: 0; }
.wdi-table .wdi-num { text-align: right; font-variant-numeric: tabular-nums; }
.wdi-table__thumb { width: 76px; }
.wdi-table__thumb img {
  /* A tile, not a bare cut-out: the concept sits every image on a pale rounded square so a range
     of photography with different backgrounds still reads as one column. The explicit width and
     height are load-bearing - without them the image and its cell size each other in a circle and
     both resolve to 0. */
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-card-pale);
  border-radius: var(--wdi-r);
  padding: 4px;
}
.wdi-table__name { font-weight: 400; color: var(--wdi-ink); }
.wdi-table__code, .wdi-table__pack { color: var(--wdi-ink-2); font-size: 14px; white-space: nowrap; }
.wdi-table__hint { display: block; font-size: 13px; font-weight: 400; color: var(--wdi-ink-3); margin-top: 2px; }
.wdi-table__add { text-align: right; white-space: nowrap; }
.wdi-table__row--off { color: var(--wdi-ink-3); }
.wdi-table__row--off .wdi-table__name { font-weight: 400; }
.wdi-muted { color: var(--wdi-ink-3); font-size: 14px; }
.wdi-dash__status { padding: var(--wdi-3) 0; margin: 0; font-size: 14px; color: var(--wdi-ink-2); }

/* "Order #488973 placed Monday 21 September" - reassurance, on its own pale strip. */
.wdi-dash__confirm {
  margin: 0;
  padding: var(--wdi-3) var(--wdi-4);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-card-pale);
  border-top: 1px solid var(--wdi-line);
  font-size: 13px;
  color: var(--wdi-ink-2);
}
.wdi-dash__tick { color: var(--wdi-ok); font-weight: 700; margin-right: 6px; }

/* ---- status chips: words plus colour, never colour alone ---- */
.wdi-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px var(--wdi-2);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-bg-3);
  color: var(--wdi-ink-2);
  white-space: nowrap;
}
.wdi-chip--processing { background: var(--wdi-blue-pale); color: var(--wdi-blue-dark); }
.wdi-chip--complete   { background: var(--wdi-ok-bg);     color: var(--wdi-ok); }
.wdi-chip--on_hold    { background: var(--wdi-warn-bg);   color: var(--wdi-warn); }
.wdi-chip--cancelled  { background: var(--wdi-bad-bg);    color: var(--wdi-bad); }

/* ==================================================================== account nav */

/*
 * The nav keeps its blue panel - it is recognisable and nobody asked for it to change. What
 * changes is the spacing, the current-item marker and the focus state. The current item was
 * already black against the blue; it now also carries a light left marker, so "where am I" does
 * not depend on telling black from blue at a glance.
 */
.wdi-scope--nav .woocommerce-MyAccount-navigation { font-family: var(--wdi-font); }
.wdi-scope--nav .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }

.wdi-scope--nav .woocommerce-MyAccount-navigation li { margin: 0; border: 0; }
.wdi-scope--nav .woocommerce-MyAccount-navigation li + li { border-top: 1px solid rgba(255, 255, 255, .16); }

/*
 * Vertical padding only. The theme puts each item's icon in an absolutely-positioned :after at
 * left:16px and reserves room for it with padding-left:55px on the link - so setting the padding
 * shorthand here wipes out the gutter and the icons land on top of their own labels. (Which is
 * exactly what the first build of this did.) The three tabs we added have no icon but inherit the
 * same gutter, so every label still lines up in one column.
 */
.wdi-scope--nav .woocommerce-MyAccount-navigation li a {
  display: block;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .12s ease;
}
.wdi-scope--nav .woocommerce-MyAccount-navigation li a:hover { background: rgba(255, 255, 255, .12); }
.wdi-scope--nav .woocommerce-MyAccount-navigation li.is-active a {
  font-weight: 600;
  border-left-color: rgba(255, 255, 255, .85);
}
.wdi-scope--nav .woocommerce-MyAccount-navigation li a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* ==================================================================== responsive */

@media (max-width: 1023px) {
  .wdi-dash__actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .wdi-dash__head { flex-direction: column; align-items: stretch; }
  .wdi-credit-card { text-align: left; min-width: 0; }
  .wdi-dash__greeting { font-size: 24px; }

  /*
   * A wide table scrolls inside its own panel; the PAGE must never scroll sideways. The min-width
   * has to be generous enough that the product name still reads as a line of text - squeezing
   * seven columns into 390px turns every name into a five-line stack, which is worse than
   * scrolling.
   */
  .wdi-panel { overflow-x: auto; }
  .wdi-table { min-width: 760px; }
  .wdi-table__name { min-width: 190px; }

  /*
   * The account nav is a stacked block above the content, which on a phone pushes the actual page
   * off the first screen. It becomes a horizontal scroller instead.
   */
  .wdi-scope--nav .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wdi-scope--nav .woocommerce-MyAccount-navigation li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .16); }
  .wdi-scope--nav .woocommerce-MyAccount-navigation li a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .wdi-scope--nav .woocommerce-MyAccount-navigation li.is-active a {
    border-left: 0;
    border-bottom-color: rgba(255, 255, 255, .85);
  }
}

@media (max-width: 640px) {
  .wdi-dash__actions { grid-template-columns: 1fr; }
  .wdi-dash__quick { flex-direction: column; }
  .wdi-dash__quick .wdi-btn { width: 100%; }
}

/* Respect a reduced-motion preference: none of the transitions here carry meaning. */
@media (prefers-reduced-motion: reduce) {
  .wdi-scope--app .wdi-btn,
  .wdi-scope--nav .woocommerce-MyAccount-navigation li a { transition: none; }
}

/* ==================================================================== chrome
 *
 * Site-wide by nature: one header serves every page, signed in or out. The page BACKGROUND and the
 * card language stay scoped to the signed-in homepage and the account dashboard - see the scope
 * note at the top of this file.
 */

.wdi-wrap { max-width: var(--wdi-container); margin: 0 auto; padding: 0 var(--wdi-4); }   /* W2q: the site container */

/* ---- top bar: slim, flat, no angled tab ---- */
.wdi-topbar {
  /* The concept's strip lightens towards the left; sampled #4cb1f5 at the left edge against the
     brand blue at the right. Flat blue reads heavier than the concept does. */
  background: var(--wdi-grad);   /* W2p: the token (the logo's light blue into the brand blue) */
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.wdi-topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--wdi-3);
  min-height: 34px;
}
.wdi-topbar__item { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.wdi-topbar__item:hover { color: #fff; text-decoration: underline; }
.wdi-topbar__icon { font-size: 12px; opacity: .9; }
.wdi-topbar__sep { opacity: .5; }

/* ---- header row ---- */
.wdi-header { background: #fff; border-bottom: 1px solid var(--wdi-line); }
.wdi-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wdi-4);
  flex-wrap: wrap;
  min-height: 84px;
  position: relative;
}
.wdi-header__logo img { display: block; height: 46px; width: auto; }

.wdi-header__links { display: flex; align-items: center; gap: var(--wdi-5); }
.wdi-header__link {
  font-family: var(--wdi-font);
  font-size: 15px;
  color: var(--wdi-ink-2);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.wdi-header__link:hover { color: var(--wdi-blue); }
.wdi-header__account { font-weight: 700; color: var(--wdi-ink); }
.wdi-header__link:focus-visible { outline: 2px solid var(--wdi-blue); outline-offset: 3px; }

/* ---- the header search (W2r A, W2s A) ------------------------------------------------------------
 * From 1024 the search field is ALWAYS on the header row, on every page, in the gap between the logo and
 * the links, which it fills; there is no Search link at these widths (W2s: Rob - "that search bar needs
 * to remain out all the time... on desktops"). No label on show (it is the screen reader's), no button -
 * Enter submits. The suggestion list hangs under the field at the field's width. Below 1024 it is the
 * full-width sheet under the row (W2r), opened by the Search link, with no label and no button. */
.wdi-header__search { flex: 1 0 100%; padding: 0 0 var(--wdi-3); }
.wdi-header__search .wdi-search { position: relative; margin: 0; }
.wdi-search__row { position: relative; display: flex; align-items: center; }
.wdi-search__row > .wdi-search__icon {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  color: var(--wdi-ink-3); pointer-events: none;
}
.wdi-header__search input.wdi-search__input[type="search"] { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding-left: 42px; }
.wdi-header__search .wdi-suggest { right: 0; }
/* Below 1024 the field comes first in the markup but the sheet goes UNDER the logo-and-icons row. */
@media (max-width: 1023px) {
  .wdi-chrome .wdi-header__logo { order: 1; }
  .wdi-chrome .wdi-header__links { order: 2; }
  .wdi-chrome .wdi-header__inner > .wdi-header__search { order: 3; }
}
@media (min-width: 1024px) {
  .wdi-chrome .wdi-header__inner { flex-wrap: nowrap; }
  .wdi-chrome .wdi-header__logo { order: 1; flex: none; }
  .wdi-chrome .wdi-header__inner > .wdi-header__search {
    order: 2; flex: 1 1 auto; min-width: 180px; padding: 0; margin: 0 var(--wdi-5);
  }
  .wdi-chrome .wdi-header__links { order: 3; flex: none; margin-left: auto; }
  .wdi-chrome .wdi-header .wdi-search-toggle { display: none; }
}
/* 1024-1279 the row would need 1,143px of its 992: the field gets room by the links taking their short
   labels ("Code", "Account" - the long ones stay for a screen reader, hidden visually, not removed) and
   the gaps round the field closing up. W2s: always, now that the field is always there. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-chrome .wdi-header .wdi-header__inner > .wdi-header__search { margin: 0 var(--wdi-3); }
  .wdi-chrome .wdi-header .wdi-header__links .wdi-long {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .wdi-chrome .wdi-header .wdi-header__links .wdi-short { display: inline; }
}

/* ---- the category bar -------------------------------------------------------------------------
 *
 * This is the wp-megamenu plugin's menu, not ours, and it arrives with three sets of rules already
 * fighting over it: the plugin's generated sheet in uploads, the theme's Customizer CSS (which
 * prints in wp_head AFTER every enqueued stylesheet, so it wins any tie), and the plugin's own
 * inline widths. Every selector below is therefore deliberately one step more specific than the
 * rule it replaces. Where a value is only reachable past an !important, that is noted at the line.
 *
 * THE BREAKPOINT. The menu was set to collapse to a hamburger below 1501px, which meant a 1440
 * laptop - and every 1366 laptop - got a hamburger where the approved concept shows a full category
 * bar. Ten items at the plugin's own 14px/10px sizing measure 1290px, so they genuinely did not
 * fit; tightened to 13px/8px they measure 1228, which clears a 1280px row and does not clear a
 * 1200px one - at 1200 a label wrapped and the bar grew to two lines. The bar therefore shows from
 * 1280px up, which covers the 1366 and 1440 laptops these customers use, and the plugin's own
 * responsive_breakpoint option is set to 1279px to match: it drives both the generated media query
 * and the script that adds .wpmm-mobile-menu, so the two must agree or they fight at the seam.
 */
/* W2i: the palette's tokens. The hairline is an inset shadow, not a border, so the bar stays the
   46px the suites (and the header's rhythm) hold it to. */
.wdi-nav { background: var(--wdi-nav-bg); box-shadow: inset 0 -1px 0 var(--wdi-nav-line); }
.wdi-nav__inner { max-width: 1296px; margin: 0 auto; padding: 0; position: relative; }

/* The bar's colour belongs to .wdi-nav, so the plugin's own dark grey is cleared out from under it
   and the 70px fixed height becomes content height. */
.wdi-nav #wp-megamenu-primary {
  background-color: transparent;
  height: auto;
  min-height: 0;
  padding: 0;
  text-align: left;
}
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap { text-align: left; }

/* The plugin appends a search icon as an eleventh item, and it carries 23px of vertical padding -
   which is why the bar measured 70px tall for 20px of text. Search belongs in the header row in the
   concept, not twice over, so the item goes. */
.wdi-nav #wp-megamenu-primary li.wpmm-social-link-search,
.wdi-nav .wpmm-search-wrap { display: none; }

/* Top-level items: smaller and tighter than the plugin's defaults. Ten categories with names as
   long as "Cleaning Machines, Bags and Accessories" measured 1363px at 13px/8px against a 1264px
   row, so the bar pushed the whole DOCUMENT out to 1450px and every page of the site scrolled
   sideways by 10px. 12px/6px brings the row in under the container, which fits with room to spare
   and still reads as a nav bar rather than small print. White, not 70%-white - the concept's bar
   reads as solid. */
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a {
  font-family: var(--wdi-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: var(--wdi-nav-ink);
  padding: 13px 6px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li:hover > a,
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li.current-menu-ancestor > a,
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li.current-menu-item > a,
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li.active > a {
  color: var(--wdi-nav-hover-ink);
  background-color: var(--wdi-nav-hover-bg);
}

/* ---- desktop: the bar is a row, not a drawer ---- */
@media (min-width: 1280px) {
  /* Beats the Customizer's .desktop-mega-menu{display:none} inside its max-width:1500px block. */
  .wdi-nav .desktop-mega-menu { display: block; margin-bottom: 0; }
  .wdi-nav .mobile-mega-menu  { display: none; }

  /* The Customizer turns this UL into a full-height fixed drawer below 1500px. Between 1200 and
     1500 that is now wrong, so it goes back to being a row. */
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu {
    display: flex;
    flex-wrap: nowrap;
    position: static;
    width: auto;
    height: auto;
    top: auto;
    max-height: none;
    background: none;
  }
  /* The plugin lays the items out as inline-blocks, which leaves a line-box descender gap under
     every one of them and made the bar 70px tall for 20px of text. Flex removes the gap, so the
     bar's height is exactly its padding plus its line - 44px, matching the concept. */
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li {
    float: none;
    width: auto;
    display: flex;
    align-items: stretch;
  }
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a {
    display: flex;
    align-items: center;
  }
  /* The hamburger is display:inline-block!important below the plugin's breakpoint. */
  .wdi-nav .desktop-mega-menu a.wpmm_mobile_menu_btn { display: none !important; }
}

/* ---- below 1200: the hamburger, but inside the bar rather than loose at the top of the page ----
 *
 * The Customizer pins .mobile-mega-menu to position:absolute; top:0, which under the new header put
 * the hamburger on top of the blue utility strip. It belongs in the flow of the dark bar.
 */
@media (max-width: 1279px) {
  .wdi-nav .mobile-mega-menu {
    display: block;
    position: static;
    top: auto;
  }
  .wdi-nav .desktop-mega-menu { display: none; }

  /* The plugin gives the button 21px of vertical margin and forces it black, which is invisible on
     a dark bar. Both need beating: the colour carries !important at (0,1,0). */
  .wdi-nav #wp-megamenu-primary.wpmm-mobile-menu a.wpmm_mobile_menu_btn {
    margin: 8px 0;
    padding: 6px 4px;
  }
  .wdi-nav .wpmm_mobile_menu_btn,
  .wdi-nav .wpmm_mobile_menu_btn:hover { color: #fff !important; }
  .wdi-nav .wpmm_mobile_menu_btn i { font-size: 18px; }
  .wdi-nav #wp-megamenu-primary.wpmm-mobile-menu > .wpmm-nav-wrap { text-align: left; }
}

/* ---- trust strip ---- */
.wdi-trust {
  background: var(--wdi-trust-bg);
  color: var(--wdi-ink-2);
  font-size: 13px;
  text-align: center;
  padding: 9px var(--wdi-4);
  border-bottom: 1px solid rgba(0, 87, 168, .12);
}

@media (max-width: 782px) {
  .wdi-topbar__inner { justify-content: center; font-size: 12px; }
  .wdi-header__inner { min-height: 0; padding-top: var(--wdi-3); padding-bottom: var(--wdi-3); }
  .wdi-header__logo img { height: 38px; }
  .wdi-header__links { gap: var(--wdi-4); font-size: 14px; }
  .wdi-trust { font-size: 12px; text-align: left; }
}

/* ---- the signed-in homepage wrapper ----
 *
 * Full width, no account sidebar: this IS the homepage for a trade customer. The account dashboard
 * renders the identical markup inside WooCommerce's own two-column wrapper, which is the whole
 * point of one template and two wrappers.
 */
.wdi-scope--home .wdi-home { background: var(--wdi-page); padding: var(--wdi-6) 0 var(--wdi-7); }
.wdi-scope--home .wdi-home__inner { max-width: var(--wdi-container); }

/* Money is bold and dark; the price is the column a customer scans. */
.wdi-scope--app .wdi-table__price { font-weight: 700; color: var(--wdi-ink); }
.wdi-scope--app .wdi-input--qty { width: 56px; height: 36px; text-align: center; padding: 0; }

@media (max-width: 782px) {
  .wdi-scope--home .wdi-home { padding: var(--wdi-5) 0 var(--wdi-6); }
  .wdi-dash__greeting { font-size: 24px; }
  .wdi-credit-card { text-align: left; width: 100%; }
}

/* ==================================================================== footer
 *
 * Site-wide, like the header, and for the same reason: there is one of it.
 *
 * THE MOP-AND-PAPER BANNER IS GONE. .subscribe-page is 1440x240 of photograph with nothing in it -
 * zero words, zero links, zero inputs. It was a newsletter sign-up whose form is commented out in
 * the template, leaving a background image and 240px of empty padding on every page that is not the
 * dashboard. The dispatch asked whether it could survive as a slim strip somewhere: it could not,
 * because a 120px strip of the same photograph with nothing in it is the same nothing, half as
 * tall. Hidden rather than deleted from four parent-theme templates, so it is one line to bring
 * back, and because a display:none element does not fetch its background image at all.
 */
.subscribe-page { display: none; }

.wdi-footer {
  background: var(--wdi-foot-bg);
  font-family: var(--wdi-font);
  margin-top: var(--wdi-7);
  padding-top: var(--wdi-6);
}
.wdi-footer .contact-page { margin-top: 0; padding-left: 0; }
.wdi-footer .contact-page img { width: 150px; }
.wdi-footer .contact-page p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wdi-ink-2);
  margin: var(--wdi-2) 0 var(--wdi-3);
}
.wdi-footer .contact-page i { font-size: 15px; padding: 4px; color: var(--wdi-ink-2); }

/*
 * THE FOOTER IS A GRID, not four bootstrap floats.
 *
 * Four equal columns at 1440, two at 1024, one stacked on a phone. The bootstrap .col-lg-3 classes
 * are still in the markup - it is the theme's own footer - so they are neutralised here rather than
 * removed, which keeps this a stylesheet change and not a template rewrite.
 *
 * There is no .first class on the headings, despite what the parent theme's CSS assumes: each menu
 * is a plain <ul> whose first <li> is a custom "Our Products" item pointing at #. So the heading is
 * addressed as :first-child, which is what it actually is.
 */
.wdi-footer > .container:not(.end) > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wdi-6);
  margin: 0;
}
.wdi-footer > .container:not(.end) > .row > [class*="col-"] {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
}

/* W2g C23: every size in the footer is a token now, and the line heights are the scale's 1.35.
   The column headings are the system's label (xs, uppercase); the links are md; the contact
   column is one step smaller, sm. The theme's inline `.contact-group li a { font-size: 16px }` was
   setting every link AND every heading (the heading text is a link too) to an off-scale 16px over
   all of this - the link now inherits its item's size. */
.wdi-footer .contact-group { margin: 0; padding: 0; }
.wdi-footer .contact-group > li:first-child {
  font-size: var(--wdi-t-xs);
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-2);
  padding-top: 0;
}
.wdi-footer .contact-group > li:first-child a { pointer-events: none; color: inherit; }
.wdi-footer .contact-group li { font-size: var(--wdi-t-md); line-height: 1.35; padding: 3px 0; color: var(--wdi-ink-2); }
.wdi-footer .contact-group li a { font-size: inherit; line-height: inherit; color: inherit; text-decoration: none; }
/* The theme pads the link 3px as well as the item, so each row was 31px for 19px of text. On a
   desktop the item's padding is the whole gap; below 992 the link keeps its 3px, so the rows stay
   a comfortable size to tap. */
@media (min-width: 992px) { .wdi-footer .contact-group li a { padding: 0; } }
.wdi-footer .contact-group li a:hover { color: var(--wdi-blue); text-decoration: underline; }

/*
 * Our Products runs to eleven categories and on its own set the footer's height. It becomes two
 * columns INSIDE its own grid cell - a real grid, so the heading spans both with grid-column and
 * cannot fall into the left column the way column-span did - and it cannot overflow into the
 * Customer Service column, because a grid cell clips to its track.
 */
.wdi-footer > .container:not(.end) > .row > div:nth-child(3) .contact-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--wdi-4);
  align-content: start;
}
.wdi-footer > .container:not(.end) > .row > div:nth-child(3) .contact-group > li:first-child { grid-column: 1 / -1; }

/* Edge to edge. The theme caps .end at 1240px and centres it, which left the dark bar floating
   with white either side of it. The container gives up its width; the inner strip keeps the text
   aligned with the rest of the footer by padding to the same gutter. */
.wdi-footer .end.container {
  max-width: none !important;
  width: 100%;
  padding: 0;
  margin: 0;
}
.wdi-footer .end.container > .row { margin: 0; }
.wdi-footer .end.container > .row > .col { padding: 0; }
.wdi-footer .end.container .last {
  background-color: var(--wdi-ink);
  height: auto;
  min-height: 40px;
  margin-top: var(--wdi-5);
  padding: var(--wdi-3) max(var(--wdi-4), calc((100vw - var(--wdi-container)) / 2 + var(--wdi-4)));
  align-items: center;
  border-radius: 0;
  width: 100%;
}

/* Four 210px columns at 1024 left every product category wrapping to three lines. Two roomy
   columns read better long before that, so the footer halves at 1200 rather than at 1024. */
@media (max-width: 1199px) {
  .wdi-footer > .container:not(.end) > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wdi-5) var(--wdi-6); }
}
@media (max-width: 640px) {
  /* Stacked, and the products list goes back to one column - two would be 80px wide each. */
  .wdi-footer > .container:not(.end) > .row { grid-template-columns: minmax(0, 1fr); gap: var(--wdi-5); }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(3) .contact-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
  .wdi-footer { margin-top: var(--wdi-5); padding-top: var(--wdi-5); }
  .wdi-footer .end.container .last { padding: var(--wdi-2) var(--wdi-4); }
}

/* ---- the dashboard inside the account wrapper ----
 *
 * The theme paints .woocommerce-MyAccount-content pale blue-grey with a blue rule on top. That is
 * fine for a form, and wrong here: the pale cards vanish into it. The dashboard brings its own
 * ground, so inside this scope the wrapper is white and the rule goes.
 */
.wdi-scope--dashboard .woocommerce-MyAccount-content {
  background: var(--wdi-page);
  border-top: 0;
  padding: var(--wdi-5);
}

/* Number spinners are noise on a quantity of 1; the concept shows a plain box. */
.wdi-scope--app .wdi-input--qty { -moz-appearance: textfield; appearance: textfield; }
.wdi-scope--app .wdi-input--qty::-webkit-outer-spin-button,
.wdi-scope--app .wdi-input--qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/*
 * Screen-reader-only text must not widen the page.
 *
 * WooCommerce hides .screen-reader-text with position:absolute and a 1px clip, but leaves it at its
 * static position - so a label inside the 760px-wide products table lands at x=696, and because an
 * absolutely positioned box escapes its scroll container's overflow accounting, the DOCUMENT
 * measured 697px wide on a 390px phone. Chromium's mobile emulation then zoomed the whole page out
 * to fit: the dashboard rendered at 698 CSS px on a phone, tables and all.
 *
 * Parking it off the left edge fixes it, because browsers do not grow scrollWidth for left overflow
 * in a left-to-right document. It stays in the accessibility tree; it just stops being measurable.
 *
 * Applied to every container of ours, not just the dashboard: the W2a orderable category table has
 * exactly the same defect, and on a phone it was rendering that page at 980 CSS px.
 */
[class*="wdi-"] .screen-reader-text {
  left: -9999px;
  top: auto;
}

/* ==================================================================== account navigation
 *
 * The sidebar is gone (WDI_Account_Nav::unhook_sidebar) and so is the strip that briefly replaced
 * it. The dropdown under the customer's name is the account navigation, on every page.
 */

/* ---- the name, as a menu ---- */
.wdi-accountmenu { position: relative; }
.wdi-accountmenu__trigger { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.wdi-accountmenu__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .12s ease;
}
.wdi-accountmenu.is-open .wdi-accountmenu__caret { transform: rotate(180deg); }

.wdi-accountmenu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  min-width: 210px;
  margin: 6px 0 0;
  padding: var(--wdi-1) 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  box-shadow: var(--wdi-shadow);
  /* Hidden by CLIPPING, not display:none, so the panel is still in the accessibility tree for a
     screen reader walking the header, and so the caret can animate. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /*
   * visibility is a DISCRETE property: a plain "transition: visibility .12s" flips it at the
   * halfway point, so for the first 60ms of opening the panel is still computed hidden - and a
   * visibility:hidden element cannot take focus. That silently swallowed the ArrowDown that is
   * supposed to move a keyboard user into the menu. Opening flips it at 0s; closing waits for the
   * fade to finish so the panel does not vanish mid-animation.
   */
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.wdi-accountmenu.is-open .wdi-accountmenu__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear 0s;
}
.wdi-accountmenu__panel li { margin: 0; list-style: none; }
.wdi-accountmenu__link {
  display: block;
  /* 12px of padding on a 20px line is a 44px target, which is the floor the direction commits to.
     At 9px it measured 39px. */
  padding: 12px var(--wdi-4);
  font-size: 14px;
  color: var(--wdi-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.wdi-accountmenu__link:hover,
.wdi-accountmenu__link:focus { background: var(--wdi-card-pale); color: var(--wdi-ink); }
.wdi-accountmenu__link.is-current { font-weight: 700; color: var(--wdi-ink); }

/*
 * With no JavaScript the panel would be permanently invisible, so :focus-within opens it - tabbing
 * to the name reveals the links, in pure CSS. It is guarded on html.wdi-js (which the script adds
 * to itself) because once the script IS running this rule fights it: Escape closes the menu and
 * returns focus to the trigger, and :focus-within would immediately re-open it.
 */
html:not(.wdi-js) .wdi-accountmenu:focus-within .wdi-accountmenu__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ==================================================================== account pages, full width
 *
 * With the sidebar unhooked, WooCommerce's content column is still floated right at 70% by the
 * theme's Customizer CSS - which would leave the page with a 30% hole down the left. These put it
 * back to full width, and take away two pieces of furniture the concept does not have: the
 * "Home | My account" breadcrumb and the thick blue rule above the content.
 */
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--wdi-5) 0 0;
  border-top: 0;
  background: var(--wdi-page);
}
.woocommerce-account .woocommerce::after { content: ""; display: table; clear: both; }

/* The crumb reads "Home | My account" on every account page and says nothing the name menu above
   it does not. Hidden rather than cut out of two parent-theme templates.
   TWO classes on the same element, not one: round 4 gave .wdi-chrome .breadcrumb the system
   styling at (0,2,0), which tied with this and won on source order - and the breadcrumb came
   back on every account page. (0,3,0) settles it. */
.wdi-chrome.woocommerce-account .breadcrumb,
.wdi-chrome.wdi-scope--home .breadcrumb { display: none; }

/* The dashboard brings its own padding through .wdi-home / the account wrapper. */
.wdi-scope--dashboard .woocommerce-MyAccount-content { padding: var(--wdi-5) 0 0; }

/* ==================================================================== category bar, spacing
 *
 * The plugin prints the dropdown arrow as a <b> immediately after the label with no space, so
 * "Healthcare" and its chevron touch. The concept has no chevrons at all, but the dispatch keeps
 * the menu as it is, so they get a gap instead of being removed.
 */
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a > b,
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a > i {
  margin-left: 6px;
}
.wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a::after { margin-left: 4px; }

/* ==================================================================== the app scope
 *
 * Everything from here down is the component layer applied beyond the dashboard: the account area,
 * category and product pages, and the basket, for a signed-in trade customer. See
 * WDI_Chrome::body_class() for why a logged-out visitor gets .wdi-scope--lite instead.
 *
 * It works ON WooCommerce's own markup rather than replacing it - shop_table, form-row, button,
 * woocommerce-Pagination - because the alternative is ten more template overrides in a child theme
 * that already has too many.
 */
.wdi-scope--app .woocommerce-MyAccount-content,
.wdi-scope--app .woocommerce-MyAccount-content * { box-sizing: border-box; }

.wdi-scope--app .woocommerce-MyAccount-content {
  font-family: var(--wdi-font);
  color: var(--wdi-ink);
  font-size: 15px;
  line-height: 1.5;
}
.wdi-scope--app .woocommerce-MyAccount-content h2,
.wdi-scope--app .wdi-screen-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-4);
}
.wdi-scope--app .woocommerce-MyAccount-content p { font-size: 15px; color: var(--wdi-ink-2); }

/* ---- WooCommerce's own tables, in the concept's language ---- */
.wdi-scope--app table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  margin: 0 0 var(--wdi-5);
  font-size: 14px;
}
.wdi-scope--app table.shop_table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-4);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  padding: var(--wdi-2) var(--wdi-3);
}
.wdi-scope--app table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  padding: var(--wdi-3);
  vertical-align: middle;
  font-size: 14px;
  color: var(--wdi-ink);
}
.wdi-scope--app table.shop_table th:first-child,
.wdi-scope--app table.shop_table td:first-child { padding-left: 0; }
.wdi-scope--app table.shop_table th:last-child,
.wdi-scope--app table.shop_table td:last-child { padding-right: 0; text-align: right; }
.wdi-scope--app table.shop_table tbody tr:hover td { background: var(--wdi-bg-2); }

/* ---- the buttons WooCommerce and the theme print ---- */
/*
 * THE DOUBLED SCOPE CLASS AND THE !important ARE BOTH DELIBERATE.
 *
 * The competing rule is ".woocommerce button.button { background-color: #006dd4 !important }",
 * printed INLINE in wp_head by the theme's Customizer sheet - so it is (0,2,1), it is important,
 * and it comes after every enqueued stylesheet. An equal-specificity important declaration loses
 * that tie on order, which is why .wdi-scope--app button.button was not enough and the class is
 * repeated to reach (0,3,1).
 * The theme's Customizer sheet prints inline in wp_head - after
 * every enqueued stylesheet - and paints .button and .button.alt the same solid blue with
 * !important at (0,2,1). An ordinary declaration cannot beat that at any specificity, so the
 * DEFAULT (outlined) treatment has to carry !important too, or every button on the site stays a
 * solid blue slab and there is no hierarchy at all. It is the same site that this file's header
 * comment describes: one blue is not a design system.
 */
.wdi-scope--app.wdi-scope--app a.button,
.wdi-scope--app.wdi-scope--app .button,
.wdi-scope--app.wdi-scope--app button.button,
.wdi-scope--app.wdi-scope--app input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--wdi-5);
  border-radius: var(--wdi-r-pill) !important;
  font-family: var(--wdi-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--wdi-line-strong) !important;
  background: #fff !important;
  color: var(--wdi-blue) !important;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.wdi-scope--app.wdi-scope--app a.button:hover,
.wdi-scope--app.wdi-scope--app .button:hover,
.wdi-scope--app.wdi-scope--app button.button:hover {
  background: var(--wdi-blue-pale) !important;
  border-color: var(--wdi-blue) !important;
  color: var(--wdi-blue-dark) !important;
}
/* The theme's options sheet forces its blue with !important at (0,2,1), so the primary treatment
   has to out-specify it rather than merely follow it. */
.wdi-scope--app.wdi-scope--app a.button.alt,
.wdi-scope--app.wdi-scope--app .button.alt,
.wdi-scope--app.wdi-scope--app button.button.alt,
.wdi-scope--app.wdi-scope--app input[type="submit"].alt {
  background: var(--wdi-btn) !important;
  border-color: var(--wdi-btn) !important;
  color: #fff !important;
}
.wdi-scope--app.wdi-scope--app .button.alt:hover,
.wdi-scope--app.wdi-scope--app button.button.alt:hover {
  background: var(--wdi-btn-hover) !important;
  border-color: var(--wdi-btn-hover) !important;
}

/* ==================================================================== orders
 *
 * The filter bar is the search box, the status and the per-page choice, on a pale card. Labels
 * ABOVE their controls, not beside them: three controls of different widths with side labels never
 * line up, and the concept puts every label above its field.
 */
/* ---- the orders filter card -------------------------------------------------------------------
 *
 * ONE ROW. It was two rows of fields with a label stacked over each and 24px of gap, and it stood
 * as tall as three orders on the one screen where the orders are the point. The labels stay -
 * "Month" over a select of months is not the same control as an unlabelled select - but they are
 * the system's own 12px uppercase label, tight above a 40px field, and the card is about half what
 * it was.
 */
.wdi-scope--app .wdi-order-search {
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-3) var(--wdi-4);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app .wdi-order-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--wdi-3);
  margin: 0;
}
.wdi-scope--app .wdi-order-search .wdi-filters__group { margin: 0; padding: 0; gap: 2px; }
.wdi-scope--app .wdi-order-search .wdi-filters__group.wdi-order-search__q { flex: 1 1 280px; min-width: 200px; }
/* W2d: on a phone the row is a column, where a 280px basis is a 280px height - 220px of nothing. */
@media (max-width: 639px) {
  .wdi-scope--app .wdi-order-search .wdi-filters__group.wdi-order-search__q { flex: none; min-width: 0; }
}
.wdi-scope--app .wdi-order-search .wdi-label { margin: 0; }
.wdi-scope--app .wdi-order-search .wdi-field { height: 40px; width: 100%; }
.wdi-scope--app .wdi-order-search select.wdi-field { min-width: 150px; }
.wdi-scope--app .wdi-order-search__actions .wdi-btn { height: 40px; }

/* The quick ranges: three links, not a fourth select. */
.wdi-scope--app .wdi-order-search__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-2);
  margin: var(--wdi-3) 0 0;
}
.wdi-scope--app .wdi-order-search__summary {
  display: flex;
  align-items: baseline;
  gap: var(--wdi-3);
  margin: var(--wdi-3) 0 0;
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-2);
}

.wdi-scope--app .wdi-order-preview {
  display: block;
  font-size: 13px;
  color: var(--wdi-ink-3);
  margin-top: 2px;
}
.wdi-scope--app .woocommerce-orders-table__cell-order-total { font-weight: 700; }

/*
 * ONE BUTTON PER ROW. WooCommerce gives View and Order again equal weight as buttons, which makes
 * every row shout twice. View becomes a text link - it is what the order number already does - and
 * Order again keeps the outlined pill, because it is the action the page exists for.
 */
.wdi-scope--app .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }
.wdi-scope--app .woocommerce-orders-table__cell-order-actions .button.view {
  height: auto;
  padding: 0;
  border: 0 !important;          /* the generic pill sets one with !important; a link has none */
  background: none !important;
  color: var(--wdi-blue) !important;
  font-weight: 600;
  border-radius: 0 !important;
  margin-right: var(--wdi-4);
}
.wdi-scope--app .woocommerce-orders-table__cell-order-actions .button.view:hover {
  text-decoration: underline;
  background: none !important;
}
.wdi-scope--app .woocommerce-orders-table__cell-order-actions .wdi-order-again { height: 36px; font-size: 13px; }

/* ---- pagination as pills ---- */
.wdi-scope--app .woocommerce-pagination ul,
.wdi-scope--app .woocommerce-Pagination { display: flex; gap: var(--wdi-2); border: 0; padding: 0; margin: var(--wdi-4) 0 0; list-style: none; }
.wdi-scope--app .woocommerce-pagination li { border: 0; margin: 0; }
.wdi-scope--app .woocommerce-pagination a,
.wdi-scope--app .woocommerce-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--wdi-blue);
  background: #fff;
}
.wdi-scope--app .woocommerce-pagination span.current {
  background: var(--wdi-btn);
  border-color: var(--wdi-btn);
  color: #fff;
}
.wdi-scope--app .woocommerce-pagination a:hover { background: var(--wdi-blue-pale); border-color: var(--wdi-blue); }

@media (max-width: 782px) {
  .wdi-scope--app .wdi-order-search { padding: var(--wdi-4); }
  .wdi-scope--app .wdi-order-search__row { gap: var(--wdi-3); }
  .wdi-scope--app .wdi-order-search .wdi-filters__group { flex: 1 1 100%; }
  .wdi-scope--app .wdi-order-search__actions .wdi-btn { flex: 1 1 auto; }
}

/* ==================================================================== order detail
 *
 * The order summary line WooCommerce prints as three <mark> elements - order number, date, status -
 * which the browser renders as yellow highlighter. They become a quiet summary strip.
 */
.wdi-scope--app .woocommerce-order-details__title,
.wdi-scope--app .woocommerce-column__title { font-size: 18px; font-weight: 700; margin: 0 0 var(--wdi-3); }

.wdi-scope--app .woocommerce-MyAccount-content > p:first-of-type {
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-3) var(--wdi-4);
  font-size: 14px;
  color: var(--wdi-ink-2);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app mark.order-number,
.wdi-scope--app mark.order-date,
.wdi-scope--app mark.order-status {
  background: none;
  color: var(--wdi-ink);
  font-weight: 700;
}

.wdi-scope--app .order_details .product-name { font-weight: 400; }
.wdi-scope--app .order_details .product-total { font-weight: 700; }
.wdi-scope--app .order_details tfoot th { border-bottom: 1px solid var(--wdi-line); }
.wdi-scope--app .order_details tfoot td { font-weight: 700; }
.wdi-scope--app .order_details tfoot tr:last-child th,
.wdi-scope--app .order_details tfoot tr:last-child td { font-size: 16px; border-bottom: 0; }

/* The two actions under the table: Order again leads, Save as list follows. */
.wdi-scope--app .wdi-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wdi-3);
  margin: 0 0 var(--wdi-6);
}

/* ---- the addresses, as two pale cards ---- */
.wdi-scope--app .woocommerce-customer-details .col2-set,
.wdi-scope--app .woocommerce-customer-details .woocommerce-columns--addresses,
.wdi-scope--app .woocommerce-Addresses.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wdi-4);
  margin: 0;
}
/*
 * WooCommerce clearfixes .col2-set with ::before { content: " "; display: table }, and a pseudo
 * element on a GRID container is a grid item - so the clearfix silently took cell one and pushed
 * the billing address into the second column and the shipping address onto a second row. It is not
 * needed once nothing floats.
 */
.wdi-scope--app .woocommerce-customer-details .col2-set::before,
.wdi-scope--app .woocommerce-customer-details .col2-set::after,
.wdi-scope--app .woocommerce-Addresses.col2-set::before,
.wdi-scope--app .woocommerce-Addresses.col2-set::after { display: none; }
.wdi-scope--app .woocommerce-customer-details .woocommerce-column {
  float: none;
  width: auto;
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0;
}
.wdi-scope--app .woocommerce-customer-details address {
  border: 0;
  padding: 0;
  border-radius: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wdi-ink-2);
}
.wdi-scope--app .woocommerce-customer-details p { margin: var(--wdi-2) 0 0; font-size: 14px; }

@media (max-width: 782px) {
  .wdi-scope--app .woocommerce-customer-details .col2-set,
  .wdi-scope--app .woocommerce-customer-details .woocommerce-columns--addresses {
    grid-template-columns: minmax(0, 1fr);
  }
  .wdi-scope--app .wdi-order-actions .button { flex: 1 1 100%; }
}

/* ==================================================================== the W2a screens
 *
 * My lists, list detail, Quick order and My products were built in W2a against the theme's own
 * classes, so they need no new markup - only the language the dashboard already speaks.
 */
.wdi-scope--app .wdi-screen-title { font-size: 22px; font-weight: 700; margin: 0 0 var(--wdi-2); }
.wdi-scope--app .wdi-lists > p,
.wdi-scope--app .wdi-quick-order > p,
.wdi-scope--app .wdi-my-products > p { margin: 0 0 var(--wdi-5); color: var(--wdi-ink-2); }

/* A form that takes input gets the filter bar's card, so every form on the site looks the same. */
.wdi-scope--app .wdi-lists__create,
.wdi-scope--app .wdi-quick-order__form,
.wdi-scope--app .wdi-lists__rename {
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app .wdi-lists__create h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .wdi-lists__create .form-row,
.wdi-scope--app .wdi-lists__rename .form-row,
.wdi-scope--app .wdi-quick-order__form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--wdi-3);
  padding: 0;
}
.wdi-scope--app .wdi-lists__create .form-row:last-child,
.wdi-scope--app .wdi-lists__rename .form-row:last-child,
.wdi-scope--app .wdi-quick-order__form .form-row:last-child {
  flex-direction: row;
  align-items: center;
  gap: var(--wdi-3);
  margin: 0;
}
.wdi-scope--app .wdi-lists__create label,
.wdi-scope--app .wdi-lists__rename label,
.wdi-scope--app .wdi-quick-order__form label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0;
}
.wdi-scope--app .wdi-lists__create .input-text,
.wdi-scope--app .wdi-lists__rename .input-text,
.wdi-scope--app .wdi-quick-order__form .input-text {
  width: 100%;
  padding: var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: #fff;
  font-family: var(--wdi-font);
  font-size: 15px;
  color: var(--wdi-ink);
}
.wdi-scope--app .wdi-lists__create input.input-text,
.wdi-scope--app .wdi-lists__rename input.input-text { height: 44px; padding: 0 var(--wdi-3); }
.wdi-scope--app .wdi-quick-order__form textarea.input-text {
  min-height: 190px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.wdi-scope--app .wdi-lists__create .input-text:focus,
.wdi-scope--app .wdi-lists__rename .input-text:focus,
.wdi-scope--app .wdi-quick-order__form .input-text:focus {
  outline: 2px solid var(--wdi-btn);
  outline-offset: 1px;
  border-color: var(--wdi-btn);
}
.wdi-scope--app .wdi-lists__status,
.wdi-scope--app .wdi-quick-order__status { font-size: 14px; color: var(--wdi-ink-2); }

/* ---- the W2a tables ---- */
.wdi-scope--app table.wdi-rows td { height: 64px; }
.wdi-scope--app table.wdi-rows .wdi-col-actions { text-align: right; white-space: nowrap; }
.wdi-scope--app table.wdi-rows .wdi-col-actions .button { height: 36px; font-size: 13px; padding: 0 var(--wdi-4); }
.wdi-scope--app .wdi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wdi-3);
  margin: var(--wdi-4) 0 0;
}
/* A row for a product that cannot be ordered keeps the W2a treatment: greyed, and it says why. */
.wdi-scope--app table.wdi-rows tr.wdi-row--off td,
.wdi-scope--app table.wdi-rows tr.wdi-row--unavailable td {
  color: var(--wdi-ink-3);
  background: var(--wdi-bg-2);
}

/* ==================================================================== my products: the toggles
 *
 * Two segmented groups - sort, and how many. W2a already gives each a <legend> and marks the
 * chosen button with aria-pressed and .wdi-toggle__btn--on; this makes the pressed state read at a
 * glance instead of being a slightly different blue.
 *
 * The specificity is (0,4,1) with !important on purpose: the theme's options sheet paints every
 * .button its solid blue with !important at (0,2,1), and the generic pill above adds its own, so
 * the pressed state has to out-rank BOTH or the group looks identical whichever button is chosen.
 */
.wdi-scope--app .wdi-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--wdi-5);
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app .wdi-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-2);
  border: 0;
  margin: 0;
  padding: 0;
}
.wdi-scope--app .wdi-toggle__legend {
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  padding: 0;
  margin: 0 0 6px;
}
.wdi-scope--app .wdi-controls .wdi-toggle button.wdi-toggle__btn {
  height: 36px;
  padding: 0 var(--wdi-4);
  font-size: 13px;
}
/* pressed state: see the system, and wdi-reorder.css for the !important it needs */

/* ==================================================================== addresses, account details
 *
 * WooCommerce's own forms, in the same language as the filter bar: labels above, 44px fields, a
 * primary pill to save. No template override - these are among the ten stale ones the child theme
 * already carries, and the fewer of those the better.
 */
.wdi-scope--app .woocommerce-Addresses .woocommerce-Address {
  float: none;
  width: auto;
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0;
}
.wdi-scope--app .woocommerce-Address-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wdi-3);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .woocommerce-Address-title h3 { font-size: 16px; font-weight: 700; margin: 0; padding: 0; float: none; }
.wdi-scope--app .woocommerce-Address-title .edit {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--wdi-blue) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  float: none;
  display: inline;
}
.wdi-scope--app .woocommerce-Address-title .edit:hover { text-decoration: underline; }
.wdi-scope--app .woocommerce-Address address {
  border: 0;
  padding: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wdi-ink-2);
}

/* ---- the forms ---- */
.wdi-scope--app .woocommerce-MyAccount-content form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--wdi-4);
  padding: 0;
  float: none;
  width: 100%;
}
.wdi-scope--app .woocommerce-MyAccount-content form .form-row label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0;
}
.wdi-scope--app .woocommerce-MyAccount-content form .form-row label .required {
  color: var(--wdi-bad);
  text-decoration: none;
  border: 0;
}
.wdi-scope--app .woocommerce-MyAccount-content form .input-text,
.wdi-scope--app .woocommerce-MyAccount-content form select {
  height: 44px;
  width: 100%;
  padding: 0 var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: #fff;
  font-family: var(--wdi-font);
  font-size: 15px;
  color: var(--wdi-ink);
}
.wdi-scope--app .woocommerce-MyAccount-content form textarea.input-text { height: auto; padding: var(--wdi-3); }
.wdi-scope--app .woocommerce-MyAccount-content form .input-text:focus,
.wdi-scope--app .woocommerce-MyAccount-content form select:focus {
  outline: 2px solid var(--wdi-btn);
  outline-offset: 1px;
  border-color: var(--wdi-btn);
}
.wdi-scope--app .woocommerce-MyAccount-content form em,
.wdi-scope--app .woocommerce-MyAccount-content form .description {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--wdi-ink-3);
  margin-top: 4px;
}
.wdi-scope--app .woocommerce-MyAccount-content fieldset {
  border: 0;
  border-top: 1px solid var(--wdi-line);
  padding: var(--wdi-5) 0 0;
  margin: var(--wdi-5) 0 0;
}
/*
 * The button that SAVES a form is primary, whatever WooCommerce called it. It prints Save address
 * and Save changes as a plain .button with no .alt, so without this every form on the site ends
 * with an outlined button and no clear action.
 *
 * NOT THE SEGMENTED CONTROL. A segment is a submit button too - that is how the sort and period
 * groups work without JavaScript - and this rule was painting every one of them solid blue with
 * !important, which beat the system's pale-blue selected state and made all three segments look
 * pressed. The :not() is the fix, and it is why segments carry a class rather than being styled
 * by element.
 */
.wdi-scope--app .woocommerce-MyAccount-content form button[type="submit"]:not(.wdi-seg__btn):not(.wdi-toggle__btn),
.wdi-scope--app .woocommerce-MyAccount-content form input[type="submit"]:not(.wdi-seg__btn):not(.wdi-toggle__btn),
.wdi-scope--app .woocommerce-MyAccount-content .woocommerce-Button[name="save_account_details"],
.wdi-scope--app .woocommerce-MyAccount-content .button[name="save_address"] {
  background: var(--wdi-btn) !important;
  border-color: var(--wdi-btn) !important;
  color: #fff !important;
}
.wdi-scope--app .woocommerce-MyAccount-content form button[type="submit"]:not(.wdi-seg__btn):not(.wdi-toggle__btn):hover,
.wdi-scope--app .woocommerce-MyAccount-content form input[type="submit"]:not(.wdi-seg__btn):not(.wdi-toggle__btn):hover {
  background: var(--wdi-btn-hover) !important;
  border-color: var(--wdi-btn-hover) !important;
}

.wdi-scope--app .woocommerce-MyAccount-content fieldset legend {
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 var(--wdi-3);
  width: auto;
}
/* Two fields side by side where WooCommerce asks for it, one column on a phone. */
@media (min-width: 783px) {
  /* form.x.y, not .x: something in the theme's stack pins this form to display:block, and a bare
     class selector loses to it. */
  .wdi-scope--app form.woocommerce-EditAccountForm.edit-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--wdi-4);
  }
  .wdi-scope--app form.woocommerce-EditAccountForm > .form-row-wide,
  .wdi-scope--app form.woocommerce-EditAccountForm > fieldset,
  .wdi-scope--app form.woocommerce-EditAccountForm > p:last-of-type { grid-column: 1 / -1; }
  .wdi-scope--app form.woocommerce-EditAccountForm > .clear { display: none; }
}
@media (max-width: 782px) {
  .wdi-scope--app .woocommerce-Addresses.col2-set { grid-template-columns: minmax(0, 1fr); }
}

/* ==================================================================== category pages
 *
 * Built to the approved concept (reports/w2b-design/page-06.png): a page you can order from.
 * The controls sit in one bar above the table, the summary line says what you are looking at, and
 * the rows carry PACK, your price, stock in words, a quantity box and an Add.
 */
.wdi-scope--app .page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .wdi-view-toggle,
.wdi-scope--app .wdi-catfilter { display: inline-flex; margin: 0 var(--wdi-5) var(--wdi-2) 0; }
.wdi-scope--app .wdi-view-toggle .wdi-toggle,
.wdi-scope--app .wdi-catfilter .wdi-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-2);
  border: 0;
  margin: 0;
  padding: 0;
}
.wdi-scope--app .wdi-view-toggle .wdi-toggle__legend,
.wdi-scope--app .wdi-catfilter .wdi-toggle__legend {
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  padding: 0;
  margin: 0 0 6px;
}
.wdi-scope--app .wdi-view-toggle button.wdi-toggle__btn,
.wdi-scope--app .wdi-catfilter button.wdi-toggle__btn { height: 36px; padding: 0 var(--wdi-4); font-size: 13px; }
/* pressed state: see the system, and wdi-reorder.css for the !important it needs */
.wdi-scope--app .wdi-catfilter__summary {
  clear: both;
  margin: 0 0 var(--wdi-4);
  font-size: 14px;
  color: var(--wdi-ink-2);
}
.wdi-scope--app .wdi-catalogue__lead { font-size: 14px; color: var(--wdi-ink-3); margin: 0 0 var(--wdi-3); }
/* "Showing 1-16 of 23 results" repeats what the summary line above already says in the customer's
   own terms, so in list view it goes. */
.wdi-list-view.wdi-scope--app .woocommerce-result-count { display: none; }
.wdi-scope--app .woocommerce-result-count { font-size: 14px; color: var(--wdi-ink-3); margin: 0 0 var(--wdi-3); }
/* W2g B9: the sort select is a system .wdi-field now (child loop/orderby.php), so the restyle that
   lived here went - its `background: #fff` shorthand was wiping the field's drawn chevron. One
   thing still has to be won back: the theme's inline `.woocommerce .woocommerce-ordering select
   { padding: 8px; margin-right: 33px }` ties the field at (0,2,1) and prints later, which ran the
   text under the chevron and left a 33px hole at the end of the row. The field's own padding,
   restated one class heavier, and no margin. */
.wdi-scope--app.wdi-scope--app .woocommerce-ordering select.wdi-field { padding: 0 var(--wdi-6) 0 var(--wdi-3); margin: 0; }

/* ---- the rows, at the concept's spacing ---- */
.wdi-scope--app .wdi-catalogue table.wdi-rows { font-size: 14px; }
.wdi-scope--app .wdi-catalogue table.wdi-rows td { height: 80px; }
.wdi-scope--app .wdi-col-check { width: 36px; }
.wdi-scope--app .wdi-col-thumb { width: 76px; }
.wdi-scope--app .wdi-col-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-card-pale);
  border-radius: var(--wdi-r);
  padding: 4px;
}
/* W2g B12: on a phone the picture stays, beside the title - it is how people find a product in a list
   long before they read its name. wdi-reorder.css hid the column below 782 when the rows were a bare
   table; a smaller tile keeps the name in view. The catalogue list, the visitor list and My products
   all share the column. */
@media (max-width: 782px) {
  .wdi-scope--app .wdi-rows .wdi-col-thumb { display: table-cell; width: 52px; padding-right: 0; }
  .wdi-scope--app .wdi-rows .wdi-col-thumb img { width: 44px; height: 44px; max-width: none; padding: 3px; }
}
.wdi-scope--app .wdi-col-name a { color: var(--wdi-ink); text-decoration: none; font-weight: 400; }
.wdi-scope--app .wdi-col-name a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--app .wdi-col-sku,
.wdi-scope--app .wdi-col-pack { color: var(--wdi-ink-2); white-space: nowrap; }
.wdi-scope--app .wdi-col-price { font-weight: 700; white-space: nowrap; }
.wdi-scope--app .wdi-col-price .price { color: var(--wdi-ink); }
.wdi-scope--app .wdi-no-price { color: var(--wdi-ink-3); font-weight: 400; }
.wdi-scope--app .wdi-col-stock .stock { margin: 0; font-size: 14px; }
.wdi-scope--app .wdi-col-stock .in-stock { color: var(--wdi-ok); }
.wdi-scope--app .wdi-col-stock .out-of-stock { color: var(--wdi-bad); }
.wdi-scope--app .wdi-col-stock .available-on-backorder { color: var(--wdi-warn); }
.wdi-scope--app .wdi-col-qty { width: 110px; }
.wdi-scope--app .wdi-col-qty input {
  width: 72px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  font-family: var(--wdi-font);
  font-size: 15px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.wdi-scope--app .wdi-col-qty input::-webkit-outer-spin-button,
.wdi-scope--app .wdi-col-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdi-scope--app .wdi-col-add { text-align: right; white-space: nowrap; }
.wdi-scope--app .wdi-col-add .button { height: 36px; font-size: 13px; padding: 0 var(--wdi-5); }

/* The bar at the foot of the page, which the concept keeps in view. */
.wdi-scope--app .wdi-selected-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-3);
  background: var(--wdi-card-pale);
  border-radius: 10px;
  padding: var(--wdi-3) var(--wdi-4);
  margin: var(--wdi-4) 0 0;
}
.wdi-scope--app .wdi-catalogue__status { font-size: 14px; color: var(--wdi-ink-2); }

/* ---- the category sidebar ----
 * Two earlier passes at this card were deleted in round 6. Both were still in the file, both
 * still matched, and between them they drew a second checkbox and a set of row rules that fought
 * the one below. The card is specified once now, at the end of this file, under "round 6 B".
 */

/* ==================================================================== basket
 *
 * The same table language, and the credit block as a card. Checkout itself is untouched - that is
 * W2c, and it is the one page where a half-finished restyle would cost real money.
 */
.wdi-scope--app .woocommerce-cart-form table.cart th { padding-bottom: var(--wdi-2); }
.wdi-scope--app .woocommerce-cart-form table.cart td { height: 84px; }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-thumbnail img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-card-pale);
  border-radius: var(--wdi-r);
  padding: 4px;
}
.wdi-scope--app .woocommerce-cart-form table.cart td.product-name a { color: var(--wdi-ink); text-decoration: none; }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-name a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-subtotal,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-price { font-weight: 700; white-space: nowrap; }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-quantity input.qty {
  width: 76px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  font-family: var(--wdi-font);
  -moz-appearance: textfield;
  appearance: textfield;
}
.wdi-scope--app .woocommerce-cart-form table.cart td.product-quantity input.qty::-webkit-outer-spin-button,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-remove a.remove {
  color: var(--wdi-ink-3) !important;
  background: none !important;
  font-size: 22px;
  line-height: 1;
}
.wdi-scope--app .woocommerce-cart-form table.cart td.product-remove a.remove:hover { color: var(--wdi-bad) !important; }
.wdi-scope--app .woocommerce-cart-form table.cart td.actions { height: auto; padding: var(--wdi-4) 0 0; }

/* ---- the totals column ---- */
.wdi-scope--app .cart-collaterals { width: 100%; }
.wdi-scope--app .cart_totals { width: 100%; float: none; }
.wdi-scope--app .cart_totals > h2 { font-size: 18px; font-weight: 700; margin: var(--wdi-5) 0 var(--wdi-3); }
.wdi-scope--app .cart_totals table.shop_table th { text-align: left; }
.wdi-scope--app .cart_totals table.shop_table td { text-align: right; font-weight: 700; }
.wdi-scope--app .cart_totals .order-total th,
.wdi-scope--app .cart_totals .order-total td { font-size: 17px; border-bottom: 0; }
.wdi-scope--app .wc-proceed-to-checkout { padding: var(--wdi-4) 0 0; }
.wdi-scope--app.wdi-scope--app .checkout-button {
  width: 100%;
  height: 48px;
  font-size: 16px;
}

/* ---- the credit block, as a card ---- */
.wdi-scope--app .wdi-credit {
  background: var(--wdi-card-pale);
  border: 0;
  border-radius: 10px;
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app .wdi-credit__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .wdi-credit__table { margin: 0; font-size: 14px; }
.wdi-scope--app .wdi-credit__table th { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--wdi-ink-2); border: 0; padding: 3px 0; }
.wdi-scope--app .wdi-credit__table td { text-align: right; font-weight: 700; border: 0; padding: 3px 0; font-variant-numeric: tabular-nums; }
.wdi-scope--app .wdi-credit__line { margin: var(--wdi-3) 0 0; font-size: 14px; color: var(--wdi-ink-2); }
.wdi-scope--app .wdi-credit--over { background: var(--wdi-bad-bg); }
.wdi-scope--app .wdi-credit--over .wdi-credit__line { color: var(--wdi-bad); font-weight: 600; }

@media (min-width: 1024px) {
  /* Lines on the left, totals and credit on the right, as every basket the customers use does. */
  .wdi-scope--app .woocommerce-cart-form { float: left; width: 64%; }
  .wdi-scope--app .cart-collaterals { float: right; width: 32%; }
  .wdi-scope--app .cart_totals > h2:first-of-type { margin-top: 0; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* A tablet keeps the table, scrolling inside its own box; a phone gets cards (see W2d below). */
  .wdi-scope--app .woocommerce-cart-form { overflow-x: auto; }
  .wdi-scope--app .woocommerce-cart-form table.cart { min-width: 680px; }
}

/* ==================================================================== logged-out: light touch
 *
 * The homepage, shop, category and product pages as a visitor who is not signed in sees them.
 * TYPOGRAPHY AND BUTTON COLOUR ONLY - nothing here moves a box, changes a width or reorders
 * anything. The public homepage rebuild is W8 and the concepts Keely approved are all drawn for a
 * signed-in trade customer, so anything more than this would be guessing at a design nobody has
 * seen.
 *
 * What it buys: the same type stack and the same button hierarchy as the signed-in half, so the
 * two do not look like two different companies at the moment a customer signs in.
 */
.wdi-scope--lite .woocommerce ul.products li.product .woocommerce-loop-product__title,
.wdi-scope--lite .woocommerce div.product .product_title,
.wdi-scope--lite .page-title {
  font-family: var(--wdi-font);
  color: var(--wdi-ink);
}
.wdi-scope--lite .woocommerce ul.products li.product .price,
.wdi-scope--lite .woocommerce div.product p.price { font-family: var(--wdi-font); color: var(--wdi-ink); }

/* Buttons: the same shape and the same two levels, at the same specificity the signed-in half
   needs for the same reason - the theme's inline sheet is (0,2,1) and important. */
.wdi-scope--lite.wdi-scope--lite .woocommerce a.button,
.wdi-scope--lite.wdi-scope--lite .woocommerce button.button,
.wdi-scope--lite.wdi-scope--lite .woocommerce input.button {
  border-radius: var(--wdi-r-pill) !important;
  font-family: var(--wdi-font);
  font-weight: 600;
  text-transform: none;
  background: #fff !important;
  border: 1px solid var(--wdi-line-strong) !important;
  color: var(--wdi-blue) !important;
}
.wdi-scope--lite.wdi-scope--lite .woocommerce a.button.alt,
.wdi-scope--lite.wdi-scope--lite .woocommerce button.button.alt,
.wdi-scope--lite.wdi-scope--lite .woocommerce input.button.alt,
.wdi-scope--lite.wdi-scope--lite .woocommerce .single_add_to_cart_button {
  background: var(--wdi-btn) !important;
  border-color: var(--wdi-btn) !important;
  color: #fff !important;
}
.wdi-scope--lite.wdi-scope--lite .woocommerce a.button:hover,
.wdi-scope--lite.wdi-scope--lite .woocommerce button.button:hover { background: var(--wdi-blue-pale) !important; }
.wdi-scope--lite.wdi-scope--lite .woocommerce a.button.alt:hover,
.wdi-scope--lite.wdi-scope--lite .woocommerce button.button.alt:hover,
.wdi-scope--lite.wdi-scope--lite .woocommerce .single_add_to_cart_button:hover {
  background: var(--wdi-btn-hover) !important;
  border-color: var(--wdi-btn-hover) !important;
}

/* ==================================================================== round 4: chrome
 *
 * The per-button patch that used to live here is gone. The parent theme's blanket
 * `button:hover { background-color: var(--main-text-color) }` is neutralised once, in the system
 * stylesheet - see section 0 there - so a header control only needs to say what it DOES want.
 */
.wdi-chrome .wdi-header__link {
  --wdi-hover-bg: transparent;
  --wdi-hover-ink: var(--wdi-blue);
}
.wdi-chrome .wdi-header__link:hover,
.wdi-chrome button.wdi-header__link:hover,
.wdi-chrome .wdi-search-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wdi-chrome .wdi-accountmenu__trigger:hover { text-decoration: none; }

/* ---- the breadcrumb, as the system component ----
 * It sat hard against the trust strip with nothing below it. It gets the system's 24px above and
 * below, and its current page is the logo charcoal rather than brand blue - a breadcrumb's last
 * item is where you ARE, not somewhere to go.
 */
.wdi-chrome .breadcrumb {
  display: block;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-3);
  padding: var(--wdi-5) 0;
  margin: 0;
  background: none;
  border-radius: 0;
  list-style: none;
}
.wdi-chrome .breadcrumb a {
  color: var(--wdi-ink-3);
  font-weight: var(--wdi-w-regular);
  text-decoration: none;
  padding: 0 var(--wdi-1);
}
.wdi-chrome .breadcrumb a:first-child { padding-left: 0; }
.wdi-chrome .breadcrumb a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-chrome .breadcrumb span { padding: 0 var(--wdi-1); }
.wdi-chrome .breadcrumb span.current { color: var(--wdi-ink); font-weight: var(--wdi-w-semi); }

/* ---- footer ---- */
.wdi-footer .contact-page img { width: 170px; height: auto; }
.wdi-footer .contact-group > li:first-child,
.wdi-footer .chw-title { color: var(--wdi-ink); }
.wdi-footer .contact-group li a:hover { color: var(--wdi-blue); }
.wdi-footer .contact-page i { color: var(--wdi-ink-2); }
.wdi-footer .contact-page i:hover { color: var(--wdi-blue); }

/* ==================================================================== round 4: category page
 *
 * ONE control row, as the concept draws it: the segmented groups left, per-page and sort at the
 * right end, on a single baseline. Everything here is layout; the controls themselves are the
 * system's .wdi-seg and .wdi-field.
 */
.wdi-scope--app .wdi-catbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-5);
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-3) var(--wdi-4);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .wdi-catbar .wdi-view-toggle,
.wdi-scope--app .wdi-catbar .wdi-catfilter { display: flex; align-items: center; margin: 0; }
.wdi-scope--app .wdi-catbar__end {
  display: flex;
  align-items: center;
  gap: var(--wdi-4);
  margin-left: auto;
}
.wdi-scope--app .wdi-catbar__perpage,
.wdi-scope--app .wdi-catbar .woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: var(--wdi-2);
  margin: 0;
  float: none;
}
.wdi-scope--app .wdi-catbar .wdi-label { margin: 0; white-space: nowrap; }
.wdi-scope--app .wdi-catbar select { width: auto; min-width: 150px; height: 36px; font-size: var(--wdi-t-md); }
.wdi-scope--app .wdi-catbar select.orderby { background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px; }
.wdi-scope--app .wdi-catfilter__summary {
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-5);
}

/*
 * ONE ROW. The concept puts every control on a single line, and two visible legends plus two field
 * labels would not fit the 968px content column at 1440. The segmented groups are self-describing -
 * "Grid / List", "Your products / All products / In stock" - so their legends are taken out of the
 * visual flow and left in the accessibility tree, where a screen reader still announces the group.
 * The two dropdowns keep their labels, because "50 per page" beside "Default sorting" is not.
 */
.wdi-scope--app .wdi-catbar .wdi-seg__legend {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wdi-scope--app .wdi-catbar .wdi-seg { flex-wrap: nowrap; }
.wdi-scope--app .wdi-catbar { gap: var(--wdi-4); }
.wdi-scope--app .wdi-catbar__end { gap: var(--wdi-3); }
.wdi-scope--app .wdi-catbar select { min-width: 132px; }

.wdi-scope--app .wdi-selected-bar {
  position: sticky;
  bottom: var(--wdi-4);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-3);
  background: #fff;
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  box-shadow: var(--wdi-shadow-up);
  padding: var(--wdi-3) var(--wdi-4);
  margin: var(--wdi-5) 0 0;
}
.wdi-scope--app .wdi-selected-bar.is-docked { position: static; box-shadow: var(--wdi-shadow); }
.wdi-scope--app .wdi-selected-bar__summary {
  flex: 1 1 auto;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
}
.wdi-scope--app .wdi-selected-bar__summary em { font-style: normal; font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-catalogue__status { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }

/* ---- pagination ---- */
.wdi-scope--app .woocommerce-pagination { margin: var(--wdi-6) 0 0; }
.wdi-scope--app .woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: var(--wdi-2);
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wdi-scope--app .woocommerce-pagination li { border: 0; margin: 0; }
.wdi-scope--app .woocommerce-pagination a,
.wdi-scope--app .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-pill);
  background: #fff;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-blue);
  text-decoration: none;
}
.wdi-scope--app .woocommerce-pagination span.current {
  background: var(--wdi-tint);
  border-color: var(--wdi-blue);
  color: var(--wdi-blue-dark);
}
.wdi-scope--app .woocommerce-pagination a:hover { background: var(--wdi-pale); border-color: var(--wdi-blue); }
.wdi-scope--app .wdi-loadmore { display: flex; justify-content: center; margin: var(--wdi-5) 0 0; }

/* ---- grid view: what the theme puts ON the card, removed ----
 * The theme puts an "Add to cart" and a wishlist heart over the image on hover, so the picture you
 * are trying to look at is covered by two controls the moment you point at it. Both go; the card
 * carries a quantity and an Add that are always there, which is also what a keyboard can reach.
 *
 * The card ITSELF is specified once, at the end of this file under "round 6 C". The first pass at
 * it used to live here - a 168px fixed-height image on a padded white card - and was still
 * matching, still setting the title's display, and fighting the block that replaced it.
 */
.wdi-scope--app ul.products li.product .button,
.wdi-scope--app ul.products li.product .added_to_cart,
.wdi-scope--app ul.products li.product .tinv-wraper,
.wdi-scope--app ul.products li.product .quick_buy_container { display: none !important; }

/* ==================================================================== round 4 E: the basket
 * Built to reports/w2b-design-system.md §5. Composed from wdi-system.css; nothing new is invented
 * here that is not in the system (the notice-with-figures used by the credit block was added to
 * §13 of the system first).
 *
 * THE DOUBLED SCOPE CLASS. The theme's Customizer CSS prints INLINE in wp_head, after every
 * enqueued stylesheet, carrying !important at (0,2,1). A single .wdi-scope--app cannot reach it;
 * .wdi-scope--app.wdi-scope--app can. It is used only on the declarations that are actually
 * fought for - colour, font and button chrome - not as a blanket.
 */

/* ---- 1. two columns ---------------------------------------------------------------------------
 * The theme lays .woocommerce out as a flex row, which put the basket table and the totals card
 * side by side at whatever widths their contents wanted - a 729px table in a 907px column. A grid
 * with a named second track gives the summary a fixed 360px and the table everything else.
 */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce {
  /* The theme sets this to flex with !important from its inline Customizer block, which prints
     after every enqueued stylesheet. Doubling the scope class reaches (0,3,1); the !important is
     what actually beats it, and is confined to this one declaration. */
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  /* W2g B15: named areas, so each block's place is said rather than left to source order. The
     suggestions sit under the lines while the summary runs down the side; the last row takes any
     spare height, so a tall summary never opens a gap between the lines and the suggestions. */
  grid-template-areas: "title title" "notices notices" "pdf pdf" "check side" "form side" "also side";   /* W4: the basket check above the lines */
  grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: var(--wdi-6);
  row-gap: 0;
  align-items: start;
}
.wdi-scope--app.woocommerce-cart .woocommerce > .wdi-basket__title { grid-area: title; }
.wdi-scope--app.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-area: notices; }
.wdi-scope--app.woocommerce-cart .woocommerce > .woocommerce-pdf-catalog { grid-area: pdf; }
.wdi-scope--app.woocommerce-cart .woocommerce > .wdi-basket__also { grid-area: also; }
.wdi-scope--app.woocommerce-cart .woocommerce > .wdi-basket__empty { grid-column: 1 / -1; }
/* The theme gives the form a percentage width, which was right when it was a flex item beside a
   floated totals box and is wrong now the track already is the column. */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
  grid-area: form;
  display: block;
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
}
.wdi-scope--app.woocommerce-cart .woocommerce > .cart-collaterals { grid-area: side; width: auto; float: none; }
.wdi-scope--app.woocommerce-cart .cart-collaterals .cart_totals { width: auto; float: none; }

@media (max-width: 1023px) {
  /* W2d: DOUBLED, like the two-column rule above. At single scope this lost to it - equal
     specificity is a loss (section 7 of the design-system doc) - so every phone and tablet kept a
     0px first column: the basket lines painted nothing and the summary was squeezed to 50px, with
     Proceed to checkout rendered as a blue circle.
     W2g B15: one column in Rob's order - the products, then the summary with Proceed to checkout
     at its foot, then Customers also add. (W2d put the summary first.) No row gap: the notices
     and PDF rows are usually empty, and a gap either side of an empty row is what left a blank
     band under the title. The spacing is each block's own margin instead. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "notices" "pdf" "check" "form" "side" "also";
    grid-template-rows: auto;
    row-gap: 0;
  }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce > .cart-collaterals { margin-top: var(--wdi-5); }
}
/* WooCommerce keeps a 20px bottom margin on the notices wrapper even when it holds no notice. */
.wdi-scope--app.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:not(:has(*)) { margin: 0; }

/* ---- W2d: the basket on a phone - cards, as section 5 specifies ("cards on the phone, table on the
   desktop"). Below 640 each line is a small grid: the picture, then name, unit price, quantity, line
   total and Remove. The header row goes: every value is labelled by where it sits. Five classes and
   the element, because the rules they replace are (0,4,x) and the theme's are printed inline. */
/* W5: the same two-row lines at 1024-1279 too - beside the 360px Summary the lines had about 470px, and a product's name
   wrapped to four or five lines in its column. Two rows give the name the whole width. */
@media (max-width: 639px), (min-width: 1024px) and (max-width: 1279px) {
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form { overflow-x: visible; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart { min-width: 0; display: block; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart thead { display: none; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody { display: block; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.woocommerce-cart-form__cart-item {
    display: grid;
    /* W2g B15: TWO lines. The picture beside the name and code; then the sum as it reads -
       unit price x quantity = line total - with Remove at the end. The x and = are drawn by the
       cells below, not typed into the markup, so the desktop table is untouched. */
    grid-template-columns: 56px max-content max-content minmax(0, 1fr);
    grid-template-areas: "thumb name name name" "thumb price qty total";
    gap: var(--wdi-2) var(--wdi-2);
    align-items: center;
    padding: var(--wdi-4) 0;
    border-bottom: 1px solid var(--wdi-line);
  }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td {
    display: block; width: auto; height: auto; padding: 0; border: 0; text-align: left; min-width: 0;
  }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td::before { content: none; display: none; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-thumbnail { grid-area: thumb; align-self: start; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-name { grid-area: name; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price { grid-area: price; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity { grid-area: qty; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal {
    grid-area: total; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-1) var(--wdi-2); text-align: left; font-weight: var(--wdi-w-bold);
  }
  /* margin 0: the theme's responsive cart gives the price cell a 23px top margin, which dropped it
     below the quantity box beside it. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price { display: flex; align-items: center; gap: var(--wdi-2); margin: 0; white-space: nowrap; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price::after,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal::before {
    display: inline; color: var(--wdi-ink-3); font-weight: var(--wdi-w-regular);
  }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price::after { content: "\00d7"; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal::before { content: "="; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .wdi-basket__remove { margin-left: auto; font-weight: var(--wdi-w-regular); }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-remove { grid-area: remove; text-align: right; min-width: max-content; }
  /* The theme takes the remove link out of flow (position:absolute), so its cell measured 0 wide and
     the link hung past the screen edge. In a card it is an ordinary link. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-remove a { position: static; display: inline-block; width: auto; white-space: nowrap; }   /* the link is "×" at a fixed 22px with "Remove" added by ::after - size it to both */
  /* Remove already sits under the line total (section 5); the x column would say it twice. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-remove { display: none; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-name,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-name *,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price *,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity { text-align: left; justify-content: flex-start; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity .quantity { margin: 0; justify-content: flex-start; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr:not(.cart_item) { display: block; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr:not(.cart_item) td { display: block; width: auto; padding: var(--wdi-3) 0 0; border: 0; }
}

/* ---- 2. the title ---- */
.wdi-scope--app .wdi-basket__title { margin: 0 0 var(--wdi-5); }
.wdi-scope--app .wdi-basket__count {
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-3);
}

/* ---- 3. the product table, in the dashboard's language ---------------------------------------- */
.wdi-scope--app .woocommerce-cart-form table.cart {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--wdi-t-md);
}
/* The theme turns every cart row into a flex container, hides the remove and thumbnail headers,
   reorders the price and subtotal cells with `order`, and takes the remove cell out of flow with
   position:absolute. That is a phone layout applied at every width, and it is why the columns read
   Quantity-then-Price with Remove floating under the quantity box. Put the table back. */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart tr,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart tbody tr { display: table-row; }
/* The header row needs a fifth class to get past it: the Customizer rule is
   `table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents thead tr`, which
   ties with a doubled scope at (0,4,3) and wins on order because it is printed inline. */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart thead tr { display: table-row; }
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart thead th:not(.product-remove) { display: table-cell; }
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart th,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td {
  display: table-cell;
  order: 0;
  position: static;
  float: none;
}

.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart th {
  height: auto;
  padding: 0 var(--wdi-3) var(--wdi-2);
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  background: none;
  text-align: left;
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wdi-ink-3);
}
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td {
  height: auto;
  padding: var(--wdi-3);
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  background: none;
  vertical-align: middle;
  color: var(--wdi-ink);
}
.wdi-scope--app .woocommerce-cart-form table.cart th.product-price,
.wdi-scope--app .woocommerce-cart-form table.cart th.product-subtotal,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-price,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-subtotal { text-align: right; }
.wdi-scope--app .woocommerce-cart-form table.cart th.product-quantity,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-quantity { text-align: center; width: 110px; }
.wdi-scope--app .woocommerce-cart-form table.cart th.product-remove,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-remove { width: 76px; text-align: right; }
.wdi-scope--app .woocommerce-cart-form table.cart th.product-thumbnail,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-thumbnail { width: 72px; padding-right: 0; }
/* The name takes whatever the fixed columns leave, so a long product name wraps twice, not once
   per word. */
.wdi-scope--app .woocommerce-cart-form table.cart th.product-name,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-name { width: auto; }
.wdi-scope--app .woocommerce-cart-form table.cart th.product-price,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-price,
.wdi-scope--app .woocommerce-cart-form table.cart th.product-subtotal,
.wdi-scope--app .woocommerce-cart-form table.cart td.product-subtotal { width: 120px; }

/* The image tile, as the dashboard and the category list draw it. */
.wdi-scope--app .woocommerce-cart-form table.cart td.product-thumbnail img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-pale);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r-sm);
  padding: 4px;
  margin: 0;
}

.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-name a {
  display: block;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  text-decoration: none;
  line-height: 1.35;
}
.wdi-scope--app .woocommerce-cart-form table.cart td.product-name a:hover { color: var(--wdi-blue); }
.wdi-scope--app .woocommerce-cart-form table.cart td.product-name .wdi-basket__meta { display: block; margin-top: 2px; }

/* Unit price in blue, line total in ink - so the eye separates what one costs from what the line
   comes to. Straight from the app prototype. */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-price,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-price .amount {
  color: var(--wdi-blue);
  font-variant-numeric: tabular-nums;
}
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-subtotal,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-subtotal .amount {
  color: var(--wdi-ink);
  font-weight: var(--wdi-w-bold);
  font-variant-numeric: tabular-nums;
}

/* The quantity box, as the system field. */
.wdi-scope--app .woocommerce-cart-form table.cart .quantity { display: inline-flex; margin: 0; }
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart .quantity input.qty {
  width: 74px;
  height: 40px;
  padding: 0 var(--wdi-2);
  text-align: center;
  font-size: var(--wdi-t-md);
  font-variant-numeric: tabular-nums;
  color: var(--wdi-ink);
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  box-shadow: none;
}
.wdi-scope--app .woocommerce-cart-form table.cart .quantity input.qty:focus-visible {
  outline: 2px solid var(--wdi-blue);
  outline-offset: 1px;
}

/* Remove as a quiet word at the end of the line, not a red cross in a column of its own before the
   picture. The template's own cell is emptied of meaning and hidden; the word is appended to the
   line total by WDI_Basket::remove_link(). */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart th.product-remove,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-remove { display: none; }
.wdi-scope--app .woocommerce-cart-form table.cart .wdi-basket__remove {
  display: block;
  margin-top: 2px;
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink-3);
  text-decoration: none;
}
.wdi-scope--app .woocommerce-cart-form table.cart .wdi-basket__remove:hover {
  color: var(--wdi-bad);
  text-decoration: underline;
}

/* An unavailable line keeps the W2a treatment - the row is muted and says why. */
.wdi-scope--app .woocommerce-cart-form table.cart tr.wdi-unavailable td.product-name a,
.wdi-scope--app .woocommerce-cart-form table.cart tr.wdi-unavailable td.product-price,
.wdi-scope--app .woocommerce-cart-form table.cart tr.wdi-unavailable td.product-subtotal { color: var(--wdi-ink-3); }
.wdi-scope--app .woocommerce-cart-form table.cart tr.wdi-unavailable td.product-thumbnail img { opacity: .55; }

/* The actions row holds nothing a customer should see once the script has hidden the Update
   button, so it collapses. .wdi-hidden is applied BY THE SCRIPT, so with JavaScript off the
   button is still there and the basket still works the way it always did. */
.wdi-scope--app .wdi-hidden { display: none !important; }
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.actions {
  padding: var(--wdi-3) 0 0;
  border-bottom: 0;
  text-align: right;
}
.wdi-scope--app .woocommerce-cart-form table.cart td.actions .coupon { display: none; }

.wdi-scope--app .wdi-basket__tolist {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  margin: var(--wdi-4) 0 0;
}
.wdi-scope--app .wdi-basket__status { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }

/* ---- 4. the summary card ---------------------------------------------------------------------- */
.wdi-scope--app.wdi-scope--app .cart-collaterals .cart_totals {
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  padding: var(--wdi-5);
  position: sticky;
  top: var(--wdi-5);
}
/* The template's own "Cart totals" heading. Ours is printed above it with a class, at the top of
   the card where the credit notice can sit under it. */
.wdi-scope--app .cart_totals > h2:not([class]) { display: none; }
.wdi-scope--app .wdi-basket__summary-title { margin: 0 0 var(--wdi-4); }
/* W2g B15: the theme's `.cart_totals h2` margin was landing on top of the card's own padding -
   48px of nothing above "Summary". */
.wdi-scope--app.wdi-scope--app .cart-collaterals .cart_totals .wdi-basket__summary-title { margin-top: 0; }

/* FIXED LAYOUT. The delivery row is one cell spanning both columns, and under auto layout its
   content set the table's width - so a long street name pushed the figures out of the card. Fixed
   layout means the two columns are decided once, from these widths, and anything too long for the
   space it has is clipped inside the cell instead of widening the card. */
/* ROUND 7 C12: the rule between the credit block and the totals was the same Customizer
   border-top: 1px solid #000, landing on the totals table this time. A rule is never darker than
   the text it separates, so it becomes the hairline - and it needs (0,3,1) to say so. */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table {
  margin: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0;
  border-top: 1px solid var(--wdi-line);
  padding-top: var(--wdi-4);
}
.wdi-scope--app .cart_totals table.shop_table th { width: 44%; }
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table th,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table td {
  height: auto;
  padding: var(--wdi-2) 0;
  border: 0;
  background: none;
  font-size: var(--wdi-t-md);
  text-align: left;
  vertical-align: top;
  color: var(--wdi-ink);
}
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table th {
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-2);
}
.wdi-scope--app .cart_totals table.shop_table td { text-align: right; font-variant-numeric: tabular-nums; }
.wdi-scope--app .wdi-basket__lines {
  display: block;
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-3);
}

/* WooCommerce's own destination line repeats the address our Delivery row states, and its
   "Change address" link opens a postcode calculator - which is why the calculator is filtered off
   in class-wdi-basket.php and the paragraph is suppressed here. */
.wdi-scope--app .cart_totals .woocommerce-shipping-destination { display: none; }
.wdi-scope--app .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.wdi-scope--app .cart_totals ul#shipping_method li { margin: 0; padding: 0; }
.wdi-scope--app.wdi-scope--app .cart_totals ul#shipping_method label { color: var(--wdi-ink); font-size: var(--wdi-t-md); }

.wdi-scope--app .wdi-basket__delivery .wdi-basket__address {
  display: block;
  font-size: var(--wdi-t-sm);
  color: var(--wdi-ink-2);
  line-height: 1.45;
}
.wdi-scope--app .wdi-basket__delivery .wdi-basket__change { font-size: var(--wdi-t-sm); }

.wdi-scope--app.wdi-scope--app .cart_totals .order-total th,
.wdi-scope--app.wdi-scope--app .cart_totals .order-total td {
  border-top: 1px solid var(--wdi-line);
  padding-top: var(--wdi-3);
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-navy);
}

.wdi-scope--app .cart_totals .wdi-basket__credit { margin: 0 0 var(--wdi-4); }

/* The checkout pill: full width, primary, and the last thing in the card. */
.wdi-scope--app .wc-proceed-to-checkout { margin: var(--wdi-4) 0 0; padding: 0; }
.wdi-scope--app.wdi-scope--app .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 var(--wdi-5);
  border: 1px solid var(--wdi-btn);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-btn);
  color: #fff;
  font-size: var(--wdi-t-lg);
  font-weight: var(--wdi-w-semi);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.wdi-scope--app.wdi-scope--app .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--wdi-btn-hover);
  border-color: var(--wdi-btn-hover);
  color: #fff;
}

/* ---- 5. the empty basket ---------------------------------------------------------------------- */
.wdi-scope--app .wdi-basket__empty {
  max-width: 640px;
  margin: var(--wdi-6) auto;
  border: 1px solid var(--wdi-line);
}
.wdi-scope--app .wdi-basket__empty .wdi-empty__actions {
  display: flex;
  justify-content: center;
  gap: var(--wdi-3);
  margin: 0;
}
/* WooCommerce prints its own "Your cart is currently empty" notice into the same hook. The
   designed card says it better, and says what to do next. */
/* Five classes, because WooCommerce gives its empty-cart line the .woocommerce-info class too and
   the notice mapping further down this file would otherwise put it back. */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .cart-empty,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .return-to-shop { display: none; }

/* ---- WooCommerce's own notices, as the system notice --------------------------------------------
 * "Added to your basket", "is not in stock", "Shipping updated" - WooCommerce prints all of them
 * with its own three classes. Rather than invent a fourth notice, the three are mapped onto
 * .wdi-notice's shape: a 3px rule in the status colour, a pale tint, and words. Site-wide inside
 * the app scope, because a notice that looks like the system on the basket and like the theme on
 * the category page is worse than either.
 */
.wdi-scope--app.wdi-scope--app .woocommerce-message,
.wdi-scope--app.wdi-scope--app .woocommerce-info,
.wdi-scope--app.wdi-scope--app .woocommerce-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wdi-3);
  list-style: none;
  border: 0;
  border-left: 3px solid var(--wdi-info);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-info-bg);
  color: var(--wdi-ink-2);
  font-size: var(--wdi-t-md);
  line-height: 1.5;
  padding: var(--wdi-3) var(--wdi-4);
  margin: 0 0 var(--wdi-4);
}
.wdi-scope--app.wdi-scope--app .woocommerce-message { border-left-color: var(--wdi-ok); background: var(--wdi-ok-bg); }
.wdi-scope--app.wdi-scope--app .woocommerce-error { border-left-color: var(--wdi-bad); background: var(--wdi-bad-bg); }
.wdi-scope--app .woocommerce-message li,
.wdi-scope--app .woocommerce-info li,
.wdi-scope--app .woocommerce-error li { list-style: none; margin: 0; }
/* The theme hangs a large icon off the left of every notice with ::before. The rule is the
   indicator now, and the colour is not carrying the meaning on its own - the words do. */
.wdi-scope--app .woocommerce-message::before,
.wdi-scope--app .woocommerce-info::before,
.wdi-scope--app .woocommerce-error::before { display: none; }
.wdi-scope--app.wdi-scope--app .woocommerce-message .button,
.wdi-scope--app.wdi-scope--app .woocommerce-info .button,
.wdi-scope--app.wdi-scope--app .woocommerce-error .button {
  order: 2;
  margin-left: auto;
  height: 32px;
  padding: 0 var(--wdi-4);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-bg);
  color: var(--wdi-blue);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  line-height: 30px;
  text-transform: none;
  letter-spacing: 0;
}

/* ==================================================================== round 5 A: chrome
 * Add by code, and a logo at the size the brand deserves.
 */

/* The logo was 46px in an 84px row - a third of the row's height given to the mark that tells a
   visitor whose site this is, and two thirds to air. 68px is half as big again and still leaves
   8px of clearance top and bottom, so the row keeps its height and its neatness. The file is
   581x176, so 68px is well inside its own resolution. */
/* Desktop only. The phone rule above sets 38px inside a max-width block, and an unqualified rule
   later in the file beats it - which put a 224px-wide mark in a 390px header. */
@media (min-width: 783px) {
  .wdi-header__logo img { height: 68px; }
}

/* ---- Add by code ------------------------------------------------------------------------------- */
.wdi-quickadd { position: relative; display: flex; align-items: center; }
.wdi-scope--app .wdi-quickadd__toggle,
.wdi-scope--lite .wdi-quickadd__toggle { display: inline-flex; align-items: center; gap: var(--wdi-2); }
.wdi-quickadd__key {
  font-family: var(--wdi-font);
  font-size: 11px;
  line-height: 16px;
  min-width: 18px;
  text-align: center;
  color: var(--wdi-ink-3);
  background: var(--wdi-pale);
  border: 1px solid var(--wdi-line);
  border-radius: 4px;
  padding: 0 4px;
}
.wdi-quickadd__toggle:hover .wdi-quickadd__key { color: var(--wdi-blue); border-color: var(--wdi-line-strong); }

.wdi-quickadd__panel { width: 520px; max-width: calc(100vw - 32px); }
.wdi-quickadd__panel .wdi-field { width: 100%; }
.wdi-quickadd__panel .wdi-help { margin-bottom: var(--wdi-3); }

.wdi-qa__results { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.wdi-qa__row {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  margin: 0;
  padding: var(--wdi-3) 0;
  border-top: 1px solid var(--wdi-line);
  list-style: none;
}
/* The top row is the one Enter adds, so it says so with the same pale tint the segmented control
   uses for "this is the selected one" - never a border colour on its own. */
.wdi-qa__row.is-top { background: var(--wdi-tint); border-radius: var(--wdi-r-sm); padding-left: var(--wdi-2); padding-right: var(--wdi-2); }
.wdi-qa__text { flex: 1 1 auto; min-width: 0; }
.wdi-qa__name {
  display: block;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  line-height: 1.35;
}
.wdi-qa__meta { display: block; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-qa__figures { flex: 0 0 auto; text-align: right; }
.wdi-qa__price { display: block; font-size: var(--wdi-t-md); font-weight: var(--wdi-w-bold); color: var(--wdi-blue); font-variant-numeric: tabular-nums; }
.wdi-qa__stock { display: block; font-size: var(--wdi-t-sm); }
.wdi-qa__stock.is-ok { color: var(--wdi-ok); }
.wdi-qa__stock.is-bad { color: var(--wdi-bad); }
.wdi-qa__qty {
  flex: 0 0 auto;
  width: 62px;
  height: 36px;
  padding: 0 var(--wdi-2);
  text-align: center;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink);
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
}
.wdi-qa__qty:focus { outline: none; border-color: var(--wdi-btn); box-shadow: 0 0 0 3px rgba(21, 101, 192, .18); }
.wdi-qa__enquire { flex: 0 0 auto; font-size: var(--wdi-t-sm); }
.wdi-qa__status { margin: var(--wdi-3) 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); min-height: 18px; }

/* ---- the paste-a-list disclosure inside My products ---- */
.wdi-disclosure { margin: 0 0 var(--wdi-4); }
.wdi-disclosure__toggle {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-blue);
  cursor: pointer;
}
.wdi-disclosure__toggle:hover { color: var(--wdi-blue-dark); text-decoration: underline; }
.wdi-disclosure__toggle::before { content: "+ "; }
.wdi-disclosure__toggle[aria-expanded="true"]::before { content: "\2212 "; }

/* ==================================================================== round 5 B: My products
 * The reorder hub. Everything here is either the category table's own vocabulary reused, or a
 * piece the category table does not have.
 */

/* A 13px checkbox is a target you aim at. 20px is one you hit, and the accent colour makes the
   ticked state read from across the row rather than from inside it. */
.wdi-scope--app table.wdi-rows .wdi-pick {
  width: 20px;
  height: 20px;
  accent-color: var(--wdi-btn);
  cursor: pointer;
}

/* The whole row is clickable, so it says so on hover and says so louder when it is picked. */
.wdi-scope--app .wdi-my-products table.wdi-rows tbody tr { cursor: pointer; }
.wdi-scope--app .wdi-my-products table.wdi-rows tbody tr:hover td { background: var(--wdi-pale); }
.wdi-scope--app table.wdi-rows tbody tr.is-picked td { background: var(--wdi-tint); }
.wdi-scope--app table.wdi-rows tbody tr.is-picked:hover td { background: var(--wdi-tint); }

/* The name cell carries the code and pack beneath it, as the basket and the dashboard do. */
.wdi-scope--app .wdi-col-name__title {
  display: block;
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink);
  line-height: 1.35;
}
.wdi-scope--app .wdi-col-name__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--wdi-t-sm);
  color: var(--wdi-ink-3);
}

.wdi-scope--app .wdi-col-last,
.wdi-scope--app .wdi-col-times { color: var(--wdi-ink-2); white-space: nowrap; }
.wdi-scope--app .wdi-col-times { text-align: center; }

/* Add to a list: a quiet icon-with-label link in a narrow column. Not a pill - a pill on every row
   competes with the one button on the page that matters. */
.wdi-scope--app .wdi-col-tolist { width: 116px; text-align: right; }
.wdi-scope--app .wdi-iconlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: var(--wdi-1) 0;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink-3);
  cursor: pointer;
  white-space: nowrap;
}
.wdi-scope--app .wdi-iconlink:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--app .wdi-iconlink__icon { font-size: 14px; line-height: 1; }
.wdi-scope--app .wdi-iconlink:focus-visible { outline: 2px solid var(--wdi-blue); outline-offset: 2px; }

/* The My products table inherits the catalogue's row height and type, so the two read the same. */
.wdi-scope--app .wdi-my-products table.wdi-rows { font-size: var(--wdi-t-md); }
.wdi-scope--app .wdi-my-products table.wdi-rows td { height: 76px; }

/* The filter card, as the category page draws it. */
.wdi-scope--app .wdi-my-products .wdi-filters { margin-bottom: var(--wdi-5); }
.wdi-scope--app .wdi-my-products .wdi-filters .wdi-toggle,
.wdi-scope--app .wdi-my-products .wdi-filters .wdi-seg { margin: 0; }

/* The paste disclosure sits above the filters, quiet until it is wanted. */
.wdi-scope--app .wdi-my-products .wdi-disclosure { margin: var(--wdi-4) 0 var(--wdi-5); }
.wdi-scope--app .wdi-my-products .wdi-quick-order { margin-top: var(--wdi-4); }

/* ==================================================================== round 5 D: the basket */

/* ROUND 7 C11: one rule, beneath the header row, and nothing above it.
 *
 * Round 5 removed the header's bottom border to kill a double divider, which left the header row
 * with nothing separating it from the first product. The double line was never that border - it
 * was two black ones from the theme's CUSTOMIZER CSS, which prints inline in wp_head after every
 * enqueued stylesheet:
 *
 *     .cart-main .woocommerce table.shop_table { border-top: 1px solid #000 }   (0,2,2)
 *     tr.woocommerce-cart-form__cart-item.cart_item { border-top: 1px solid #000 } (0,2,1)
 *
 * one on the table and one on the first row, stacked. Both are beaten here at (0,3,1), and the
 * header gets its single hairline back in the system's line colour.
 *
 * ON THE HEX. The dispatch names #e5e9ef. The system already has one hairline - --wdi-line,
 * #DDE8F4, sampled from the approved concepts - and adding a second, two shades away, would mean
 * the site has two hairline greys and no rule for choosing between them. The token wins; the
 * difference is a shade of blue in a 1px line, and it is Rob's call to move the token if he wants
 * the neutral grey everywhere. */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart th {
  border-top: 0;
  border-bottom: 1px solid var(--wdi-line);
  padding-bottom: var(--wdi-2);
}
.wdi-scope--app.wdi-scope--app table.shop_table,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart,
.wdi-scope--app.wdi-scope--app .cart-main .woocommerce table.shop_table { border-top: 0; }
.wdi-scope--app.wdi-scope--app tr.cart_item,
.wdi-scope--app.wdi-scope--app tr.woocommerce-cart-form__cart-item { border-top: 0; }
.wdi-scope--app .woocommerce-cart-form table.cart tbody tr:first-child td { border-top: 0; }
/* Every row after the first keeps its hairline - that is what makes them read as rows. */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart tbody tr + tr td {
  border-top: 1px solid var(--wdi-line);
}

/* ---- the summary, at one weight -----------------------------------------------------------------
 * Everything in this card was bold: the labels, the figures, the VAT line at a size of its own. A
 * card where everything shouts says nothing, so exactly one line is bold - the one a customer is
 * actually looking for.
 */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table th {
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-2);
  font-size: var(--wdi-t-md);
}
/* bdi is in the list because WooCommerce wraps every formatted price in one and the theme styles
   that element directly at 18px/700 - so styling .amount alone changed the box and not the text. */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table td,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table td .amount,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table td bdi,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table td .woocommerce-Price-amount,
.wdi-scope--app.wdi-scope--app .cart_totals ul#shipping_method label {
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink);
  text-align: right;
}
/* Qualified with table.shop_table so it out-ranks the everything-is-regular rule above it, which
   carries that qualifier and would otherwise win the tie on source order. */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total th {
  font-size: var(--wdi-t-lg);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-navy);
}
/* !important because the Customizer prints `td strong span bdi { font-size:14px !important }`
   inline, and WooCommerce wraps the order total in exactly that - strong, span, bdi. Without it
   the ONE line that has to be bold was the one line rendering at body weight. */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td .amount,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td bdi,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount {
  font-size: var(--wdi-t-xl) !important;
  font-weight: var(--wdi-w-bold) !important;
  color: var(--wdi-navy);
}

/* The address on one line, with Change beside it rather than under it.
   NOT display:flex on the cell: a table cell that becomes a flex container leaves its row out of
   the column model, and the whole summary lost its alignment - labels ran into values and the
   figures stopped being right-aligned. An inline-block with a ceiling does the same job and keeps
   the cell a cell. */
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table th { white-space: nowrap; }
.wdi-scope--app.wdi-scope--app .wdi-basket__delivery td {
  text-align: left;
  padding: var(--wdi-1) 0 var(--wdi-2);
}
.wdi-scope--app .wdi-basket__delivery-line {
  display: flex;
  align-items: baseline;
  gap: var(--wdi-2);
  white-space: nowrap;
}
.wdi-scope--app .wdi-basket__delivery-line > * { font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); }
.wdi-scope--app .wdi-basket__to,
.wdi-scope--app .wdi-basket__pc { flex: 0 0 auto; }
.wdi-scope--app .wdi-basket__street {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wdi-scope--app .wdi-basket__pc { margin-left: -4px; }
.wdi-scope--app .wdi-basket__change { margin-left: auto; }
.wdi-scope--app .wdi-basket__delivery .wdi-basket__change { font-size: var(--wdi-t-sm); margin-left: var(--wdi-2); }

/* The one button on the site that gets the concept's lighter blue and a 19px label. The width and
   the pill come from the system's --xl; this only points WooCommerce's own anchor at it, because
   the class cannot be added to it without a template override. */
/* !important on three declarations only. The theme prints .woocommerce a.button rules inline in
   wp_head with !important of its own, so font-size and background cannot be reached from a
   stylesheet without matching it - and this is the one button on the site whose size is
   load-bearing, because 19px bold is what makes --wdi-button-large legal against white. */
.wdi-scope--app.wdi-scope--app .wc-proceed-to-checkout a.checkout-button {
  height: 52px;
  text-transform: none !important;   /* W5: the parent theme set it in capitals; every other button is sentence case */
  letter-spacing: normal;
  font-size: 19px !important;
  font-weight: var(--wdi-w-bold) !important;
  background: var(--wdi-button-large) !important;
  border-color: var(--wdi-button-large);
}
.wdi-scope--app.wdi-scope--app .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--wdi-button-large-hover) !important;
  border-color: var(--wdi-button-large-hover);
}

/* ---- customers also add ---- */
.wdi-scope--app .wdi-basket__also { margin: var(--wdi-6) 0 0; }
.wdi-scope--app .wdi-basket__also .wdi-section-title { font-size: var(--wdi-t-xl); margin-bottom: var(--wdi-3); }
@media (min-width: 768px) {
  .wdi-scope--app .wdi-basket__also .wdi-hcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* W5: at 1024-1279 the column under the lines is too narrow for three cards (the names were cut to a letter) - one a row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-scope--app .wdi-basket__also .wdi-hcards { grid-template-columns: minmax(0, 1fr); }
}

/* ==================================================================== round 5 F: one pagination
 * Load more, a quiet count beside it, and text links only for somebody who landed deep via a URL.
 */
.wdi-scope--app .wdi-loadmore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-4);
  /* The sticky bar docks directly above this, and 16px is the clearance that keeps the two from
     reading as one control. */
  margin: var(--wdi-4) 0 0;
}
.wdi-scope--app .wdi-loadmore__count { margin: 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-loadmore__jump { margin: 0 0 0 auto; font-size: var(--wdi-t-sm); display: flex; align-items: center; gap: var(--wdi-2); }
/* The numbered pills are unhooked in PHP; this is the belt to that braces, for any other route
   the theme might print them by. */
.wdi-scope--app .wdi-catalogue ~ .woocommerce-pagination,
.wdi-scope--app .wdi-catalogue + nav.woocommerce-pagination { display: none; }

/* ==================================================================== round 5 G: discovery
 * Two small things, neither of which interrupts anybody.
 */
.wdi-scope--app .wdi-tag-ordered {
  display: inline-block;
  margin-left: var(--wdi-2);
  vertical-align: middle;
  font-size: 11px;
}
.wdi-scope--app .wdi-newin { margin: var(--wdi-7) 0 0; }
.wdi-scope--app .wdi-newin .wdi-section-title { font-size: var(--wdi-t-xl); margin-bottom: var(--wdi-3); }
/* W2y E: four from 1280 only. A card needs ~290px (picture, name, Enquire); at 768 and 1024 four of them in the
   dashboard column squeezed the name to "Ma... E..." and put Enquire on top of "Price on request". Two below that. */
@media (min-width: 768px) {
  .wdi-scope--app .wdi-newin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .wdi-scope--app .wdi-newin__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Add by code is a fourth item in a header row that had exactly enough space for three. On a 390px
   phone that row stopped fitting and the DOCUMENT widened to 521px to hold it - which is how a
   footer bar that runs edge to edge stopped reaching the edge. The row wraps below the tablet
   breakpoint and the keyboard hint goes, since there is no keyboard to hint at. */
@media (max-width: 782px) {
  .wdi-header__links { flex-wrap: wrap; row-gap: var(--wdi-2); justify-content: flex-end; }
  .wdi-quickadd__key { display: none; }
  .wdi-quickadd__panel { width: 100%; max-width: calc(100vw - 24px); }
}

/* Two leftovers from the theme's own price styling, visible once the price became one line: a
   right border on the amount that read as a divider nobody drew, and a description set in the link
   colour. */
.wdi-scope--app.wdi-scope--app div.product .summary p.price .amount { border: 0; }
.wdi-scope--app .wdi-pdesc__body,
.wdi-scope--app .wdi-pdesc__body p { color: var(--wdi-ink-2); }

/* ==================================================================== round 6 A4: the dropdowns
 *
 * THE MEGA-MENU WAS EATING THE POINTER. The category bar is a full-width strip directly under the
 * header, and both the name dropdown and the quick-add panel hang down over it. The strip has its
 * own hover handlers, so moving the pointer down through a panel crossed the nav underneath:
 * the panel flickered, and a pointer that happened to pass over Waste Management opened it.
 *
 * Two halves to the fix, and both are needed. The header row gets a stacking context ABOVE the
 * nav so the panels paint over it; and while a panel is open the nav is taken out of hit-testing
 * entirely, because painting over something is not the same as being in front of it for events.
 */
.wdi-chrome .wdi-header { position: relative; z-index: 90; }
.wdi-chrome .wdi-nav { position: relative; z-index: 10; }
.wdi-chrome .wdi-quickadd,
.wdi-chrome .wdi-accountmenu { position: relative; z-index: 95; isolation: isolate; }
.wdi-chrome.wdi-overlay-open .wdi-nav { pointer-events: none; }

/* A5: Close is a quiet icon link, not a boxed button. */
.wdi-chrome .wdi-popover__close.wdi-iconlink { margin-left: auto; padding: var(--wdi-1) 0; }
.wdi-chrome .wdi-popover__close .wdi-iconlink__icon { font-size: 16px; line-height: 1; }

/* ==================================================================== round 6 B: the sidebar card
 *
 * The concept draws a pale card of category ROWS, each one a full-width target with a checkbox in
 * it. What was there was a list of links with a marker hanging off the left and no counts - it has
 * been raised twice, so this is the whole card, specified.
 *
 * The checkbox is a pseudo-element, and its three states come from classes the widget already
 * emits: .current-cat is ticked, .current-cat-parent is indeterminate (a child is selected, the
 * parent itself is not), everything else is empty. Nothing here needs JavaScript, and the rows
 * stay real links - so the sidebar still works with scripting off, which a checkbox built from
 * inputs would not.
 */
.wdi-scope--app .chw-widget {
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-4);
}

.wdi-scope--app .chw-title {
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-semi);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-3);
  padding: 0;
}

/* The theme injects this input into the top of the list. It is a field, so it looks like one. */
.wdi-scope--app .chw-widget .search-bar {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 var(--wdi-3);
  margin: 0 0 var(--wdi-3);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-bg);
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink);
}
.wdi-scope--app .chw-widget .search-bar:focus {
  outline: none;
  border-color: var(--wdi-btn);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .18);
}

.wdi-scope--app .chw-widget ul.product-categories,
.wdi-scope--app .chw-widget ul.children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wdi-scope--app .chw-widget li.cat-item {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}
/*
 * THE SECOND CHECKBOX. The theme draws its own with `li::after { position:absolute; left:-29px }`
 * - a 20px black-bordered square sitting OUTSIDE the card, one per row, unreachable and
 * unexplained. It survived three passes at this sidebar because it is a pseudo-element: it is not
 * in the DOM, so every probe that walked elements came back empty.
 */
.wdi-scope--app .chw-widget li.cat-item::after,
.wdi-scope--app .chw-widget li.cat-item::before { content: none; display: none; }

/* The row fills the card. The theme leaves the list shrink-to-fit, which left 50px of dead card
   to the right of every count. */
/* max-width:82% is the theme leaving room for the external checkbox that has just been removed,
   and it was what left 50px of dead card to the right of every count. */
.wdi-scope--app .chw-widget ul.product-categories { width: 100%; max-width: 100%; }
.wdi-scope--app .chw-widget li.cat-item > a { width: 100%; }

/* Children step in by 24px, and only the step - no second rule, no second bullet. */
.wdi-scope--app .chw-widget ul.children { margin-left: var(--wdi-5); border-left: 0; padding-left: 0; }

/* THE ROW. Full width so the whole thing is the target, 36px so two fit where three lines of
   text used to, and the label wraps inside it rather than pushing the checkbox out of line. */
.wdi-scope--app .chw-widget li.cat-item > a {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  min-height: 36px;
  padding: var(--wdi-1) var(--wdi-2);
  margin: 1px 0;
  border-radius: var(--wdi-r-sm);
  font-size: var(--wdi-t-md);
  line-height: 1.3;
  color: var(--wdi-ink-2);
  text-decoration: none;
}
.wdi-scope--app .chw-widget li.cat-item > a:hover { background: var(--wdi-bg); color: var(--wdi-ink); }

/* Selected: the pale-blue active tint, and the label stops being a link colour and becomes text -
   you are already here. */
.wdi-scope--app .chw-widget li.current-cat > a,
.wdi-scope--app .chw-widget li.current-cat > a:hover {
  background: var(--wdi-tint);
  color: var(--wdi-ink);
  font-weight: var(--wdi-w-semi);
}

/* ---- the checkbox ---- */
.wdi-scope--app .chw-widget li.cat-item > a::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-bg) no-repeat center;
  background-size: 12px 12px;
}
/* Ticked. The tick is an inline SVG so it needs no icon font and cannot arrive as a blank box. */
.wdi-scope--app .chw-widget li.current-cat > a::before {
  border-color: var(--wdi-btn);
  background-color: var(--wdi-btn);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E");
}
/* Indeterminate: a child is selected and this parent is not. A dash, which is what an
   indeterminate checkbox means everywhere else a customer has met one. */
.wdi-scope--app .chw-widget li.current-cat-parent:not(.current-cat) > a::before {
  border-color: var(--wdi-btn);
  background-color: var(--wdi-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231565C0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
}

/* A name longer than the card wraps rather than truncating - "Cleaning Machines, Bags &
   Accessories" is not a name you can cut and still recognise - and the row grows with it. */
/* NOT flex-wrap: that breaks the checkbox, the name and the count onto three lines of their own.
   The row stays a single line of flex items; the NAME is the item that wraps internally, which it
   could not do while the theme had white-space: nowrap on the link. */
.wdi-scope--app .chw-widget li.cat-item > a { flex-wrap: nowrap; white-space: normal; }
.wdi-scope--app .wdi-cat__count {
  margin-left: auto;
  padding-left: var(--wdi-2);
  flex: 0 0 auto;
  font-size: var(--wdi-t-sm);
  font-variant-numeric: tabular-nums;
  color: var(--wdi-ink-3);
}
.wdi-scope--app .chw-widget li.current-cat > a .wdi-cat__count { color: var(--wdi-ink-2); }

/* ==================================================================== round 6 C: the grid card
 *
 * Four columns, 20px gutters, and a card that answers the same questions the list row does:
 * what it is, its code, the price, whether it is in stock, and one row to order it. No
 * description - see the note in section 8 of the design system: on this catalogue the
 * description IS the name for most products, so printing it doubles the name and says nothing.
 */
.wdi-scope--app ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wdi-scope--app ul.products::before,
.wdi-scope--app ul.products::after { content: none; display: none; }
/* W2d: the grid had no breakpoint, so a 390 phone got four 76px cards. Two below 640. */
@media (max-width: 639px) {
  .wdi-scope--app ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wdi-3); }
}

/* The scope class is doubled here for one reason: the theme's own `.woocommerce ul.products
   li.product` is (0,2,2) - the same weight as a single scope class - and is printed after our
   stylesheet, so it was winning the tie and leaving 40px of margin INSIDE each grid track. The
   gutter is the grid's job now; the margin has to be nothing. */
.wdi-scope--app.wdi-scope--app ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  overflow: hidden;
}
.wdi-scope--app ul.products li.product > a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  text-decoration: none;
}

/* ---- the image tile ----------------------------------------------------------------------------
 * The tile is the pale blue, edge to edge, and the photograph sits on it. Nearly every product
 * image on this catalogue is a cut-out on a WHITE background, so dropping it straight onto the
 * tile leaves a white rectangle floating in a blue box. mix-blend-mode: multiply makes the white
 * disappear into the tile and leaves the product - no re-shooting, no per-image editing, and it
 * degrades to the white box it already was on a browser that does not support it.
 */
/* W2g B9: the square is held by the box, not by the photograph. The parent theme's inline CSS
   fixes `.woo-thumb-cont { height: 275px }` - square at the desktop's 275px card, but a 175x275
   column on a two-up phone, the photo adrift in it and the card half picture. height:auto hands the
   height back to aspect-ratio; the image is laid over the empty square rather than in flow, so no
   photograph's own proportions can stretch it either, and it is inset and contained - centred and
   whole in every engine. */
.wdi-scope--app ul.products li.product .woo-thumb-cont {
  position: relative;
  height: auto;
  flex: none;
  min-height: 0;
  background: var(--wdi-pale);
  padding: 0;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.wdi-scope--app ul.products li.product .woo-thumb-cont img {
  position: absolute;
  inset: var(--wdi-4);
  width: calc(100% - 2 * var(--wdi-4));
  height: calc(100% - 2 * var(--wdi-4));
  max-width: none;
  object-fit: contain;
  object-position: center;
  margin: 0;
  background: none;
  mix-blend-mode: multiply;
}

/* ---- the words ---- */
.wdi-scope--app.wdi-scope--app ul.products li.product .woocommerce-loop-product__title {
  min-width: 0;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-regular);
  line-height: 1.35;
  color: var(--wdi-ink);
  margin: var(--wdi-3) var(--wdi-3) 0;
  padding: 0;
  /* The clamp is the system's .wdi-clamp now (section 22), added to every loop title by the
     woocommerce_product_loop_title_classes filter - so it holds in both scopes and at every width,
     rather than only here. */
}
.wdi-scope--app ul.products li.product .archive-sku {
  display: block;
  margin: 2px var(--wdi-3) 0;
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-3);
}

/* The price is a figure on a card, not a headline. Body size, bold. */
.wdi-scope--app.wdi-scope--app ul.products li.product .price,
.wdi-scope--app.wdi-scope--app ul.products li.product .price .amount,
.wdi-scope--app.wdi-scope--app ul.products li.product .price bdi {
  font-size: var(--wdi-t-lg) !important;
  font-weight: var(--wdi-w-bold) !important;
  color: var(--wdi-ink);
}
.wdi-scope--app ul.products li.product .price {
  display: block;
  margin: var(--wdi-2) var(--wdi-3) 0;
}
.wdi-scope--app.wdi-scope--app ul.products li.product .woocommerce-price-suffix {
  font-size: var(--wdi-t-sm) !important;
  font-weight: var(--wdi-w-regular) !important;
  color: var(--wdi-ink-3);
}

.wdi-scope--app ul.products li.product .stock {
  margin: var(--wdi-1) var(--wdi-3) 0;
  font-size: var(--wdi-t-sm);
}
.wdi-scope--app ul.products li.product .in-stock { color: var(--wdi-ok); }
.wdi-scope--app ul.products li.product .out-of-stock { color: var(--wdi-bad); }
.wdi-scope--app ul.products li.product .available-on-backorder { color: var(--wdi-warn); }

/* ---- one action row, at system sizes ---- */
.wdi-scope--app .wdi-gridadd {
  display: flex;
  align-items: center;
  gap: var(--wdi-2);
  margin: auto var(--wdi-3) var(--wdi-3);
  padding-top: var(--wdi-3);
}
.wdi-scope--app .wdi-gridadd .quantity { margin: 0; }
.wdi-scope--app .wdi-gridadd .quantity input {
  width: 64px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
}
.wdi-scope--app .wdi-gridadd .wdi-btn { flex: 1 1 auto; }

/* WooCommerce's own add-to-cart anchor is replaced by the row above. */
.wdi-scope--app ul.products li.product > a.add_to_cart_button,
.wdi-scope--app ul.products li.product .product-action { display: none; }

/* NO DESCRIPTION ON A CARD OR A ROW. On this catalogue the description is the product name for
   most products - data, not code - so anywhere it is printed beside the name it says the name
   twice. */
.wdi-scope--app ul.products li.product .woocommerce-product-details__short-description,
.wdi-scope--app ul.products li.product .product-short-description,
.wdi-scope--app .wdi-catalogue .product-short-description { display: none; }

/* ==================================================================== round 6 D: the order page
 *
 * The header card is everything a customer checks before reading the lines: which order, when,
 * what is happening to it, what they called it, how it is paid and where it is going. WooCommerce
 * scatters those across a paragraph above the table and an address block below it, which puts the
 * delivery address - the thing most often checked - past the fold on an order of any size.
 */
.wdi-scope--app .wdi-orderhead {
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-5);
}
.wdi-scope--app .wdi-orderhead__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wdi-3);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app .wdi-orderhead__number {
  font-size: var(--wdi-t-2xl);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-ink);
  margin: 0;
  padding: 0;
}
.wdi-scope--app .wdi-orderhead__placed { font-size: var(--wdi-t-md); color: var(--wdi-ink-3); margin-left: auto; }

.wdi-scope--app .wdi-orderhead__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--wdi-1) var(--wdi-4);
  margin: 0;
  font-size: var(--wdi-t-md);
}
.wdi-scope--app .wdi-orderhead__facts dt {
  margin: 0;
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-semi);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  align-self: center;
}
.wdi-scope--app .wdi-orderhead__facts dd { margin: 0; color: var(--wdi-ink-2); }

/* ---- the lines ---- */
.wdi-scope--app table.wdi-orderlines { width: 100%; margin: 0 0 var(--wdi-4); }
/* The theme paints table cells in the link colour on this page, which made the pack and the
   quantity read as links. They are facts, not destinations. */
.wdi-scope--app.wdi-scope--app table.wdi-orderlines td { color: var(--wdi-ink-2); }
.wdi-scope--app.wdi-scope--app table.wdi-orderlines th:last-child,
.wdi-scope--app.wdi-scope--app table.wdi-orderlines td:last-child { padding-right: var(--wdi-2); }
.wdi-scope--app table.wdi-orderlines td { height: 68px; }
.wdi-scope--app table.wdi-orderlines .wdi-col-thumb { width: 72px; }
.wdi-scope--app table.wdi-orderlines .wdi-col-thumb img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--wdi-pale);
  border-radius: var(--wdi-r-sm);
  padding: 4px;
}
.wdi-scope--app table.wdi-orderlines .wdi-col-name a { color: var(--wdi-ink); text-decoration: none; }
.wdi-scope--app table.wdi-orderlines .wdi-col-name a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--app.wdi-scope--app table.wdi-orderlines .wdi-num {
  text-align: right;
  font-weight: var(--wdi-w-regular);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- the totals, right-aligned, one bold line ---- */
.wdi-scope--app .wdi-ordertotals { display: flex; justify-content: flex-end; margin: 0 0 var(--wdi-5); }
.wdi-scope--app .wdi-ordertotals__table { border-collapse: collapse; min-width: 280px; }
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__table th,
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__table td {
  height: auto;
  padding: var(--wdi-2) 0 var(--wdi-2) var(--wdi-5);
  border: 0;
  background: none;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink);
}
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__table th {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wdi-ink-2);
}
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__table td { text-align: right; font-variant-numeric: tabular-nums; }
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__row--order_total th,
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__row--order_total td,
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__row--order_total td .amount,
.wdi-scope--app.wdi-scope--app .wdi-ordertotals__row--order_total td bdi {
  border-top: 1px solid var(--wdi-line);
  padding-top: var(--wdi-3);
  font-size: var(--wdi-t-xl) !important;
  font-weight: var(--wdi-w-bold) !important;
  color: var(--wdi-navy);
}

/* ---- the actions, as system pills ---- */
.wdi-scope--app .wdi-order-actions { display: flex; flex-wrap: wrap; gap: var(--wdi-3); margin: 0 0 var(--wdi-5); }
.wdi-scope--app.wdi-scope--app .wdi-order-actions .wdi-order-again {
  height: 40px;
  padding: 0 var(--wdi-5);
  border: 1px solid var(--wdi-btn);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-btn) !important;
  color: #fff !important;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  --wdi-hover-bg: var(--wdi-btn-hover);
  --wdi-hover-ink: #fff;
}
.wdi-scope--app.wdi-scope--app .wdi-order-actions .wdi-save-as-list {
  height: 40px;
  padding: 0 var(--wdi-5);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-pill);
  background: transparent !important;
  color: var(--wdi-blue) !important;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  --wdi-hover-bg: var(--wdi-pale);
  --wdi-hover-ink: var(--wdi-blue-dark);
}

/* ==================================================================== round 6 F: checkout
 *
 * One page, two columns: the three cards a customer fills in on the left, the order and the one
 * button on the right, sticky. WooCommerce renders customer details, then the review table, then
 * payment, in one column down the page; the grid places them without moving a single field.
 *
 * NOTHING IS REMOVED. Every WooCommerce field is still in the form and still submits - the ones a
 * customer has already answered are behind "Change", hidden with the `hidden` attribute. That is
 * why no validation rule and no gateway has to know anything changed.
 */
/* The theme lays the checkout form out as a flex column at a weight a single scope class cannot
   reach, so the grid is doubled and !important on the one declaration that matters. */
.wdi-scope--app.woocommerce-checkout.wdi-scope--app form.checkout.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 400px;
  column-gap: var(--wdi-6);
  align-items: start;
}
/* Left column: ONE child, so the two columns cannot share row heights. */
.wdi-scope--app.woocommerce-checkout form.checkout > .wdi-checkout__left { grid-column: 1; grid-row: 1 / -1; min-width: 0; }

/* Right column: the heading is redundant above a card that says "Your order", so it goes. */
.wdi-scope--app.woocommerce-checkout form.checkout > #order_review_heading { display: none; }
.wdi-scope--app.woocommerce-checkout form.checkout > .wdi-credit,
.wdi-scope--app.woocommerce-checkout form.checkout > #order_review {
  grid-column: 2;
}
.wdi-scope--app.woocommerce-checkout form.checkout > .wdi-credit { grid-row: 1; }
/* align-self: start, or the order card stretches down the whole of the second row and its
   sticky top has nothing to stick to. */
.wdi-scope--app.woocommerce-checkout form.checkout > #order_review { grid-row: 2; align-self: start; }
.wdi-scope--app.woocommerce-checkout form.checkout.woocommerce-checkout { grid-template-rows: auto 1fr; }

@media (max-width: 1023px) {
  /* W2d: at the SAME weight as the two-column rule above, or it loses to it - which it did, so
     every phone and tablet checkout kept a 400px right column and a ~70px left one. */
  .wdi-scope--app.woocommerce-checkout.wdi-scope--app form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); }
  .wdi-scope--app.woocommerce-checkout form.checkout > * { grid-column: 1 !important; grid-row: auto !important; }
}

/* ---- the left-hand cards ---- */
.wdi-scope--app .wdi-checkout__card { margin: 0 0 var(--wdi-4); border: 1px solid var(--wdi-line); }
.wdi-scope--app .wdi-checkout__card .wdi-card__title { font-size: var(--wdi-t-xl); margin-bottom: var(--wdi-3); }
.wdi-scope--app .wdi-checkout__address {
  font-style: normal;
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-2);
  line-height: 1.5;
  margin: 0;
}
.wdi-scope--app .wdi-checkout__change { margin: var(--wdi-3) 0 0; }

.wdi-scope--app .wdi-field-row { display: block; margin: 0 0 var(--wdi-4); }
.wdi-scope--app .wdi-field-row:last-child { margin-bottom: 0; }
.wdi-scope--app .wdi-field-row .wdi-field { width: 100%; }
.wdi-scope--app .wdi-field--short { max-width: 260px; }
.wdi-scope--app .wdi-field-row textarea.wdi-field { height: auto; padding: var(--wdi-3); line-height: 1.5; }
.wdi-scope--app .wdi-field-row .wdi-help { display: block; margin-top: var(--wdi-1); }

/* ---- payment, as a statement ---- */
.wdi-scope--app .wdi-checkout__method { display: flex; align-items: center; gap: var(--wdi-2); margin: 0; }
.wdi-scope--app .wdi-checkout__methodname { font-size: var(--wdi-t-lg); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-scope--app .wdi-checkout__tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wdi-ok) no-repeat center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  flex: 0 0 auto;
}
.wdi-scope--app .wdi-checkout__tick.is-bad { background-color: var(--wdi-bad); }
.wdi-scope--app .wdi-checkout__creditline { margin: var(--wdi-2) 0 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }

/* ---- the order card, sticky ---- */
.wdi-scope--app.woocommerce-checkout #order_review {
  position: sticky;
  top: var(--wdi-5);
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  padding: var(--wdi-5);
}
.wdi-scope--app.woocommerce-checkout #order_review::before {
  content: "Your order";
  display: block;
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-4);
}
.wdi-scope--app.woocommerce-checkout .wdi-credit {
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-4);
  margin: 0 0 var(--wdi-4);
}

/* The review table stops being a boxed table and becomes the lines of a card. */
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin: 0;
}
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table th,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table td {
  height: auto;
  padding: var(--wdi-2) 0;
  border: 0;
  background: none;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink);
}
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart_item td { vertical-align: middle; }
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total { text-align: right; white-space: nowrap; }

.wdi-scope--app .wdi-review__thumb { float: left; margin: 0 var(--wdi-3) 0 0; line-height: 0; }
.wdi-scope--app .wdi-review__thumb img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--wdi-pale);
  border-radius: var(--wdi-r-sm);
  padding: 3px;
}
.wdi-scope--app .wdi-review__name { display: block; overflow: hidden; line-height: 1.35; }
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-quantity {
  color: var(--wdi-ink-3);
  font-size: var(--wdi-t-sm);
}

.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wdi-ink-2);
}
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr:first-child th,
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr:first-child td {
  border-top: 1px solid var(--wdi-line);
  padding-top: var(--wdi-3);
}
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td .amount,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td bdi {
  font-size: var(--wdi-t-xl) !important;
  font-weight: var(--wdi-w-bold) !important;
  color: var(--wdi-navy);
}

/* ---- place order ---- */
.wdi-scope--app.woocommerce-checkout #payment { background: none; border-radius: 0; padding: 0; margin: var(--wdi-4) 0 0; }
.wdi-scope--app.woocommerce-checkout #payment .form-row.place-order { margin: 0; padding: 0; }
.wdi-scope--app.woocommerce-checkout .woocommerce-privacy-policy-text,
.wdi-scope--app.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: var(--wdi-t-sm);
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-3);
}
.wdi-scope--app.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0; font-size: inherit; color: inherit; }
body.wdi-scope--app.woocommerce-checkout.wdi-scope--app #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 var(--wdi-5);
  border: 1px solid var(--wdi-button-large);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-button-large) !important;
  color: #fff !important;
  font-size: 19px !important;
  font-weight: var(--wdi-w-bold) !important;
  text-transform: none;
  letter-spacing: 0;
  --wdi-hover-bg: var(--wdi-button-large-hover);
  --wdi-hover-ink: #fff;
}

/* The customer-details block, when Change opens it, is two plain columns rather than WooCommerce's
   boxed panels. */
/* The theme gives #customer_details a display of its own, which beats the [hidden] attribute -
   so with the fields collapsed the row was still there, as 470px of empty page between Delivery
   and Order reference. */
.wdi-scope--app.woocommerce-checkout #customer_details[hidden] { display: none !important; }
.wdi-scope--app.woocommerce-checkout #customer_details {
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-4);
}
.wdi-scope--app.woocommerce-checkout #customer_details .col-1,
.wdi-scope--app.woocommerce-checkout #customer_details .col-2 { width: auto; float: none; }

/* ==================================================================== round 6 G: checkout polish
 *
 * Two things the screenshots caught that the assertions did not.
 */

/* (a) The fields behind "Change" were wearing the theme's grey-filled, square, borderless input.
 *     They now carry .wdi-field and .wdi-label, added in PHP (WDI_Checkout::field_classes) rather
 *     than restated here - so what is left is layout and the two things the theme still insists on.
 */
.wdi-scope--app.woocommerce-checkout #customer_details .form-row { margin: 0 0 var(--wdi-4); padding: 0; }
.wdi-scope--app.woocommerce-checkout #customer_details .form-row:last-child { margin-bottom: 0; }
.wdi-scope--app.woocommerce-checkout #customer_details .select2-selection { display: none; }
.wdi-scope--app.woocommerce-checkout #customer_details h3 {
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-4);
  text-transform: none;
  letter-spacing: 0;
}

/* (b) Shipping. It reaches the totals block two different ways - as a <ul> chooser when a method
 *     is selectable ("Flat rate: £8.50") and as bare text once the basket passes the £75 free
 *     delivery threshold ("Free shipping") - and BOTH were wrapping onto two lines in a 400px
 *     column, the only row in the block that was not one line. There is nothing to choose here, so
 *     it renders as a sentence and the cell refuses to break it. */
.wdi-scope--app.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
  white-space: nowrap;
}
.wdi-scope--app.woocommerce-checkout ul#shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wdi-scope--app.woocommerce-checkout ul#shipping_method li { margin: 0; padding: 0; }
.wdi-scope--app.woocommerce-checkout ul#shipping_method label {
  white-space: nowrap;
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink);
}

/* ==================================================================== round 6 G: order detail
 *
 * WooCommerce's view-order template opens with "Order #489360 was placed on 29 September 2026 and
 * is currently Processing." - the order number, the date and the status, which are the first three
 * things the header card says, in the same order, twenty pixels higher. The paragraph has no class
 * of its own, so it is matched by the one thing inside it that does.
 */
.wdi-scope--app .woocommerce-MyAccount-content > p:has(mark.order-number) { display: none; }

/* ---- the gateway chooser, for the accounts that have a choice -----------------------------------
 *
 * 416 of 418 customers buy on account and never see this: for them WooCommerce renders a single
 * method, the Payment card on the left states it in English, and nothing here applies. A
 * card-eligible account gets WooCommerce's own radios, and they have to stay inside #order_review
 * because update_order_review replaces that container wholesale over AJAX - so they are styled
 * where they are rather than moved. Out of the box they arrive as a grey speech bubble with a
 * loose row of card icons under it, which is the only undesigned thing left on the page.
 */
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods {
  margin: var(--wdi-4) 0 0;
  padding: var(--wdi-4) 0 0;
  border-top: 1px solid var(--wdi-line);
  list-style: none;
}
/* WooCommerce prints the radio, the label and the explanation as three SIBLINGS, so the row has to
   be laid out by the li rather than by the label. */
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  /* The card gateway's four scheme logos do not fit one line beside its name in a 400px column, so
     the label wraps - and a centred radio would then float between its two lines. */
  align-items: start;
  column-gap: var(--wdi-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li + li { margin-top: var(--wdi-3); }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li input {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--wdi-btn);
}
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: var(--wdi-2);
  margin: 0;
  font-size: var(--wdi-t-lg);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  flex-wrap: wrap;
  row-gap: var(--wdi-1);
}
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label img {
  height: 18px;
  width: auto;
  margin: 0;
  box-shadow: none;
}
/* The speech bubble becomes the same quiet help text every other explanation on the page uses. */
.wdi-scope--app.woocommerce-checkout #payment div.payment_box {
  grid-column: 2;
  grid-row: 2;
  background-color: transparent;
  background-image: none;
  border-radius: 0;
  width: auto;
  margin: var(--wdi-1) 0 0;
  padding: 0;
  font-size: var(--wdi-t-sm);
  color: var(--wdi-ink-3);
}
.wdi-scope--app.woocommerce-checkout #payment div.payment_box::before,
.wdi-scope--app.woocommerce-checkout #payment div.payment_box::after { content: none; display: none; }
.wdi-scope--app.woocommerce-checkout #payment div.payment_box p { margin: 0; font-size: inherit; color: inherit; }

/* ==================================================================== round 7 A: the product page
 *
 * ONE BLOCK. There were three - the original, round 4's app-prototype treatment and round 5's
 * correction - and all three still matched, so the page was the sum of whichever rule happened to
 * win each property. They are deleted; this is the only product-page CSS in the file.
 *
 * Built against the concept line by line: charcoal title, one muted meta line, a charcoal price
 * with its qualifier beside it, one action row, the content sections below the summary in the same
 * column as the title, and Frequently ordered with full width beneath both columns.
 */

/* ---- the two columns ---------------------------------------------------------------------------
 * The theme floats the gallery left and the summary right, which leaves the sections underneath to
 * start wherever the float ends - against the image card rather than under the title. A grid places
 * all four pieces explicitly, so the content column starts at the title's left edge and the pairs
 * row spans the page.
 *
 *   col 1            col 2
 *   gallery          summary   (title, meta, price, actions)
 *   thumbnails       sections  (the accordion)
 *   ---------- frequently ordered with ----------
 */
.wdi-scope--app div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--wdi-7);          /* 48px */
  align-items: start;
}
.wdi-scope--app.wdi-scope--app div.product > .woocommerce-product-gallery {
  grid-column: 1;
  /* Spanning both content rows is what lets the accordion sit directly under the action row rather
     than waiting for the bottom of the photograph. Without it the two columns share row
     boundaries and the sections start 180px below the button that precedes them. */
  grid-row: 1 / span 2;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}
/* The theme sets div.summary to 48% - which inside a 621px grid column is the 298px the title was
   wrapping inside. Four classes to its three wins the column back. */
.wdi-scope--app.wdi-scope--app div.product > .summary {
  grid-column: 2;
  grid-row: 1;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
}
.wdi-scope--app div.product > .wdi-pacc                    { grid-column: 2; grid-row: 2; }
.wdi-scope--app div.product > .wdi-fow                     { grid-column: 1 / -1; grid-row: 4; }
.wdi-scope--app div.product::before,
.wdi-scope--app div.product::after { content: none; display: none; }

@media (max-width: 1023px) {
  .wdi-scope--app div.product { grid-template-columns: minmax(0, 1fr); }
  .wdi-scope--app div.product > * { grid-column: 1 !important; grid-row: auto !important; }
}

.wdi-scope--app div.product .woocommerce-product-gallery__wrapper,
.wdi-scope--app div.product .woocommerce-product-gallery__image {
  border-radius: var(--wdi-r);
  overflow: hidden;
  background: var(--wdi-bg);
}
.wdi-scope--app div.product .woocommerce-product-gallery__image { border: 1px solid var(--wdi-line); }
.wdi-scope--app div.product .woocommerce-product-gallery__wrapper { border: 0; }
/* A 619x1109 bottle photograph filling half the page pushes the sections below the fold and makes
   the tile taller than the whole content column. The tile keeps the concept's proportions and the
   photograph sits inside it. */
.wdi-scope--app div.product .woocommerce-product-gallery__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--wdi-5);
}
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* A percentage max-height resolves against a flex container whose own height comes from
     aspect-ratio, which the image then overflows anyway. A real figure is what actually caps it. */
  max-height: 420px;
  object-fit: contain;
}

/* ---- the summary, in the concept's order ---- */
/* A column flex container with align-items: flex-start sizes every child to its own content, so
   the title wrapped to three lines and the action row ended at 298px inside a 620px column. The
   children are ordered here, not sized here. */
.wdi-scope--app div.product .summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wdi-scope--app div.product .summary > .product_title       { order: 1; }
.wdi-scope--app div.product .summary > .wdi-pmeta           { order: 2; }
.wdi-scope--app div.product .summary > .wdi-pchips          { order: 3; }
.wdi-scope--app div.product .summary > p.price              { order: 4; }
.wdi-scope--app div.product .summary > .wdi-price-card      { order: 4; }
.wdi-scope--app div.product .summary > form.cart            { order: 5; }
.wdi-scope--app div.product .summary > .wdi-product-enquire { order: 6; }
.wdi-scope--app div.product .summary > .wdi-pinfo            { order: 7; }   /* W2d: under the buttons, as the concept draws it */
/* W2e: the short description. WooCommerce prints it (priority 20) with no order, and in this flex
   column order 0 sorts ABOVE the title - no live product has one yet, which is the only reason it
   never showed. It is a one-line summary: under the meta line, before the price. */
.wdi-scope--app div.product .summary > .woocommerce-product-details__short-description { order: 3; margin: 0 0 var(--wdi-3); }
.wdi-scope--app div.product .summary > .woocommerce-product-details__short-description p { margin: 0; font-size: var(--wdi-t-lg); line-height: 1.55; color: var(--wdi-ink-2); }

/* ---- 1. the title, and the one line under it ---- */
.wdi-scope--app.wdi-scope--app div.product .product_title {
  /* The theme sets width: calc(100% - 100px) to leave room for the wishlist heart. The heart is
     hidden here, so the hundred pixels are just a narrower title. */
  width: 100%;
  max-width: none;
  font-size: var(--wdi-t-3xl);            /* 28px */
  font-weight: var(--wdi-w-semi);
  line-height: 1.25;
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-2);
}
.wdi-scope--app div.product .wdi-pmeta {
  font-size: var(--wdi-t-lg);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-4);
  border: 0;
}
.wdi-scope--app .wdi-pmeta__sep { color: var(--wdi-line-strong); margin: 0 var(--wdi-1); }
/* The stock word is the only coloured thing in the line, and it says its state in words too. */
.wdi-scope--app .wdi-pmeta__stock { font-weight: var(--wdi-w-semi); }
.wdi-scope--app .wdi-pmeta__stock.is-ok   { color: var(--wdi-ok); }
.wdi-scope--app .wdi-pmeta__stock.is-warn { color: var(--wdi-warn); }
.wdi-scope--app .wdi-pmeta__stock.is-bad  { color: var(--wdi-bad); }

/* WooCommerce says the same things again below the button; one of each is enough. */
.wdi-scope--app div.product .summary > p.stock,
.wdi-scope--app div.product .product_meta { display: none; }

/* ---- 2. the price: charcoal, with its qualifier on the same baseline ----------------------------
 * The concept's price is charcoal - not the brand blue it was, and not the navy round 5 gave it.
 * No rule above it, no rule below it, and no divider between the figure and the words: the theme
 * drew a 1px border-top on p.price, which read as a line under the meta row.
 */
.wdi-scope--app.wdi-scope--app div.product .summary p.price {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 var(--wdi-5);
  line-height: 1.2;
}
.wdi-scope--app div.product .summary p.price::before,
.wdi-scope--app div.product .summary p.price::after { content: none; display: none; }
.wdi-scope--app.wdi-scope--app div.product .summary p.price .amount,
.wdi-scope--app.wdi-scope--app div.product .summary p.price .amount bdi {
  display: inline;
  border: 0;
  font-size: var(--wdi-t-2xl) !important;   /* 22px */
  font-weight: var(--wdi-w-semi) !important;
  color: var(--wdi-ink);
  line-height: 1.2;
}
.wdi-scope--app .wdi-price__suffix {
  display: inline;
  border: 0;
  margin-left: var(--wdi-2);
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-regular);
  color: var(--wdi-ink-3);
  white-space: nowrap;
}
.wdi-scope--app div.product .summary .woocommerce-price-suffix { display: none; }

/* ---- 3. one action row: quantity, Add to basket, Save to a list ---------------------------------
 *
 * TWO quantity controls arrive here. The theme injects its own .quantity-add - a minus link, an
 * input and a plus link - and WooCommerce renders .quantity beside it, and BOTH inputs are named
 * "quantity", so the page was asking the same question twice and only the second answer counted.
 * The theme's stepper goes; WooCommerce's input stays, because it is the one that submits.
 *
 * THE BLUE. The concept's button is #3397ed. Measured against white it is 3.09:1, which clears
 * WCAG's large-text floor of 3:1 but not the 4.5:1 that 15px text needs - and this button is 44px
 * tall with a 15px label, by specification. So it takes --wdi-btn (#1565C0, 5.75:1), the system's
 * primary and the same blue as every other Add on the site. The lighter blue stays where it is
 * legal: --wdi-btn--xl, whose 19px bold label puts it over the large-text line.
 */
.wdi-scope--app.wdi-scope--app div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wdi-3);
  margin: 0 0 var(--wdi-5);
  width: 100%;
}
.wdi-scope--app div.product form.cart .quantity-add,
.wdi-scope--app div.product form.cart .quantity label { display: none; }
/* The theme suppresses WooCommerce's own .quantity because it renders .quantity-add instead, so
   removing the stepper left the row with no quantity field at all. This puts the real one back. */
.wdi-scope--app.wdi-scope--app div.product form.cart .quantity {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  width: auto;
}
.wdi-scope--app.wdi-scope--app div.product form.cart .quantity .qty { display: block; }
.wdi-scope--app.wdi-scope--app div.product form.cart .qty {
  width: 56px;
  height: 44px;
  padding: 0 var(--wdi-2);
  text-align: center;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-bg);
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-lg);
  color: var(--wdi-ink);
  /* A plain field, as the concept draws it - the browser's spinners are a second stepper. */
  -moz-appearance: textfield;
  appearance: textfield;
}
.wdi-scope--app div.product form.cart .qty::-webkit-outer-spin-button,
.wdi-scope--app div.product form.cart .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wdi-scope--app.wdi-scope--app div.product form.cart button.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0;
  padding: 0 var(--wdi-6);
  border: 1px solid var(--wdi-btn);
  border-radius: var(--wdi-r-pill);
  background: var(--wdi-btn) !important;
  color: var(--wdi-ink-inverse) !important;
  font-size: var(--wdi-t-lg) !important;
  font-weight: var(--wdi-w-semi) !important;
  text-transform: none;
  letter-spacing: 0;
  --wdi-hover-bg: var(--wdi-btn-hover);
  --wdi-hover-ink: #fff;
}

/* "+ Save to a list" is a text link, not a button. */
.wdi-scope--app div.product form.cart .wdi-add-to-list-wrap,
.wdi-scope--app .wdi-add-to-list-wrap { order: 7; margin: 0; }
.wdi-scope--app.wdi-scope--app div.product .wdi-add-to-list {
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--wdi-blue) !important;
  font-size: var(--wdi-t-lg);
  font-weight: var(--wdi-w-semi);
  text-transform: none;
  --wdi-hover-bg: transparent;
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-scope--app div.product .wdi-add-to-list:hover { text-decoration: underline; }

/* Nothing else competes for the row. The wishlist heart duplicates Save to a list (every wishlist
   was migrated into a saved list); Buy now is a second primary beside the first. */
.wdi-scope--app div.product .tinv-wraper,
.wdi-scope--app div.product .quick_buy_container,
.wdi-scope--app div.product .wcqb_button { display: none !important; }

/* ---- 4. the chips row, when there is anything to put in it ---- */
.wdi-scope--app .wdi-pchips { display: flex; flex-wrap: wrap; gap: var(--wdi-2); margin: 0 0 var(--wdi-4); }
.wdi-scope--app .wdi-pchips:empty { display: none; }

/* ---- 5. the content sections ------------------------------------------------------------------- */
.wdi-scope--app .wdi-pacc { margin: var(--wdi-6) 0 0; }
.wdi-scope--app .wdi-pacc__item { border-bottom: 1px solid var(--wdi-line); }
.wdi-scope--app .wdi-pacc__item:first-child { border-top: 1px solid var(--wdi-line); }
.wdi-scope--app .wdi-pacc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wdi-3);
  padding: var(--wdi-4) 0;
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  cursor: pointer;
  list-style: none;
}
.wdi-scope--app .wdi-pacc__head::-webkit-details-marker { display: none; }
/* The chevron is drawn, not an image request, and it turns with the section. */
.wdi-scope--app .wdi-pacc__head::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--wdi-ink-3);
  border-bottom: 2px solid var(--wdi-ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease;
}
.wdi-scope--app .wdi-pacc__item[open] > .wdi-pacc__head::after { transform: rotate(-135deg) translate(-2px, -2px); }
.wdi-scope--app .wdi-pacc__head:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: var(--wdi-r-sm); }
.wdi-scope--app .wdi-pacc__body { padding: 0 0 var(--wdi-4); }
.wdi-scope--app .wdi-pacc__body p {
  margin: 0 0 var(--wdi-3);
  font-size: var(--wdi-t-md);
  line-height: 1.6;
  color: var(--wdi-ink-2);
}
.wdi-scope--app .wdi-pacc__body p:last-child { margin-bottom: 0; }
.wdi-scope--app .wdi-pacc__body ul,
.wdi-scope--app .wdi-pacc__body ol { margin: 0 0 var(--wdi-3) var(--wdi-4); font-size: var(--wdi-t-md); line-height: 1.6; color: var(--wdi-ink-2); }

.wdi-scope--app .wdi-keydetails {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0;
}
.wdi-scope--app .wdi-keydetails dt,
.wdi-scope--app .wdi-keydetails dd {
  margin: 0;
  padding: var(--wdi-3) 0;
  border-top: 1px solid var(--wdi-line);
  font-size: var(--wdi-t-md);
  line-height: 1.6;
}
.wdi-scope--app .wdi-keydetails dt:first-of-type,
.wdi-scope--app .wdi-keydetails dt:first-of-type + dd { border-top: 0; }
.wdi-scope--app .wdi-keydetails dt { color: var(--wdi-ink-3); padding-right: var(--wdi-5); }
.wdi-scope--app .wdi-keydetails dd { color: var(--wdi-ink-2); }

/* ---- 6. frequently ordered with, full width under both columns ---------------------------------
 * The cards are the system's horizontal card, unchanged - it already specifies a 56px tile, a name
 * clamped to two lines and the price under it. What was wrong was the WIDTH: the section sat in
 * the right-hand column, so three cards shared 620px and every name truncated to "Centrefi Embo".
 * Full width gives each card a third of the page and the component does the rest.
 */
.wdi-scope--app .wdi-fow { margin: var(--wdi-7) 0 0; }
/* W3g 3A: these cards sit inside the product page's div.product, where the parent theme sizes every price <bdi> as the
   page's headline price (22px). A card's price is the catalogue card's figure instead - --wdi-t-lg, bold, the token the
   catalogue cards use (ul.products li.product .price) - on the line under the name, aligned with it. */
.wdi-scope--app.wdi-scope--app .wdi-fow .wdi-hcard__price,
.wdi-scope--app.wdi-scope--app .wdi-fow .wdi-hcard__price .amount,
.wdi-scope--app.wdi-scope--app .wdi-fow .wdi-hcard__price bdi {
  font-size: var(--wdi-t-lg) !important;
  font-weight: var(--wdi-w-bold);
  line-height: 1.3;
}
.wdi-scope--app .wdi-section-title {
  font-size: var(--wdi-t-2xl);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-4);
}

/* ---- a product with no agreed price ------------------------------------------------------------
 * The same shape as a priced product, saying what is true where the figure would be - so the page
 * does not change shape and nobody wonders where the price went.
 */
.wdi-scope--app div.product .summary a.button[href*="contact"],
.wdi-scope--app div.product .summary .wdi-no-price-button,
.wdi-scope--app div.product .summary > a.button:first-child { display: none !important; }

.wdi-scope--app .wdi-price-card { display: block; margin: 0 0 var(--wdi-5); }
.wdi-scope--app .wdi-price-card__label { display: none; }
.wdi-scope--app .wdi-price-card__value {
  display: inline;
  font-size: var(--wdi-t-2xl);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink-2);
  line-height: 1.2;
}
.wdi-scope--app .wdi-product-enquire { margin: 0 0 var(--wdi-5); }

/* ---- thumbnails under the image: W2y A, see the section at the end ---- */

/* ==================================================================== round 7 B: one pagination
 *
 * The Load more footer now renders for everyone on every catalogue route, which left two counts on
 * the page for a logged-out visitor: WooCommerce's own "Showing 1-16 of 3287 results" above the
 * loop, and ours below it. Ours is the one the button keeps up to date as rows append, so it is
 * the one that stays. Not scoped to the app: a logged-out visitor sees the same one mechanism.
 */
.wdi-chrome .woocommerce-result-count { display: none; }

/* The footer itself, wherever it lands - the list form, the grid, or the lite scope. */
.wdi-chrome .wdi-loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--wdi-4);
  margin: var(--wdi-6) 0 var(--wdi-7);
}
.wdi-chrome .wdi-loadmore__count { margin: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-3); }
.wdi-chrome .wdi-loadmore__jump { margin: 0; font-size: var(--wdi-t-md); }
.wdi-chrome .wdi-loadmore__jump .wdi-link { color: var(--wdi-blue); text-decoration: none; }
.wdi-chrome .wdi-loadmore__jump .wdi-link:hover { text-decoration: underline; }

/* ==================================================================== round 7 C: the last rules
 *
 * WooCommerce's own stylesheet draws every table row divider as
 * `.woocommerce table.shop_table td { border-top: 1px solid rgba(0,0,0,.1) }` - specified in
 * black, and the only rule left on the ordering pages that was. Over white it computes to about
 * #e6e6e6, so it never looked wrong; it is changed because "no rule is specified in black" is a
 * property worth being able to assert, and because over the pale card backgrounds it renders
 * muddier than the hairline beside it.
 *
 * Every row divider on every table in the app scope now comes from one token.
 */
.wdi-scope--app.wdi-scope--app table.shop_table td,
.wdi-scope--app.wdi-scope--app table.shop_table th,
.wdi-scope--app.wdi-scope--app table.wdi-rows td,
.wdi-scope--app.wdi-scope--app table.wdi-rows th,
.wdi-scope--app.wdi-scope--app .woocommerce-orders-table td,
.wdi-scope--app.wdi-scope--app .woocommerce-orders-table th {
  border-color: var(--wdi-line);
}

/* ==================================================================== W2c: the pages from the .co.uk
 *
 * Layout only. Every colour, size and radius here is a token; every block is a system component
 * (.wdi-crumbs, .wdi-page-title, .wdi-lede, .wdi-prose, .wdi-card, .wdi-chip--action, .wdi-btn).
 * The parent theme styles bare h1/h2/p/a with its own Inter and sizes, so the scope is doubled at
 * the places it would otherwise win (see the design-system doc, section 7).
 */
.wdi-scope--info .wdi-info { background: var(--wdi-bg); padding: 0 0 var(--wdi-7); }
.wdi-scope--info .wdi-info__nav { display: flex; flex-wrap: wrap; gap: var(--wdi-2); margin: 0 0 var(--wdi-6); }
.wdi-scope--info .wdi-info__body { margin: 0 0 var(--wdi-6); }
.wdi-scope--info.wdi-scope--info .wdi-page-title { font-size: var(--wdi-t-3xl); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); line-height: 1.2; margin: 0 0 var(--wdi-3); }
.wdi-scope--info.wdi-scope--info .wdi-lede { font-size: var(--wdi-t-lg); color: var(--wdi-ink-3); max-width: 72ch; margin: 0 0 var(--wdi-5); }
.wdi-scope--info.wdi-scope--info .wdi-prose h2 { font-size: var(--wdi-t-2xl); color: var(--wdi-ink); }
.wdi-scope--info.wdi-scope--info .wdi-prose h3 { font-size: var(--wdi-t-xl); color: var(--wdi-ink); }
.wdi-scope--info.wdi-scope--info .wdi-prose p,
.wdi-scope--info.wdi-scope--info .wdi-prose li { font-size: var(--wdi-t-lg); color: var(--wdi-ink-2); line-height: 1.65; }
/* Row, said explicitly: the legacy .wdi-card above makes every card a flex COLUMN, and in a column the
   title's 100% basis becomes its height - the card grew 450px of nothing. */
.wdi-scope--info .wdi-info__talk { max-width: 72ch; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--wdi-3) var(--wdi-5); text-align: left; }
/* The theme takes the underline off every link; in running copy a link must not be colour alone. */
.wdi-scope--info.wdi-scope--info .wdi-prose p a,
.wdi-scope--info.wdi-scope--info .wdi-prose li a { text-decoration: underline; text-underline-offset: 2px; }
.wdi-scope--info .wdi-info__talk .wdi-card__title { flex: 1 0 100%; margin: 0; }
.wdi-scope--info .wdi-info__talk-line { flex: 1 1 320px; margin: 0; color: var(--wdi-ink-2); font-size: var(--wdi-t-md); }

/* Industries: the six sectors as cards, three across, one column on a phone. */
.wdi-scope--info .wdi-sectors { list-style: none; margin: var(--wdi-5) 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wdi-4); max-width: none; }
.wdi-scope--info .wdi-prose .wdi-sectors { max-width: 1100px; }
.wdi-scope--info .wdi-sectors__card { margin: 0; }
.wdi-scope--info .wdi-prose .wdi-sectors__link { color: var(--wdi-ink); text-decoration: none; }
.wdi-scope--info .wdi-prose .wdi-sectors__link:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--info .wdi-prose .wdi-sectors__text { margin: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-3); }
.wdi-scope--info .wdi-prose .wdi-sectors .wdi-card__title { font-size: var(--wdi-t-xl); margin: 0 0 var(--wdi-2); }
.wdi-scope--info .wdi-prose:has(.wdi-sectors) { max-width: none; }

/* The brochure. */
.wdi-scope--info .wdi-brochure__grid { list-style: none; margin: var(--wdi-5) 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wdi-4); }
.wdi-scope--info .wdi-brochure__card { margin: 0; }
.wdi-scope--info .wdi-brochure__card .wdi-card__title { font-size: var(--wdi-t-xl); margin: 0 0 var(--wdi-2); }
.wdi-scope--info .wdi-brochure__link { color: var(--wdi-ink); text-decoration: none; }
.wdi-scope--info .wdi-brochure__link:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--info .wdi-brochure__link:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: 2px; }
.wdi-scope--info .wdi-brochure__meta { margin: 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-scope--info .wdi-brochure__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--wdi-4); }
.wdi-scope--info .wdi-brochure__book { background: var(--wdi-pale); border-radius: var(--wdi-r); padding: var(--wdi-4); margin: 0 0 var(--wdi-6); min-height: 640px; }
.wdi-scope--info .wdi-brochure__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wdi-2); }
.wdi-scope--info .wdi-brochure__chips li { margin: 0; }

@media (max-width: 1023px) {
  .wdi-scope--info .wdi-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wdi-scope--info .wdi-brochure__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .wdi-scope--info .wdi-sectors,
  .wdi-scope--info .wdi-brochure__grid { grid-template-columns: minmax(0, 1fr); }
  .wdi-scope--info .wdi-brochure__book { min-height: 420px; padding: var(--wdi-2); }
}

/* ---- W2d: the sidebar's category filter, as the system field ---- */
/* W2e: a product search above the category list, not a filter inside it. */
.wdi-chrome .wdi-catsearch-form { margin: 0 0 var(--wdi-4); }
.wdi-chrome .wdi-catsearch-form input.wdi-catsearch { width: 100%; height: 40px; margin: 0; font-size: var(--wdi-t-md); }
.wdi-chrome .wdi-catsearch-form { position: relative; }
.wdi-chrome .wdi-catsearch-form.has-term input.wdi-catsearch { padding-right: 40px; }
/* One clear control: ours. The browser's own search-field x would sit beside it. */
.wdi-chrome .wdi-catsearch-form input.wdi-catsearch::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.wdi-chrome .wdi-catsearch__clear {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--wdi-ink-3); border-radius: var(--wdi-r-sm);
}
.wdi-chrome .wdi-catsearch__clear:hover { color: var(--wdi-ink); }
.wdi-chrome .wdi-catsearch__clear:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-chrome .wdi-catsearch__clear .wdi-icon { margin: 0; }
.wdi-chrome .product-categories li[hidden] { display: none !important; }   /* the sidebar card sets display on its rows */

/* ==================================================================== W2d: product information
 * Under Add to basket, as the concept draws it: a row of .wdi-pill, then the open panel. Layout only.
 */
.wdi-scope--app .wdi-pinfo { margin: var(--wdi-5) 0 0; }
.wdi-scope--app .wdi-pinfo__pills { display: flex; flex-wrap: wrap; gap: var(--wdi-2); }
.wdi-scope--app .wdi-pinfo__panel { margin: var(--wdi-5) 0 0; }
.wdi-scope--app .wdi-pinfo__panel[hidden] { display: none; }
.wdi-scope--app.wdi-scope--app .wdi-pinfo__title { font-size: var(--wdi-t-lg); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); margin: 0 0 var(--wdi-2); line-height: 1.35; }
.wdi-scope--app .wdi-pinfo__panel p { font-size: var(--wdi-t-md); line-height: 1.6; color: var(--wdi-ink-2); margin: 0 0 var(--wdi-3); }
.wdi-scope--app .wdi-pinfo__panel p:last-child { margin-bottom: 0; }
.wdi-scope--app .wdi-pinfo__panel ul,
.wdi-scope--app .wdi-pinfo__panel ol { margin: 0 0 var(--wdi-3) var(--wdi-4); font-size: var(--wdi-t-md); line-height: 1.6; color: var(--wdi-ink-2); }

/* ==================================================================== W2d: contact and track-your-order
 * Two columns from 1024, one below. Every block is a system card; the form fields are the system's
 * .wdi-field and .wdi-btn, added to Contact Form 7's markup by WDI_Service_Pages::form_elements().
 */
.wdi-scope--info .wdi-contact__grid,
.wdi-scope--info .wdi-track__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--wdi-5); align-items: start; }
.wdi-scope--info .wdi-track__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.wdi-scope--info .wdi-contact__list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--wdi-3) var(--wdi-5); margin: 0; }
.wdi-scope--info .wdi-contact__list dt { color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.wdi-scope--info .wdi-contact__list dd { margin: 0; color: var(--wdi-ink); font-size: var(--wdi-t-lg); line-height: 1.5; }
.wdi-scope--info .wdi-contact__address { font-style: normal; }
.wdi-scope--info .wdi-contact__form .wdi-help { margin: 0 0 var(--wdi-4); }
.wdi-scope--info .wdi-contact__form .form_row { margin: 0 0 var(--wdi-4); }
.wdi-scope--info .wdi-contact__form .wpcf7-form-control-wrap { display: block; }
.wdi-scope--info.wdi-scope--info .wdi-contact__form textarea.wdi-field { height: 160px; }
.wdi-scope--info .wdi-contact__form .wpcf7-response-output { margin: var(--wdi-4) 0 0; border-radius: var(--wdi-r-sm); padding: var(--wdi-3) var(--wdi-4); font-size: var(--wdi-t-md); }
.wdi-scope--info .wdi-contact__form .wpcf7-not-valid-tip { font-size: var(--wdi-t-sm); color: var(--wdi-bad); margin-top: var(--wdi-1); }
.wdi-scope--info .wdi-track__line { margin: 0 0 var(--wdi-4); color: var(--wdi-ink-2); font-size: var(--wdi-t-md); line-height: 1.6; }
.wdi-scope--info .wdi-track__signin .woocommerce-form-login { margin: 0; padding: 0; border: 0; }
.wdi-scope--info .wdi-track__signin .woocommerce-form-row { margin: 0 0 var(--wdi-4); }
.wdi-scope--info .wdi-track__signin label { display: block; font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi); text-transform: uppercase; letter-spacing: .06em; color: var(--wdi-ink-3); margin: 0 0 var(--wdi-1); }
@media (max-width: 1023px) {
  .wdi-scope--info .wdi-contact__grid,
  .wdi-scope--info .wdi-track__grid { grid-template-columns: minmax(0, 1fr); }
}
/* The theme's contact_page wrapper indents the form and squares the submit; the card is the frame. */
.wdi-scope--info .wdi-contact__form .contact_page { padding: 0; margin: 0; background: none; }
/* An <input type=submit> is styled by the theme at element-plus-attribute weight; the doubled scope
   and the element name are what it takes (design-system doc, section 7: count both sides). */
.wdi-scope--info.wdi-scope--info .wdi-contact__form input.wdi-btn.wdi-btn--primary { width: auto; background: var(--wdi-btn); border-color: var(--wdi-btn); color: #fff; }
.wdi-scope--info.wdi-scope--info .wdi-contact__form input.wdi-btn.wdi-btn--primary:hover { background: var(--wdi-btn-hover); }
.wdi-scope--info .wdi-track__signin .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: var(--wdi-2); text-transform: none; letter-spacing: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); margin: 0 0 var(--wdi-4); }
.wdi-scope--info .wdi-track__signin .lost_password a { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); font-size: var(--wdi-t-md); }
/* Something gives Contact Form 7's <form> the WooCommerce form class, and with it 29px of padding;
   the card is already the frame. The field's own 8px top margin is the theme's too. */
.wdi-scope--info.wdi-scope--info .wdi-contact__form form.wpcf7-form { padding: 0; margin: 0; border: 0; }
.wdi-scope--info.wdi-scope--info .wdi-contact__form .wdi-field { margin: 0; }

/* ==================================================================== W2d: responsive walk fixes */
/* The catalogue bar's right-hand group (Per page, Sort) held one line at any width and was 448px
   wide on a 390 phone; it wraps now, and on a phone it takes the full row with its selects sharing it. */
.wdi-scope--app .wdi-catbar__end { flex-wrap: wrap; min-width: 0; max-width: 100%; }
@media (max-width: 639px) {
  .wdi-scope--app .wdi-catbar__end { margin-left: 0; width: 100%; }
  .wdi-scope--app .wdi-catbar__perpage,
  .wdi-scope--app .wdi-catbar .woocommerce-ordering { flex: 1 1 150px; min-width: 0; }
  .wdi-scope--app .wdi-catbar__end select { width: 100%; min-width: 0; }
  /* W2g B11: Per page says a number now, so it takes only what "500" needs and Sort has the rest -
     "Most ordered by you" was running under the chevron. */
  .wdi-scope--app .wdi-catbar .wdi-catbar__perpage { flex: 0 0 auto; }
  .wdi-scope--app .wdi-catbar .wdi-catbar__perpage select { width: 84px; }
  .wdi-scope--app .wdi-catbar .woocommerce-ordering { flex: 1 1 0; }
  .wdi-scope--app .wdi-catbar select.orderby { text-overflow: ellipsis; }
}
/* While a header panel (search suggestions, Add by code, the account menu) is open, the list view's
   sticky action bar stands aside: it sat on top of the suggestion list at the bottom of a phone
   screen. body.wdi-overlay-open is set by those panels already. */
.wdi-chrome.wdi-overlay-open .wdi-selected-bar,
.wdi-chrome.wdi-overlay-open .wdi-actionbar { visibility: hidden; }
/* W2e: the Grid/List tip hangs under the toggle it points at. */
.wdi-scope--app .wdi-catbar .wdi-view-toggle { position: relative; }
.wdi-scope--app .wdi-view-toggle .wdi-callout { top: calc(100% + 10px); left: 0; white-space: nowrap; }

/* ==================================================================== W2e: the footer
 * ONE LEFT EDGE PER COLUMN. The theme gives footer links padding-left: 3px while they are inline,
 * and inline padding applies to the FIRST line fragment only - so every entry that wraps ("Cleaning
 * Machines, Bags & Accessories") started its second line 3px left of its first, and of every other
 * entry. A block with no inline padding has one left edge for all its lines.
 */
.wdi-chrome footer li a { display: block; padding-left: 0; padding-right: 0; text-indent: 0; }
.wdi-chrome footer li { padding-left: 0; text-indent: 0; }

/* W2e: the basket's delivery line on a phone. WooCommerce's responsive table labels each cell with
 * `td::before { content: attr(data-title) ": " }`; with the data-title gone that still printed a
 * stray ": " ahead of "Delivery to". The line labels itself, so the cell gets no ::before at all. */
.wdi-scope--app.wdi-scope--app .wdi-basket__delivery td::before { content: none; display: none; }

/* W2e: the basket card on a phone - unit price and quantity under the name, on its left edge. The
 * W2d card rules above say text-align: left and lost, silently: WooCommerce's smallscreen sheet
 * sets `.woocommerce table.shop_table_responsive tr td { text-align: right !important }`, and no
 * weight of selector beats an !important. So this answers it in kind, for the three cells only. */
@media (max-width: 639px) {
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-name,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity { text-align: left !important; }
}

/* ==================================================================== W2e: icons in place
 * Where component 27 sits in each place. Most places need nothing: the icon is inline before the
 * words and takes their size and colour. These are the exceptions.
 */
/* Flex rows that already space their children: the icon's own margin would double the gap. */
.wdi-header__link .wdi-icon,
.wdi-topbar__item .wdi-icon { margin-inline-end: .35em; }
/* An empty state's icon sits centred above its title, as the title does. */
.wdi-empty .wdi-icon--lg { margin-left: auto; margin-right: auto; }
.wdi-scope--app .wdi-empty .wdi-icon--lg { margin-left: auto; margin-right: auto; }
/* The footer's contact details (new in W2e): one line each, icon then words, one left edge. */
.wdi-footer .wdi-footer__contact { list-style: none; margin: var(--wdi-3) 0 var(--wdi-4); padding: 0; }
.wdi-footer .wdi-footer__contact li {
  display: flex; align-items: baseline; margin: 0 0 var(--wdi-2); padding: 0;
  font-size: var(--wdi-t-sm); line-height: 1.35; color: var(--wdi-ink-2);
}
.wdi-footer .wdi-footer__contact .wdi-icon { align-self: center; color: var(--wdi-ink-3); }
.wdi-footer .wdi-footer__contact a { color: var(--wdi-ink-2); text-decoration: none; }
.wdi-footer .wdi-footer__contact a:hover { color: var(--wdi-blue); text-decoration: underline; }
/* Contact Us: the icon leads the label; the label column stays one left edge. */
.wdi-scope--info .wdi-contact__list dt .wdi-icon { color: var(--wdi-ink-3); vertical-align: -.3em; }
/* (W2e's icons-above-labels rules for the category bar were removed in W2f: the bar has no icons.) */
/* Contact Us on a phone: the icons made the label column ~20px wider, and at 390 the sales email
   then ran 5px off the screen (the W2d walk caught it). Below 640 each label sits above its value,
   and a value that still cannot fit wraps rather than pushing the page wide. */
@media (max-width: 639px) {
  .wdi-scope--info.wdi-scope--info .wdi-contact__list { grid-template-columns: minmax(0, 1fr); row-gap: var(--wdi-1); }
  .wdi-scope--info.wdi-scope--info .wdi-contact__list dd { margin-bottom: var(--wdi-3); overflow-wrap: anywhere; }
}

/* ==================================================================== W2f
 * A1: the list page's action bar (the system's sticky bar; see account-my-lists.php). The summary is
 * the subtotal line; Delete sits apart, under it. */
.wdi-scope--app .wdi-list-bar .wdi-list-total { margin: 0; }
.wdi-scope--app .wdi-lists__danger { margin: var(--wdi-4) 0 0; }

/* A4: account menu items lead with their icon, in the tiles' colour. */
.wdi-accountmenu__link .wdi-icon { color: var(--wdi-ink-3); }
.wdi-accountmenu__link:hover .wdi-icon, .wdi-accountmenu__link.is-current .wdi-icon { color: currentColor; }
/* A5: an Industries tile's icon sits above its title, the tile's accent. */
.wdi-sectors__card .wdi-sectors__icon { display: block; width: 28px; height: 28px; margin: 0 0 var(--wdi-3); color: var(--wdi-blue); }

/* B8: the dashboard's Your products panel ends with the way into the whole catalogue. */
.wdi-scope--dashboard .wdi-dash__browse { margin: var(--wdi-4) 0 0; }
/* B8: "All products" costs the bar ~90px, and it had 37px to spare at 1280 (the width it first
   shows at). From 1280 to 1439 the items close up to 3px a side, which keeps all eleven on one row;
   from 1440 there is room and nothing changes. The ID is the existing bar rule's (see W2e). */
@media (min-width: 1280px) {   /* W12: from 1280 up, so the category chip has room at 1440 too */
  .wdi-chrome .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a { padding-left: 3px; padding-right: 3px; }
}

/* ==================================================================== W2f C: the phone tidy */

/* C9: the selection bars (catalogue, My products) and the list page's bar, compact below 992: the
   summary small on one line with View basket beside it, then the two actions side by side at equal
   width with their short labels ("Add to basket", "Add to list"). About 90px, not a third of the
   screen. The long labels are what a screen reader hears; the short ones are aria-hidden. */
.wdi-short { display: none; }
@media (max-width: 991px) {
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wdi-2);
    padding: var(--wdi-2) var(--wdi-3); bottom: var(--wdi-2);
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-selected-bar__summary,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__summary {
    grid-column: 1 / -1; margin: 0; padding-right: 88px; font-size: var(--wdi-t-sm); line-height: 1.35;
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-btn,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-btn { width: 100%; min-width: 0; height: 40px; padding: 0 var(--wdi-2); font-size: var(--wdi-t-sm); justify-content: center; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-btn--ghost,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-btn--ghost {
    position: absolute; top: var(--wdi-2); right: var(--wdi-3); width: auto; height: auto; padding: 0;
    background: none; border: 0; font-size: var(--wdi-t-sm); text-decoration: underline;
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar, .wdi-scope--app.wdi-scope--app .wdi-list-bar { position: sticky; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-catalogue__status,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-my-products__status,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__status { grid-column: 1 / -1; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-catalogue__status:empty,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-my-products__status:empty,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__status:empty { display: none; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-btn .wdi-icon,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-btn .wdi-icon { margin-inline-end: .3em; }
}
/* The short labels only where the long ones would wrap (a half-width button on a phone). */
@media (max-width: 639px) {
  .wdi-selected-bar .wdi-long { display: none; }
  .wdi-selected-bar .wdi-short { display: inline; }
}

/* C10: the theme's own phone header for the sidebar is removed by script; in case it lands first. */
.wdi-chrome .chw-widget .mobile-filter-sidebar { display: none !important; }
@media (max-width: 991px) {
  .wdi-scope--app .wdi-catlist, .wdi-scope--lite .wdi-catlist { margin: 0; }
  .wdi-chrome .chw-widget > .chw-title { display: none; }
  .wdi-chrome .chw-widget .wdi-catsearch-form { margin: 0 0 var(--wdi-2); }
}

/* C11: My products' Sort by / Show on a phone and a tablet - left, full width, the label above its
   pills, the pills wrapping. (It was a fieldset per group, right-pushed, with the legend on a rule.) */
@media (max-width: 991px) {
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls { flex-direction: column; align-items: stretch; gap: var(--wdi-3); }
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg {
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--wdi-2);
    width: 100%; margin: 0; padding: 0; border: 0; min-width: 0;
  }
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg > legend {
    float: left; width: 100%; margin: 0 0 var(--wdi-1); padding: 0; border: 0;
    font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--wdi-ink-3);
  }
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg > legend::after { content: none; display: none; }
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg > .wdi-seg__btn { margin: 0; flex: 0 0 auto; }
}

/* C12: the orders list on a phone, as a quiet card: number and status on one line, the codes under
   it (muted), date and total on one line, then View and Order again side by side. No "Order:",
   "Date:" labels - WooCommerce's responsive table prints them from data-title with ::before. */
@media (max-width: 768px) {
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table.shop_table_responsive tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "num status" "date total" "act act";
    align-items: center; gap: var(--wdi-1) var(--wdi-3);
    padding: var(--wdi-3) 0; border-bottom: 1px solid var(--wdi-line); background: none;
  }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table.shop_table_responsive tbody tr td {
    display: block; padding: 0; border: 0; background: none; text-align: left !important; min-width: 0;
  }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table.shop_table_responsive tbody tr td::before { content: none !important; display: none !important; }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-number { grid-area: num; }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-number a { font-weight: var(--wdi-w-semi); }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-number .wdi-order-preview {
    display: block; margin: 2px 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); text-align: left;
  }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-status { grid-area: status; align-self: start; text-align: right !important; }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-date { grid-area: date; font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-total { grid-area: total; text-align: right !important; font-size: var(--wdi-t-sm); }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-actions {
    grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: var(--wdi-2); margin: var(--wdi-2) 0 0; white-space: normal;
  }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-actions .button {
    width: 100%; margin: 0; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  }
}

/* C13: order search on a phone - Search goes BELOW the Last 30 days / 3 months / This year pills,
   so the quick ranges are next to the fields they fill. The field row dissolves into the form's
   column so its button can be ordered after the pills. */
@media (max-width: 639px) {
  /* The ID matches an existing #wdi-order-search { display: block } rule, which no class count beats. */
  html body.wdi-scope--app form#wdi-order-search.wdi-filters { display: flex; flex-direction: column; gap: var(--wdi-3); }
  .wdi-scope--app.wdi-scope--app form.wdi-order-search .wdi-order-search__row { display: contents; }
  .wdi-scope--app.wdi-scope--app form.wdi-order-search .wdi-order-search__chips { order: 5; margin: 0; }
  .wdi-scope--app.wdi-scope--app form.wdi-order-search .wdi-order-search__actions { order: 6; }
  .wdi-scope--app.wdi-scope--app form.wdi-order-search .wdi-order-search__actions .wdi-btn { width: 100%; }
  .wdi-scope--app.wdi-scope--app form.wdi-order-search .wdi-order-search__summary { order: 7; }
}

/* ==================================================================== W2f D: the mobile chrome */

/* D15: the Menu button only where the drawer replaces the bar; the bar (and the mega menu's own
   hamburger row) not at all below 1280. */
.wdi-header__menu { display: none; }
@media (max-width: 1279px) {
  .wdi-chrome .wdi-header__menu { display: inline-flex; align-items: center; }
  .wdi-chrome .wdi-nav { display: none; }
}

/* The header row on a phone: logo, then each item as an icon with a short label beneath, all on
   ONE row (it used to wrap to two, under the logo). */
@media (max-width: 782px) {
  /* The row WRAPS: the header search panel is a child of it and must take a line of its own when
     opened (a nowrap row squeezed it in beside the icons and ran the page 631px wide - the walk caught
     it). Logo and icons fit on one line on their own at 360 and up. */
  .wdi-chrome .wdi-header__inner { flex-wrap: wrap; gap: var(--wdi-2); }
  .wdi-chrome .wdi-header__inner > .wdi-header__search { flex: 0 0 100%; min-width: 0; }
  .wdi-chrome .wdi-header__logo { flex: 0 1 auto; min-width: 0; }
  .wdi-chrome .wdi-header__logo img { height: 32px; max-width: 100%; }
  .wdi-chrome .wdi-header__links { flex-wrap: nowrap; gap: 0; justify-content: flex-end; }
  .wdi-chrome .wdi-header__links > .wdi-header__link,
  .wdi-chrome .wdi-header__links > .wdi-quickadd > .wdi-header__link,
  .wdi-chrome .wdi-header__links > .wdi-accountmenu > .wdi-header__link {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 46px; min-height: 44px; padding: 0 2px;
    font-size: 11px; font-weight: var(--wdi-w-regular); line-height: 1.2; color: var(--wdi-ink-2); text-decoration: none;
  }
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-icon { width: 22px; height: 22px; margin: 0; vertical-align: 0; }
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-long { display: none; }
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-short { display: inline; }
  .wdi-chrome .wdi-header__links .wdi-accountmenu__caret { display: none; }
  .wdi-chrome .wdi-header__links .wdi-header__link:hover { text-decoration: none; }
}
/* Too narrow for the words: icons only (they keep their accessible names). */
@media (max-width: 359px) {
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-header__text,
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-header__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* D17: the footer below 992 - two columns instead of one tall one, the line height from the scale,
   less padding, the social icons on the logo row. Brand across the top; Useful links and Customer
   service side by side; Our products across the bottom in its own two columns. Desktop unchanged. */
@media (max-width: 991px) {
  .wdi-footer { padding-top: var(--wdi-5); }
  .wdi-footer > .container:not(.end) > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wdi-4) var(--wdi-4);
    grid-template-areas: "brand brand" "useful service" "products products";
  }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(1) { grid-area: brand; }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(2) { grid-area: useful; }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(3) { grid-area: products; }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(4) { grid-area: service; }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(3) .contact-group { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--wdi-4); }
  .wdi-footer .contact-group li { padding: 3px 0; font-size: var(--wdi-t-md); line-height: 1.35; }
  .wdi-footer .contact-group > li:first-child { margin: 0 0 var(--wdi-1); }
  .wdi-footer .contact-page { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--wdi-2); margin-left: 0; margin-right: 0; }
  .wdi-footer .contact-page > a:first-child { margin-right: auto; }
  .wdi-footer .contact-page > a:first-child img { width: 140px; }
  .wdi-footer .contact-page > p, .wdi-footer .contact-page > .wdi-footer__contact { flex: 0 0 100%; order: 2; }
  .wdi-footer .contact-page > p:empty { display: none; }
  .wdi-footer .wdi-footer__contact { margin: var(--wdi-3) 0 0; }
  .wdi-footer .wdi-footer__contact li { margin: 0 0 var(--wdi-1); }
  .wdi-footer .end.container .last { margin-top: var(--wdi-4); }
}

/* The sidebar's search field is no longer a .search-bar (the theme pins that to a 13px left margin, which
   indented it and ran 1px past a 390 screen); border-box, full width, flush. */
.wdi-chrome .chw-widget .wdi-catsearch-form input.wdi-catsearch { box-sizing: border-box; max-width: 100%; margin: 0; }

/* ==================================================================== W2f E19: the product page on a phone
 * (Visitor and trade alike - it is one page.) The picture took 275px of a 844px screen before the
 * name was even reached, and the name was the desktop's 28px. The picture is capped at 240px -
 * contained, never cropped - with the gap above it closed; the title uses the phone step of the
 * scale; the visitor's "Sign in to see your account price" is a line of text, not a price figure. */
@media (max-width: 639px) {
  .wdi-scope--app.wdi-scope--app div.product { margin-top: 0; }
  .wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery { margin: 0 0 var(--wdi-4); padding: 0; }
  /* The tile is 4:3 on desktop; on a phone it takes the picture's own height (capped below). */
  .wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .woocommerce-product-gallery__image { aspect-ratio: auto; height: auto; padding: var(--wdi-3); }
  .wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery img {
    max-height: 240px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain;
  }
  .wdi-scope--app.wdi-scope--app div.product .product_title { font-size: var(--wdi-t-2xl); line-height: 1.25; }
  .wdi-scope--app.wdi-scope--app div.product .wdi-price-card--none .wdi-price-card__value { font-size: var(--wdi-t-lg); }
}

/* ==================================================================== W2f E20: sign in / apply
 * Two cards of one width side by side (stacked below 783), the system's field, label and one primary
 * button each; the theme's heading-over-a-box layout gone. See woocommerce/myaccount/form-login.php. */
.wdi-signin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wdi-5); align-items: start; margin: var(--wdi-5) 0 var(--wdi-6); }
.wdi-signin__card { padding: var(--wdi-5); margin: 0; }
.wdi-signin .wdi-card__title { margin: 0 0 var(--wdi-1); }
.wdi-signin .wdi-help { margin: 0 0 var(--wdi-4); }
.wdi-signin form { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.wdi-signin .wdi-signin__row, .wdi-signin .form_row { margin: 0 0 var(--wdi-3); padding: 0; }
.wdi-signin .wdi-label { display: block; margin: 0 0 var(--wdi-1); }
.wdi-signin .wdi-field, .wdi-signin input.wpcf7-form-control:not([type="submit"]) { display: block; width: 100%; box-sizing: border-box; }
.wdi-signin .wpcf7-form-control-wrap { display: block; }
.wdi-signin .wdi-signin__remember label { display: inline-flex; align-items: center; gap: var(--wdi-2); font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
.wdi-signin .wdi-btn--block, .wdi-signin input.wpcf7-submit { width: 100%; margin: var(--wdi-2) 0 0; }
.wdi-signin .wdi-signin__foot { margin: var(--wdi-3) 0 0; font-size: var(--wdi-t-md); }
.wdi-signin .wpcf7-spinner { display: none; }
.wdi-scope--app.wdi-scope--app .wdi-signin .password-input { display: block; position: relative; }
@media (max-width: 782px) { .wdi-signin { grid-template-columns: minmax(0, 1fr); } }
/* The card is the box: WooCommerce borders .woocommerce form.login and the Customizer pads it 29px
   (both forms carry .login - CF7's too, from the theme), which drew a second box inside each card. */
.wdi-scope--app.wdi-scope--app .wdi-signin form.login,
.wdi-scope--app.wdi-scope--app .wdi-signin form.wpcf7-form { border: 0; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; }
/* One PRIMARY button per card. The W2b app layer paints every .button and submit white-on-blue-text
   with !important (for WooCommerce's secondary actions); these two are the page's primary actions. */
.wdi-scope--app.wdi-scope--app .wdi-signin .wdi-btn--primary {
  background: var(--wdi-btn) !important; border-color: var(--wdi-btn) !important; color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--wdi-r-pill, 999px);
}
.wdi-scope--app.wdi-scope--app .wdi-signin .wdi-btn--primary:hover { background: var(--wdi-btn-hover, var(--wdi-blue-dark)) !important; }

/* ==================================================================== W2f E21: Contact Us */
.wdi-scope--info .wdi-contact__who { display: flex; align-items: flex-start; gap: var(--wdi-2); margin: calc(-1 * var(--wdi-2)) 0 var(--wdi-5); font-size: var(--wdi-t-md); color: var(--wdi-ink-2); max-width: 72ch; }
.wdi-scope--info .wdi-contact__who .wdi-icon { color: var(--wdi-blue); margin: 2px 0 0; flex: none; }
.wdi-scope--info .wdi-contact__map { margin: var(--wdi-5) 0 0; }
.wdi-scope--info .wdi-contact__maphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--wdi-2) var(--wdi-4); }
.wdi-scope--info .wdi-contact__maphead .wdi-card__title { margin: 0; }
.wdi-scope--info .wdi-contact__map .wdi-help { margin: var(--wdi-1) 0 var(--wdi-4); }
.wdi-scope--info .wdi-contact__frame { position: relative; aspect-ratio: 16 / 7; border-radius: var(--wdi-r-sm); overflow: hidden; background: var(--wdi-pale); }
.wdi-scope--info .wdi-contact__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wdi-scope--info .wdi-contact__photos { list-style: none; margin: var(--wdi-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--wdi-3); }
.wdi-scope--info .wdi-contact__photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wdi-r-sm); }
@media (max-width: 639px) { .wdi-scope--info .wdi-contact__frame { aspect-ratio: 4 / 3; } }

/* ==================================================================== W2f F: catalogue value-adds */
/* F22: the customer's history - quiet, under the name (list) or the price (grid). */
.wdi-history { display: block; margin: 2px 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-gridhistory { margin: var(--wdi-1) 0 0; }
/* W2h C7: in the grid card, the history and the unit price sit on the card's content edge - the same
   side padding as the price and stock lines - not squeezed against the card's border. */
.wdi-scope--app ul.products li.product .wdi-gridhistory,
.wdi-scope--app ul.products li.product .wdi-unitprice { margin-left: var(--wdi-3); margin-right: var(--wdi-3); }
.wdi-scope--app .wdi-gridhistory .wdi-tag-ordered { display: inline-block; margin: 0 0 2px; }
/* F23: the price per unit, under the price, smaller. */
.wdi-unitprice { display: block; margin: 2px 0 0; font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); font-variant-numeric: tabular-nums; }
.wdi-scope--app div.product .summary .wdi-unitprice { margin: var(--wdi-1) 0 0; font-size: var(--wdi-t-md); }
/* F24: low stock in the amber state. */
.wdi-scope--app p.stock.low-stock, p.stock.low-stock { color: var(--wdi-warn); }

/* ==================================================================== W2f G27: the lists index */
.wdi-scope--app .wdi-listcards { list-style: none; margin: var(--wdi-4) 0 var(--wdi-5); padding: 0; display: grid; gap: var(--wdi-3); }
.wdi-scope--app .wdi-listcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--wdi-4);
  padding: var(--wdi-3) var(--wdi-4); background: #fff; border: 1px solid var(--wdi-line); border-radius: var(--wdi-r);
}
.wdi-scope--app .wdi-listcard__thumbs { display: grid; grid-template-columns: repeat(4, 56px); gap: var(--wdi-1); }
.wdi-scope--app .wdi-listcard__thumbs img, .wdi-scope--app .wdi-listcard__nothumb {
  width: 56px; height: 56px; object-fit: contain; background: var(--wdi-pale); border-radius: var(--wdi-r-sm); mix-blend-mode: multiply;
}
.wdi-scope--app .wdi-listcard__name { font-size: var(--wdi-t-xl); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); text-decoration: none; }
.wdi-scope--app .wdi-listcard__name:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-scope--app .wdi-listcard__meta { margin: 2px 0 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
.wdi-scope--app .wdi-listcard__when { margin: 2px 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-listcard__actions { display: flex; gap: var(--wdi-2); align-items: center; }
.wdi-scope--app .wdi-lists__new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wdi-4); align-items: start; }
.wdi-scope--app .wdi-lists__new .wdi-card { padding: var(--wdi-4) var(--wdi-5); margin: 0; }
.wdi-scope--app .wdi-lists__field { margin: 0 0 var(--wdi-3); }
.wdi-scope--app .wdi-lists__field .wdi-field { width: 100%; }
@media (max-width: 767px) {
  .wdi-scope--app .wdi-listcard { grid-template-columns: minmax(0, 1fr); gap: var(--wdi-2); }
  .wdi-scope--app .wdi-listcard__thumbs { grid-template-columns: repeat(4, 48px); }
  .wdi-scope--app .wdi-listcard__thumbs img, .wdi-scope--app .wdi-listcard__nothumb { width: 48px; height: 48px; }
  .wdi-scope--app .wdi-listcard__actions .wdi-btn { flex: 1 1 0; justify-content: center; }
  .wdi-scope--app .wdi-lists__new { grid-template-columns: minmax(0, 1fr); }
}

/* W2f G29: "Save as my default" under the delivery instructions. */
.wdi-scope--app .wdi-checkout__reference .wdi-check-row { display: inline-flex; align-items: center; gap: var(--wdi-2); margin: var(--wdi-2) 0 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); cursor: pointer; }
.wdi-scope--app .wdi-checkout__reference .wdi-check-row input { margin: 0; }
.wdi-scope--app .wdi-checkout__reference #wdi-delivery-default-note { display: block; margin: var(--wdi-1) 0 0; }

/* ==================================================================== W2g B: the phone, again
 *
 * B13 ADD BY CODE. The panel is a popover hung from its toggle, and on a phone the toggle's wrapper
 * is one 46px icon - so the panel was 46px wide, a column of one word per line. Below 782 the
 * wrapper stops being the containing block and the panel hangs from the header row itself
 * (.wdi-header__inner, position:relative): a sheet the full width of the screen, straight under the
 * header, with the system field, its hint and Close top right exactly as on the desktop.
 *
 * B14 SEARCH. Already a line of its own (W2f); now a panel as well - full bleed, on the pale
 * ground, with a hairline between it and the header row, so it reads as something that opened
 * rather than as part of the header. The field and the button share one row.
 */
@media (max-width: 782px) {
  .wdi-chrome .wdi-header__links > .wdi-quickadd { position: static; }
  .wdi-chrome .wdi-quickadd__panel {
    top: 100%; left: 0; right: 0;
    width: auto; max-width: none;
    margin: 0;
    border-width: 1px 0;
    border-radius: 0;
  }
  .wdi-chrome .wdi-header__inner > .wdi-header__search {
    flex: 0 0 calc(100% + 2 * var(--wdi-4));
    margin: 0 calc(-1 * var(--wdi-4)) calc(-1 * var(--wdi-3));
    padding: var(--wdi-3) var(--wdi-4);
    background: var(--wdi-pale);
    border-top: 1px solid var(--wdi-line);
  }
  .wdi-chrome .wdi-header__search .wdi-search__row { flex-wrap: nowrap; }
}

/* ==================================================================== W2g C */

/* C17: the sidebar search filters as you type. Rows and cards that do not match what is typed are
   taken out until the ranked results arrive (the grid card's display:flex outranks [hidden], so a
   class, not the attribute); the listing dims while the request is out. The x shows only when the
   field has something in it. */
.wdi-chrome .wdi-is-filtered-out { display: none !important; }
.wdi-chrome #wdi-catalogue[aria-busy="true"],
.wdi-chrome ul.products[aria-busy="true"] { opacity: .6; transition: opacity .15s ease; }
.wdi-chrome .wdi-catsearch-form:not(.has-term) .wdi-catsearch__clear { display: none; }

/* C18: grid card titles one step down. They were never on the scale: the Customizer's inline
   `.product.type-product h2.woocommerce-loop-product__title { font-size: var(--small-font-size)
   !important }` held them at 16px on a desktop (13px on a phone) over the --wdi-t-md this file
   asked for. Named at that selector plus the scope, with the !important it needs, they are now the
   scale's md (14px) from the tablet up and sm (13px) on a phone. */
.wdi-scope--app .product.type-product h2.woocommerce-loop-product__title { font-size: var(--wdi-t-md) !important; }
@media (max-width: 639px) {
  .wdi-scope--app .product.type-product h2.woocommerce-loop-product__title { font-size: var(--wdi-t-sm) !important; }
}

/* C20: the Description panel when the product has no copy of its own says where its rows came from. */
.wdi-scope--app .wdi-pinfo__panel p.wdi-pinfo__note { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); margin: 0 0 var(--wdi-2); }

/* C22: Contact Us - the details card and the map stacked in the left column, the form on the right,
   both columns ending level: the row stretches, the side column is a flex column, and the map card
   grows into what is left (its frame fills it, 240px at the least). One column below 1024 with the
   map first. */
.wdi-scope--info .wdi-contact__grid { align-items: stretch; }
.wdi-scope--info .wdi-contact__side { display: flex; flex-direction: column; gap: var(--wdi-5); min-width: 0; }
.wdi-scope--info .wdi-contact__side .wdi-contact__map { margin: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.wdi-scope--info .wdi-contact__side .wdi-contact__frame { flex: 1 1 auto; min-height: 240px; aspect-ratio: auto; }
@media (max-width: 1023px) {
  .wdi-scope--info .wdi-contact__side .wdi-contact__map { order: -1; }
  .wdi-scope--info .wdi-contact__side .wdi-contact__frame { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* C26: the account budget banner - WooCommerce's budget notice with its figures and the meter
   (budget-enforcement.php wdi_budget_notice_html). One column: the title and the figures, the
   meter, then the sentence. The warning is amber (WooCommerce draws every 'notice' blue); under
   budget it is the quiet information tint; over is the error it already was. */
.wdi-scope--app .wdi-budget { display: flex; flex-direction: column; gap: var(--wdi-2); flex: 1 1 100%; min-width: 0; }
.wdi-scope--app .wdi-budget__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--wdi-1) var(--wdi-4); }
.wdi-scope--app .wdi-budget__title { font-size: var(--wdi-t-md); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-scope--app .wdi-budget__figs { font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); font-variant-numeric: tabular-nums; }
.wdi-scope--app .wdi-budget__text { font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
.wdi-scope--app .wdi-budget .wdi-meter { width: 100%; }
.wdi-scope--app.wdi-scope--app .woocommerce-info[data-wdi-budget="warn"] { border-left-color: var(--wdi-warn); background: var(--wdi-warn-bg); }
.wdi-scope--app .woocommerce-info[data-wdi-budget="warn"] .wdi-meter__fill { background: var(--wdi-warn); }
.wdi-scope--app .woocommerce-info[data-wdi-budget="ok"] .wdi-meter__fill { background: var(--wdi-ok); }
.wdi-scope--app .woocommerce-error li[data-wdi-budget] { flex: 1 1 100%; }
.wdi-scope--app .woocommerce-error li[data-wdi-budget] .wdi-meter__fill { background: var(--wdi-bad); }
.wdi-scope--app .woocommerce-error li[data-wdi-budget] .wdi-budget__title { color: var(--wdi-bad); }

/* C26: the payment methods as two choices, each a bordered row you pick - the chosen one tinted,
   as a selected segment is - rather than a radio list with the scheme logos wrapping under the
   name. The logos sit on their own line under the name, smaller and in one row. Only a
   card-eligible account ever sees this (416 of 418 have one method and no choice). */
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li {
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r);
  padding: var(--wdi-3) var(--wdi-4);
  background: var(--wdi-bg);
  column-gap: var(--wdi-3);
  cursor: pointer;
}
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li + li { margin-top: var(--wdi-2); }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li:has(input:checked) { border-color: var(--wdi-blue); background: var(--wdi-tint); }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li:has(input:focus-visible) { box-shadow: var(--wdi-focus); }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label { font-size: var(--wdi-t-md); gap: var(--wdi-1) var(--wdi-2); }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label img {
  height: 16px;
  border: 1px solid var(--wdi-line);
  border-radius: 3px;
  background: #fff;
  padding: 1px 2px;
}
/* The name is a bare text node, so the logos cannot be wrapped in anything: a zero-height, full-width
   flex item (::before, ordered after the text) breaks the line, and the logos follow it on theirs. */
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label:has(img)::before { content: ''; order: 1; flex: 0 0 100%; height: 0; }
.wdi-scope--app.woocommerce-checkout #payment ul.wc_payment_methods li label img { order: 2; }
.wdi-scope--app.woocommerce-checkout #payment div.payment_box { color: var(--wdi-ink-2); }
/* The left Payment card follows the choice (wdi-checkout: the script in payment_card()). */
.wdi-scope--app .wdi-checkout__payment [data-wdi-pay] { display: none; }
.wdi-scope--app .wdi-checkout__payment[data-wdi-method="account"] [data-wdi-pay="account"],
.wdi-scope--app .wdi-checkout__payment[data-wdi-method="card"] [data-wdi-pay="card"] { display: block; }
/* ...and while the card is chosen, the budget banner stands down: a card order does not count towards
   the budget (wdi_budget_check_exemption), so a budget warning there would be about nothing. */
.wdi-paying-by-card .woocommerce-info[data-wdi-budget]:not([data-wdi-budget="block"]) { display: none; }   /* W11: over budget stays visible - it says why on-account is gone */

/* C27: Request a statement - on Account details, a pale card above the form: what it is on the
   left, the button on the right (stacked on a phone). In the modal, the optional note sits a step
   below the period. */
/* Row, said explicitly: the legacy .wdi-card is a centred flex column (see W2c's .wdi-info__talk). */
.wdi-scope--app .wdi-statement-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wdi-3) var(--wdi-5); margin: 0 0 var(--wdi-5); text-align: left; }
.wdi-scope--app .wdi-statement-card > div { flex: 1 1 280px; }
.wdi-scope--app .wdi-statement-card .wdi-card__title { margin: 0 0 var(--wdi-1); }
.wdi-scope--app .wdi-statement-card .wdi-help { margin: 0; }
#wdi-statement-modal .wdi-statement__notelabel { margin-top: var(--wdi-4); }
#wdi-statement-modal .wdi-help.wdi-statement__range { margin: var(--wdi-1) 0 0; }
#wdi-statement-modal .wdi-help { margin: var(--wdi-3) 0 0; }

/* ==================================================================== W2g D: the dashboard's cards
 *
 * D28: below the three actions the dashboard is a column of section cards (system 31), then Account
 * and Brochure side by side (two thirds / one third) from 1024. Your products, Due about now and
 * Recent orders are the plain cards - the reordering; Saved lists, New in, Account and Brochure the
 * soft ones. The theme styles bare h2s, so the card title is named at the scope, doubled.
 */
.wdi-scope--app .wdi-dash__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wdi-5); margin: var(--wdi-6) 0 0; }
.wdi-scope--app.wdi-scope--app h2.wdi-scard__title { font-size: var(--wdi-t-xl); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); margin: 0; line-height: 1.3; }
.wdi-scope--app .wdi-scard .wdi-link { font-size: var(--wdi-t-md); }
.wdi-scope--app .wdi-dash__pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--wdi-5); align-items: stretch; }
/* W8: Account + Standing order side by side (the Account card alone takes the row when there is no standing order);
   the Brochure is a slim band under them - cover, one line, Browse and Download - not a card */
.wdi-scope--app .wdi-dash__pair > :only-child { grid-column: 1 / -1; }
.wdi-scope--app .wdi-dash__band { display: flex; align-items: center; gap: var(--wdi-4); margin: var(--wdi-5) 0 0; padding: var(--wdi-3) var(--wdi-5);
  background: var(--wdi-pale); border-radius: var(--wdi-r); }
.wdi-scope--app .wdi-dash__band-cover { flex: none; display: block; }
.wdi-scope--app .wdi-dash__band-cover img { display: block; width: 56px; height: auto; border-radius: 3px; box-shadow: var(--wdi-shadow); transform: rotate(-3deg); }
.wdi-scope--app .wdi-dash__band-text { flex: 1 1 auto; margin: 0; color: var(--wdi-ink-2); font-size: var(--wdi-t-md); }
.wdi-scope--app .wdi-dash__band-text strong { color: var(--wdi-ink); margin-right: var(--wdi-1); }
.wdi-scope--app .wdi-dash__band-actions { flex: none; display: flex; gap: var(--wdi-2); margin: 0; }
@media (max-width: 767px) { .wdi-scope--app .wdi-dash__band { flex-wrap: wrap; } .wdi-scope--app .wdi-dash__band-actions { flex-basis: 100%; } }
@media (max-width: 1023px) { .wdi-scope--app .wdi-dash__pair { grid-template-columns: minmax(0, 1fr); } }

/* D29: the compact table - 56px rows, 40px pictures - and its closing row. */
.wdi-scope--app .wdi-table--compact td { height: 56px; padding-top: var(--wdi-2); padding-bottom: var(--wdi-2); }
.wdi-scope--app .wdi-table--compact .wdi-table__thumb { width: 56px; }
.wdi-scope--app .wdi-table--compact .wdi-table__thumb img { width: 40px; height: 40px; padding: 3px; }
.wdi-scope--app .wdi-table--compact .wdi-scard__footrow td { height: auto; padding: var(--wdi-3) 0 0; border-bottom: 0; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__status:empty { display: none; }

/* D30: the lists as tiles, three across - pictures on top, then the name and figures, then the two
   actions. The Lists page's own card, rearranged for a narrower column. */
.wdi-scope--app .wdi-listcards--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.wdi-scope--app .wdi-listcard--tile { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--wdi-3); padding: var(--wdi-4); }
.wdi-scope--app .wdi-listcard--tile .wdi-listcard__thumbs { grid-template-columns: repeat(4, 48px); }
.wdi-scope--app .wdi-listcard--tile .wdi-listcard__thumbs img,
.wdi-scope--app .wdi-listcard--tile .wdi-listcard__nothumb { width: 48px; height: 48px; }
.wdi-scope--app .wdi-listcard--tile .wdi-listcard__name { font-size: var(--wdi-t-lg); }
.wdi-scope--app .wdi-listcard--tile .wdi-listcard__actions .wdi-btn { flex: 1 1 0; justify-content: center; }
@media (max-width: 1023px) { .wdi-scope--app .wdi-listcards--row { grid-template-columns: minmax(0, 1fr); } }

/* D32: the Account card - label and value in two columns, the credit figure leading. */
.wdi-scope--app .wdi-acct { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--wdi-3) var(--wdi-5); margin: 0; }
.wdi-scope--app .wdi-acct dt { font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi); text-transform: uppercase; letter-spacing: .06em; color: var(--wdi-ink-3); padding-top: 3px; }
.wdi-scope--app .wdi-acct dd { margin: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink); line-height: 1.5; }
.wdi-scope--app .wdi-acct .wdi-acct__lead { font-size: var(--wdi-t-2xl); font-weight: var(--wdi-w-bold); color: var(--wdi-credit); line-height: 1.2; }
.wdi-scope--app .wdi-acct__of { font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); margin-left: var(--wdi-1); }
.wdi-scope--app .wdi-acct__hint { display: block; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-acct__edit { margin-left: var(--wdi-2); }
@media (max-width: 639px) {
  .wdi-scope--app .wdi-acct { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wdi-scope--app .wdi-acct dd { margin-bottom: var(--wdi-3); }
  .wdi-scope--app .wdi-scard__head .wdi-scard__action.wdi-btn { margin-left: 0; }
}

/* D33: the brochure by its cover - the cover beside a line, the whole thing the link. */
.wdi-scope--app .wdi-dash__cover { display: flex; align-items: flex-start; gap: var(--wdi-4); color: var(--wdi-ink-2); text-decoration: none; font-size: var(--wdi-t-md); line-height: 1.5; }
.wdi-scope--app .wdi-dash__cover img { flex: none; width: 128px; height: auto; border-radius: var(--wdi-r-sm); box-shadow: var(--wdi-shadow); transform: rotate(-2deg); transition: transform .15s ease; }
.wdi-scope--app .wdi-dash__cover:hover img { transform: rotate(0); }
.wdi-scope--app .wdi-dash__cover:hover span { color: var(--wdi-blue); }
.wdi-scope--app .wdi-dash__cover:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: var(--wdi-r-sm); }
@media (prefers-reduced-motion: reduce) { .wdi-scope--app .wdi-dash__cover img { transition: none; } }

/* New in, now inside its card. */
.wdi-scope--app .wdi-scard.wdi-newin { margin: 0; }

/* On a phone the tables stack (system 26); their closing row stacks with them. */
@media (max-width: 782px) {
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tfoot,
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tfoot > tr,
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tfoot > tr > td { display: block; width: 100%; }
  .wdi-scope--app .wdi-scard { padding: var(--wdi-4); }
}
/* D31: the product name in Due about now reads as a name, not a blue link (it still is one). */
.wdi-scope--app .wdi-dash__due .wdi-table__name > a.wdi-link { color: var(--wdi-ink); font-size: var(--wdi-t-md); font-weight: var(--wdi-w-regular); }
.wdi-scope--app .wdi-dash__due .wdi-table__name > a.wdi-link:hover { color: var(--wdi-blue); }
/* D28, tablet: the old dashboard panel scrolled a 760px-minimum table inside itself between 640 and
   782 (before the tables stack). A section card fits its table to the card instead - the compact
   table's seven columns fit a tablet - and scrolls inside itself if one ever does not; the walk
   caught the page at 826px wide at 768. */
@media (max-width: 1023px) {
  .wdi-scope--app .wdi-scard .wdi-table { min-width: 0; }
  .wdi-scope--app .wdi-scard:has(> .wdi-table) { overflow-x: auto; }
}

/* ==================================================================== W2h A: the signed-out homepage
 *
 * Built from mockup v2 (reports/w2g-home-mockup), composed on the system's tokens: the two it added
 * are --wdi-t-display (the headline) and --wdi-hero (the brand gradient). Its own buttons are the
 * large pill of the hero bands - white on the gradient, ghost beside it, blue on white - because the
 * system's button is sized for a form, not a banner. Everything is under .wdi-front so none of it can
 * reach another page. (Not .wdi-home: the signed-in dashboard's <main> already carries that class -
 * W2h's first cut used it and reached into the dashboard; the suite caught it.) The site's promise strip is hidden here: the counter strip under the hero says
 * it, and says it once.
 */
.wdi-home-out .wdi-trust { display: none; }
.wdi-front { font-family: var(--wdi-font); color: var(--wdi-ink); background: #fff; }
.wdi-front a { text-decoration: none; }
.wdi-front .wdi-icon { margin: 0; }
.wdi-front__wrap { max-width: var(--wdi-container); margin: 0 auto; padding: 0 var(--wdi-5); box-sizing: border-box; }
.wdi-front__kicker { margin: 0 0 var(--wdi-2); font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--wdi-blue); }
.wdi-scope--app .wdi-front h2.wdi-front__h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: var(--wdi-w-bold); letter-spacing: -.01em; color: var(--wdi-ink); }
.wdi-front__sub { margin: var(--wdi-2) 0 0; font-size: 17px; line-height: 1.55; color: var(--wdi-ink-2); max-width: 58ch; }
.wdi-front__actions { display: flex; flex-wrap: wrap; gap: var(--wdi-3); margin: var(--wdi-5) 0 0; }
.wdi-front__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px var(--wdi-font); border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wdi-front__btn .wdi-icon { width: 20px; height: 20px; }
.wdi-front__btn--white { background: #fff; color: var(--wdi-blue-dark); box-shadow: 0 8px 24px rgba(0, 20, 60, .28); }
.wdi-front__btn--white:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 20, 60, .34); color: var(--wdi-blue-dark); }
.wdi-front__btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.wdi-front__btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.wdi-front__btn--blue { background: var(--wdi-btn); color: #fff; box-shadow: 0 6px 18px rgba(21, 101, 192, .28); }
.wdi-front__btn--blue:hover { background: var(--wdi-btn-hover); color: #fff; }
.wdi-front__btn--outline { border-color: var(--wdi-line-strong); color: var(--wdi-ink); background: #fff; }
.wdi-front__btn:focus-visible { outline: none; box-shadow: var(--wdi-focus); }

/* 1. the hero - full bleed on the brand gradient */
.wdi-front__hero { position: relative; overflow: hidden; background: var(--wdi-hero); color: #fff; }
.wdi-front__hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 80% at 78% 55%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%),
  radial-gradient(30% 40% at 8% 10%, rgba(62, 167, 240, .35), rgba(62, 167, 240, 0) 70%); }
.wdi-front__hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: #fff; clip-path: ellipse(75% 100% at 50% 100%); }
.wdi-front__heroin { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--wdi-6); align-items: center; min-height: 560px; padding-top: var(--wdi-7); padding-bottom: 88px; }
.wdi-front__hero .wdi-front__kicker { color: #bfe0ff; }
.wdi-scope--app .wdi-front__hero h1 { margin: 0; font-size: var(--wdi-t-display); line-height: 1.08; font-weight: var(--wdi-w-bold); letter-spacing: -.02em; color: #fff; }
.wdi-front__hero h1 em { font-style: normal; color: #9fd4ff; }
.wdi-front__lede { margin: var(--wdi-4) 0 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.wdi-front__chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--wdi-2); margin: var(--wdi-5) 0 0; padding: 0; }
.wdi-front__chips li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); color: #fff; }
.wdi-front__chips .wdi-icon { width: 16px; height: 16px; color: #9fd4ff; }

/* The product tiles (W2h A2): no cut-outs. Each photograph sits whole on its own white rounded tile
   with a soft shadow, contained inside with padding; the tiles are staggered and overlap a little,
   a composed arrangement rather than a grid. */
.wdi-front__tiles { position: relative; list-style: none; margin: 0; padding: 0; height: 470px; }
.wdi-front__tile { position: absolute; margin: 0; aspect-ratio: 1 / 1; background: #fff; border-radius: 20px; box-shadow: 0 18px 38px rgba(0, 25, 70, .28), 0 2px 6px rgba(0, 25, 70, .16); transition: transform .2s ease; }
.wdi-front__tile a { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 14px; }
.wdi-front__tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wdi-front__tile:hover { z-index: 20 !important; }
.wdi-front__tile--1 { width: 26%; left: 0;   top: 12%; z-index: 2; transform: rotate(-4deg); }
.wdi-front__tile--2 { width: 24%; left: 23%; top: 0;   z-index: 3; transform: rotate(3deg); }
.wdi-front__tile--3 { width: 31%; left: 45%; top: 6%;  z-index: 4; transform: rotate(-2deg); }
.wdi-front__tile--4 { width: 22%; left: 78%; top: 2%;  z-index: 2; transform: rotate(5deg); }
.wdi-front__tile--5 { width: 27%; left: 6%;  top: 52%; z-index: 5; transform: rotate(3deg); }
.wdi-front__tile--6 { width: 21%; left: 31%; top: 50%; z-index: 6; transform: rotate(-5deg); }
.wdi-front__tile--7 { width: 25%; left: 52%; top: 55%; z-index: 7; transform: rotate(2deg); }
.wdi-front__tile--8 { width: 20%; left: 77%; top: 46%; z-index: 3; transform: rotate(-3deg); }

/* 2. the trade counter strip */
.wdi-front__counterin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--wdi-2) var(--wdi-6); padding-top: var(--wdi-4); padding-bottom: var(--wdi-4); font-size: var(--wdi-t-lg); color: var(--wdi-ink-2); border-bottom: 1px solid var(--wdi-line); }
.wdi-front__counterin span { display: inline-flex; align-items: center; gap: 8px; }
.wdi-front__counterin b { color: var(--wdi-ink); font-weight: var(--wdi-w-semi); }
.wdi-front__counterin .wdi-icon { color: var(--wdi-blue); }
.wdi-front__counterin a { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); display: inline-flex; align-items: center; gap: 4px; }

/* 3. categories */
.wdi-front__section { padding: 72px 0 0; }
.wdi-front__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--wdi-3); margin: 0 0 var(--wdi-5); }
.wdi-front__head > a { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); font-size: var(--wdi-t-lg); display: inline-flex; align-items: center; gap: 4px; }
.wdi-front__head--centre { justify-content: center; text-align: center; }
.wdi-front__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wdi-4); }
.wdi-front__cats li { margin: 0; }
.wdi-front__cat { display: flex; align-items: center; gap: var(--wdi-3); height: 100%; box-sizing: border-box; padding: var(--wdi-3); background: #fff; border: 1px solid var(--wdi-line); border-radius: 16px; color: var(--wdi-ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wdi-front__cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 30, 45, .10); border-color: #bcd7f3; color: var(--wdi-ink); }
.wdi-front__cat:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-front__catimg { flex: none; width: 76px; height: 76px; border-radius: 12px; background: var(--wdi-pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wdi-front__catimg img { max-width: 88%; max-height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.wdi-front__cattext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wdi-front__catname { font-size: 16px; font-weight: var(--wdi-w-semi); line-height: 1.25; }
.wdi-front__catcount { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-front__cat .wdi-front__catgo { color: var(--wdi-line-strong); transition: color .18s ease, transform .18s ease; }
.wdi-front__cat:hover .wdi-front__catgo { color: var(--wdi-blue); transform: translateX(2px); }

/* 4. the brochure band - full bleed, dark */
.wdi-front__bro { margin: 88px 0 0; background: radial-gradient(70% 120% at 20% 50%, #16345a 0%, var(--wdi-ink) 65%); color: #fff; overflow: hidden; }
.wdi-front__broin { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: var(--wdi-7); align-items: center; min-height: 420px; }
.wdi-front__covers { position: relative; height: 420px; }
.wdi-front__cover { position: absolute; width: 250px; height: auto; border-radius: 6px; }
.wdi-front__cover--back { left: 150px; top: 58px; transform: rotate(9deg); opacity: .55; filter: brightness(.8); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.wdi-front__cover--front { left: 40px; top: 36px; transform: rotate(-7deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.wdi-front__bro .wdi-front__kicker { color: #9fd4ff; }
.wdi-scope--app .wdi-front__bro h2.wdi-front__h2 { font-size: 36px; color: #fff; }
.wdi-front__bro .wdi-front__sub { color: rgba(255, 255, 255, .78); }
.wdi-front__meta { margin: var(--wdi-3) 0 0; font-size: var(--wdi-t-sm); color: rgba(255, 255, 255, .6); }

/* 5. how a trade account works */
.wdi-front__how { background: linear-gradient(180deg, var(--wdi-pale), #fff); border-radius: 24px; padding: var(--wdi-7) var(--wdi-6); }
.wdi-front__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wdi-5); position: relative; }
.wdi-front__steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 28px; border-top: 2px dashed #c6dcf3; }
.wdi-front__step { position: relative; text-align: center; margin: 0; padding: 0 var(--wdi-3); }
.wdi-front__n { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wdi-hero); color: #fff; font-size: 22px; font-weight: var(--wdi-w-bold); box-shadow: 0 8px 20px rgba(13, 71, 161, .3); }
.wdi-scope--app .wdi-front__step h3 { margin: var(--wdi-4) 0 var(--wdi-1); font-size: 19px; font-weight: var(--wdi-w-semi); color: var(--wdi-ink); display: flex; align-items: center; justify-content: center; gap: 8px; }
.wdi-front__step h3 .wdi-icon { color: var(--wdi-blue); }
.wdi-front__step p { margin: 0 auto; max-width: 30ch; font-size: var(--wdi-t-lg); line-height: 1.55; color: var(--wdi-ink-2); }
.wdi-front__howcta { display: flex; flex-direction: column; align-items: center; gap: var(--wdi-2); margin: var(--wdi-6) 0 0; }
.wdi-front__howcta p { margin: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-3); }
.wdi-front__howcta p a { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); }

/* 6. industries */
.wdi-front__inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wdi-4); }
.wdi-front__ind { margin: 0; padding: var(--wdi-5); border-radius: 16px; background: var(--wdi-pale); }
.wdi-front__ind .wdi-front__indicon { width: 30px; height: 30px; margin: 0 0 var(--wdi-3); color: var(--wdi-blue); display: block; }
.wdi-scope--app .wdi-front__ind h3 { margin: 0 0 4px; font-size: 17px; font-weight: var(--wdi-w-semi); }
.wdi-front__ind h3 a { color: var(--wdi-ink); }
.wdi-front__ind h3 a:hover { color: var(--wdi-blue); }
.wdi-front__ind p { margin: 0; font-size: var(--wdi-t-md); line-height: 1.5; color: var(--wdi-ink-2); }

/* 7. the closing call to action (W2h A3) - the band the trust strip was, now with the one ask */
.wdi-front__cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--wdi-6); align-items: center; border-radius: 24px; background: var(--wdi-hero); color: #fff; padding: var(--wdi-7) var(--wdi-6); }
.wdi-scope--app .wdi-front__cta h2.wdi-front__h2 { color: #fff; font-size: 34px; }
.wdi-front__cta .wdi-front__sub { color: rgba(255, 255, 255, .85); }
.wdi-front__claims { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wdi-4); }
.wdi-front__claims li { display: flex; gap: var(--wdi-3); align-items: flex-start; margin: 0; padding: var(--wdi-4); border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.wdi-front__claims .wdi-icon { flex: none; width: 26px; height: 26px; color: #9fd4ff; }
.wdi-front__claimtitle { display: block; font-size: 16px; margin: 0 0 2px; }
.wdi-front__claimline { font-size: var(--wdi-t-md); line-height: 1.45; color: rgba(255, 255, 255, .82); }
.wdi-front__end { height: 80px; }
.wdi-front__sticky { display: none; }

@media (max-width: 1023px) {
  .wdi-front__heroin { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wdi-front__tiles { height: 420px; max-width: 620px; }
  .wdi-front__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wdi-front__broin { grid-template-columns: 320px minmax(0, 1fr); gap: var(--wdi-5); }
  .wdi-front__cover { width: 190px; } .wdi-front__cover--back { left: 110px; }
  .wdi-front__cta { grid-template-columns: minmax(0, 1fr); }
}

/* THE PHONE - designed, not the desktop squeezed */
@media (max-width: 782px) {
  :root { --wdi-t-display: 34px; }
  .wdi-front__wrap { padding: 0 16px; }
  .wdi-front__heroin { gap: 0; padding-top: 28px; padding-bottom: 56px; }
  .wdi-front__lede { font-size: 16px; }
  .wdi-front__hero .wdi-front__actions { flex-direction: column; }
  .wdi-front__hero .wdi-front__actions .wdi-front__btn { width: 100%; }
  .wdi-front__chips { gap: 6px; } .wdi-front__chips li { font-size: 12px; padding: 6px 10px; }
  /* four tiles, two rows, under the text - staggered, overlapping a little */
  .wdi-front__tiles { height: auto; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: var(--wdi-5) 8px 0; }
  .wdi-front__tile { position: relative; left: auto; top: auto; width: auto; }
  .wdi-front__tile:nth-child(n+5) { display: none; }
  .wdi-front__tile--1 { transform: rotate(-4deg); z-index: 2; margin: 0 -6px 0 0; }
  .wdi-front__tile--2 { transform: translateY(22px) rotate(3deg); z-index: 3; margin: 0 0 0 -6px; }
  .wdi-front__tile--3 { transform: translateY(-10px) rotate(2deg); z-index: 4; margin: 0 -6px 0 0; }
  .wdi-front__tile--4 { transform: translateY(12px) rotate(-4deg); z-index: 5; margin: 0 0 0 -6px; }
  .wdi-front__counterin { flex-direction: column; align-items: flex-start; gap: 8px; font-size: var(--wdi-t-md); padding-top: 16px; padding-bottom: 16px; }
  .wdi-front__section { padding-top: 48px; }
  .wdi-scope--app .wdi-front h2.wdi-front__h2 { font-size: 24px; } .wdi-front__sub { font-size: var(--wdi-t-lg); }
  .wdi-front__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wdi-front__cat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 14px; }
  .wdi-front__catimg { width: 100%; height: 96px; }
  .wdi-front__catname { font-size: var(--wdi-t-md); } .wdi-front__catcount { font-size: var(--wdi-t-xs); } .wdi-front__cat .wdi-front__catgo { display: none; }
  .wdi-front__bro { margin-top: 56px; }
  .wdi-front__broin { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; padding-bottom: 40px; text-align: center; }
  .wdi-front__covers { height: 250px; } .wdi-front__cover { width: 150px; }
  .wdi-front__cover--front { left: calc(50% - 95px); top: 16px; } .wdi-front__cover--back { left: calc(50% - 30px); top: 34px; }
  .wdi-scope--app .wdi-front__bro h2.wdi-front__h2 { font-size: 26px; }
  .wdi-front__bro .wdi-front__actions, .wdi-front__cta .wdi-front__actions { flex-direction: column; }
  .wdi-front__bro .wdi-front__actions .wdi-front__btn, .wdi-front__cta .wdi-front__actions .wdi-front__btn { width: 100%; }
  .wdi-front__how { padding: 32px 16px; border-radius: 18px; }
  .wdi-front__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wdi-front__steps::before { left: 44px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 2px dashed #c6dcf3; }
  .wdi-front__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; text-align: left; padding: 0 0 0 16px; }
  .wdi-front__n { grid-row: 1 / span 2; }
  .wdi-scope--app .wdi-front__step h3 { margin: 6px 0 0; justify-content: flex-start; font-size: 17px; }
  .wdi-front__step p { margin: 0; font-size: var(--wdi-t-md); }
  .wdi-front__howcta .wdi-front__btn { width: 100%; }
  .wdi-front__inds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wdi-front__ind { padding: 14px; } .wdi-scope--app .wdi-front__ind h3 { font-size: var(--wdi-t-lg); } .wdi-front__ind p { font-size: var(--wdi-t-sm); }
  .wdi-front__cta { padding: 28px 18px; border-radius: 18px; gap: var(--wdi-5); }
  .wdi-scope--app .wdi-front__cta h2.wdi-front__h2 { font-size: 26px; }
  /* phone only: the one ask, always a thumb away */
  .wdi-front__sticky { display: flex; position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 18px rgba(15, 30, 45, .12); }
  .wdi-front__sticky .wdi-front__btn { flex: 1; height: 46px; font-size: var(--wdi-t-lg); }
  .wdi-front__sticky .wdi-front__btn--outline { flex: 0 0 auto; padding: 0 18px; }
  .wdi-front__end { height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .wdi-front__btn, .wdi-front__cat, .wdi-front__tile { transition: none; } }

/* ==================================================================== W2k B: the selection bar, compact
 *
 * Rob's walk: the bar's left half was a text panel - one muted sentence in a full-width white card,
 * sitting over the very rows it is about. From 992 the bar is a compact group at the right edge,
 * as wide as its buttons (about half the content width): a small line above them - the prompt, or
 * the count and value once ticked - then the actions. The rows to its left show again. It is still
 * the sticky action bar (solid, the one upward elevation) and still docks under the table at the
 * end. Below 992 the W2f C9 phone bar is unchanged: full width, summary over two equal buttons.
 * The same treatment for the list page's bar (.wdi-list-bar), which is the system's .wdi-actionbar.
 */
@media (min-width: 992px) {
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar {
    /* A grid whose columns are the buttons: a wrapping flex box sizes itself as if everything were
       on one line, so the sentence would add its own width to the buttons'. */
    display: grid; grid-auto-flow: column; grid-auto-columns: auto; justify-content: end; align-items: center;
    width: fit-content; max-width: 100%; margin-left: auto;
    gap: var(--wdi-2) var(--wdi-3);
    padding: var(--wdi-2) var(--wdi-3) var(--wdi-3);
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar { grid-template-columns: repeat(3, auto); }
  .wdi-scope--app.wdi-scope--app .wdi-list-bar { grid-template-columns: repeat(2, auto); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-selected-bar__summary,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__summary {
    grid-row: 1; grid-column: 1 / -1; margin: 0; text-align: right;
    contain: inline-size;   /* the line wraps to the buttons' width; it never sets the bar's */
    font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-regular); line-height: 1.4; color: var(--wdi-ink-2);
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar--active > .wdi-selected-bar__summary { font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-btn,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-btn { grid-row: 2; height: 40px; font-size: var(--wdi-t-md); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-catalogue__status,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-my-products__status,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__status { grid-row: 3; grid-column: 1 / -1; contain: inline-size; text-align: right; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-catalogue__status:empty,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-my-products__status:empty,
  .wdi-scope--app.wdi-scope--app .wdi-list-bar > .wdi-actionbar__status:empty { display: none; }
}

/* ==================================================================== W2k C3: a list card is a link
 *
 * The whole card opens the list: the name's link is stretched over it (::after, inset 0), the
 * chevron at the right edge says so, and the card lifts on hover. Add all to basket is the only
 * button and sits above the stretch. Five pictures, the fifth saying "+n" when there are more.
 * Desktop: pictures | name over one line of figures | button | chevron - the card is as tall as its
 * pictures, nothing stacked below them. Only the index's cards (--link); the dashboard's tiles keep
 * their own layout.
 */
.wdi-scope--app .wdi-listcard--link {
  position: relative; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--wdi-4);
  padding: var(--wdi-3) var(--wdi-3) var(--wdi-3) var(--wdi-3);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.wdi-scope--app .wdi-listcard--link:hover { transform: translateY(-2px); box-shadow: var(--wdi-shadow); border-color: var(--wdi-line-strong); }
.wdi-scope--app .wdi-listcard--link:focus-within { border-color: var(--wdi-blue); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__name:hover { text-decoration: none; }
.wdi-scope--app .wdi-listcard--link:hover .wdi-listcard__name { color: var(--wdi-blue); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__name:focus-visible { outline: none; }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__name:focus-visible::after { box-shadow: var(--wdi-focus); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__actions { position: relative; z-index: 2; }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__thumbs { grid-template-columns: repeat(5, 56px); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__name { font-size: var(--wdi-t-lg); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__meta,
.wdi-scope--app .wdi-listcard--link .wdi-listcard__when { display: inline; margin: 0; font-size: var(--wdi-t-sm); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__when::before { content: " · "; color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-listcard--link .wdi-listcard__main > .wdi-listcard__name { display: block; margin: 0 0 2px; }
.wdi-scope--app .wdi-listcard__more { position: relative; display: block; width: 56px; height: 56px; }
.wdi-scope--app .wdi-listcard__more img { opacity: .35; }
.wdi-scope--app .wdi-listcard__morecount {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--wdi-r-sm);
  font-size: var(--wdi-t-md); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); font-variant-numeric: tabular-nums;
}
.wdi-scope--app .wdi-listcard__chev { display: flex; color: var(--wdi-ink-3); font-size: 20px; }
.wdi-scope--app .wdi-listcard--link:hover .wdi-listcard__chev { color: var(--wdi-blue); }
@media (prefers-reduced-motion: reduce) { .wdi-scope--app .wdi-listcard--link { transition: none; } .wdi-scope--app .wdi-listcard--link:hover { transform: none; } }
/* Phone: pictures and chevron, then the name and figures, then the button full width. */
@media (max-width: 767px) {
  .wdi-scope--app .wdi-listcard--link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "thumbs chev" "main main" "act act"; gap: var(--wdi-2); }
  .wdi-scope--app .wdi-listcard--link .wdi-listcard__thumbs { grid-area: thumbs; grid-template-columns: repeat(5, 48px); }
  .wdi-scope--app .wdi-listcard--link .wdi-listcard__main { grid-area: main; }
  .wdi-scope--app .wdi-listcard--link .wdi-listcard__actions { grid-area: act; }
  .wdi-scope--app .wdi-listcard--link .wdi-listcard__chev { grid-area: chev; align-self: center; }
  .wdi-scope--app .wdi-listcard__more { width: 48px; height: 48px; }
}

/* ==================================================================== W2k C4: an order row is a link
 *
 * The order number's link is stretched over its row, so the whole row opens the order; a chevron
 * at the right edge says so and the row takes the pale ground on hover. Order again is the row's
 * one button, above the stretch. Same on the phone card (W2f C12): number + status, date + total,
 * then Order again full width with the chevron beside it.
 */
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr { position: relative; }
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr:hover > td { background: var(--wdi-pale); }
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number > a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number > a:focus-visible { outline: none; }
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number > a:focus-visible::after { box-shadow: var(--wdi-focus); border-radius: var(--wdi-r-sm); }
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions > * { position: relative; z-index: 2; }
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::after {
  /* The chevron, drawn in currentColor from Lucide's chevron-right path. */
  content: ""; display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin-left: var(--wdi-3);
  background: var(--wdi-ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr:hover td.woocommerce-orders-table__cell-order-actions::after { background: var(--wdi-blue); }
@media (max-width: 768px) {
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr td.woocommerce-orders-table__cell-order-actions {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  }
  .wdi-scope--app.wdi-scope--app table.woocommerce-orders-table tbody tr:hover > td { background: none; }
}

/* ==================================================================== W2k C6: My products' Sort by / Show, tighter
 *
 * One step down everywhere, desktop and phone: the panel's padding 16/24 -> 12/16 and its gap 24 ->
 * 16; the group labels at the system label size (12px - the account forms' legend rule had them at
 * 16) with 4px under them; the pills 36 -> 32px tall, 13 -> 12px, 16 -> 12px side padding, 4px apart.
 * The ID is in the selector because the account forms' fieldset/legend rules are what it beats.
 */
.wdi-scope--app.wdi-scope--app #wdi-mine-controls { padding: var(--wdi-3) var(--wdi-4); gap: var(--wdi-4); margin-bottom: var(--wdi-4); }
.wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg { gap: var(--wdi-1); padding-top: 0; }
.wdi-scope--app.wdi-scope--app #wdi-mine-controls fieldset.wdi-seg > legend {
  font-size: var(--wdi-t-xs); line-height: 1.3; letter-spacing: .06em; margin: 0 0 var(--wdi-1);
}
.wdi-scope--app.wdi-scope--app #wdi-mine-controls .wdi-toggle button.wdi-toggle__btn {
  height: 32px; padding: 0 var(--wdi-3); font-size: var(--wdi-t-xs);
}
@media (max-width: 991px) {
  .wdi-scope--app.wdi-scope--app #wdi-mine-controls { gap: var(--wdi-2); padding: var(--wdi-3); }
}

/* ==================================================================== W2k D7: the catalogue on a phone
 *
 * Below 768 the sidebar's category list is not shown - the Menu drawer has the same accordion, and
 * the catalogue's Categories button opens it there (wdi-chrome.js, data-wdi-drawer-at="cats"). What
 * is left of the sidebar is its Search products field, plain, above the filter bar.
 * The filter bar is ONE row: Grid/List at the left, Your products / All products / In stock in the
 * middle - that group scrolls sideways if it has to - and Categories at the right. Only the middle
 * scrolls: the Grid/List tip hangs below the toggle, and a scrolling box would clip it. Per page and
 * Sort keep their own short row under it. Desktop and tablet unchanged.
 */
.wdi-scope--app .wdi-catbar__cats { display: none; }
@media (max-width: 767px) {
  .wdi-scope--app.wdi-scope--app .wdi-catlist,
  .wdi-scope--app.wdi-scope--app .chw-widget .wdi-collapse { display: none; }
  .wdi-scope--app.wdi-scope--app .chw-widget { background: none; padding: 0; margin: 0 0 var(--wdi-2); }
  .wdi-chrome .chw-widget .wdi-catsearch-form { margin: 0; }

  .wdi-scope--app.wdi-scope--app .wdi-catbar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "view filt cats" "end end end";
    align-items: center; gap: var(--wdi-2); padding: var(--wdi-2) var(--wdi-3);
  }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-view-toggle { grid-area: view; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catfilter {
    grid-area: filt; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
  }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catfilter::-webkit-scrollbar { display: none; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catfilter .wdi-seg { flex-wrap: nowrap; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catfilter .wdi-seg__btn,
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-view-toggle .wdi-seg__btn { flex: 0 0 auto; height: 34px; padding: 0 var(--wdi-3); white-space: nowrap; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catbar__cats {
    grid-area: cats; display: inline-flex; align-items: center; gap: var(--wdi-1); height: 34px; padding: 0 var(--wdi-3); white-space: nowrap;
  }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catbar__end { grid-area: end; }
}
/* The category the drawer was opened for. */
.wdi-drawer__cat.is-here > .wdi-drawer__catrow > .wdi-drawer__link,
.wdi-drawer a.is-here { color: var(--wdi-blue-dark); font-weight: var(--wdi-w-semi); }
.wdi-drawer .wdi-drawer__sublink.is-here { background: var(--wdi-tint); border-radius: var(--wdi-r-sm); }

/* ==================================================================== W2k E8: the basket line on a phone
 *
 * The second line of each card - unit price x quantity = line total, then Remove - is ONE row on ONE
 * baseline. It was centred, so the 18px bold total sat lower than the price beside it, and the total's
 * cell could wrap, dropping Remove underneath. Now every figure, the x and =, the number in the box and
 * Remove share the text baseline, and the total's cell does not wrap. The "Available on backorder" note
 * under the name kept a paragraph's 16px bottom margin, which opened a gap above the figures; it has
 * the meta line's spacing now.
 */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart td.product-name p.backorder_notification,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart td.product-name p { margin: 2px 0 0; }
@media (max-width: 639px) {
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal { align-self: baseline; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price { align-items: baseline; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal { flex-wrap: nowrap; align-items: baseline; white-space: nowrap; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity .quantity { display: block; }
  /* The line total's figure was a block with a 20px top margin (the theme's, on the <bdi>), so its
     cell stood 20px taller than the price beside it and set the row's height. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .amount,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .amount bdi { display: inline; height: auto; margin: 0; line-height: 1.3; }
  /* Room for Remove on a 360 screen: a narrower box (it holds two or three digits) and 6px gaps. */
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item { column-gap: 6px; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal { gap: 6px; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity input.qty { width: 60px; }
}
/* Phones narrower than 390 (a 360 Android, an SE): the two figures a step smaller (18 -> 15px), a
   narrower box and 4px gaps, so the row still holds with Remove at its end. */
@media (max-width: 389px) {
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price .amount bdi,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .amount bdi { font-size: var(--wdi-t-lg); }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-quantity input.qty { width: 52px; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item { column-gap: 4px; }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price,
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal { gap: 4px; }
}
/* Under 340 (a first-generation iPhone SE): the picture 56 -> 44px, which is the last 12px the row needs. */
@media (max-width: 339px) {
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item { grid-template-columns: 44px max-content max-content minmax(0, 1fr); }
  .wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-thumbnail img { width: 44px; height: 44px; }
}

/* ==================================================================== W2k E9: product titles
 *
 * Balanced wrapping on every product title - grid cards, list rows, My products and lists, the
 * basket, the product page, suggestion cards, search suggestions - so a two-line title splits in two
 * even halves rather than a full line and a scrap. wdi-chrome.js joins the last two words with a
 * no-break space, which is the guarantee of no one-word last line and the fallback where balance is
 * unsupported. The product page's title one step down the scale (28 -> 22px; 22 -> 18 on a phone),
 * so most sit on one line beside the picture.
 */
.wdi-scope--app .woocommerce-loop-product__title,
.wdi-scope--lite .woocommerce-loop-product__title,
.wdi-scope--app td.wdi-col-name > a,
.wdi-scope--app .wdi-col-name__title,
.wdi-scope--app .woocommerce-cart-form td.product-name > a,
.wdi-scope--app div.product .product_title,
.wdi-scope--lite div.product .product_title,
.wdi-hcard__name a,
.wdi-suggest__name { text-wrap: balance; }
.wdi-scope--app.wdi-scope--app div.product .product_title { font-size: var(--wdi-t-2xl); }
@media (max-width: 639px) {
  .wdi-scope--app.wdi-scope--app div.product .product_title { font-size: var(--wdi-t-xl); line-height: 1.3; }
}

/* ==================================================================== W2l: the hero's hygiene motif
 *
 * Two decorative layers (WDI_Home::hero_motif, ?wdi_hero=both|wipe|bubbles|none): a soft wipe and a
 * scatter of bubbles, white at 6-14%. They sit above the hero's blue and its glow (::before) and below
 * everything else: the content (.wdi-front__heroin) is z-index 1, and the white curve (::after) comes
 * later in the tree, so it paints over the motif's bottom edge. They take no space and no pointer.
 * Desktop geometry from 1024 (two columns), phone geometry up to 1023 (one column). No motion.
 */
.wdi-front__motif { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.wdi-front__motif--narrow { display: none; }
@media (max-width: 1023px) {
  .wdi-front__motif--wide { display: none; }
  .wdi-front__motif--narrow { display: block; }
}

/* ==================================================================== W2m B: list thumbnails, 72px
 *
 * The catalogue list (trade and visitor) and My products: the picture is 72px from 768 (64 below) -
 * it was a 56px tile with 4px of padding, so the product itself was 48px. White, a hairline, the
 * picture contained in it. Only pictures marked .wdi-thumb (wdi_list_thumb, wdi-my-products.js), so
 * the saved-list page, order lines and the dashboard keep theirs. The column grows by what the picture
 * needs (76 -> 92px); the other columns, the type and the selection bar do not change.
 */
.wdi-scope--app.wdi-scope--app table.wdi-rows:has(img.wdi-thumb) .wdi-col-thumb { width: 92px; }
.wdi-scope--app.wdi-scope--app table.wdi-rows .wdi-col-thumb img.wdi-thumb {
  display: block; box-sizing: border-box; width: 72px; height: 72px; max-width: none; padding: 4px;
  object-fit: contain; background: #fff; border: 1px solid var(--wdi-line); border-radius: var(--wdi-r);
}
@media (max-width: 767px) {
  .wdi-scope--app.wdi-scope--app table.wdi-rows:has(img.wdi-thumb) .wdi-col-thumb { width: 76px; padding-right: 0; }
  .wdi-scope--app.wdi-scope--app table.wdi-rows .wdi-col-thumb img.wdi-thumb { width: 64px; height: 64px; padding: 3px; }
}

/* ==================================================================== W2m C: the closing band, with the dog
 *
 * The photograph (the .co.uk's own hero slide, assets/img/home-dog-*) fills the band's right two-thirds.
 * Its studio black is not left black - "dark and dingy, not hygienic" - and the photo is not altered: a
 * scrim in the band's tone runs over it from the left (the tone, then ~92%) to nothing just before the
 * dog's face, in normal blend so the white fur stays clean, and the band's own ground behind the text is
 * the same tone, so the two read as one surface. Three tones (?wdi_band, WDI_Home::BAND_TONE), all from
 * existing tokens:
 *   navy  --wdi-navy              #002D72
 *   deep  navy 70% + --wdi-blue 30%, mixed by hand  #063F88  (a deep navy between the two; two blues
 *         cannot make a true teal, and no new hue was allowed)
 *   blue  --wdi-blue-dark, the hero's dark brand blue  #0D47A1
 * The claims are a row of three cards under the band. Phone: the photo on top, kept on the dog's face,
 * fading down into the tone behind the text; the cards stack.
 */
.wdi-front__cta--dog { --wdi-band: #063F88; --wdi-band-rgb: 6, 63, 136; }
.wdi-front__cta--navy { --wdi-band: var(--wdi-navy); --wdi-band-rgb: 0, 45, 114; }
.wdi-front__cta--deep { --wdi-band: #063F88; --wdi-band-rgb: 6, 63, 136; }
.wdi-front__cta--blue { --wdi-band: var(--wdi-blue-dark); --wdi-band-rgb: 13, 71, 161; }
.wdi-front__cta.wdi-front__cta--dog {
  position: relative; display: block; overflow: hidden; isolation: isolate; min-height: 440px; padding: 0;
  border-radius: 24px; background: var(--wdi-band); color: #fff;
}
.wdi-front__ctaimg { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 68%; margin: 0; }
.wdi-front__ctaimg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 30%; }
.wdi-front__ctascrim {
  position: absolute; top: 0; right: 0; bottom: 0; width: 68%; pointer-events: none;
  background: linear-gradient(90deg, var(--wdi-band) 0%, rgba(var(--wdi-band-rgb), .92) 8%, rgba(var(--wdi-band-rgb), .72) 36%, rgba(var(--wdi-band-rgb), 0) 56%);
}
.wdi-front__cta--dog .wdi-front__ctamain {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  width: 48%; min-height: 440px; box-sizing: border-box; padding: var(--wdi-7) var(--wdi-6);
}
.wdi-front__claims.wdi-front__claims--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--wdi-5) 0 0; }
.wdi-front__claims--cards li { background: var(--wdi-pale); border: 1px solid var(--wdi-line); color: var(--wdi-ink); }
.wdi-front__claims--cards .wdi-icon { color: var(--wdi-blue); }
.wdi-front__claims--cards .wdi-front__claimtitle { color: var(--wdi-ink); }
.wdi-front__claims--cards .wdi-front__claimline { color: var(--wdi-ink-2); }
@media (max-width: 1023px) {
  .wdi-front__cta--dog .wdi-front__ctamain { width: 56%; }
  .wdi-front__ctaimg, .wdi-front__ctascrim { width: 72%; }
}
@media (max-width: 767px) {
  .wdi-front__cta.wdi-front__cta--dog { min-height: 0; padding: 0; border-radius: 18px; }
  .wdi-front__ctaimg { position: relative; width: 100%; height: 240px; }
  .wdi-front__ctaimg img { object-position: 66% 24%; }
  .wdi-front__ctascrim { top: 0; bottom: auto; width: 100%; height: 240px;
    /* Down into the tone behind the text, and - as on the desktop - from the left to the dog's face,
       so the studio black beside it reads as the brand too. */
    background: linear-gradient(180deg, rgba(var(--wdi-band-rgb), 0) 45%, rgba(var(--wdi-band-rgb), .92) 92%, var(--wdi-band) 100%),
                linear-gradient(90deg, rgba(var(--wdi-band-rgb), .92) 0%, rgba(var(--wdi-band-rgb), .72) 30%, rgba(var(--wdi-band-rgb), 0) 52%); }
  .wdi-front__cta--dog .wdi-front__ctamain { width: auto; min-height: 0; padding: var(--wdi-2) 18px 28px; }
  .wdi-front__claims.wdi-front__claims--cards { grid-template-columns: minmax(0, 1fr); gap: var(--wdi-3); }
}

/* ==================================================================== W2n A: the light hero (shipped)
 *
 * Rob's choice from the W2m D concept: white fading to the palest blue (--wdi-pale), full width, edge to
 * edge, the content on the normal container. Navy headline with the accent words in the brand blue, the
 * intro in the body colour, Apply the solid primary blue, Sign in a navy outline, the chips light. Five
 * product tiles 3 + 2, straight, the same tile as "What we supply" (white, hairline, 16px radius) with a
 * soft shadow. The W2l motif in the brand blue, fill only. No curve at the foot: the pale ground carries
 * on into the trade counter strip, which a full-width hairline marks as a strip of its own.
 * The blue hero (W2h-W2l) is the rollback and the review switch: ?wdi_hero_style=blue.
 */
.wdi-front__hero.wdi-front__hero--light { background: linear-gradient(180deg, #fff 0%, var(--wdi-pale) 100%); color: var(--wdi-ink); }
.wdi-front__hero--light::before { background: radial-gradient(55% 70% at 78% 50%, rgba(21, 101, 192, .05), rgba(21, 101, 192, 0) 65%); }
.wdi-front__hero--light::after { content: none; }
.wdi-front__hero--light .wdi-front__heroin { min-height: 520px; padding-bottom: var(--wdi-7); }
.wdi-front__hero--light .wdi-front__kicker { color: var(--wdi-blue); }
.wdi-scope--app .wdi-front__hero--light h1, .wdi-front__hero--light h1 { color: var(--wdi-navy); }
.wdi-front__hero--light h1 em { color: var(--wdi-blue); }
.wdi-front__hero--light .wdi-front__lede { color: var(--wdi-ink-2); }
.wdi-front__hero--light .wdi-front__btn--white { background: var(--wdi-btn); color: #fff; box-shadow: 0 6px 18px rgba(21, 101, 192, .25); }
.wdi-front__hero--light .wdi-front__btn--white:hover { background: var(--wdi-btn-hover); color: #fff; }
.wdi-front__hero--light .wdi-front__btn--ghost { color: var(--wdi-navy); border-color: var(--wdi-navy); background: transparent; }
.wdi-front__hero--light .wdi-front__btn--ghost:hover { color: var(--wdi-navy); border-color: var(--wdi-navy); background: var(--wdi-pale); }
.wdi-front__hero--light .wdi-front__chips li { background: #fff; border-color: var(--wdi-line); color: var(--wdi-ink-2); }
.wdi-front__hero--light .wdi-front__chips .wdi-icon { color: var(--wdi-blue); }

.wdi-front__ltiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.wdi-front__ltile {
  grid-column: span 2; margin: 0; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--wdi-line); border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 30, 45, .08), 0 1px 3px rgba(15, 30, 45, .06);
}
.wdi-front__ltile:nth-child(4) { grid-column: 2 / span 2; }
.wdi-front__ltile:nth-child(5) { grid-column: 4 / span 2; }
.wdi-front__ltile a { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 14px; }
.wdi-front__ltile img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }

/* The strip under it continues the pale ground - no seam - and a full-width hairline makes it a strip. */
.wdi-front__hero--light + .wdi-front__counter { background: var(--wdi-pale); border-top: 1px solid var(--wdi-line); border-bottom: 1px solid var(--wdi-line); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin { border-bottom: 0; }

@media (max-width: 1023px) {
  .wdi-front__hero--light .wdi-front__heroin { min-height: 0; }
  .wdi-front__ltiles { gap: 10px; margin: var(--wdi-5) 0 0; }
}
@media (max-width: 782px) {
  .wdi-front__hero--light .wdi-front__heroin { padding-bottom: var(--wdi-6); }
  .wdi-front__ltile { border-radius: 14px; }
  .wdi-front__ltile a { padding: 8px; }
}

/* ==================================================================== W2n C: the category tick is a real checkbox
 *
 * Each sidebar row is a real checkbox and its category link (WDI_Cat_Sidebar::toggles), both pointing
 * where a click should go: into the category, or - for the one being viewed - one level up. The box the
 * row has always drawn (the link's ::before: empty, ticked, or a dash for a parent whose child is chosen)
 * stays the picture; the real checkbox lies over it, invisible, so it is the thing that is clicked,
 * focused and announced. Its focus ring is drawn on the box. A count shown lighter is the overall one
 * (Your products, where the customer has bought nothing in that category - see WDI_Catalogue_State).
 */
.wdi-scope--app .chw-widget li.cat-item { position: relative; }
.wdi-scope--app .chw-widget li.cat-item > .wdi-cat__tick {
  position: absolute; left: 0; top: 0; z-index: 1; width: 36px; height: 36px; margin: 0; padding: 0; opacity: 0; cursor: pointer;
}
.wdi-scope--app .chw-widget li.cat-item:has(> .wdi-cat__tick:focus-visible) > a::before { box-shadow: var(--wdi-focus); }
.wdi-scope--app .chw-widget li.cat-item:has(> .wdi-cat__tick:hover) > a { background: var(--wdi-bg); color: var(--wdi-ink); }
.wdi-scope--app .chw-widget li.current-cat:has(> .wdi-cat__tick:hover) > a { background: var(--wdi-tint); }
.wdi-scope--app .wdi-cat__count.wdi-cat__count--all { color: var(--wdi-ink-3); opacity: .7; }

/* ==================================================================== W2o A: the hero's left column, in three groups
 *
 * Rob: the left side was hard to digest - five things stacked (kicker, headline, intro, buttons, three
 * chips that wrapped to two rows). Now three groups, the gap between groups larger than the gap inside:
 *   1. kicker + headline      2. intro + buttons      3. one proof line
 * The headline breaks after "uses," (a <br>); the accent "at your price" never splits, and from 1024
 * the whole second line is kept together. Below 600 the break is dropped, so a phone takes three lines,
 * the accent still whole. The proof line is the chips' three items as muted text with middle dots.
 */
.wdi-front__hero h1 em { white-space: nowrap; }
@media (min-width: 1024px) { .wdi-front__h1l2 { white-space: nowrap; } }
@media (max-width: 599px) { .wdi-front__h1br { display: none; } }

.wdi-front__hero--light .wdi-front__heroin { min-height: 460px; padding-top: 40px; padding-bottom: 40px; }
.wdi-front__hero--light .wdi-front__kicker { margin-bottom: var(--wdi-3); }
.wdi-front__hero--light .wdi-front__lede { margin-top: var(--wdi-5); }
.wdi-front__hero--light .wdi-front__actions { margin-top: var(--wdi-4); }
/* --wdi-ink-2, not -3: over the motif's bubbles -3 measured 4.24:1. Quiet by size and weight instead. */
.wdi-front__proof { list-style: none; display: flex; flex-wrap: wrap; margin: var(--wdi-5) 0 0; padding: 0; font-size: var(--wdi-t-md); font-weight: var(--wdi-w-regular); line-height: 1.5; color: var(--wdi-ink-2); }
.wdi-front__proof li { margin: 0; }
.wdi-front__proof li + li::before { content: '\00B7'; margin: 0 .55em; color: var(--wdi-ink-3); }
@media (min-width: 1024px) {
  /* The tiles are a fixed cluster (570px: tiles of 178px, two rows = 374px) and the text column takes
     the rest; its three groups are spaced so the column stands level with the cluster. */
  .wdi-front__hero--light .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) minmax(0, 570px); gap: var(--wdi-7); }
  .wdi-front__hero--light .wdi-front__lede { margin-top: 36px; }
  .wdi-front__hero--light .wdi-front__actions { margin-top: var(--wdi-5); }
  .wdi-front__hero--light .wdi-front__proof { margin-top: 36px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-front__hero--light .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--wdi-6); }
  .wdi-scope--app .wdi-front__hero--light h1 { font-size: 40px; }
}
@media (max-width: 782px) {
  .wdi-front__hero--light .wdi-front__heroin { padding-top: 28px; padding-bottom: 32px; }
  .wdi-front__proof { font-size: var(--wdi-t-sm); margin-top: var(--wdi-5); }
}
@media (max-width: 599px) {
  /* A phone cannot hold the line, and a wrapped line starts with a stray dot: the three stack, no dots. */
  .wdi-front__proof { flex-direction: column; gap: 2px; }
  .wdi-front__proof li + li::before { content: none; }
}

/* ==================================================================== W2o B: anchoring and width
 *
 * 1. The trade counter strip under the light hero is the page's one dark anchor: the system navy, edge
 *    to edge, white text and icons, "Get directions" a white link with its chevron. Same content.
 * 2. From 1440 the tile cluster reaches past the container's right edge towards the viewport - never
 *    closer than 48px to it, never cropped - so the hero uses the width. It moves, it does not grow: the
 *    cluster keeps its 570px and stays level with the text. The overhang is measured on the hero itself
 *    (a size container, so cqw is the width without a scrollbar) and capped at 160px for very wide
 *    screens. Below 1440 the overhang is 0 by the same sum; ≤1023 is unchanged.
 */
.wdi-front__hero--light + .wdi-front__counter { background: var(--wdi-navy); border-top: 0; border-bottom: 0; color: #fff; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin { color: #fff; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin b { color: #fff; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin .wdi-icon { color: #fff; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a { color: #fff; text-decoration: none; text-underline-offset: 3px; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a:hover { text-decoration: underline; color: #fff; }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

@media (min-width: 1024px) {
  /* W2q B: the overhang is gone - the cluster ends on the container's right edge, level with the category
     grid below (the hero is on the site container, which is 1400 from 1600). */
  .wdi-front__hero--light .wdi-front__ltiles { justify-self: end; width: 570px; max-width: 100%; }
}

/* 3. The pastel audit (design system, W2o). Two pale surfaces are never adjacent: the industry cards
      (under the pale steps band) and the closing claim cards (over the pale footer) become white with
      the hairline, the same card as "What we supply". */
.wdi-front__ind { background: #fff; border: 1px solid var(--wdi-line); }
.wdi-front__claims--cards li { background: #fff; }

/* ==================================================================== W2o C: the dog band, no merge
 *
 * The band is one solid tone (W2m's deep, --wdi-band). No scrim, no gradient into the photo.
 *   cutout (default): the cut-out sits on the band, right-aligned, its top, right and bottom on the
 *     band's edges (the three edges the source photo crops him at), a soft shadow to the left and a
 *     faint radial lift of the band's own tone behind him.
 *   crop: the photograph cropped to the face and chest in a panel on the right, a 1px lighter hairline
 *     as its left edge.
 * Phone: the picture sits above the text - the cut-out peeking over it, right-aligned - so the headline
 * and the buttons are never on the photo.
 */
.wdi-front__cta--cutout .wdi-front__ctaimg, .wdi-front__cta--crop .wdi-front__ctaimg { z-index: 0; }
.wdi-front__cta--cutout::before {
  content: ''; position: absolute; z-index: 0; top: -10%; right: -6%; width: 62%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0));
}
.wdi-front__cta--cutout .wdi-front__ctaimg { top: 0; right: 0; bottom: 0; left: auto; width: auto; height: 100%; }
.wdi-front__cta--cutout .wdi-front__ctaimg img {
  width: auto; height: 100%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(-14px 10px 22px rgba(0, 12, 40, .35));
}
.wdi-front__cta--crop .wdi-front__ctaimg { width: 42%; border-left: 1px solid rgba(255, 255, 255, .16); box-sizing: border-box; }
.wdi-front__cta--crop .wdi-front__ctaimg img { object-position: 92% 30%; }
@media (max-width: 1023px) {
  .wdi-front__cta--cutout .wdi-front__ctamain, .wdi-front__cta--crop .wdi-front__ctamain { width: 54%; }
  .wdi-front__cta--cutout .wdi-front__ctaimg { width: auto; }
  .wdi-front__cta--crop .wdi-front__ctaimg { width: 44%; }
}
@media (max-width: 767px) {
  .wdi-front__cta--cutout::before { top: 0; right: 0; width: 100%; height: 240px; background: radial-gradient(closest-side at 72% 60%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)); }
  .wdi-front__cta--cutout .wdi-front__ctaimg { position: relative; display: flex; justify-content: flex-end; width: 100%; height: 220px; }
  .wdi-front__cta--cutout .wdi-front__ctaimg img { width: auto; height: 100%; }
  .wdi-front__cta--crop .wdi-front__ctaimg { position: relative; width: 100%; height: 220px; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .wdi-front__cta--crop .wdi-front__ctaimg img { object-position: 64% 24%; }
  .wdi-front__cta--cutout .wdi-front__ctamain, .wdi-front__cta--crop .wdi-front__ctamain { width: auto; padding-top: var(--wdi-5); }
}

/* ==================================================================== W2o D: the selection bar, no hint
 *
 * Rob: the "Tick products to add several at once" line looked off - a square block with nothing to the
 * left of its text. The line is gone (and My products' "Tick the products you want to reorder."). With
 * nothing ticked the two Add buttons are aria-disabled - the system's muted button, without the
 * not-allowed cursor - and View basket stays live. Ticked, a count pill sits at the left of the buttons,
 * inside the bar, so the bar has a left side. The card radius and the card shadow. From 992 the bar is
 * one row hugging its contents (W2k B's fit-content, now one row instead of a line over the buttons);
 * below 992 it is W2f C9's phone bar, the summary line holding the pill.
 */
.wdi-scope--app.wdi-scope--app .wdi-selected-bar { border-radius: var(--wdi-r); box-shadow: var(--wdi-shadow); }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.is-docked { box-shadow: var(--wdi-shadow); }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar .wdi-btn[aria-disabled="true"],
.wdi-scope--app.wdi-scope--app .wdi-selected-bar .wdi-btn[aria-disabled="true"]:hover {
  cursor: default; background: var(--wdi-pale); border-color: var(--wdi-line); color: var(--wdi-ink-3); box-shadow: none; transform: none; text-decoration: none;
}
.wdi-selected-bar__pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--wdi-3); box-sizing: border-box; white-space: nowrap;
  border-radius: 999px; background: var(--wdi-pale); border: 1px solid var(--wdi-line);
  font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); color: var(--wdi-ink);
}
.wdi-selected-bar__pill em { font-style: normal; color: var(--wdi-ink-3); }
@media (min-width: 992px) {
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar { grid-template-columns: repeat(4, auto); padding: var(--wdi-2) var(--wdi-3); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-selected-bar__summary { grid-row: 1; grid-column: 1; text-align: left; contain: none; }
  /* Empty, it takes no room - not even the gap before the first button. */
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-selected-bar__summary:empty { margin-right: calc(-1 * var(--wdi-3)); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-btn { grid-row: 1; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-catalogue__status,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-my-products__status { grid-row: 2; }
}
@media (max-width: 991px) {
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar > .wdi-selected-bar__summary { min-height: 24px; display: flex; align-items: center; }
  .wdi-selected-bar__pill { height: 24px; padding: 0 var(--wdi-2); font-size: var(--wdi-t-xs); }
}

/* ==================================================================== W2o E: the product page's pills on one row
 *
 * The four pills (Description, Specification, Delivery, the data sheet) wrapped, leaving the fourth
 * alone on a second row. The pill's padding comes down one step (16 -> 12px), and the data-sheet pill is
 * "Data sheet" with "Ask us for the data sheet" as its panel's first line (WDI_Product_Page::info_items).
 * From 1024 to 1279 the summary column is too narrow (444-534px) for four labelled pills with icons
 * (502px): there the icons go, the labels stay. Below 1024 the row does not wrap: it scrolls sideways in
 * one line, as W2k's catalogue filter row does.
 */
.wdi-scope--app .wdi-pinfo__pills .wdi-pill { padding: 0 var(--wdi-3); }
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-scope--app .wdi-pinfo__pills .wdi-pill > .wdi-icon { display: none; }
}
@media (max-width: 1023px) {
  .wdi-scope--app .wdi-pinfo__pills {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
  }
  .wdi-scope--app .wdi-pinfo__pills::-webkit-scrollbar { display: none; }
  .wdi-scope--app .wdi-pinfo__pills .wdi-pill { flex: 0 0 auto; }
}

/* ==================================================================== W2p A: the gradient, in its three places
 *
 * --wdi-grad (the logo's light blue into the brand blue) is the top bar. --wdi-grad-deep (one step
 * darker, white 5.75-8.59:1) is the closing band (W2p C) and the primary button's hover and focus - here
 * for the homepage's own large buttons, which are not .wdi-btn. Nowhere else (design system, W2p rule).
 */
.wdi-front__btn--blue:hover, .wdi-front__btn--blue:focus-visible,
.wdi-front__hero--light .wdi-front__btn--white:hover, .wdi-front__hero--light .wdi-front__btn--white:focus-visible { background: var(--wdi-grad-deep); color: #fff; }

/* The site's promise strip (catalogue, product page, account) used --wdi-tint, the ACTIVE-state colour,
   as a full-width surface. Under the W2p rule a surface is white or the pale ground: pale, the hairline. */
.wdi-trust { background: var(--wdi-pale); border-bottom: 1px solid var(--wdi-line); }

/* ==================================================================== W2p B: the hero's edge, the strip, the brochure band, the logo
 *
 * Rob: too many dark/blue blocks; the navy strip under the hero harsh against the top bar. Under the W2p
 * rule (navy never a background) the light homepage loses its three dark surfaces:
 *   1. the trade counter strip is a WHITE CARD on the hero's grid - the card radius, a soft shadow -
 *      overlapping the hero's foot by half its own height, so the pale ground ends behind it. Navy
 *      icons, body text, "Get directions" a navy link with its chevron. Phone: a 2 x 2 grid.
 *   2. the brochure band is light: white, navy headline, body intro, primary + navy-outline buttons,
 *      the covers on a soft shadow.
 *   3. the step numbers are white discs with a navy outline and number (they were the navy gradient).
 * All three hang off .wdi-front__hero--light, so the blue hero (the rollback) keeps what it had.
 *   4. the logo one step up from 1024 (68 -> 78px) in the same 84px row. There is no compact header.
 *   5. from 1600 the HERO's grid is 1400px (text and tiles; the card on it too). The site container is
 *      not changed (post-review decision, reports/w2p-audit.md). The W2o B overhang is measured from it.
 */
/* 1 */
.wdi-front__hero--light .wdi-front__heroin { padding-bottom: 72px; }
.wdi-front__hero--light + .wdi-front__counter { position: relative; z-index: 2; margin-top: -30px; background: none; border: 0; color: var(--wdi-ink-2); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin {
  background: #fff; border: 1px solid var(--wdi-line); border-radius: var(--wdi-r);
  box-shadow: 0 10px 28px rgba(15, 30, 45, .08), 0 1px 3px rgba(15, 30, 45, .06);
  min-height: 60px; padding-top: 0; padding-bottom: 0; box-sizing: border-box;
  /* it is the .wdi-front__wrap itself: centred, as wide as the wrap's content box (the hero text's edges) */
  width: calc(100% - 2 * var(--wdi-5)); max-width: calc(var(--wdi-container) - 2 * var(--wdi-5)); margin: 0 auto; color: var(--wdi-ink-2); font-size: var(--wdi-t-md);
}
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin b { color: var(--wdi-ink); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin .wdi-icon { color: var(--wdi-navy); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a,
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a:hover { color: var(--wdi-navy); font-weight: var(--wdi-w-semi); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a .wdi-icon { color: var(--wdi-navy); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin a:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: 4px; }
@media (max-width: 782px) {
  .wdi-front__hero--light .wdi-front__heroin { padding-bottom: 96px; }
  .wdi-front__hero--light + .wdi-front__counter { margin-top: -72px; }
  .wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: start;
    width: auto; max-width: none; min-height: 0; padding: 14px 16px; margin: 0 16px; font-size: var(--wdi-t-sm); line-height: 1.35;
  }
  .wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin > * { align-items: flex-start; }
  .wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin .wdi-icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
}
/* 2 */
/* overflow visible: on white the band's clip cut the covers' shadow off in a hard line (the dark band hid it) */
.wdi-front__hero--light ~ .wdi-front__bro { background: #fff; color: var(--wdi-ink); overflow: visible; }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__kicker { color: var(--wdi-blue); }
.wdi-scope--app .wdi-front__hero--light ~ .wdi-front__bro h2.wdi-front__h2 { color: var(--wdi-navy); }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__sub { color: var(--wdi-ink-2); }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__btn--white { background: var(--wdi-btn); color: #fff; box-shadow: 0 6px 18px rgba(21, 101, 192, .22); }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__btn--white:hover,
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__btn--white:focus-visible { background: var(--wdi-grad-deep); color: #fff; }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__btn--ghost { color: var(--wdi-navy); border-color: var(--wdi-navy); background: transparent; }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__btn--ghost:hover { color: var(--wdi-navy); border-color: var(--wdi-navy); background: var(--wdi-pale); }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__cover--front { box-shadow: 0 24px 48px rgba(15, 30, 45, .22), 0 0 0 1px rgba(15, 30, 45, .06); }
.wdi-front__hero--light ~ .wdi-front__bro .wdi-front__cover--back { opacity: .7; filter: none; box-shadow: 0 18px 36px rgba(15, 30, 45, .16); }
/* 3 */
.wdi-front__hero--light ~ .wdi-front__section .wdi-front__n { background: #fff; color: var(--wdi-navy); border: 2px solid var(--wdi-navy); box-sizing: border-box; box-shadow: 0 6px 16px rgba(15, 30, 45, .08); }
/* 4 */
@media (min-width: 1024px) { .wdi-header__logo img { height: 88px; } }   /* W21: 78 -> 88 (Keely: a little larger) */
/* 5 - W2q B: the hero-only 1400 grid is gone; every section is on the site container (--wdi-container). */

/* ==================================================================== W2p C: the closing band, grounded
 *
 * The one coloured band: --wdi-grad-deep turned round (270deg), so its dark end (#0D47A1, white 8.59:1)
 * is under the text and its lighter end (#1565C0, 5.75:1) behind the dog. No flat navy, no scrim.
 * The cut-out is placed, not pasted:
 *   - a soft elliptical contact shadow under him (.wdi-front__ctashadow: black 18%, blurred);
 *   - his bottom 14% fades to transparent into the band, so there is no floor line;
 *   - a faint white lift (6%) behind his head.
 * grounded: full height, right-aligned. small: 70% of the band's height, bottom-right, flush with the
 * edge; his top edge (the photo crops the roll there) fades too. bubbles: no dog, the W2l bubbles.
 * Phone: the picture above the text, right-aligned, fading into the band; the buttons never on it.
 */
.wdi-front__cta.wdi-front__cta--dog.wdi-front__cta--grounded,
.wdi-front__cta.wdi-front__cta--dog.wdi-front__cta--small,
.wdi-front__cta.wdi-front__cta--dog.wdi-front__cta--bubbles { background: linear-gradient(270deg, var(--wdi-grad-deep-stops)); }
.wdi-front__cta--grounded::before, .wdi-front__cta--small::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
}
.wdi-front__cta--grounded::before { top: -6%; right: 4%; width: 46%; height: 80%; }
.wdi-front__cta--small::before { top: 22%; right: 6%; width: 36%; height: 64%; }
.wdi-front__ctashadow {
  position: absolute; z-index: 0; pointer-events: none; bottom: 8px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .18); filter: blur(14px);
}
.wdi-front__cta--grounded .wdi-front__ctashadow { right: 3%; width: 38%; }
.wdi-front__cta--small .wdi-front__ctashadow { right: 2%; width: 27%; bottom: 10px; height: 26px; }
.wdi-front__cta--grounded .wdi-front__ctaimg,
.wdi-front__cta--small .wdi-front__ctaimg { position: absolute; z-index: 1; top: auto; right: 0; bottom: 0; left: auto; width: auto; margin: 0; }
.wdi-front__cta--grounded .wdi-front__ctaimg { height: 100%; }
/* flush right: the photo crops him on that side, and the crop must sit on the band's edge, not inside it */
.wdi-front__cta--small .wdi-front__ctaimg { height: 70%; right: 0; }
.wdi-front__cta--grounded .wdi-front__ctaimg img,
.wdi-front__cta--small .wdi-front__ctaimg img {
  display: block; width: auto; height: 100%; max-width: none; object-fit: contain; object-position: right bottom;
  /* W2q C: no filter. The drop-shadow drew the "box line": the cut-out is cropped tight to the dog, so his
     shadow fell outside the img box, and the mask clipped it there in a straight line. */
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.wdi-front__cta--small .wdi-front__ctaimg img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 86%, transparent 100%);

}
.wdi-front__ctabubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wdi-front__ctabubbles--narrow { display: none; }
.wdi-front__cta--bubbles .wdi-front__ctamain { width: 52%; }
@media (max-width: 767px) {
  .wdi-front__cta--grounded::before, .wdi-front__cta--small::before { top: 0; right: 0; width: 80%; height: 230px; }
  .wdi-front__cta--grounded .wdi-front__ctaimg,
  .wdi-front__cta--small .wdi-front__ctaimg { position: relative; display: flex; justify-content: flex-end; width: 100%; right: auto; }
  .wdi-front__cta--grounded .wdi-front__ctaimg { height: 230px; }
  .wdi-front__cta--small .wdi-front__ctaimg { height: 170px; padding: 24px 16px 0 0; box-sizing: content-box; }
  .wdi-front__cta--grounded .wdi-front__ctashadow { top: 196px; bottom: auto; right: 6%; width: 58%; height: 26px; }
  .wdi-front__cta--small .wdi-front__ctashadow { top: 168px; bottom: auto; right: 10%; width: 42%; height: 20px; }
  .wdi-front__cta--grounded .wdi-front__ctamain, .wdi-front__cta--small .wdi-front__ctamain { width: auto; padding-top: var(--wdi-4); }
  .wdi-front__ctabubbles--wide { display: none; }
  .wdi-front__ctabubbles--narrow { display: block; }
  .wdi-front__cta--bubbles .wdi-front__ctamain { width: auto; padding-top: 88px; }
}

/* ==================================================================== W2p E3: the primary button's hover, wherever it is also a .button
 *
 * The sign-in button's label vanished on hover: it is .wdi-btn--primary AND WooCommerce's .button, and
 * the generic ".button:hover" reset sets color: --wdi-blue-dark !important (for a pale hover); the sign-in
 * rule then put the dark background back but never the white text - dark blue on dark blue, 1:1. Any
 * primary that is also a .button now hovers and focuses like every other primary: the deep gradient,
 * white text (5.75:1 at its lightest). Found by tests/tools/button-states.mjs; nothing else failed.
 */
.wdi-scope--app.wdi-scope--app .wdi-btn--primary.button:hover,
.wdi-scope--app.wdi-scope--app .wdi-btn--primary.button:focus,
.wdi-scope--app.wdi-scope--app .wdi-btn--primary.button:focus-visible { background: var(--wdi-grad-deep) !important; border-color: var(--wdi-btn-hover) !important; color: #fff !important; }

/* ==================================================================== W2p E1: list thumbnails 96px
 *
 * The catalogue list and My products: the picture is 96px from 1280, 80px from 1024 to 1279, and as W2m
 * left it below that (72 from 768, 64 on a phone). The picture column grows by exactly what the picture
 * needs (+20px of cell padding); no other column, the type and the selection bar do not change, and a row
 * only grows where the picture is now the tallest thing in it. sizes= follows, so the 300w source serves
 * 2x at 96 (192px). The W2m hover preview reads the same data-wdi-peek and is unchanged.
 */
@media (min-width: 1024px) {
  .wdi-scope--app.wdi-scope--app table.wdi-rows:has(img.wdi-thumb) .wdi-col-thumb { width: 100px; }
  .wdi-scope--app.wdi-scope--app table.wdi-rows .wdi-col-thumb img.wdi-thumb { width: 80px; height: 80px; }
}
@media (min-width: 1280px) {
  .wdi-scope--app.wdi-scope--app table.wdi-rows:has(img.wdi-thumb) .wdi-col-thumb { width: 116px; }
  .wdi-scope--app.wdi-scope--app table.wdi-rows .wdi-col-thumb img.wdi-thumb { width: 96px; height: 96px; padding: 5px; }
}

/* ==================================================================== W2p E2: the dashboard's Your products open the product
 *
 * The rows of "Your products" on My account were not links. Now the product's name is the link, its
 * ::after stretched over the whole row (the list cards' pattern, W2k C3), so the picture and the name -
 * and the rest of the row - open the product page; the quantity box and Add / Enquire sit above it
 * (z-index 2) and keep their own jobs. One link per row for a keyboard and a screen reader: the name; the
 * picture is decoration. A chevron after the name on hover and focus. The picture is the list's size:
 * 96px from 1280, 80 from 1024, 72 from 768, 64 on a phone.
 */
.wdi-scope--app .wdi-dash__mine .wdi-dash__minerow { position: relative; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink { color: var(--wdi-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minego { width: 16px; height: 16px; flex: none; color: var(--wdi-blue); opacity: 0; transform: translateX(-2px); transition: opacity .15s ease, transform .15s ease; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minerow:hover .wdi-dash__minelink,
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink:focus-visible { color: var(--wdi-blue); }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minerow:hover .wdi-dash__minego,
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink:focus-visible .wdi-dash__minego { opacity: 1; transform: none; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink:focus-visible { outline: none; }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minelink:focus-visible::after { box-shadow: inset 0 0 0 2px var(--wdi-blue); border-radius: var(--wdi-r); }
.wdi-scope--app .wdi-dash__mine .wdi-dash__minerow:hover { background: var(--wdi-pale); }
.wdi-scope--app .wdi-dash__mine .wdi-table__qty input, .wdi-scope--app .wdi-dash__mine .wdi-table__add .wdi-btn { position: relative; z-index: 2; }
.wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb { width: 84px; }
.wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb img { width: 64px; height: 64px; padding: 4px; box-sizing: border-box; object-fit: contain; background: #fff; border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); }
@media (min-width: 768px) { .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb { width: 92px; } .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb img { width: 72px; height: 72px; } }
@media (min-width: 1024px) { .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb { width: 100px; } .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb img { width: 80px; height: 80px; } }
@media (min-width: 1280px) { .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb { width: 116px; } .wdi-scope--app .wdi-dash__mine .wdi-table--compact .wdi-table__thumb img { width: 96px; height: 96px; padding: 5px; } }
@media (prefers-reduced-motion: reduce) { .wdi-scope--app .wdi-dash__mine .wdi-dash__minego { transition: none; } }
/* The phone card (system 31's stack) sizes its picture at 48px with a deliberately heavy selector; the
   dashboard's Your products keeps the list's phone size, 64px, with the same weight plus its own scope. */
@media (max-width: 767px) {
  html body.wdi-scope--app .wdi-dash__mine table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__media img { width: 64px; height: 64px; }
}

/* ==================================================================== W2q B: one container, 1400 from 1600
 *
 * Rob: the page did not feel full width, and at 1920 the header sat on 1280 while the catalogue, product
 * page, basket and footer sat on the parent theme's 1620 (its ".container { min-width: 1620px }" from 1700)
 * - so nothing lined up. Now every page uses --wdi-container (1280 below 1600 - each container exactly as
 * it was there - and 1400 from 1600) with the same 24px gutter from 1600:
 *   .wdi-wrap (header, footer), the nav, .wdi-front__wrap (every homepage section, the hero and its card
 *   included), the dashboard, and the parent theme's .container (catalogue, product page, My account,
 *   basket, footer) - its 1620 min-width cancelled.
 * The catalogue's sidebar keeps the width it has at 1440 (330px); the table takes the rest, and in it the
 * product name column (the only fluid one). The product page's 1290 cap is lifted so it fills the
 * container, its two columns in the same proportion.
 */
@media (min-width: 1600px) {
  .wdi-wrap { padding: 0 var(--wdi-gutter); }
  .wdi-nav__inner { max-width: calc(var(--wdi-container) - 2 * var(--wdi-gutter)); }
  .wdi-chrome .container { max-width: var(--wdi-container); min-width: 0; width: 100%; padding-left: var(--wdi-gutter); padding-right: var(--wdi-gutter); }
  .wdi-footer .end.container .last { padding-left: calc((100vw - var(--wdi-container)) / 2 + var(--wdi-gutter)); padding-right: calc((100vw - var(--wdi-container)) / 2 + var(--wdi-gutter)); }
  .wdi-scope--app .row > .col-lg-3:has(.chw-widget) { flex: 0 0 330px; max-width: 330px; }
  .wdi-scope--app .row > .col-lg-3:has(.chw-widget) + [class*="col-lg-"] { flex: 1 1 0; max-width: none; }
  .wdi-scope--app div.product.type-product { max-width: none; }
}

/* 2. The hero's height: more room above and below the text. From 1024 the hero is 560px tall (was 460)
      and its padding one step up; the tile cluster stays centred on the text; the counter card's overlap is
      its own (half its height) and does not move. On a phone, the padding one step up only. */
@media (min-width: 1024px) {
  .wdi-front__hero--light .wdi-front__heroin { min-height: 560px; padding-top: 64px; padding-bottom: 88px; }
}
@media (max-width: 782px) {
  .wdi-front__hero--light .wdi-front__heroin { padding-top: 36px; padding-bottom: 104px; }
}

/* ==================================================================== W2q C: the closing band, composed
 *
 * 1. THE LINE. A faint darker rectangle showed round the dog's picture. It was his drop-shadow (filter on
 *    the img): the cut-out is cropped tight to him, so the shadow fell outside the img's box - and the
 *    bottom-fade mask clips everything to that box, so the shadow stopped in a straight line along it
 *    (-14 levels of blue at the edge, measured). The filter is gone; the files were re-encoded with every
 *    alpha under 8 set to 0 (there were 360-1,740 such pixels per file).
 * 2. THE COMPOSITION, from 1280. The text starts about 11% in from the band's left (it hugged the
 *    padding), and the dog meets it: about one Sign in button's width (~140px) after the button,
 *    bottom-anchored and grounded as W2p C - the contact shadow and the lift now travel with him (his
 *    picture's own ::after and ::before). The photo crops him on the right in a straight line, so that side
 *    fades as his foot does; where the band is narrower than he needs, the band's own edge clips him.
 *    1024-1279 and the phone keep W2p's layout (only the line fix applies).
 */
@media (min-width: 1280px) {
  .wdi-front__cta.wdi-front__cta--dog.wdi-front__cta--grounded { display: flex; align-items: stretch; height: 440px; }
  /* the picture comes first in the markup (it sits behind the text on a phone); here the text leads */
  .wdi-front__cta--grounded .wdi-front__ctamain { order: 1; flex: 0 0 auto; width: auto; max-width: 52%; padding-left: 11%; padding-right: 0; }
  .wdi-front__cta--grounded .wdi-front__ctaimg {
    /* 28px after the text block, whose box ends 113px past the Sign in button (its widest line), so the gap
       from the Sign in button to his nearest edge is 141px: about one button's width (Sign in is 135). */
    order: 2; position: relative; inset: auto; flex: 0 0 auto; align-self: flex-end; height: 100%; width: auto; margin: 0 0 0 28px; z-index: 1;
  }
  .wdi-front__cta--grounded .wdi-front__ctaimg img {
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%), linear-gradient(to right, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 86%, transparent 100%), linear-gradient(to right, #000 84%, transparent 100%); mask-composite: intersect;
  }
  /* The lift and the contact shadow belong to him now, not to the band's right-hand side. */
  .wdi-front__cta--grounded::before, .wdi-front__cta--grounded .wdi-front__ctashadow { display: none; }
  .wdi-front__cta--grounded .wdi-front__ctaimg::before {
    content: ''; position: absolute; z-index: -1; top: -8%; left: 8%; width: 84%; height: 82%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
  }
  .wdi-front__cta--grounded .wdi-front__ctaimg::after {
    content: ''; position: absolute; z-index: -1; bottom: 8px; left: 12%; width: 70%; height: 34px; border-radius: 50%; pointer-events: none;
    background: rgba(0, 0, 0, .18); filter: blur(14px);
  }
  /* small and bubbles: the text moves in the same way; their picture stays where W2p put it. */
  .wdi-front__cta--small .wdi-front__ctamain, .wdi-front__cta--bubbles .wdi-front__ctamain { padding-left: 11%; }
}

/* ==================================================================== W2r C: the closing band, 60% of the hero
 *
 * Rob: the band was nearly as tall as the hero (440 of 560) and read as a second hero. From 1024 it is
 * 336px - 60% of the hero's 560 - and the dog is CROPPED to head and shoulders, not scaled down: he keeps
 * the 440px he had, top-aligned so his head is whole, and the band's foot cuts him across the chest. His
 * bottom fade is moved up to end exactly there (62-76% of his height: 336 / 440 = 76%), so the crop has no
 * edge; his cropped right side still fades (from 1280); his contact shadow sits at the band's foot. The
 * headline, intro and buttons keep their sizes; the band's vertical padding comes down to fit (32px).
 * W2q C's composition is unchanged: the text 11% in, the dog one button's width from Sign in.
 * Phone: unchanged - the height follows the content, the dog above the text.
 */
@media (min-width: 1024px) {
  .wdi-front__cta.wdi-front__cta--dog.wdi-front__cta--grounded { --wdi-band-h: 336px; --wdi-dog-h: 440px; height: var(--wdi-band-h); min-height: 0; }
  .wdi-front__cta--grounded .wdi-front__ctamain { min-height: var(--wdi-band-h); padding-top: var(--wdi-6); padding-bottom: var(--wdi-6); }
  .wdi-front__cta--grounded .wdi-front__ctaimg img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 76%); mask-image: linear-gradient(to bottom, #000 62%, transparent 76%);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-front__cta--grounded .wdi-front__ctaimg { top: 0; bottom: auto; height: var(--wdi-dog-h); }
}
@media (min-width: 1280px) {
  .wdi-front__cta--grounded .wdi-front__ctaimg { align-self: flex-start; height: var(--wdi-dog-h); }
  .wdi-front__cta--grounded .wdi-front__ctaimg img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 76%), linear-gradient(to right, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 62%, transparent 76%), linear-gradient(to right, #000 84%, transparent 100%); mask-composite: intersect;
  }
  /* his picture overhangs the band's foot by 104px; the shadow belongs at the foot, not at his hidden one */
  .wdi-front__cta--grounded .wdi-front__ctaimg::after { bottom: calc(var(--wdi-dog-h) - var(--wdi-band-h) + 8px); }
}

/* ==================================================================== W2s A2: the hero's text charcoal, the category bar darker
 *
 * Rob: the hero's headline and intro charcoal - not jet black, not the navy; the category bar's labels a
 * darker, full-strength colour. Both use --wdi-ink-charcoal (#2A2E35). The accent phrase stays the brand blue,
 * the kicker too. The bar keeps its weight and size, and its hover / current state (blue).
 * Its DROPDOWN PANELS were the menu plugin's dark grey (#3D3D4C) with white links - a dark surface the W2p
 * rule forbids, and missed by the W2p audit because it only shows on hover - and the panel was positioned at
 * top: 0, so it covered its own parent (the first item sat on "Hospitality"). Now: a white panel under the
 * bar (top: 100%), the hairline and the soft card shadow, its links charcoal at the bar's weight; hover and
 * the current page as the bar's (blue, on the tint).
 */
.wdi-scope--app .wdi-front__hero--light h1, .wdi-front__hero--light h1 { color: var(--wdi-ink-charcoal); }
.wdi-front__hero--light .wdi-front__lede { color: var(--wdi-ink-charcoal); }
.wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > ul.wp-megamenu-sub-menu {
  top: 100%; background: #fff; border: 1px solid var(--wdi-line); border-radius: 0 0 var(--wdi-r) var(--wdi-r);
  box-shadow: 0 12px 28px rgba(15, 30, 45, .10); padding: 6px 0;
}
.wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > ul.wp-megamenu-sub-menu li a {
  color: var(--wdi-ink-charcoal); background: transparent; font-weight: var(--wdi-w-semi);
}
.wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > ul.wp-megamenu-sub-menu li a:hover,
.wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > ul.wp-megamenu-sub-menu li a:focus-visible,
.wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > ul.wp-megamenu-sub-menu li.current-menu-item > a {
  color: var(--wdi-nav-hover-ink); background: var(--wdi-nav-hover-bg);
}

/* ==================================================================== W2t B: three doors (?wdi_hero_style=doors)
 *
 * Three equal panels (white, the hairline, the card radius) on the pale hero, each one link to its category.
 * THE GEOMETRY, every panel the same: the product's visible height is --door-p of a panel --door-h tall;
 * its top breaks the panel's top edge by 12% of its own height; its foot rests 16px above the label block
 * (--door-label, fixed). Inside the 1px border, so  p = (h - 2 - label - 16) / 0.88:
 *      1280-1599  190 x 420, label 72  ->  product 375px = 0.893 of the panel
 *      1600+      208 x 459 (the 1400 container, x1.094)  ->  419px = 0.914
 *      1024-1279  140 x 310, label 56  ->  268px = 0.866 (the two-column hero's narrowest)
 *      phone      62% wide x 300, label 48  ->  266px = 0.886
 * The cut-outs are cropped to their opaque box, so the img box IS the product. A product is never
 * squeezed to the panel's width: a squat one would be wider than its panel - the silhouette rule
 * (class-wdi-home-doors.php) is what keeps it inside.
 * Light from the top-left, as the still life: every shadow falls to the bottom-right.
 */
.wdi-front__hero--doors { --door-w: 190px; --door-h: 420px; --door-label: 72px; --door-gap: 24px;
  --door-p: calc((var(--door-h) - 2px - var(--door-label) - 16px) / .88); }
.wdi-front__doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, var(--door-w)); gap: var(--door-gap); justify-self: end; align-self: center; }
.wdi-front__door { position: relative; margin: 0; height: var(--door-h); box-sizing: border-box; background: #fff; border: 1px solid var(--wdi-line); border-radius: var(--wdi-r);
  box-shadow: 4px 8px 22px rgba(15, 30, 45, .07); transition: transform .18s ease, box-shadow .18s ease; }
.wdi-front__doorimg { position: absolute; left: 50%; top: calc(var(--door-p) * -.12); height: var(--door-p); transform: translateX(-50%); display: block; pointer-events: none; }
.wdi-front__doorimg img { display: block; height: 100%; width: auto; max-width: none; filter: drop-shadow(6px 12px 12px rgba(15, 30, 45, .16)); }
.wdi-front__doorlabel { position: absolute; left: 18px; right: 40px; bottom: 0; height: var(--door-label); box-sizing: border-box; padding-bottom: 18px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
/* the name IS the link; its ::after stretches over the whole door, the product's overhang included */
.wdi-front__doorlink { font-size: 14px; font-weight: var(--wdi-w-semi); line-height: 1.3; color: var(--wdi-ink-charcoal); text-decoration: none; white-space: nowrap; }
.wdi-front__doorlink::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; top: calc(var(--door-p) * -.12); border-radius: var(--wdi-r); }
.wdi-front__doorlink:focus-visible { outline: none; }
.wdi-front__doorn { font-size: 13px; line-height: 1.3; color: var(--wdi-ink-2); }
.wdi-front__door > svg { position: absolute; right: 16px; bottom: 20px; width: 18px; height: 18px; color: var(--wdi-blue); transition: transform .18s ease; }
.wdi-front__door:hover, .wdi-front__door:has(.wdi-front__doorlink:focus-visible) { transform: translateY(-4px); box-shadow: 8px 18px 36px rgba(15, 30, 45, .15); }
.wdi-front__door:hover > svg, .wdi-front__door:has(.wdi-front__doorlink:focus-visible) > svg { transform: translateX(4px); }
.wdi-front__door:has(.wdi-front__doorlink:focus-visible) { box-shadow: 8px 18px 36px rgba(15, 30, 45, .15), var(--wdi-focus); }
@media (prefers-reduced-motion: reduce) { .wdi-front__door, .wdi-front__door > svg { transition: none; } }

@media (min-width: 1024px) {
  .wdi-front__hero--doors .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) calc(3 * var(--door-w) + 2 * var(--door-gap)); padding-top: 56px; padding-bottom: 84px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .wdi-front__hero--doors { --door-w: 140px; --door-h: 310px; --door-label: 56px; --door-gap: 18px; } }
@media (min-width: 1600px) { .wdi-front__hero--doors { --door-w: 208px; --door-h: 459px; } .wdi-front__hero--doors .wdi-front__heroin { padding-top: 72px; } }   /* room for the larger overhang */

/* Phone and tablet: the doors directly under the buttons - a snap-scroll row - and the proof line after.
   The text block's children join the hero's one-column grid so the row can sit between them. */
@media (max-width: 1023px) {
  .wdi-front__hero--doors { --door-h: 300px; --door-label: 48px; }
  .wdi-front__hero--doors .wdi-front__herotext { display: contents; }
  .wdi-front__hero--doors .wdi-front__heroin > * { min-width: 0; }
  .wdi-front__hero--doors .wdi-front__kicker { order: 1; } .wdi-front__hero--doors .wdi-front__heroin h1 { order: 2; }
  .wdi-front__hero--doors .wdi-front__lede { order: 3; } .wdi-front__hero--doors .wdi-front__actions { order: 4; }
  .wdi-front__hero--doors .wdi-front__doors { order: 5; } .wdi-front__hero--doors .wdi-front__proof { order: 6; margin-top: 4px; }
  .wdi-front__hero--doors .wdi-front__doors { display: flex; gap: 14px; justify-self: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: calc(var(--door-p) * .12 + 12px) 16px 20px; scroll-padding-inline: 16px; }
  .wdi-front__hero--doors .wdi-front__doors::-webkit-scrollbar { display: none; }
  .wdi-front__hero--doors .wdi-front__door { flex: 0 0 62%; scroll-snap-align: start; }
  .wdi-front__hero--doors .wdi-front__doorlabel { left: 16px; padding-bottom: 11px; }
  .wdi-front__hero--doors .wdi-front__door > svg { bottom: 14px; }
}

/* ==================================================================== W2u B: the catalogue table fits its container on desktop
 *
 * THE OVERFLOW (Rob, R30 at 1920 on /shop/?wdi_show=mine): nine columns, five of them nowrap (code,
 * pack, price, stock, Add) plus the name's 14em minimum, add up to more than the column beside the
 * sidebar - 1,037px of table in a 1,022px box at 1600+, and far worse below (831px at 1280, 696 at 1024).
 * Which page broke depended on the products in it: R30's ordered products carry long codes
 * (DWHWL50BNEW, 111px) and long packs ("250 × 750ml"), the cloths category's happen not to. The box
 * scrolled, so wdi-chrome.js added "Swipe for more" - the narrow mode - and the scrollbar was at the
 * foot of a fifty-row table, off the screen: the Add buttons simply looked cut off.
 * Padding cannot fix it: at 1280 the fixed columns alone leave the name 35px.
 * THE FIX: from 1024 the code and pack move under the name, as My products, the basket and the
 * dashboard already show them (.wdi-col-name__meta: "CODE · PACK"), and their two columns go; every
 * column but the name shrinks to its content (width: 1%), so the name takes the rest. 1024-1439 the
 * price and stock may wrap, the quantity, Add, price and stock cells are tighter and the "ordered
 * before" chip may wrap - so a name is at most two lines from 1280 (1440+ needs none of it). Below 1024
 * the table is as it was: every column, inside its scroll box - the narrow mode only happens there.
 */
.wdi-scope--app table.wdi-rows .wdi-rows__codepack { display: none; }
@media (min-width: 1024px) {
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-sku,
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-pack { display: none; }
  .wdi-scope--app table.wdi-rows .wdi-rows__codepack { display: block; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-name { width: auto; min-width: 0; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) :is(th, td):not(.wdi-col-name) { width: 1%; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-thumb { width: 100px; }
}
@media (min-width: 1280px) {
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-thumb { width: 116px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-tag-ordered { white-space: normal; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-price,
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-stock { white-space: normal; min-width: 64px; }
  /* "Price on request" and the per-unit line are nowrap inside the cell; here they may wrap too, so a title's
     kept last pair ("Polycarbonate 34CW-135", 165px - see wdi-chrome.js) still fits beside them at 1024 */
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-price * { white-space: normal; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) :is(.wdi-col-qty, .wdi-col-add, .wdi-col-price, .wdi-col-stock) { padding-left: 8px; padding-right: 8px; }
  .wdi-scope--app table.wdi-rows:has(.wdi-rows__codepack) .wdi-col-add .wdi-btn { padding: 0 var(--wdi-4); }
}

/* ==================================================================== W2u C: the Your-products information strip
 *
 * Under the catalogue bar when Your products is on (WDI_Catalogue_Filter::summary()): the system's
 * notice in its information form - here a pale ground and a hairline all round (it is a state, not an
 * alert, so no left rule), the info icon, the line in charcoal and the count after it in the muted ink,
 * and "Show all N products" (a secondary button) at the right. On a phone it stacks, the button the
 * full width. The fallback version has the line and no button.
 */
.wdi-scope--app .wdi-notice.wdi-notice--strip {
  align-items: center; gap: var(--wdi-3); margin: 0 0 var(--wdi-5); padding: var(--wdi-3) var(--wdi-4);
  background: var(--wdi-pale); border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); color: var(--wdi-ink-charcoal);
}
.wdi-scope--app .wdi-catfilter__noticeicon { flex: none; width: 20px; height: 20px; color: var(--wdi-info); }
.wdi-scope--app .wdi-catfilter__noticetext { margin: 0; font-size: var(--wdi-t-md); line-height: 1.45; color: var(--wdi-ink-charcoal); }
.wdi-scope--app .wdi-catfilter__noticelead { font-weight: var(--wdi-w-semi); }
.wdi-scope--app .wdi-catfilter__noticecount { color: var(--wdi-ink-2); margin-left: .35em; white-space: nowrap; }
.wdi-scope--app .wdi-catfilter__noticecount::before { content: '\00B7'; margin-right: .35em; color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-notice--strip .wdi-catfilter__showall { flex: none; margin-left: auto; white-space: nowrap; }
@media (max-width: 639px) {
  .wdi-scope--app .wdi-notice.wdi-notice--strip { flex-wrap: wrap; align-items: flex-start; }
  .wdi-scope--app .wdi-notice--strip .wdi-catfilter__noticetext { flex: 1 1 0; min-width: 0; }
  .wdi-scope--app .wdi-notice--strip .wdi-catfilter__showall { flex: 1 1 100%; margin-left: 0; justify-content: center; }
}

/* ==================================================================== W2u D: the sidebar's categories in charcoal
 *
 * The catalogue sidebar's category and sub-category names, and the phone drawer's, in --wdi-ink-charcoal
 * - the nav's ink since W2s A2 - at the same size and weight. Unchanged: the counts (muted), the category
 * being viewed (the tint, semibold, --wdi-ink), and hover and focus (the sidebar's white row; the drawer's
 * blue). THE LABEL ("PRODUCT CATEGORIES") STAYS MUTED - see reports/w2u-screens/sidebar/: in charcoal, a
 * small uppercase line is the same ink as the list under it and starts to read as its first item; muted,
 * it is plainly the list's label. The same holds for every label of the kind (the drawer's headings, the
 * catalogue bar's "Per page", field labels), so none of them changes.
 */
.wdi-scope--app .chw-widget li.cat-item:not(.current-cat):not(:has(> .wdi-cat__tick:hover)) > a:not(:hover) { color: var(--wdi-ink-charcoal); }
.wdi-drawer .wdi-drawer__cats .wdi-drawer__link:not(:hover),
.wdi-drawer .wdi-drawer__cats .wdi-drawer__sublink:not(:hover) { color: var(--wdi-ink-charcoal); }

/* ==================================================================== W2x A -> W8 A1: the homepage's four small marks, now BRAND BLUE
 * W8 (Rob): amber is not used on the homepage. The four marks W2x gave it keep their shape and move to the system's
 * blue: the kicker dash (--wdi-blue), the step discs (the tint, a blue rim, dark-blue numerals 8.59:1), the claim
 * icons (--wdi-blue), the category chevron on hover/focus (--wdi-blue). The original W2x note follows, for the record.
 *
 * W2w's R2, built: the hero's colour carried down the page in four small, repeated marks, in the
 * Hospitality door's own yellow (--wdi-accent-amber / --wdi-accent-yellow, wdi-system.css). Nothing else
 * takes it; never a surface, a button, the hero or the dog band.
 *   1. a 20px dash before the four section kickers (Shop by category, The brochure, Trade accounts, Who we
 *      work with) - not the hero's kicker
 *   2. the three step discs: a pale tint of the yellow (18% over white), a 2px amber rim, charcoal numerals
 *   3. the three closing claim cards' icons
 *   4. the category cards' chevron, on hover and focus only (at rest it stays the hairline grey)
 */
.wdi-front > .wdi-front__section .wdi-front__head .wdi-front__kicker::before,
.wdi-front > .wdi-front__bro .wdi-front__kicker::before {
  content: ''; display: inline-block; width: 20px; height: 2px; margin: 0 10px 0 0; vertical-align: middle; transform: translateY(-1px);
  border-radius: 2px; background: var(--wdi-blue);
}
.wdi-front__hero--light ~ .wdi-front__section .wdi-front__n {
  background: var(--wdi-tint); color: var(--wdi-blue-dark); border-color: var(--wdi-blue);
}
.wdi-front__claims--cards .wdi-icon { color: var(--wdi-blue); }
.wdi-front__cat:hover .wdi-front__catgo, .wdi-front__cat:focus-visible .wdi-front__catgo { color: var(--wdi-blue); }

/* ==================================================================== W2x B: the category tiles, cut out and on white
 *
 * W2w's R1, built. Each "What we supply" card's product (WDI_Home_Doors::TILE_DEFAULTS, or its wp-admin row)
 * is a cut-out with a transparent ground, so the pale image well goes and the product sits on the card's
 * white with a soft shadow, light from the top-left as the doors'. Its size: 1.3x what the photograph showed
 * (the photo filled 88% of the 76px box, 67px; 1.3x is 87px), never more than 1.25x the box (95px). The box
 * keeps its place, so the card's text, border and chevron do not move. A category whose tile is still a
 * photograph (no cut-out) keeps its well.
 * Phone (to 782px): the image box is the card's full width; it grows 96 -> 110px tall so the 1.3x product fits in it.
 */
.wdi-front__catimg.wdi-front__catimg--cut { background: transparent; overflow: visible; }
.wdi-front__catimg--cut picture { display: contents; }
.wdi-front__catimg--cut img {
  flex: none; max-width: 87px; max-height: 87px; width: auto; height: auto; mix-blend-mode: normal;
  filter: drop-shadow(3px 6px 6px rgba(15, 30, 45, .16));
}
@media (max-width: 782px) {
  .wdi-front__catimg.wdi-front__catimg--cut { height: 110px; }
  .wdi-front__catimg--cut img { max-width: 92%; max-height: 110px; }   /* 110 = 1.3 x the photo's 84px */
}

/* ==================================================================== W2y A: the gallery's thumbnail strip
 * Inside the gallery, under the one main image (WooCommerce's second figure is unhooked). Each thumbnail is a
 * button in the list-thumbnail card style (W2m E): white, the hairline, the 12px radius, the picture contained -
 * 72px from 768, 64px below. The one showing is outlined in blue (2px drawn: the border and an inset ring), hover
 * darkens the hairline, focus is the system ring. The strip never wraps: it scrolls sideways (snapping) when there
 * are more than fit, which on a phone is the brief's "thumbnails scroll horizontally under the main image". Its 4px
 * padding keeps the focus ring inside the gallery's rounded, clipped wrapper. */
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--wdi-2);
  margin: var(--wdi-3) 0 0;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  background: transparent;
}
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  background: var(--wdi-bg);
  line-height: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item:hover { border-color: var(--wdi-ink-3); }
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item.is-current {
  border-color: var(--wdi-blue);
  box-shadow: inset 0 0 0 1px var(--wdi-blue);
}
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item.is-current:focus-visible { box-shadow: inset 0 0 0 1px var(--wdi-blue), var(--wdi-focus); }
.wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
}
@media (max-width: 767px) {
  .wdi-scope--app.wdi-scope--app div.product .woocommerce-product-gallery .wdi-pthumbs__item { width: 64px; height: 64px; }
}

/* ---------------------------------------------------------------------------------------------------------
 * W3c C: the brochure band's thumbnail. One small angled cover - the brochure's actual cover image
 * (WDI_Home::brochure_cover) - beside the copy and the buttons. It is in the flow, not absolutely placed, and its
 * width/height attributes give it an aspect ratio, so its box is reserved before the image arrives (no layout shift).
 * The card radius is the system's small one (6px, as before); the shadow is the band's existing cover shadow.
 * --------------------------------------------------------------------------------------------------------- */
.wdi-front__bro .wdi-front__broin--thumb { grid-template-columns: 300px minmax(0, 1fr); min-height: 0; padding-top: 48px; padding-bottom: 48px; }
/* W8 A2: the cover and the text are ONE centred group - the two columns size to their content and the pair is centred
   in the band, rather than the cover pinned left and the text running to the right edge */
@media (min-width: 768px) {
  .wdi-front__bro .wdi-front__broin--thumb { grid-template-columns: auto minmax(0, 560px); justify-content: center; column-gap: var(--wdi-7); }
}
.wdi-front__bro .wdi-front__covers--thumb { height: auto; display: flex; justify-content: center; align-items: center; }
.wdi-front__bro .wdi-front__cover--thumb { position: static; display: block; width: 210px; height: auto; border-radius: 6px; background: #fff;
  transform: rotate(-6deg); box-shadow: 0 24px 48px rgba(15, 30, 45, .22), 0 0 0 1px rgba(15, 30, 45, .06); }
@media (max-width: 1023px) {
  .wdi-front__bro .wdi-front__broin--thumb { grid-template-columns: 240px minmax(0, 1fr); }
  .wdi-front__bro .wdi-front__cover--thumb { width: 180px; }
}
@media (max-width: 782px) {
  .wdi-front__bro .wdi-front__broin--thumb { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 40px; }
  .wdi-front__bro .wdi-front__covers--thumb { padding: 8px 0 28px; }
  .wdi-front__bro .wdi-front__cover--thumb { width: 150px; transform: rotate(-5deg); }
}

/* W3e: the fallback template (the 404 page, and any view without its own template) - Top Products, our cards. */
.wdi-fallback { padding-block: var(--wdi-7) var(--wdi-8); }
.wdi-fallback .wdi-section-title { margin: 0 0 var(--wdi-4); }
/* W3f 2D: the 404's one line - muted body text (--wdi-ink-3, the secondary-text token), above Top Products */
.wdi-fallback__note { margin: 0 0 var(--wdi-5); font-size: var(--wdi-t-md); line-height: 1.5; color: var(--wdi-ink-3); }

/* ---------------------------------------------------------------------------------------------------------
 * W4: working smarter. The basket check ("Before you order") is a collapsible card; Standing orders and
 * Preferences are account pages of cards. System tokens only; no amber (the accent is homepage-only, section 21).
 * --------------------------------------------------------------------------------------------------------- */
/* .wdi-card is a flex box; a <details> needs block layout, and the cart page centres text */
.wdi-card.wdi-check { display: block; margin: 0 0 var(--wdi-5); padding: 0; text-align: left; box-shadow: var(--wdi-shadow); }
/* W8: "Before you order" reads as a note - the system's info tint, its rows' hairlines a shade of the same blue */
.wdi-scope--app .wdi-card.wdi-check { background: var(--wdi-info-bg); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__item, .wdi-scope--app .wdi-card.wdi-check .wdi-check__foot { border-top-color: #C9DDF5; }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__count { background: #fff; }
.wdi-scope--app.woocommerce-cart .woocommerce > .wdi-check { grid-area: check; }
.wdi-check__head { list-style: none; display: flex; align-items: center; gap: var(--wdi-3); padding: var(--wdi-4) var(--wdi-5); cursor: pointer; font-weight: 600; color: var(--wdi-ink); }
.wdi-check__head::-webkit-details-marker { display: none; }
.wdi-check__title { display: inline-flex; align-items: center; gap: var(--wdi-2); flex: 1 1 auto; }
.wdi-check__title .wdi-icon { color: var(--wdi-blue); }
.wdi-check__count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--wdi-tint); color: var(--wdi-blue-dark); font-size: var(--wdi-t-sm); display: inline-flex; align-items: center; justify-content: center; }
.wdi-check__chev { transition: transform .15s; color: var(--wdi-ink-3); }
.wdi-check[open] .wdi-check__chev { transform: rotate(180deg); }
.wdi-check__body { padding: 0 var(--wdi-5) var(--wdi-4); }
.wdi-check__note { margin: 0 0 var(--wdi-3); font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-check__list { list-style: none; margin: 0; padding: 0; }
.wdi-check__item { display: flex; align-items: center; justify-content: space-between; gap: var(--wdi-3); padding: var(--wdi-3) 0; border-top: 1px solid var(--wdi-line); color: var(--wdi-ink-2); font-size: var(--wdi-t-md); }
.wdi-check__item .wdi-btn { flex: 0 0 auto; }
.wdi-check__foot { display: flex; gap: var(--wdi-5); padding-top: var(--wdi-3); border-top: 1px solid var(--wdi-line); font-size: var(--wdi-t-sm); }
@media (max-width: 600px) { .wdi-check__item { flex-direction: column; align-items: flex-start; } }

.wdi-standing__new { display: flex; flex-wrap: wrap; gap: var(--wdi-3); margin: 0 0 var(--wdi-5); }
.wdi-standing__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wdi-4); }
.wdi-standing__item, .wdi-standing__form { padding: var(--wdi-5); }
.wdi-standing__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--wdi-2) var(--wdi-4); }
.wdi-standing__head .wdi-card__title { margin: 0; }
.wdi-standing__when { margin: 0; color: var(--wdi-ink-2); font-size: var(--wdi-t-md); }
.wdi-standing__lines { list-style: none; margin: var(--wdi-3) 0; padding: 0; }
.wdi-standing__lines li { display: flex; align-items: center; gap: var(--wdi-3); padding: var(--wdi-2) 0; border-top: 1px solid var(--wdi-line); color: var(--wdi-ink); font-size: var(--wdi-t-md); }
.wdi-standing__lines li > :first-child { flex: 1 1 auto; }
.wdi-standing__lines .wdi-num { white-space: nowrap; }
.wdi-standing__sku { color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); }
.wdi-standing__lines .wdi-qty { width: 80px; }
.wdi-standing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--wdi-3) var(--wdi-4); margin: var(--wdi-4) 0; }
.wdi-standing__form label { display: block; margin: 0 0 var(--wdi-1); font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); font-weight: 600; }
.wdi-standing__grid input, .wdi-standing__grid select, .wdi-standing__form select, .wdi-standing__lines .wdi-qty { width: 100%; min-height: 44px; padding: 0 var(--wdi-3); border: 1px solid var(--wdi-line); border-radius: 8px; background: #fff; color: var(--wdi-ink); font: inherit; box-sizing: border-box; }
.wdi-standing__lines .wdi-qty { width: 88px; }
.wdi-standing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3); margin: var(--wdi-3) 0 0; }
.wdi-standing__delete summary { list-style: none; cursor: pointer; }
.wdi-standing__delete summary::-webkit-details-marker { display: none; }
.wdi-standing__delete p { margin: var(--wdi-2) 0 0; color: var(--wdi-ink-2); font-size: var(--wdi-t-sm); }
.wdi-standing-from-basket { margin: var(--wdi-4) 0 0; }
.wdi-dash__standing-next { margin: 0; color: var(--wdi-ink); font-weight: 600; }
.wdi-dash__standing-lines { margin: var(--wdi-1) 0 0; color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); }

.wdi-prefs__form { padding: var(--wdi-5); }
.wdi-prefs__list { list-style: none; margin: 0 0 var(--wdi-4); padding: 0; }
.wdi-prefs__item { padding: var(--wdi-4) 0; border-top: 1px solid var(--wdi-line); }
.wdi-prefs__item:first-child { border-top: 0; padding-top: 0; }
.wdi-prefs__label { font-weight: 600; color: var(--wdi-ink); }
.wdi-prefs__help { margin: var(--wdi-1) 0 0 calc(40px + var(--wdi-3)); color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); }
.wdi-smarter-page { max-width: 640px; margin: var(--wdi-7) auto; padding: var(--wdi-6); }
.wdi-smarter-page__form { margin: 0 0 var(--wdi-4); }   /* W3g 3B: the one Turn off / Skip this one button */

/* ---------------------------------------------------------------------------------------------------------
 * W7: ACCESSIBILITY FIXES (reports/w7-accessibility.md)
 * --------------------------------------------------------------------------------------------------------- */
/* The skip link: off screen until it has focus, then the system's primary button in the top-left corner. */
.wdi-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  padding: var(--wdi-2) var(--wdi-4); border-radius: 0 0 var(--wdi-r) 0;
  background: var(--wdi-btn); color: #fff; font-weight: var(--wdi-w-bold); text-decoration: none;
}
.wdi-skip:focus, .wdi-skip:focus-visible { left: 0; outline: none; box-shadow: var(--wdi-focus); }
#wdi-content:focus { outline: none; }
/* The active card's line under the title: ink-3 on the card tint was 4.22:1; ink-2 is 6.5:1. */
.wdi-scope--app .wdi-card--active .wdi-card__sub { color: var(--wdi-ink-2); }
/* WooCommerce's privacy-policy link at checkout was told apart from its text by colour alone (1.08:1). */
.wdi-scope--app .woocommerce-privacy-policy-text a { text-decoration: underline; }
/* The segmented toggles (Sort by, Months, View as) showed no focus. */
.wdi-scope--app.wdi-scope--app .wdi-seg__btn:focus-visible,
.wdi-scope--app.wdi-scope--app .wdi-toggle__btn:focus-visible { outline: none; box-shadow: var(--wdi-focus); position: relative; z-index: 1; }

/* ==================================================================== W8 B5: "Show all N products" - a gentle amber note
 * The one place amber is used off the homepage: a light tint of --wdi-accent-amber (14% over white, #F5EDDB) with a soft
 * amber border (#E7D1A6) and CHARCOAL text (--wdi-ink-charcoal, 12.4:1 measured) - a note that there is more, not an alert.
 * The same element serves the shop and every category page (WDI_Catalogue_Filter::summary).
 */
.wdi-scope--app.wdi-scope--app .wdi-catfilter__showall.wdi-btn {
  background: #F5EDDB; color: var(--wdi-ink-charcoal); border-color: #E7D1A6;
  --wdi-hover-bg: #F0E2C7; --wdi-hover-ink: var(--wdi-ink-charcoal);
}
.wdi-scope--app.wdi-scope--app .wdi-catfilter__showall.wdi-btn:hover,
.wdi-scope--app.wdi-scope--app .wdi-catfilter__showall.wdi-btn:focus-visible { background: #F0E2C7; color: var(--wdi-ink-charcoal); border-color: #D9BC83; }

/* ==================================================================== W8 B7: "You've ordered this before" in the success tint
 * The system's success pair (--wdi-ok on --wdi-ok-bg, 4.54:1), at the code line's size, starting at the product name's left
 * edge on the line under it - in the list, the grid and search results alike. No indent, no 11px type.
 */
.wdi-scope--app.wdi-scope--app .wdi-tag-ordered {
  display: inline-block; margin: 2px 0 0; vertical-align: baseline;
  background: var(--wdi-ok-bg); color: var(--wdi-ok); border-color: transparent;
  font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); line-height: 1.5; padding: 0 var(--wdi-2);
}
.wdi-scope--app.wdi-scope--app .wdi-col-name .wdi-tag-ordered { display: table; margin-left: 0; }   /* its own line, flush with the name */
.wdi-scope--app.wdi-scope--app .wdi-gridhistory .wdi-tag-ordered { display: inline-block; margin: 0 0 2px; }

/* ==================================================================== W8 B6: the chosen category as a chip in the results bar
 * "Gloves x" beside the view toggles - the system's action chip, ticked state (the tint), the x at the label's size.
 * It clears the category and keeps show / sort / search. The sidebar's half-ticked parent clears the whole branch.
 */
.wdi-scope--app .wdi-catbar__filter { background: var(--wdi-tint); color: var(--wdi-blue-dark); border-color: var(--wdi-blue); font-weight: var(--wdi-w-semi); }
.wdi-scope--app .wdi-catbar__x { margin-left: 2px; font-size: 1.15em; line-height: 1; }

/* The tick must take its own click: the theme gives the row's link z-index 5, which lay over the (invisible) tick, so a
 * click on the box went to the link - harmless while both pointed to the same place, wrong now that a half-ticked
 * parent's tick clears the branch and its name opens the parent. */
.wdi-scope--app .chw-widget li.cat-item > .wdi-cat__tick { z-index: 6; }

/* ==================================================================== W8 B8: the header search's suggestions
 * The panel is the search field's width, or 640px if the field is narrower (it grows leftwards from the field's right
 * edge, never past the viewport). Each row: a 56px thumbnail; the name at body size (--wdi-t-lg), up to two lines;
 * the code line; then price and stock together on one line; the quantity and Add right-aligned. At a phone's width
 * the panel is the full width and the thumbnail 48px.
 */
.wdi-header__search .wdi-suggest { left: auto; right: 0; width: max(100%, min(640px, calc(100vw - 32px))); }
.wdi-suggest__row { align-items: center; }
.wdi-suggest__tile { flex: 0 0 56px; width: 56px; height: 56px; }
.wdi-suggest__body { flex: 1 1 auto; min-width: 0; }
.wdi-suggest__body .wdi-suggest__main { display: block; }
.wdi-suggest__name {
  font-size: var(--wdi-t-lg); white-space: normal; text-overflow: clip;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.wdi-suggest__body .wdi-suggest__figures { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--wdi-3); min-width: 0; margin: 2px 0 0; text-align: left; }
.wdi-suggest__body .wdi-suggest__price,
.wdi-suggest__body .wdi-suggest__stock { display: inline-flex; align-items: center; gap: 4px; }
.wdi-suggest__act { margin-left: auto; }
@media (max-width: 639px) {
  .wdi-header__search .wdi-suggest { left: 0; right: 0; width: auto; }
  .wdi-suggest__row { flex-wrap: nowrap; padding: var(--wdi-3); gap: var(--wdi-2); }
  .wdi-suggest__tile { flex-basis: 48px; width: 48px; height: 48px; }
  .wdi-suggest__body .wdi-suggest__main { flex-basis: auto; }
  .wdi-suggest__body .wdi-suggest__figures { margin-left: 0; flex-wrap: nowrap; gap: 0 var(--wdi-2); white-space: nowrap; }
  .wdi-suggest__act { flex: 0 0 auto; }
}

/* ==================================================================== W8 F14: each standing order its own card
 * A white card with the system's hairline and radius, a clear gap between cards. Title left; on the right "Next order
 * Wednesday 21 October" in the emphasis style (ink, semibold) with the cadence quieter beneath it. The lines inside;
 * the actions in a footer row - pale ground, a hairline above, running to the card's edges.
 */
.wdi-scope--app .wdi-standing__list { gap: var(--wdi-6); }
.wdi-scope--app .wdi-standing__item {
  background: var(--wdi-bg); border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); box-shadow: var(--wdi-shadow-sm, none);
  padding: var(--wdi-5) var(--wdi-5) 0; overflow: hidden;
}
.wdi-scope--app .wdi-standing__head { align-items: flex-start; }
.wdi-scope--app .wdi-standing__when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.wdi-scope--app .wdi-standing__next { color: var(--wdi-ink); font-weight: var(--wdi-w-semi); font-size: var(--wdi-t-lg); }
.wdi-scope--app .wdi-standing__cadence { color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); }
.wdi-scope--app .wdi-standing__item > .wdi-standing__lines { margin: var(--wdi-4) 0 0; }
.wdi-scope--app .wdi-standing__item > .wdi-standing__actions {
  margin: var(--wdi-4) calc(-1 * var(--wdi-5)) 0; padding: var(--wdi-3) var(--wdi-5);
  background: var(--wdi-pale); border-top: 1px solid var(--wdi-line);
}
@media (max-width: 639px) {
  .wdi-scope--app .wdi-standing__item { padding: var(--wdi-4) var(--wdi-4) 0; }
  .wdi-scope--app .wdi-standing__when { align-items: flex-start; text-align: left; }
  .wdi-scope--app .wdi-standing__item > .wdi-standing__actions { margin-left: calc(-1 * var(--wdi-4)); margin-right: calc(-1 * var(--wdi-4)); padding: var(--wdi-3) var(--wdi-4); }
}

/* ==================================================================== W8 G16: a small angled cover on each brochure tile
 * Top-right of the tile, 56px wide, turned 6deg, a white edge and the soft shadow - the same treatment as the
 * homepage band's cover. The tile keeps a right gutter for it, so the title and meta never run under it (390 too).
 */
.wdi-scope--info .wdi-brochure__card.has-cover { position: relative; padding-right: calc(56px + var(--wdi-6)); min-height: 112px; }
.wdi-scope--info .wdi-brochure__cover {
  position: absolute; top: var(--wdi-4); right: var(--wdi-4); width: 56px; height: auto; aspect-ratio: 600 / 849;
  object-fit: cover; transform: rotate(6deg); border: 2px solid #fff; border-radius: 3px; box-shadow: 0 4px 10px rgba(16, 42, 67, .18);
  pointer-events: none;
}
@media (max-width: 639px) {
  .wdi-scope--info .wdi-brochure__card.has-cover { padding-right: calc(48px + var(--wdi-5)); min-height: 96px; }
  .wdi-scope--info .wdi-brochure__cover { width: 48px; top: var(--wdi-3); right: var(--wdi-3); }
}

/* ==================================================================== W9 Part 0: the bar previews
 * brand: the top bar and the nav are one band on --wdi-grad-deep (the top bar's own lighter gradient is not repeated).
 * topbar: the trade-counter strip's words sit on the left of the blue top bar and the strip goes - three bands, not four.
 */
.wdi-band { background: var(--wdi-grad-deep); }
.wdi-band .wdi-topbar { background: transparent; }
.wdi-band .wdi-topbar__inner { min-height: 30px; }
.wdi-band .wdi-nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.wdi-topbar--trust .wdi-topbar__inner { justify-content: flex-start; }
.wdi-topbar__trust { margin-right: auto; color: #fff; }
@media (max-width: 782px) {
  .wdi-topbar--trust .wdi-topbar__inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-block: 6px; }
  .wdi-topbar__trust { flex: 1 0 100%; margin: 0; text-align: center; line-height: 1.35; }
}

/* ==================================================================== W9 Part 1: the phone, from the W8 walk at 390
 * 1. Every control reaches a 44 x 44 hit area by PADDING (with a matching negative margin where the drawn size must
 *    not change): the top bar's links, the list view's row checkboxes (the cell is the label), basket check's
 *    Add / Dismiss / Turn this off.
 * 2. The header's icon labels at --wdi-t-xs (12px), never wrapping.
 * 3. The standing order's footer below 640: a two-column grid - Edit | Skip, Pause | Delete - so Delete is never alone.
 */
@media (max-width: 639px) {
  .wdi-topbar__item { padding-block: 15px; margin-block: -15px; min-width: 44px; justify-content: center; }
  .wdi-topbar__inner { overflow: visible; }
  .wdi-scope--app .wdi-pickhit { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px 12px 4px; margin: -12px -20px -12px 0; position: relative; z-index: 1; cursor: pointer; }   /* never left of the cell: the table scroller clips there */
  .wdi-scope--app .wdi-check a.wdi-link, .wdi-scope--app .wdi-check__foot a, .wdi-scope--app .wdi-check .wdi-btn--sm {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-block: 0; }
  .wdi-scope--app .wdi-check__foot { display: flex; flex-wrap: wrap; gap: 0 var(--wdi-4); }
  .wdi-header__text, .wdi-header__label, .wdi-short { font-size: var(--wdi-t-xs) !important; white-space: nowrap; }
  .wdi-scope--app .wdi-standing__item > .wdi-standing__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wdi-2); }
  .wdi-scope--app .wdi-standing__actions > .wdi-btn, .wdi-scope--app .wdi-standing__delete > summary { width: 100%; justify-content: center; min-height: 44px; }
  .wdi-scope--app .wdi-standing__delete { display: block; }
  .wdi-scope--app .wdi-standing__delete[open] { display: block; grid-column: 1 / -1; }
  .wdi-scope--app .wdi-standing__delete > p { grid-column: 1 / -1; }
}

/* W9 1 (from the re-walk): the remaining standalone links at 390 reach 44px tall by padding with a matching negative
 * margin - the drawn layout does not move. (Footer link lists and product names inside a row are left: padding
 * there would overlap the next target.)
 * W13: NOT the dashboard's Your products name (.wdi-dash__minelink). It is a stretched link - its ::after covers the
 * whole row, so the row (64px and more) is already the target - and the position: relative this rule gave it made the
 * link its own containing block, shrinking the ::after to the name: on a phone the picture and the rest of the row
 * stopped opening the product (w2p E2). */
@media (max-width: 639px) {
  .wdi-basket__remove, .wdi-scope--app .wdi-dash a.wdi-link, .wdi-listcard__name,
  .wdi-suggest__enquire, .wdi-front__doorlink, .wdi-crumbs a, .wdi-chrome .breadcrumb a, .wdi-chrome .breadcrumb a:first-child, a.wdi-basket__change, a.wdi-acct__edit {
    display: inline-block; padding: 12px 4px; margin: -12px -4px; min-width: 44px; position: relative; }
}
@media (max-width: 639px) { .wdi-selected-bar .wdi-btn { min-height: 44px; } }
/* W13: the same for a saved list's card when the whole card is its link - its name stays a stretched link on a phone */
@media (max-width: 639px) { .wdi-scope--app .wdi-listcard--link .wdi-listcard__name { position: static; } }

/* ==================================================================== W11 Part 1: over budget, still open for card
 * A card-eligible customer over budget sees the same red banner, as a notice rather than an error, so checkout stays
 * open with card the only method. It looks like the error it replaces: the bad rule, the bad meter, the bad title.
 */
.wdi-scope--app.wdi-scope--app .woocommerce-info[data-wdi-budget="block"] { border-left-color: var(--wdi-bad); background: var(--wdi-bad-bg); }
.wdi-scope--app .woocommerce-info[data-wdi-budget="block"] .wdi-meter__fill { background: var(--wdi-bad); }
.wdi-scope--app .woocommerce-info[data-wdi-budget="block"] .wdi-budget__title { color: var(--wdi-bad); }

/* ==================================================================== W11 Part 4: the brochure dialog (visitors)
 * The system dialog (.wdi-dialog): the two labelled fields, an error under each in --wdi-bad, the consent line in the
 * muted help style, Cancel and Download. The honeypot is off-screen, not display:none (some bots skip hidden fields).
 */
.wdi-leads .wdi-leads__field { margin: 0 0 var(--wdi-3); }
.wdi-leads .wdi-leads__field .wdi-label { display: block; margin-bottom: var(--wdi-1); }
.wdi-leads .wdi-leads__field .wdi-field { width: 100%; min-height: 44px; }
.wdi-leads .wdi-field[aria-invalid="true"] { border-color: var(--wdi-bad); }
.wdi-leads__err { display: block; min-height: 0; margin-top: 4px; font-size: var(--wdi-t-sm); color: var(--wdi-bad); }
.wdi-leads__err:empty { display: none; }
.wdi-leads__consent { margin: var(--wdi-2) 0 0; }
.wdi-leads__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==================================================================== W11 Part 2: no blue prices in the basket or checkout
 * A price is never a link, so it never takes the link colour. The per-line unit price was --wdi-blue (W2a, from the app
 * prototype) and the checkout's order total navy: both are now the line subtotal's ink, --wdi-ink. Weight and size keep
 * the hierarchy (the unit price 700, the subtotal bold, the total --wdi-t-xl).
 */
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-price,
.wdi-scope--app.wdi-scope--app .woocommerce-cart-form table.cart td.product-price .amount { color: var(--wdi-ink); }
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td .amount,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.order-total td bdi { color: var(--wdi-ink); }
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total th,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td,
.wdi-scope--app.wdi-scope--app .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount { color: var(--wdi-ink); }   /* the basket's own total box */

/* ==================================================================== W11 Part 3: deep content and the category intros
 * The category intro is the system's lede (as on the info pages): --wdi-t-lg, --wdi-ink-2 (body ink - it is read, not
 * skimmed), 72ch, under the heading and above the catalogue bar. FAQs in their pill panel: the question semibold ink, the
 * answer body ink. Goes with: a plain list of name links with the code, hairlines between, under the content.
 */
.wdi-cat-intro { font-size: var(--wdi-t-lg); line-height: 1.6; color: var(--wdi-ink-2); max-width: 72ch; margin: var(--wdi-2) 0 var(--wdi-5); }
.wdi-cat-intro p { margin: 0 0 var(--wdi-3); }
.wdi-cat-intro p:last-child { margin-bottom: 0; }
.wdi-faq { margin: 0; }
.wdi-faq dt { margin: var(--wdi-4) 0 var(--wdi-1); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-faq dt:first-child { margin-top: 0; }
.wdi-faq dd { margin: 0; color: var(--wdi-ink-2); line-height: 1.6; }
.wdi-goeswith { margin: var(--wdi-6) 0; }
.wdi-goeswith__list { list-style: none; margin: var(--wdi-3) 0 0; padding: 0; }
.wdi-goeswith__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--wdi-3); padding: var(--wdi-2) 0; border-top: 1px solid var(--wdi-line); }
.wdi-goeswith__list li:last-child { border-bottom: 1px solid var(--wdi-line); }
.wdi-goeswith__code { color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); }
@media (max-width: 639px) { .wdi-goeswith__list a.wdi-link { display: inline-block; padding-block: 12px; margin-block: -12px; } }   /* W9: 44px tall */

/* ==================================================================== W11b Part 2: Before you order - the inline top-up
 * A less-than-usual line carries "Add N" at its end (the system's small secondary button, 44px tall at 390 as the
 * panel's other actions). Done, the line becomes a short confirmation in --wdi-ok with the in-stock tick, outside the
 * count - the same success pair as "You've ordered this before".
 */
.wdi-scope--app .wdi-check__item[data-case="qty"] { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3); }
.wdi-scope--app .wdi-check__item[data-case="qty"] .wdi-check__text { flex: 1 1 16em; }
.wdi-scope--app .wdi-check__item.is-done { display: flex; align-items: center; gap: var(--wdi-2); color: var(--wdi-ok); font-weight: var(--wdi-w-semi); }
.wdi-scope--app .wdi-check__item.is-done .wdi-icon { flex: 0 0 auto; }
@media (max-width: 639px) { .wdi-scope--app .wdi-check__topup { min-height: 44px; } }

/* ==================================================================== W11b Part 3: the category page - one toolbar row, the lede panel
 * TOOLBAR. From 1280: one row - Grid/List, Your products/All products, In stock and the category chip on the left; Per
 * page and sort on the right, centred on the chips' line. Below 1280 it wraps on purpose: the chips' row, then the
 * dropdowns' row, both left-aligned. (The phone layout, W2k, keeps its own grid.)
 */
@media (min-width: 768px) {
  .wdi-scope--app.wdi-scope--app .wdi-catbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3); }
  .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catfilter { gap: var(--wdi-2); flex-wrap: nowrap; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar__end { flex: 1 0 100%; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: var(--wdi-2); margin: 0; width: auto; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catbar__perpage select { width: 76px; min-width: 0; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar select.orderby { width: auto; min-width: 0; max-width: 220px; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar__perpage, .wdi-scope--app.wdi-scope--app .wdi-catbar .woocommerce-ordering { flex: 0 0 auto; }
}
@media (min-width: 768px) {
  .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-seg__btn, .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-chip { white-space: nowrap; }
}
/* the phone (W2k grid): the category chip (W8 B6) had no area and was auto-placed into the grid, pushing Categories
   and the sort select off the right edge - it gets its own row, under the filters, above Per page and Sort */
@media (max-width: 767px) {
  .wdi-scope--app.wdi-scope--app .wdi-catbar { grid-template-areas: "view filt cats" "chip chip chip" "end end end"; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar > .wdi-catbar__filter { grid-area: chip; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 1280px) {
  .wdi-scope--app.wdi-scope--app .wdi-catbar { flex-wrap: nowrap; gap: var(--wdi-2); }
  .wdi-scope--app.wdi-scope--app .wdi-catbar__end { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
}
/* 1280-1439, the narrowest one-row width (the bar is ~800px inside): the "Per page" label is kept for a screen reader but
   not drawn (the 50 / 100 select says what it is), the sort select is 150px and the gaps and pill padding a step tighter */
@media (min-width: 1280px) {   /* W12: from 1280 up, so the category chip has room at 1440 too */
  .wdi-scope--app.wdi-scope--app .wdi-catbar { gap: var(--wdi-2); }
  .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catbar__perpage .wdi-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar select.orderby { width: 150px; max-width: 150px; text-overflow: ellipsis; }
  .wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-seg__btn { padding-left: 12px; padding-right: 12px; }
}

/* LEDE PANEL (.wdi-catlede). Across the content column, above the toolbar: the pale ground (the strip's own tint, never
 * the amber) with the hairline and the system radius. The eyebrow in the small-caps label style, inline before the
 * standfirst (semibold ink); the rest in body ink clamped to two lines; "More about this range" and the sub-category
 * chips share the foot row. Collapsed: about 120px at 1440. Below 640 the chips move into the expanded part (the phone
 * has its Categories button) so the collapsed panel stays near 160px.
 */
.wdi-scope--app .wdi-catlede { background: var(--wdi-pale); border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); padding: 10px var(--wdi-4) 10px; margin: 0 0 var(--wdi-4); max-width: none; }
.wdi-scope--app .wdi-catlede p { margin: 0; }
.wdi-scope--app .wdi-catlede__lead { font-size: var(--wdi-t-lg); line-height: 1.45; color: var(--wdi-ink); }
.wdi-scope--app .wdi-catlede__eyebrow { display: inline; margin-right: var(--wdi-2); font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--wdi-ink-3); vertical-align: 1px; }
.wdi-scope--app .wdi-catlede__stand { font-weight: var(--wdi-w-semi); }
.wdi-scope--app .wdi-catlede__rest { margin-top: 2px; font-size: var(--wdi-t-md); line-height: 1.5; color: var(--wdi-ink-2); max-width: 90ch; }
.wdi-scope--app .wdi-catlede__rest p + p { margin-top: var(--wdi-2); }
.wdi-scope--app .wdi-catlede__rest:focus { outline: none; }
.wdi-scope--app .wdi-catlede.is-clamped .wdi-catlede__rest { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.wdi-scope--app .wdi-catlede.is-clamped .wdi-catlede__rest p + p { display: none; }
.wdi-scope--app .wdi-catlede__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--wdi-2); margin-top: 6px; }
.wdi-scope--app .wdi-catlede__foot:empty { display: none; }
.wdi-scope--app .wdi-catlede__more { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; margin-right: var(--wdi-2); border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--wdi-t-md); font-weight: var(--wdi-w-semi); color: var(--wdi-blue); text-decoration: underline; text-underline-offset: 2px; }
.wdi-scope--app .wdi-catlede__more[hidden] { display: none; }
.wdi-scope--app .wdi-catlede__more:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: 2px; }
.wdi-scope--app .wdi-catlede__more .wdi-icon { width: 14px; height: 14px; }
/* the sub-categories: one row that scrolls sideways (the phone filter's pattern) - never a second row of chips */
.wdi-scope--app .wdi-catlede__foot { flex-wrap: nowrap; }
.wdi-scope--app .wdi-catlede__more { flex: 0 0 auto; }
.wdi-scope--app .wdi-catlede__subs { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.wdi-scope--app .wdi-catlede__subs::-webkit-scrollbar { display: none; }
.wdi-scope--app .wdi-catlede__subs .wdi-chip { flex: 0 0 auto; white-space: nowrap; }
.wdi-scope--app .wdi-catlede.is-open .wdi-catlede__foot { flex-wrap: wrap; }
.wdi-scope--app .wdi-catlede.is-open .wdi-catlede__subs { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.wdi-scope--app .wdi-catlede__subs .wdi-chip { min-height: 28px; padding: 2px 10px; font-size: var(--wdi-t-sm); background: var(--wdi-bg); }
@media (max-width: 639px) {
  .wdi-scope--app .wdi-catlede { padding: 10px var(--wdi-3); }
  .wdi-scope--app .wdi-catlede.is-clamped .wdi-catlede__subs { display: none; }
  .wdi-scope--app .wdi-catlede__subs .wdi-chip { min-height: 44px; }
  .wdi-scope--app .wdi-catlede__more { min-height: 28px; padding-block: 8px; margin-block: -8px; }   /* a 44px hit area, drawn at 28 */
  .wdi-scope--app .wdi-catlede__foot { margin-top: 4px; }
}

/* ==================================================================== W12 Part 1: the strip lives in the top bar
 * The trade-counter line is in the blue top bar, left, with email and phone right; the strip under the menu is gone
 * (WDI_Chrome::STRIP_MODE = topbar). One line at every width - as the bar narrows it drops, in order: the hours (they
 * are in the footer), the email, the phone, until on a phone it keeps the delivery line alone, centred.
 *   >= 1200  hours · delivery          email | phone
 *   900-1199 delivery                  email | phone
 *   640-899  delivery                          phone
 *   < 640    delivery (centred)
 */
.wdi-topbar--trust .wdi-topbar__inner { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; }
.wdi-topbar--trust .wdi-topbar__trust { flex: 1 1 auto; min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.wdi-topbar--trust .wdi-topbar__item, .wdi-topbar--trust .wdi-topbar__sep { flex: 0 0 auto; }
@media (max-width: 1199px) { .wdi-topbar--trust .wdi-topbar__hours, .wdi-topbar--trust .wdi-topbar__dot { display: none; } }
@media (max-width: 899px) { .wdi-topbar--trust .wdi-topbar__item[href^="mailto:"], .wdi-topbar--trust .wdi-topbar__sep { display: none; } }
@media (max-width: 782px) {
  .wdi-topbar--trust .wdi-topbar__inner { flex-wrap: nowrap; padding-block: 0; row-gap: 0; }
  .wdi-topbar--trust .wdi-topbar__trust { flex: 1 1 auto; margin: 0; text-align: left; line-height: 1; }
}
@media (max-width: 639px) {
  .wdi-topbar--trust .wdi-topbar__item { display: none; }
  .wdi-topbar--trust .wdi-topbar__trust { text-align: center; }
}
.wdi-footer__hours .wdi-icon { flex: 0 0 auto; }


/* ==================================================================== W12 Part 2: one type scale for the product tabs
 * Description, Specification, Delivery, FAQs and Data sheet share it: the heading as it was (--wdi-t-lg, semibold,
 * ink); every body line - paragraphs, lists, the specification's rows, the FAQs' questions and answers - the system's
 * body copy (--wdi-t-lg, line-height 1.6), body ink; ONE gap between paragraphs, list blocks and FAQ pairs
 * (--wdi-3, 12px). FAQ questions and specification labels are semibold ink - the same weight as each other. The small
 * note under a panel (.wdi-pinfo__note) keeps --wdi-t-sm. Signed in or not, the same (scope-free selectors).
 */
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel p, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel li, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel dt,
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel dd, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel td, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel th {
  font-size: var(--wdi-t-lg); line-height: 1.6;
}
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel p, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel ul, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel ol { margin-top: 0; margin-bottom: var(--wdi-3); color: var(--wdi-ink-2); }
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel > :last-child, .wdi-pinfo.wdi-pinfo .wdi-pinfo__panel p:last-child { margin-bottom: 0; }
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel p.wdi-pinfo__note { font-size: var(--wdi-t-sm); }
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel dt { font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-pinfo.wdi-pinfo .wdi-pinfo__panel dd { color: var(--wdi-ink-2); }
.wdi-pinfo.wdi-pinfo .wdi-faq dt { margin: var(--wdi-3) 0 0; }
.wdi-pinfo.wdi-pinfo .wdi-faq dt:first-child { margin-top: 0; }
.wdi-pinfo.wdi-pinfo .wdi-faq dd { margin: 0; }

/* ==================================================================== W12 Part 3: the lede panel, again - and the toolbar's long chip
 * The eyebrow is its own line; the standfirst always starts under it. No sub-category chips (the sidebar lists them).
 * A decorative mark sits top right: 96px, one colour - the panel's tint 25% darker (#CFDEEE on --wdi-pale) - bleeding
 * 12px past the corner and clipped by the panel's rounded edge; the text keeps clear of it on a wide screen. On a phone
 * it is 48px and sits beside the eyebrow, so the text keeps its full width.
 */
.wdi-scope--app .wdi-catlede { position: relative; overflow: hidden; }
.wdi-scope--app .wdi-catlede__eyebrow { display: block; margin: 0 0 2px; }
.wdi-scope--app .wdi-catlede__mark { position: absolute; top: -12px; right: -12px; width: 96px; height: 96px; color: #CFDEEE; pointer-events: none; }
.wdi-scope--app .wdi-catlede__eyebrow, .wdi-scope--app .wdi-catlede__lead, .wdi-scope--app .wdi-catlede__rest, .wdi-scope--app .wdi-catlede__foot { position: relative; }
@media (min-width: 640px) { .wdi-scope--app .wdi-catlede__lead, .wdi-scope--app .wdi-catlede__rest { padding-right: 76px; } }
@media (max-width: 639px) { .wdi-scope--app .wdi-catlede__mark { width: 48px; height: 48px; top: -8px; right: -8px; } }

/* the category chip in the toolbar: at most 220px, the name ellipsised, the x always visible; title = the full name */
.wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catbar__filter { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; min-width: 0; }
.wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catbar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdi-scope--app.wdi-scope--app .wdi-catbar .wdi-catbar__x { flex: 0 0 auto; }

/* ==================================================================== W12 Part 4: the standing order's calendar
 * The next four weeks, Monday first, beside the order's lines (under them below 768, full width). A 7-column grid of
 * day numbers at --wdi-t-xs; today has a hairline box; a run is a filled --wdi-blue dot behind its number (white
 * number); the next run is ringed (a 2px --wdi-blue-dark ring with a white gap); a skipped run is hollow and struck;
 * paused, the whole grid is muted. aria-hidden: the "Next: ..." line under it carries the same information.
 */
.wdi-scope--app .wdi-standing__body { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: var(--wdi-5); align-items: start; margin-top: var(--wdi-4); }
.wdi-scope--app .wdi-standing__body > .wdi-standing__lines { margin: 0; }
.wdi-scope--app .wdi-socal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wdi-scope--app .wdi-socal__h { font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi); color: var(--wdi-ink-3); text-align: center; letter-spacing: .04em; }
.wdi-scope--app .wdi-socal__d { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; font-size: var(--wdi-t-xs); color: var(--wdi-ink-2); font-variant-numeric: tabular-nums; }
.wdi-scope--app .wdi-socal__d > span { position: relative; white-space: nowrap; }
.wdi-scope--app .wdi-socal__d.is-past { color: var(--wdi-ink-3); opacity: .7; }
.wdi-scope--app .wdi-socal__d.is-today { box-shadow: inset 0 0 0 1px var(--wdi-line-strong); border-radius: var(--wdi-r-sm); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-scope--app .wdi-socal__d.is-run { background: var(--wdi-blue); color: #fff; font-weight: var(--wdi-w-semi); border-radius: 50%; }
.wdi-scope--app .wdi-socal__d.is-next { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wdi-blue-dark); }
.wdi-scope--app .wdi-socal__d.is-skipped { background: transparent; color: var(--wdi-blue); box-shadow: inset 0 0 0 1.5px var(--wdi-blue); }
.wdi-scope--app .wdi-socal__d.is-skipped::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; border-top: 1.5px solid var(--wdi-blue); transform: rotate(-35deg); }
.wdi-scope--app .wdi-socal.is-paused .wdi-socal__grid { opacity: .4; filter: grayscale(1); }
.wdi-scope--app .wdi-socal__text { margin: var(--wdi-2) 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); }
@media (max-width: 767px) {
  .wdi-scope--app .wdi-standing__body { grid-template-columns: minmax(0, 1fr); gap: var(--wdi-4); }
  .wdi-scope--app .wdi-socal__grid { gap: 6px; }
}

/* ==================================================================== W12 Part 6: My products' selection bar
 * One strip the width of the content, on the panel tint with a top hairline (no card radius, no shadow). Left: a
 * filled --wdi-blue count badge (24px, white figure), "selected · £x" in body text, and Clear as a text link. Right:
 * "Add selected to basket" (primary), "Add selected to a list" (secondary), View basket as a text link. Below 640:
 * the count, total and Clear on one line; the two actions full width under it; View basket centred under them.
 * Still sticky at the bottom until it docks under the table. The category page keeps its W2o pill bar.
 */
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3);
  width: auto; max-width: none; margin-left: 0;
  background: var(--wdi-pale); border: 0; border-top: 1px solid var(--wdi-line); border-radius: 0; box-shadow: none;
  padding: var(--wdi-3) var(--wdi-4);
}
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12.is-docked { box-shadow: none; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-selected-bar__summary {
  flex: 0 1 auto; display: flex; align-items: center; gap: var(--wdi-2); margin: 0; padding: 0; min-height: 0; contain: none; text-align: left;
  font-size: var(--wdi-t-md); font-weight: var(--wdi-w-regular); line-height: 1.4; color: var(--wdi-ink);
}
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-selected-bar__summary:empty { display: none; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selbadge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: var(--wdi-blue); color: #fff; font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); font-variant-numeric: tabular-nums;
}
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__text { white-space: nowrap; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__text em { font-style: normal; color: var(--wdi-ink-3); }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__clear,
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__basket {
  appearance: none; background: none; border: 0; padding: 0; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font: inherit; font-size: var(--wdi-t-md); color: var(--wdi-blue-dark); text-decoration: underline; text-underline-offset: 2px;
}
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__clear:hover, .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__basket:hover { color: var(--wdi-ink); }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__clear[hidden] { display: none; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-btn { height: 40px; width: auto; font-size: var(--wdi-t-md); }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > #wdi-mine-add { margin-left: auto; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-long { display: inline; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-short { display: none; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-btn[aria-disabled="true"], .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-btn[aria-disabled="true"]:hover { background: #fff; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-my-products__status { flex: 1 0 100%; text-align: right; }
.wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-my-products__status:empty { display: none; }
@media (max-width: 639px) {
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 { padding: var(--wdi-3); gap: var(--wdi-2); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-selected-bar__summary { flex: 1 1 auto; font-size: var(--wdi-t-sm); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 .wdi-selected-bar__clear { font-size: var(--wdi-t-sm); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-btn { flex: 1 0 100%; height: 44px; justify-content: center; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > #wdi-mine-add { margin-left: 0; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-selected-bar__basket { flex: 1 0 100%; text-align: center; font-size: var(--wdi-t-sm); padding: 4px 0; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--w12 > .wdi-my-products__status { text-align: left; }
}

/* ==================================================================== W12 Part 8: a ticked row's quiet text passes AA
 * axe on My products with rows ticked: on the picked tint (--wdi-tint, #E3F0FF) the meta line and the icon-link labels
 * (#64737F, 4.2:1), the in-stock green (#187E43, 4.4:1) and the backorder amber (#B45309, 4.3:1) fell under 4.5:1.
 * On a ticked row they take the darker secondary ink, a deeper green and a deeper amber. The category list view uses the same rows.
 */
.wdi-scope--app table.wdi-rows tbody tr.is-picked .wdi-col-name__meta,
.wdi-scope--app table.wdi-rows tbody tr.is-picked .wdi-iconlink__label { color: var(--wdi-ink-2); }
.wdi-scope--app table.wdi-rows tbody tr.is-picked .in-stock { color: #136B39; }
.wdi-scope--app table.wdi-rows tbody tr.is-picked .available-on-backorder { color: #92400E; }   /* --wdi-warn #B45309 is 4.3:1 on the tint */

/* ==================================================================== W13 Part 2: the top bar, final
 * 1. The deep gradient (--wdi-grad-deep: --wdi-blue into --wdi-blue-dark). The light end of --wdi-grad (#3EA7F0) put
 *    white 13px text at 2.6:1; the deep one is 5.75:1 at its lightest. The hero and the primary buttons keep --wdi-grad.
 * 2. Below 640 the phone comes back: "020 3005 4433 · Free delivery on orders over £75 excl. VAT" on one line, the
 *    phone a tel: link on the left (44px tall hit area, as W9 set), the delivery line after it. The email stays hidden;
 *    the hours stay in the footer. The phone's icon goes at this width so the line fits at 320.
 */
.wdi-topbar { background: var(--wdi-grad-deep); }
@media (max-width: 639px) {
  .wdi-topbar--trust .wdi-topbar__inner { justify-content: flex-start; gap: 0; }
  .wdi-topbar--trust .wdi-topbar__item[href^="tel:"] { display: inline-flex; order: -1; flex: 0 0 auto; min-width: 0; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: flex-start; font-variant-numeric: tabular-nums; }   /* 44px tall: W9's padding gives 12 + 30 at this type size */
  .wdi-topbar--trust .wdi-topbar__item[href^="tel:"] .wdi-icon { display: none; }
  .wdi-topbar--trust .wdi-topbar__trust { flex: 1 1 auto; min-width: 0; text-align: left; }
  .wdi-topbar--trust .wdi-topbar__trust::before { content: "\00B7" / ""; display: inline-block; padding: 0 .4em; opacity: .8; }
  .wdi-topbar--trust .wdi-topbar__inner { padding-inline: 12px; }
}
/* the narrowest phones: the whole line has to fit, so the type steps down to 11px and the side padding to 8px (still 5.75:1 on the deep blue) */
@media (max-width: 359px) {
  .wdi-topbar--trust .wdi-topbar__inner { font-size: 11px; padding-inline: 8px; }
  .wdi-topbar--trust .wdi-topbar__trust::before { padding: 0 .25em; }
}

/* ==================================================================== W13: the phone header row, signed in
 * W9 gave every header item a 44px hit area. Signed in there are five (Search, Code, Basket, Account, Menu, 249px),
 * and with the 106px logo the row no longer fit at 390 - the icons wrapped to a second row under the logo, against
 * the phone rule above ("one row"). The row has to wrap (the search panel takes a line of its own), so the logo now
 * has a zero flex-basis: the line is decided by the icons alone, and the logo takes what is left, scaled down with
 * its proportions kept (at most its 32px height): about 100px at 390, 71px at 360. Under 70px (a 320 phone) it
 * would be unreadable, so there the icons wrap under a full-size logo as before. A visitor's four items leave it at full size.
 */
@media (max-width: 782px) {
  .wdi-chrome .wdi-header__logo { flex: 1 1 0; min-width: 70px; display: flex; align-items: center; }   /* never under 70px: narrower than that, the icons take the next row */
  .wdi-chrome .wdi-header__logo img { height: auto; width: auto; max-width: 100%; max-height: 32px; }
  .wdi-chrome .wdi-header__links { flex: 0 0 auto; }
}


/* W13 Part 6: the brochure flipbook's page counter ("1/54", the dFlip plugin's label) was #999 on #f7f7f7 - 2.65:1.
   Body ink-2 instead (about 6.3:1 on its grey). Selected by the plugin's own id prefix; the plugin is not edited. */
.df-ui.df-ui .df-ui-page label[for^="df_book_page_number"] { color: var(--wdi-ink-2); }   /* beats dflip.min.css .df-ui .df-ui-page label */

/* ==================================================================== W14 Part 2: basket and checkout line prices
 * In the line tables the unit price and the line subtotal are the product name's size and weight - body (--wdi-t-lg,
 * 15px), semibold, ink, tabular numerals - and the name is set to the same (it was 14px), so a line reads as one
 * level. They were 18px bold, as large as the order total; the order total in the Summary is now the one larger
 * figure on the page. The Summary rows keep their sizes; checkout's Shipping figure (18px bold, a parent-theme bdi
 * rule) takes the Subtotal and VAT style beside it, as the basket's Summary already does.
 */
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-name a,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price .amount,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-price .amount bdi,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .amount,
.wdi-scope--app.wdi-scope--app.woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td.product-subtotal .amount bdi,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total .amount,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total .amount bdi {
  font-size: var(--wdi-t-lg); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); font-variant-numeric: tabular-nums; line-height: 1.4;
}
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name .product-quantity { font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); }
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.shipping td .amount,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td .amount,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td .amount bdi,
.wdi-scope--app.woocommerce-checkout.wdi-scope--app table.woocommerce-checkout-review-order-table tfoot tr.shipping td .amount bdi {
  font-size: var(--wdi-t-md); font-weight: var(--wdi-w-regular); color: var(--wdi-ink); font-variant-numeric: tabular-nums;
}

/* ==================================================================== W14 Part 3: the standing-order card
 * A line is one row read left to right: the product name, then its code (muted) and "x qty" straight after it, one gap
 * apart - not the code pushed to the far edge (the name no longer grows to fill the row; long names wrap and the code
 * follows). The lines column takes the rest; the calendar column is a fixed 300px at 768 and up with its own 20px left
 * padding, so the two never touch. Today's cell is round and the size of every other cell, its outline inset 2px so it
 * never meets a neighbour; the next-run ring, skipped and paused keep their W12 treatment. Below 768: the lines full
 * width, the calendar under them, full width.
 */
.wdi-scope--app .wdi-standing__lines li { justify-content: flex-start; flex-wrap: wrap; align-items: baseline; column-gap: var(--wdi-2); row-gap: 2px; }
.wdi-scope--app .wdi-standing__lines li > :first-child { flex: 0 1 auto; min-width: 0; }
.wdi-scope--app .wdi-standing__lines .wdi-standing__sku { color: var(--wdi-ink-3); }
.wdi-scope--app .wdi-standing__lines .wdi-standing__meta { white-space: nowrap; display: inline-flex; align-items: baseline; gap: var(--wdi-2); }   /* code and quantity never split */
.wdi-scope--app .wdi-socal__d.is-today { border-radius: 50%; box-shadow: none; outline: 1px solid var(--wdi-line-strong); outline-offset: -2px; }
.wdi-scope--app .wdi-socal__d.is-today.is-next { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wdi-blue-dark); outline-color: #fff; }
.wdi-scope--app .wdi-socal__d.is-today.is-run { outline-color: rgba(255, 255, 255, .7); }
@media (min-width: 768px) {
  .wdi-scope--app .wdi-standing__body { grid-template-columns: minmax(0, 1fr) 300px; }
  .wdi-scope--app .wdi-socal { box-sizing: border-box; width: 300px; padding-left: 20px; }
}
@media (max-width: 767px) {
  .wdi-scope--app .wdi-socal { width: 100%; padding-left: 0; }
}

/* ==================================================================== W14 Part 4: the panel's cut-out
 * A product cut-out from the category's own range (WDI_Category_Content::cutout: its homepage tile, else its top seller
 * with a cut-out, else nothing), treated as the homepage doors: on transparent, the doors' soft drop shadow, decorative.
 * 1440 and down to 640: 140px tall, a third of it above the panel's top edge (on the page white) and the rest on the
 * panel's tint, 24px in from the right; the panel is not clipped (overflow visible) and steps down 48px to give the
 * third room; the text column reserves the cut-out's width plus 40px, so text never runs under it. Below 640: 88px,
 * floated top right, a third above the edge, the text wrapping under it. W12's droplet mark is gone; a panel with no
 * cut-out (Skincare) gives its text the full width.
 */
.wdi-scope--app .wdi-catlede.wdi-catlede--cut { overflow: visible; }
.wdi-scope--app .wdi-catlede__cut { display: block; pointer-events: none; z-index: 1; }
.wdi-scope--app .wdi-catlede__cut img { display: block; height: 140px; width: auto; max-width: none; filter: drop-shadow(6px 12px 12px rgba(15, 30, 45, .16)); }
.wdi-scope--app .wdi-catlede:not(.wdi-catlede--cut) .wdi-catlede__lead, .wdi-scope--app .wdi-catlede:not(.wdi-catlede--cut) .wdi-catlede__rest { padding-right: 0; }
@media (min-width: 640px) {
  .wdi-scope--app .wdi-catlede.wdi-catlede--cut { margin-top: 48px; }
  .wdi-scope--app .wdi-catlede__cut { position: absolute; top: -47px; right: 24px; }
  .wdi-scope--app .wdi-catlede--cut .wdi-catlede__eyebrow,
  .wdi-scope--app .wdi-catlede--cut .wdi-catlede__lead,
  .wdi-scope--app .wdi-catlede--cut .wdi-catlede__rest { padding-right: calc(var(--wdi-cut-w, 140px) + 40px); }
}
@media (max-width: 639px) {
  .wdi-scope--app .wdi-catlede.wdi-catlede--cut { margin-top: 32px; }
  .wdi-scope--app .wdi-catlede__cut { position: relative; float: right; margin: calc(-29px - var(--wdi-catlede-pad, 10px)) -4px 8px 12px; }   /* a third (29px) above the panel's edge, past its top padding */
  .wdi-scope--app .wdi-catlede__cut img { height: 88px; }
}


/* W14 Part 5: "Before you order"'s note line was --wdi-ink-3 (#64737F) on the info tint (#E3F0FF) - 4.22:1 (W8 D). Body
   ink-2 instead (about 6.2:1). axe found it; it shows open from 768. */
.wdi-scope--app .wdi-check .wdi-check__note { color: var(--wdi-ink-2); }

/* ==================================================================== W15 Part 1: the phone header and top bar (below 640)
 * The header is scaled up so it holds its own against the hero type: the row 72px tall, the logo up to 150px wide (45px
 * tall), the icons 24px, their labels 13px. The W13 rule still decides the row: the logo has a zero flex-basis and a
 * 70px floor, so at 390 and 360 logo and icons share one row and at 320 the icons wrap under it. The basket's count is
 * a badge on its icon and its word stands alone ("Basket (44)" was 72px wide and pushed a signed-in row to two lines at
 * 360); the full "Basket (n)" label stays for a screen reader. Desktop and tablet are untouched.
 *
 * The top bar: every phone rule now applies to the bar in any mode (they hung off .wdi-topbar--trust, so a bar without it
 * - the ?wdi_strip=strip preview, or a page from before W12 - showed "sales@... | 020 3005 4433"). Centred, one line;
 * the type scales with the width (12px at 375 and up, down to about 10.3px at 320) so the phone and delivery line
 * always fit the width, never clipped. The email and its separator stay hidden.
 */
@media (max-width: 639px) {
  .wdi-chrome .wdi-header__inner { min-height: 72px; }
  .wdi-chrome .wdi-header__logo img { max-height: 45px; max-width: min(150px, 100%); }   /* 100%: the W13 flex space still decides; 150 is the cap */
  .wdi-chrome .wdi-header__links .wdi-header__link .wdi-icon { width: 24px; height: 24px; }
  .wdi-chrome .wdi-header .wdi-header__links .wdi-header__text,
  .wdi-chrome .wdi-header .wdi-header__links .wdi-short,
  .wdi-chrome .wdi-header .wdi-header__links .wdi-header__short { font-size: 13px !important; white-space: nowrap; }
  .wdi-chrome .wdi-header__links .wdi-header__basket { position: relative; }
  .wdi-chrome .wdi-header__links .wdi-header__basket .wdi-header__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wdi-chrome .wdi-header__links .wdi-header__basket .wdi-header__short { display: inline; line-height: 1.2; color: var(--wdi-ink-2); }
  .wdi-chrome .wdi-header__badge { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    background: var(--wdi-blue); color: #fff; font-size: 11px; font-weight: var(--wdi-w-semi); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
  .wdi-chrome .wdi-header__badge[hidden] { display: none; }

  .wdi-topbar .wdi-topbar__inner { justify-content: center; text-align: center; gap: 0; padding-inline: 12px; }
  .wdi-topbar .wdi-topbar__item[href^="mailto:"], .wdi-topbar .wdi-topbar__sep { display: none; }
  .wdi-topbar .wdi-topbar__item[href^="tel:"] { display: inline-flex; }
  .wdi-topbar--trust .wdi-topbar__inner { font-size: min(12px, calc((100vw - 24px) / 28.75)); }
  .wdi-topbar--trust .wdi-topbar__trust { flex: 0 1 auto; text-align: center; }
  .wdi-topbar--trust .wdi-topbar__trust::before { padding: 0 .4em; }
}
@media (min-width: 640px) { .wdi-chrome .wdi-header__short, .wdi-chrome .wdi-header__badge { display: none !important; } }
/* the 320 rule from W13 (11px, an 8px gutter) gives way to the fluid size above */
@media (max-width: 359px) { .wdi-topbar--trust .wdi-topbar__inner { padding-inline: 12px; } .wdi-topbar--trust .wdi-topbar__trust::before { padding: 0 .3em; }
  .wdi-chrome .wdi-header__links .wdi-header__basket .wdi-header__short { display: none; } }   /* under 360 the header is icons only (W2f), the badge stays */

/* ==================================================================== W15 Part 2: the phone homepage (below 640)
 * 3. The hero's Apply / Sign in go - the visitor bar carries them (Part 3), with the same two icons - so the doors start higher.
 * 4. The proof line: "3,000+ products · Free delivery over £75 excl. VAT" on one centred line, "Trade counter, Canvey
 *    Island" centred under it - a deliberate break after the second item (one line does not fit a phone); 13px, scaling
 *    down only as far as the first line needs to fit (about 11.4px at 320).
 * 5. The trade counter card: two columns, both top-aligned, the card as tall as the taller; left the heading then the
 *    address, right the hours then Get directions, which starts on the address's line and lines up with the hours' text.
 * 6. The closing band: heading and line centred as one block with equal gutters, the heading balanced over two lines;
 *    the dog stays above the text. Its buttons go: the visitor bar is on every visitor page (Part 3).
 */
@media (max-width: 639px) {
  .wdi-front .wdi-front__hero .wdi-front__herotext .wdi-front__actions { display: none; }
  .wdi-front .wdi-front__hero--light .wdi-front__proof { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; gap: 2px 0;
    font-size: min(13px, calc((100vw - 32px) / 25.2)); line-height: 1.5; }
  .wdi-front .wdi-front__hero--light .wdi-front__proof li { flex: 0 0 auto; }
  .wdi-front .wdi-front__hero--light .wdi-front__proof li:nth-child(2)::before { content: '\00B7'; margin: 0 .5em; color: var(--wdi-ink-3); }
  .wdi-front .wdi-front__hero--light .wdi-front__proof li:nth-child(3) { flex-basis: 100%; }
  .wdi-front .wdi-front__hero--light .wdi-front__proof li:nth-child(3)::before { content: none; }
  .wdi-front .wdi-front__counterin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 16px; row-gap: 10px; }
  .wdi-front .wdi-front__counterin > span, .wdi-front .wdi-front__counterin > a { align-self: start; align-items: flex-start; line-height: 1.4; }
  .wdi-front .wdi-front__counterin > span .wdi-icon { flex: 0 0 auto; margin-top: .1em; }
  .wdi-front .wdi-front__counterin > a { padding-left: calc(1.2em + 8px); }
  .wdi-front .wdi-front__cta--dog .wdi-front__ctamain { text-align: center; padding-left: 20px; padding-right: 20px; }
  .wdi-scope--app .wdi-front .wdi-front__cta h2.wdi-front__h2 { font-size: 26px; text-wrap: balance; margin-left: auto; margin-right: auto; }
  .wdi-front .wdi-front__cta .wdi-front__sub { text-wrap: balance; margin-left: auto; margin-right: auto; }
  .wdi-front .wdi-front__cta .wdi-front__actions { display: none; }
}

/* ==================================================================== W15 Part 3: the visitor bar, the page end, the footer (below 640)
 * 7. The page ends with room for the bar: the copyright line's own padding grows by the bar's height and the safe area,
 *    so the dark bar runs on under the sticky bar and its text is fully visible at the end of the scroll.
 * 8. The footer: one 16px gutter for everything (logo, socials, contact lines, both link columns, the products'
 *    columns, the copyright line), the socials ending on the right column's edge, 12px between link rows.
 * 9. The visitor bar (.wdi-sticky, WDI_Chrome::visitor_bar): Apply primary, Sign in secondary, each with its icon, both
 *    46px, on the panel tint with a top hairline. Every visitor page below 640; the homepage keeps it from 640 to 782.
 */
.wdi-sticky { display: none; }
@media (max-width: 639px) {
  .wdi-has-visitor-bar .wdi-sticky { display: flex; position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--wdi-pale); border-top: 1px solid var(--wdi-line); box-shadow: none; }
  .wdi-has-visitor-bar .wdi-sticky .wdi-btn { min-height: 46px; height: 46px; justify-content: center; gap: 8px; font-size: var(--wdi-t-lg); }
  .wdi-has-visitor-bar .wdi-sticky .wdi-sticky__apply { flex: 1 1 auto; }
  .wdi-has-visitor-bar .wdi-sticky .wdi-sticky__signin { flex: 0 0 auto; padding: 0 18px; }
  .wdi-has-visitor-bar .wdi-sticky .wdi-icon { width: 20px; height: 20px; }
  .wdi-has-visitor-bar .wdi-footer .end.container .last { padding-bottom: calc(var(--wdi-2) + 67px + env(safe-area-inset-bottom, 0px)); }
  .wdi-footer > .container:not(.end) { padding-left: 16px; padding-right: 16px; max-width: none; }
  .wdi-footer > .container:not(.end) > .row { margin-left: 0; margin-right: 0; }
  .wdi-footer > .container:not(.end) > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
  .wdi-footer .contact-page { margin: 0; }
  .wdi-footer .wdi-footer__contact { display: grid; row-gap: 12px; }
  .wdi-footer .wdi-footer__contact li { margin: 0; }
  .wdi-footer .contact-group { display: grid; row-gap: 12px; }
  .wdi-footer .contact-group li { padding: 0; }
  .wdi-footer .contact-group > li:first-child { margin: 0; }
  .wdi-footer > .container:not(.end) > .row > div:nth-child(3) .contact-group { row-gap: 12px; column-gap: 16px; }
  .wdi-footer .end.container .last { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 640px) and (max-width: 782px) {
  .wdi-has-visitor-bar.home .wdi-sticky { display: flex; position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 18px rgba(15, 30, 45, .12); }
  .wdi-has-visitor-bar.home .wdi-sticky .wdi-btn { height: 46px; justify-content: center; font-size: var(--wdi-t-lg); }
  .wdi-has-visitor-bar.home .wdi-sticky .wdi-sticky__apply { flex: 1; }
  .wdi-has-visitor-bar.home .wdi-sticky .wdi-icon { display: none; }
}

/* ==================================================================== W15 Part 4: the dashboard band, the category bar, the chips (below 640)
 * 10. The brochure band: the cover on the left, 96px wide and exactly as tall as the text beside it (cropped from the top, not
 *     tilted, so its edges line up with the text), the text to its right, Browse and Download under both, sharing the
 *     band's width.
 * 11. The category list's selection bar IS My products' (wdi_selected_bar, one component): the count badge, "selected
 *     · £x", Clear, the two actions full width, View basket a centred text link. The rules below are the W12 bar's,
 *     generated from its block for the category bar's ids; from 640 up the category page keeps its W2o pill bar.
 */
@media (max-width: 639px) {
  .wdi-scope--app .wdi-dash__band { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; gap: var(--wdi-3); padding: var(--wdi-3); }
  .wdi-scope--app .wdi-dash__band-cover { position: relative; grid-column: 1; grid-row: 1; min-height: 0; overflow: hidden; border-radius: 3px; box-shadow: var(--wdi-shadow); }
  .wdi-scope--app .wdi-dash__band-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: none; box-shadow: none; border-radius: 0; }
  .wdi-scope--app .wdi-dash__band-text { grid-column: 2; grid-row: 1; align-self: start; }
  .wdi-scope--app .wdi-dash__band-actions { grid-column: 1 / -1; grid-row: 2; display: flex; gap: var(--wdi-2); }
  .wdi-scope--app .wdi-dash__band-actions .wdi-btn { flex: 1 1 0; justify-content: center; min-height: 44px; }

  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3);
    width: auto; max-width: none; margin-left: 0;
    background: var(--wdi-pale); border: 0; border-top: 1px solid var(--wdi-line); border-radius: 0; box-shadow: none;
    padding: var(--wdi-3) var(--wdi-4);
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone.is-docked { box-shadow: none; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-selected-bar__summary {
    flex: 0 1 auto; display: flex; align-items: center; gap: var(--wdi-2); margin: 0; padding: 0; min-height: 0; contain: none; text-align: left;
    font-size: var(--wdi-t-md); font-weight: var(--wdi-w-regular); line-height: 1.4; color: var(--wdi-ink);
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-selected-bar__summary:empty { display: none; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selbadge {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
    border-radius: 999px; background: var(--wdi-blue); color: #fff; font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); font-variant-numeric: tabular-nums;
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__text { white-space: nowrap; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__text em { font-style: normal; color: var(--wdi-ink-3); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__clear,
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__basket {
    appearance: none; background: none; border: 0; padding: 0; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    font: inherit; font-size: var(--wdi-t-md); color: var(--wdi-blue-dark); text-decoration: underline; text-underline-offset: 2px;
  }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__clear:hover, .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__basket:hover { color: var(--wdi-ink); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__clear[hidden] { display: none; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-btn:not(.wdi-selected-bar__basket) { height: 40px; width: auto; font-size: var(--wdi-t-md); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > #wdi-add-selected { margin-left: auto; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-long { display: inline; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-short { display: none; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-btn[aria-disabled="true"], .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-btn[aria-disabled="true"]:hover { background: #fff; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-catalogue__status { flex: 1 0 100%; text-align: right; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-catalogue__status:empty { display: none; }

  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone { padding: var(--wdi-3); gap: var(--wdi-2); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-selected-bar__summary { flex: 1 1 auto; font-size: var(--wdi-t-sm); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone .wdi-selected-bar__clear { font-size: var(--wdi-t-sm); }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-btn:not(.wdi-selected-bar__basket) { flex: 1 0 100%; height: 44px; justify-content: center; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > #wdi-add-selected { margin-left: 0; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-selected-bar__basket { flex: 1 0 100%; text-align: center; font-size: var(--wdi-t-sm); padding: 4px 0; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-catalogue__status { text-align: left; }
  /* what the category page's own C9 phone rules set and My products' bar does not have: the ghost View basket pinned
     top-right (absolute, pill radius), and the page's inherited 16px body type */
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone > .wdi-selected-bar__basket { position: static; border-radius: 0; width: auto; height: auto; }
  .wdi-scope--app.wdi-scope--app .wdi-selected-bar.wdi-selected-bar--badge-phone { font-size: 15px; color: var(--wdi-ink); }
}

/* ==================================================================== W15 Part 4 item 12: the chip (.wdi-flag), below 640
 * One chip for the three flags a row carries: "You've ordered this before" (--ok, green), "No agreed price" (--bad,
 * red), "Only N left" (--warn, amber). 12px semibold, 3px 8px, 6px radius, the state's colour on its own tint, as wide
 * as its words (each keeps its own line or inline place). The low-stock icon goes: the amber chip says it. The chained
 * .wdi-chrome lifts it over every older rule for these classes (the strongest is 0,4,0).
 */
@media (max-width: 639px) {
  .wdi-chrome.wdi-chrome.wdi-chrome .wdi-flag.wdi-flag { font-size: 12px; font-weight: var(--wdi-w-semi); line-height: 1.35; padding: 3px 8px; border-radius: 6px; border: 0; height: auto; min-height: 0;   /* .wdi-chip fixes 24px */
    width: fit-content; max-width: 100%; box-sizing: border-box; letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: none; }
  .wdi-chrome.wdi-chrome.wdi-chrome .wdi-flag.wdi-flag--ok { color: var(--wdi-ok); background: var(--wdi-ok-bg); }
  .wdi-chrome.wdi-chrome.wdi-chrome .wdi-flag.wdi-flag--bad { color: var(--wdi-bad); background: var(--wdi-bad-bg); }
  .wdi-chrome.wdi-chrome.wdi-chrome .wdi-flag.wdi-flag--warn { color: var(--wdi-warn); background: var(--wdi-warn-bg); }
  .wdi-chrome.wdi-chrome.wdi-chrome .wdi-flag.wdi-flag .wdi-icon { display: none; }
  .wdi-chrome.wdi-chrome.wdi-chrome p.wdi-flag.wdi-flag, .wdi-chrome.wdi-chrome.wdi-chrome .wdi-col-name .wdi-flag.wdi-flag--ok { margin: 0; display: block; }   /* own line: block at its words' width (the ordered chip was a table, 2px taller) */
}

/* ==================================================================== W16 Part 1: the panel's top on the sidebar's top (from 992)
 * Where the sidebar sits beside the list (col-lg, 992 up), W14's 48px step-down for the cut-out's top third put the
 * panel 48px below the Categories card. The step goes: the panel's top edge is the sidebar card's top edge, and the
 * cut-out's third rises into the empty right-hand end of the breadcrumb row instead (the breadcrumb sits on its own
 * full-width row above both columns). The breadcrumb keeps the cut-out's widest width plus its 24px inset and a 16px gap
 * clear on its right (183 + 24 + 16), so a long trail wraps before it can meet the cut-out. The toolbar and the list rise
 * with the panel; nothing else moves. Below 992 (the sidebar stacked) W14's step stays.
 */
@media (min-width: 992px) {
  .wdi-scope--app .wdi-catlede.wdi-catlede--cut { margin-top: 0; }
  .wdi-scope--app .row:has(> .col-lg-9 .wdi-catlede--cut) > .col-lg-12 > .breadcrumb { padding-right: 224px; }
}

/* ==================================================================== W16 Part 2: the drawer opens at its top
 * Every open starts at scrollTop 0 - the heading, the search, then the list - whichever button opened it. Opened from a
 * category page's Categories button, the category stays highlighted (is-here) and, when it is below the fold, a "Jump to
 * <category>" link sits under the heading (wdi-chrome.js jumpLink); one tap scrolls the category into view. No
 * auto-scroll.
 */
.wdi-drawer__jump { align-self: flex-start; margin: calc(-1 * var(--wdi-2)) 0 0; font-size: var(--wdi-t-md); min-height: 24px; display: inline-flex; align-items: center; }
.wdi-drawer__jump[hidden] { display: none; }

/* ==================================================================== W16 Part 3: phone search (below 768)
 * 3. THE SEARCH VIEW (html.wdi-search-full, wdi-chrome.js). Full screen, on white, above everything (the header's
 *    stacking context is lifted over the visitor bar). The field pinned at the top - 44px, 16px type so iOS does not
 *    zoom - with Cancel beside it; under it the state line ("Type a product name or code" / "Searching…" / "12 results");
 *    then the W8 suggestion rows in a region that scrolls and ends at the bottom of the VISIBLE viewport
 *    (--wdi-vvh / --wdi-vvt from window.visualViewport), so nothing is under the keyboard. No results: the line and a
 *    "Search all products" button. 768 and up: none of this - Cancel and the state line are hidden.
 * 4. THE CATALOGUE FILTER'S STATUS LINE (wdi-catsearch.js): under the field while it has the focus.
 * 5. ADD BY CODE (wdi-quick-add.js .is-fitted): the open panel ends at the visible viewport and scrolls inside.
 */
.wdi-search__cancel, .wdi-search__state, .wdi-catsearch__status { display: none; }
@media (max-width: 767px) {
  html.wdi-search-full, html.wdi-search-full body { overflow: hidden; }
  html.wdi-search-full .wdi-chrome .wdi-header, html.wdi-search-full .wdi-header { z-index: 1000; }
  html.wdi-search-full .wdi-chrome .wdi-header__inner > .wdi-header__search, html.wdi-search-full .wdi-header__search {
    position: fixed; z-index: 1000; left: 0; right: 0; top: var(--wdi-vvt, 0px); height: var(--wdi-vvh, 100vh);
    flex: none; width: auto; max-width: none; margin: 0; padding: calc(var(--wdi-3) + env(safe-area-inset-top, 0px)) var(--wdi-4) 0;
    background: #fff; border: 0; box-shadow: none; display: flex; flex-direction: column; box-sizing: border-box;
  }
  html.wdi-search-full .wdi-header__search .wdi-search { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; }
  html.wdi-search-full .wdi-header__search .wdi-search__row { display: flex; align-items: center; gap: var(--wdi-3); flex: none; position: relative; }
  html.wdi-search-full .wdi-header__search .wdi-search__input { flex: 1 1 auto; min-width: 0; height: 44px; font-size: 16px; }
  html.wdi-search-full .wdi-header__search .wdi-search__cancel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; flex: none;
    background: none; border: 0; font: inherit; font-size: var(--wdi-t-lg); color: var(--wdi-blue-dark); cursor: pointer; }
  html.wdi-search-full .wdi-header__search .wdi-search__state { display: block; flex: none; margin: var(--wdi-2) 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); min-height: 1.4em; }
  html.wdi-search-full .wdi-header__search .wdi-suggest { position: static; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    width: auto; max-width: none; max-height: none; margin: 0 calc(-1 * var(--wdi-4)); padding: 0 var(--wdi-4) calc(var(--wdi-4) + env(safe-area-inset-bottom, 0px));
    border: 0; border-top: 1px solid var(--wdi-line); border-radius: 0; box-shadow: none; transform: none; }
  html.wdi-search-full .wdi-header__search .wdi-suggest[hidden] { display: none; }
  html.wdi-search-full .wdi-header__search .wdi-suggest__none { display: flex; flex-direction: column; align-items: flex-start; gap: var(--wdi-3); padding: var(--wdi-4) 0; }

  .wdi-catsearch-form { flex-wrap: wrap; }
  .wdi-catsearch-form:focus-within .wdi-catsearch__status:not(:empty) { display: block; flex: 0 0 100%; margin: var(--wdi-2) 0 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
  .wdi-catsearch-form:focus-within .wdi-catsearch__status .wdi-link { margin-left: .25em; }

  .wdi-chrome .wdi-quickadd__panel.is-fitted { overflow-y: auto; overscroll-behavior: contain; }
  .wdi-chrome .wdi-quickadd__panel.is-fitted .wdi-qa__results { max-height: none; overflow: visible; }
}

/* ==================================================================== W19: the Grid / List tip's "Got it"
 * A text button inside the callout, white and underlined on the ink. The callout stays absolutely positioned, so it never
 * moves the grid. On a phone it opens ABOVE the toggle, pointing down, so it covers neither the filter row under the
 * toolbar nor the first product.
 */
.wdi-callout[hidden] { display: none; }
.wdi-callout .wdi-callout__close { appearance: none; margin: 0 0 0 var(--wdi-2); padding: 0; min-height: 24px; background: none; border: 0; color: #fff;
  font: inherit; font-weight: var(--wdi-w-semi); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.wdi-callout .wdi-callout__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wdi-callout--tip { white-space: nowrap; max-width: none; }   /* the system callout caps at 240px: with "Got it" it would spill out */
@media (max-width: 767px) {
  .wdi-scope--app .wdi-view-toggle .wdi-callout--tip { top: auto; bottom: calc(100% + 10px); }
  .wdi-scope--app .wdi-view-toggle .wdi-callout--tip::before { top: auto; bottom: -6px; border-top: 6px solid var(--wdi-ink); border-bottom: 0; }
}

/* ==================================================================== W21: Keely's review, round 1
 * System tokens only. Each block says what it changes.
 * ------------------------------------------------------------------------------------------------- */

/* Top bar: the category menu larger where it fits (the logo is in "4" above). The eleven items already filled the
   row at 12px (35px spare at 1440), so the row may now run wider than the content column, centred under the logo row:
   1366-1439 12.5px (+4%); from 1440 13.5px (+12.5%), the chevrons a little closer. Below 1366 nothing changes (no
   room); phones use the drawer. Measured: tests/tools/w21-navfit.mjs. */
@media (min-width: 1366px) {
  .wdi-nav__inner { max-width: min(1440px, calc(100vw - 32px)); }
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu { justify-content: center; }
  .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a { font-size: 12.5px; }
}
@media (min-width: 1440px) {
  .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a { font-size: 13.5px; }
  .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a > b,
  .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a > i { margin-left: 4px; }
  .wdi-nav #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li > a::after { margin-left: 2px; }
}

/* "Before you order": a blue rule down its left edge and a stronger heading. Same height, so nothing moves. */
.wdi-scope--app .wdi-card.wdi-check { border: 1px solid #C9DDF5; border-left: 5px solid var(--wdi-blue); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__head { padding-top: var(--wdi-4); padding-bottom: var(--wdi-4); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__title { font-size: 18px; font-weight: 700; color: var(--wdi-ink); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__title .wdi-icon { width: 22px; height: 22px; }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__count { background: var(--wdi-blue); color: #fff; font-weight: 700; }

/* Basket: "Use this basket again" - a labelled pair of secondary buttons under the totals */
.wdi-scope--app .wdi-basket__again { margin: var(--wdi-5) 0 0; padding: var(--wdi-4) 0 0; border-top: 1px solid var(--wdi-line); text-align: left; }
.wdi-scope--app .wdi-basket__again h2.wdi-basket__again-h { margin: 0; font-size: var(--wdi-t-md); font-weight: 700; color: var(--wdi-ink); }
.wdi-scope--app .wdi-basket__again-help { margin: var(--wdi-1) 0 var(--wdi-3); font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); line-height: 1.45; }
.wdi-scope--app .wdi-basket__again-row { display: grid; gap: var(--wdi-2); }
.wdi-scope--app .wdi-basket__again-row > span { display: block; margin: 0; }
.wdi-scope--app .wdi-basket__again-row .wdi-btn { width: 100%; justify-content: center; gap: var(--wdi-2); }
.wdi-scope--app .wdi-basket__again .wdi-basket__status { display: block; margin-top: var(--wdi-2); }
.wdi-scope--app .wdi-basket__again .wdi-basket__status:empty { display: none; }

/* Standing order form: the basket heading block centred and larger; the five fields one aligned row */
.wdi-standing__source { margin: var(--wdi-2) 0 var(--wdi-3); padding: var(--wdi-4); text-align: center; background: var(--wdi-info-bg); border-radius: 12px; }
.wdi-scope--app .wdi-standing__source h3.wdi-standing__source-h { display: inline-flex; align-items: center; gap: var(--wdi-2); margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--wdi-ink); }
.wdi-standing__source-h .wdi-icon { width: 24px; height: 24px; color: var(--wdi-blue); }
.wdi-standing__source-n { margin: var(--wdi-1) 0 0; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
.wdi-standing__grid { grid-template-columns: 1fr; align-items: end; }
.wdi-standing__f { display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; height: auto; min-width: 0; }
.wdi-standing__f label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 600px) { .wdi-standing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wdi-standing__f--name { grid-column: 1 / -1; } }
@media (min-width: 992px) { .wdi-standing__grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } .wdi-standing__f--name { grid-column: auto; } }

/* The door group pages (/categories/healthcare/, /categories/cleaning-and-hygiene/): the homepage's tiles */
.wdi-catgroup__section { padding-top: var(--wdi-5); padding-bottom: var(--wdi-7, 56px); }
.wdi-catgroup__crumbs { margin: 0 0 var(--wdi-4); font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-catgroup__crumbs a { color: var(--wdi-blue); }
.wdi-scope--app .wdi-front h1.wdi-front__h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: var(--wdi-w-bold); letter-spacing: -.01em; color: var(--wdi-ink); }

/* ==================================================================== W22: the delivery address book
 * The checkout's "Deliver to" is the system's .wdi-picklist (radio rows, the chosen row tinted) on a desktop and a
 * native select on a phone; My account -> Addresses is cards of the same kind as standing orders. System tokens only.
 * ------------------------------------------------------------------------------------------------- */
.wdi-check-inline { display: inline-flex; align-items: center; gap: var(--wdi-2); font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); cursor: pointer; }
.wdi-check-inline input { width: 18px; height: 18px; margin: 0; accent-color: var(--wdi-blue); }
.wdi-check-inline[hidden] { display: none; }
.wdi-link--danger { color: var(--wdi-bad); }

.wdi-deliver { margin: 0 0 var(--wdi-3); }
.wdi-deliver__legend { display: block; margin: 0 0 var(--wdi-2); font-weight: var(--wdi-w-semi); }
.wdi-deliver__rows { max-height: 360px; overflow-y: auto; padding-right: 2px; }
.wdi-deliver__row { align-items: flex-start; }
.wdi-deliver__row input { margin-top: 2px; }
.wdi-deliver__label { display: block; font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-deliver__line { display: block; margin-top: 2px; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); font-weight: 400; }
.wdi-deliver__row .wdi-chip { flex: none; }
.wdi-deliver__select-wrap { display: none; }
.wdi-deliver__select { width: 100%; }
.wdi-deliver__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wdi-2) var(--wdi-4); margin: var(--wdi-2) 0 0; }
.wdi-deliver__new-help { margin: 0 0 var(--wdi-2); }
@media (max-width: 767px) {
  .wdi-deliver__select-wrap { display: block; margin: 0 0 var(--wdi-2); }
  .wdi-deliver__rows { display: none; }
}

.wdi-addr__billing { padding: var(--wdi-5); margin: 0 0 var(--wdi-5); }
.wdi-addr__billing .wdi-section-title { display: flex; align-items: center; gap: var(--wdi-2); margin: 0 0 var(--wdi-3); }
.wdi-addr__lines { font-style: normal; line-height: 1.55; color: var(--wdi-ink); margin: 0 0 var(--wdi-2); }
.wdi-addr__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wdi-2) var(--wdi-4); margin: 0 0 var(--wdi-3); }
.wdi-addr__head .wdi-section-title { margin: 0; }
.wdi-addr__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--wdi-4); }
.wdi-addr__item { display: flex; flex-direction: column; padding: var(--wdi-4) var(--wdi-5); margin: 0; }
.wdi-addr__item.is-default { border-color: var(--wdi-blue); box-shadow: inset 0 3px 0 var(--wdi-blue); }
.wdi-addr__item-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2); margin: 0 0 var(--wdi-2); }
.wdi-scope--app .wdi-addr h3.wdi-addr__label { margin: 0; font-size: var(--wdi-t-md); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); overflow-wrap: anywhere; }
.wdi-addr__sage-note { margin: 0 0 var(--wdi-2); }
.wdi-addr__item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3); margin-top: auto; padding-top: var(--wdi-2); }
.wdi-addr__inline { margin: 0; }
.wdi-addr__delete summary { list-style: none; cursor: pointer; font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); }
.wdi-addr__delete summary::-webkit-details-marker { display: none; }
.wdi-addr__delete p { margin: var(--wdi-2) 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-2); }
.wdi-addr__form { padding: var(--wdi-5); margin: 0 0 var(--wdi-5); }
.wdi-scope--app .wdi-addr h3.wdi-addr__form-h { margin: 0 0 var(--wdi-4); font-size: 18px; font-weight: var(--wdi-w-bold); }
.wdi-addr__grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--wdi-4); }
.wdi-addr__help { margin: calc(-1 * var(--wdi-2)) 0 var(--wdi-4); }
.wdi-scope--app .wdi-addr__f .wdi-field { width: 100%; }
.wdi-addr__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-3); margin: var(--wdi-4) 0 0; }
.wdi-addr__defaultbox { margin: 0; }
@media (min-width: 700px) {
  .wdi-addr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wdi-addr__f--wide { grid-column: 1 / -1; }
}
/* The account area paints every submit button solid blue (!important, "W2e" above); the address book's secondary actions
   ("Make default", "Yes, delete it") are secondary buttons like their neighbours. */
.wdi-scope--app .woocommerce-MyAccount-content .wdi-addr form button[type="submit"].wdi-btn--secondary {
  background: var(--wdi-bg) !important; border-color: var(--wdi-line-strong) !important; color: var(--wdi-blue) !important;
}
.wdi-scope--app .woocommerce-MyAccount-content .wdi-addr form button[type="submit"].wdi-btn--secondary:hover {
  background: var(--wdi-tint) !important; border-color: var(--wdi-blue) !important; color: var(--wdi-blue-dark) !important;
}

/* ==================================================================== W23: Rob's review of W21 and W22
 * System tokens only, except the door tints (each door's own, set on the door as --door-tint from WDI_Home_Doors).
 * ------------------------------------------------------------------------------------------------- */

/* Hero doors (W25, replacing W24's stacked cards): THE LIVE SITE'S ARRANGEMENT, scaled into the hero's right-hand
   column. Three tall tinted panels side by side, the middle one taller than the two sides (--door-side is the sides'
   share of the middle's height), each with its photograph, the category name and count, and a "Shop now" button in the
   design system (decorative: the whole panel is the one link, as before). As on the live site the two sides show the
   photograph first and the middle shows its name first. The band keeps W21's height (the middle panel is the band's
   420px content height). Phone: a swipe row, the panels side by side as on a desktop; nothing scrolls sideways but the
   row. */
.wdi-front__hero--doors { --door-gap: 16px; --door-mid: 420px; --door-side: .86; }
.wdi-front__hero--doors .wdi-front__doors { display: flex; align-items: center; gap: var(--door-gap); margin: 0; padding: 0; height: var(--door-mid); }
.wdi-front__hero--doors .wdi-front__door { position: relative; flex: 1 1 0; min-width: 0; height: calc(var(--door-mid) * var(--door-side)); display: flex; flex-direction: column;
  box-sizing: border-box; padding: 18px 16px 18px; background: var(--door-tint, var(--wdi-pale)); border: 1px solid rgba(15, 30, 45, .06); border-radius: var(--wdi-r); overflow: hidden;
  box-shadow: 4px 8px 22px rgba(15, 30, 45, .07); }
.wdi-front__hero--doors .wdi-front__door:nth-child(2) { height: var(--door-mid); }
.wdi-front__hero--doors .wdi-front__doorimg { position: relative; flex: 1 1 auto; min-height: 0; left: auto; top: auto; height: auto; transform: none; display: block; background: none; border: 0; margin: 0 0 14px; }
/* W26: ONE PHOTO BOX in every panel, measured against the panel's width (container units) so all three are the same:
   70% of the panel's width tall, the photograph contained in it (at most 82% of the panel's width wide). So each
   photograph takes a similar share of its panel whatever its shape - the wide mask is held by its width, the tall roll
   by its height (in W25 it filled its panel's height). The photo box, an 18px gap, the name, count and button are one
   group, centred top to bottom and left to right in the panel - the same breathing room in all three. On a phone the
   box gives way first so the group always fits. */
.wdi-front__hero--doors .wdi-front__door { container-type: inline-size; justify-content: center; }
.wdi-front__hero--doors .wdi-front__doorimg { flex: 0 1 110px; min-height: 0; margin: 0 0 18px; }
@supports (width: 1cqw) { .wdi-front__hero--doors .wdi-front__doorimg { flex-basis: 70cqw; } }
.wdi-front__hero--doors .wdi-front__doorimg img { position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: 82%; max-height: 100%; filter: drop-shadow(3px 8px 10px rgba(15, 30, 45, .16)); }
@supports (width: 1cqw) { .wdi-front__hero--doors .wdi-front__doorimg img { max-width: 82cqw; } }
.wdi-front__hero--doors .wdi-front__door[data-category="hospitality"] .wdi-front__doorimg img { filter: none; }   /* a photograph on its own sage */
.wdi-front__hero--doors .wdi-front__doorlabel { position: static; left: auto; right: auto; bottom: auto; height: auto; padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; flex: none; }
.wdi-front__hero--doors .wdi-front__doorlink { font-size: 20px; font-weight: var(--wdi-w-bold); line-height: 1.15; color: var(--wdi-ink-charcoal); white-space: normal; letter-spacing: -.01em; }
.wdi-front__hero--doors .wdi-front__doorn { font-size: 13px; color: var(--wdi-ink-2); }
.wdi-front__hero--doors .wdi-front__doorbtn { align-self: center; flex: none; margin-top: 12px; pointer-events: none; }   /* W26: centred, as the name and count */
.wdi-front__hero--doors .wdi-front__door > svg { display: none; }
.wdi-front__hero--doors .wdi-front__doorlink::after { top: 0; }
/* the middle panel reads the other way up, as on the live site: name and button, then the photograph */
.wdi-front__hero--doors .wdi-front__door:nth-child(2) .wdi-front__doorimg { order: 3; margin: 18px 0 0; }
.wdi-front__hero--doors .wdi-front__door:hover .wdi-front__doorbtn { background: var(--wdi-tint); border-color: var(--wdi-blue); color: var(--wdi-blue-dark); }
@media (min-width: 1024px) {
  .wdi-front__hero--doors .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); align-items: center; }
  .wdi-front__hero--doors .wdi-front__doors { justify-self: stretch; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .wdi-front__hero--doors { --door-mid: 380px; --door-gap: 12px; }
  .wdi-front__hero--doors .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); }
  .wdi-front__hero--doors .wdi-front__doorlink { font-size: 17px; }
}
@media (max-width: 1023px) {
  .wdi-front__hero--doors { --door-mid: 300px; }
  .wdi-front__hero--doors .wdi-front__doors { display: flex; height: auto; min-height: var(--door-mid); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin: 4px -16px 0; padding: 8px 16px 16px; scroll-padding-inline: 16px; grid-template-rows: none; }
  .wdi-front__hero--doors .wdi-front__doors::-webkit-scrollbar { display: none; }
  .wdi-front__hero--doors .wdi-front__door { flex: 0 0 64%; scroll-snap-align: start; }
  /* W26: the phone panels keep W25's size, so the photo box is half the panel's width and the name 18px - the group
     (photo, 18px, name, count, button) then fits the shorter side panels with room to spare */
  .wdi-front__hero--doors .wdi-front__doorimg { flex-basis: 84px; }
  .wdi-front__hero--doors .wdi-front__doorlink { font-size: 18px; }
}
@supports (width: 1cqw) { @media (max-width: 1023px) { .wdi-front__hero--doors .wdi-front__doorimg { flex-basis: 50cqw; } } }

/* "Before you order": folded by default (heading, count, chevron); a pale amber with a matching left rule and badge -
   the system's warn tint, not its alert red. The lines one step darker than before (ink-2 -> charcoal), not black. */
.wdi-scope--app .wdi-card.wdi-check { background: var(--wdi-warn-bg); border: 1px solid #F3D9A8; border-left: 5px solid var(--wdi-accent-amber); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__title .wdi-icon { color: var(--wdi-accent-amber); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__count { background: var(--wdi-accent-amber); color: #fff; }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__item, .wdi-scope--app .wdi-card.wdi-check .wdi-check__foot { border-top-color: #F1DDB5; }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__item { color: var(--wdi-ink-charcoal); }
.wdi-scope--app .wdi-card.wdi-check .wdi-check__note { color: var(--wdi-ink-2); }
.wdi-scope--app .wdi-card.wdi-check:not([open]) .wdi-check__head { padding-top: var(--wdi-3); padding-bottom: var(--wdi-3); }

/* Standing order: "From a saved list" wears the five fields' style - a label above a plain select, no boxed label */
.wdi-standing__f--list { max-width: 480px; margin: 0 0 var(--wdi-3); }
.wdi-standing__f--list select { width: 100%; }

/* Dashboard: "Browse the full catalogue" - its old hover is its look now, and a deeper shade on hover */
.wdi-scard__footlink { background: var(--wdi-tint); color: var(--wdi-blue-dark); }
.wdi-scard__footlink:hover { background: #CCE1FA; color: var(--wdi-navy); }
/* "All your products": the browse button's icon, one step heavier (bold), the same small size */
.wdi-scope--app .wdi-scard__head a.wdi-btn.wdi-dash__allmine { font-weight: var(--wdi-w-bold); }   /* beats the account area's own button weight */
.wdi-dash__allmine .wdi-icon { width: 16px; height: 16px; }

/* ==================================================================== W25: the footer's trade-counter line
 * "Trade counter: Mon to Fri 09:00 to 16:00" - shorter, and the times never part (no "16:00" on a line of its own).
 * One line from 992px; on a phone it may wrap, but only before the times. */
.wdi-footer__hours .wdi-footer__times { white-space: nowrap; }
@media (min-width: 992px) { .wdi-footer .wdi-footer__hours span { white-space: nowrap; } }

/* ==================================================================== W26: the category bar without "All products"
 * "All products" is the first item inside More now (WDI_Chrome::all_products_item), so the bar has ten items and room to
 * breathe: from 1280 the row is spread across the bar's width (the space shared out between the items, the first and
 * last on the edges of the content column), with the bar's own 16px inset at 1280-1365 where it had none. The type
 * sizes are W21's: 12px to 1365, 12.5px from 1366, 13.5px from 1440. Phones keep the drawer, which lists All products
 * at its top as before. */
@media (min-width: 1280px) {
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu { justify-content: space-between; }
}
@media (min-width: 1280px) and (max-width: 1365px) {
  .wdi-nav__inner { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}
/* W26: More is the bar's last item, and its dropdown opened to the right - past the window's edge at 1280-1599 (a
   sideways scroll while open, already so in W25). It opens leftwards now, its right edge on More's. Found by the item it holds
   (All products), not the menu item's id. */
@media (min-width: 1280px) {
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li:has(> ul.wp-megamenu-sub-menu > li.wdi-nav__all) > ul.wp-megamenu-sub-menu { left: auto !important; right: 0 !important; }
}

/* ==================================================================== W27: one content column, and wider hero doors
 * ONE CONTAINER for every layer at every width: the top bar's inner content, the header (logo, search, basket, sign
 * in), the category bar, every page section (homepage, catalogue, product page, basket, checkout, dashboard, My
 * account, brochure) and the footer. The content column is min(1440px, the window less 16px each side) - the width the
 * category bar has had since W21 - so from 1366 the content now matches the bar instead of sitting inside it. Set
 * through the W2q tokens, so everything already built on them (the footer strip, the hero's counter strip) follows:
 * --wdi-container is the box (1472 = 1440 + 2 x 16), --wdi-gutter the 16px inside it. Percentages, not 100vw, so a
 * scrollbar can never push a container past the window. */
:root { --wdi-container: 1472px; --wdi-gutter: 16px; }
.wdi-wrap, .wdi-nav__inner, .wdi-front__wrap, .wdi-chrome .container:not(.end), .wdi-scope--home .wdi-home__inner {
  width: 100%; max-width: var(--wdi-container); min-width: 0; margin-left: auto; margin-right: auto;
  padding-left: var(--wdi-gutter); padding-right: var(--wdi-gutter); box-sizing: border-box;
}
.wdi-footer .end.container .last { padding-left: max(var(--wdi-gutter), calc((100% - var(--wdi-container)) / 2 + var(--wdi-gutter)));
  padding-right: max(var(--wdi-gutter), calc((100% - var(--wdi-container)) / 2 + var(--wdi-gutter))); }
.wdi-front__hero--light + .wdi-front__counter .wdi-front__counterin { width: calc(100% - 2 * var(--wdi-gutter)); max-width: calc(var(--wdi-container) - 2 * var(--wdi-gutter)); }
.wdi-scope--app div.product.type-product { max-width: none; }   /* the product page fills the column (W2q lifted its 1290 cap from 1600 only) */

/* Wider hero doors. From 1280 the panel column takes the column's right-hand 55% (52% at 1280-1439, where the headline
   needs the room), starting a little after the hero text's measure ends; the text column narrows to what the headline
   already needs, so it wraps exactly as before. Each panel's contents scale with the panel: the panel's padding and the
   gap between panels are shares of the row's width, and the photo box, name, count and "Shop now" are shares of the
   panel's own width - all the W26 sizes at the W26 600px row - so the proportions are W26's. The panels keep their
   heights (the middle 420px, the sides 86% of it), so the band stays 560px. 1024-1279 and the phone are unchanged. */
@media (min-width: 1280px) {
  .wdi-front__hero--doors .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) 52%; }
  .wdi-front__hero--doors .wdi-front__doors { container-type: inline-size; gap: 2.667%; }
  @supports (width: 1cqw) {
    .wdi-front__hero--doors .wdi-front__door { padding: 3cqw 2.667cqw; }   /* 18px 16px at the 600px row */
    /* inside a panel, cqw is a hundredth of the panel's CONTENT width (inside its padding and border): 155.33px in W26 */
    .wdi-front__hero--doors .wdi-front__doorimg { margin-bottom: 11.588cqw; }                          /* 18px */
    .wdi-front__hero--doors .wdi-front__door:nth-child(2) .wdi-front__doorimg { margin: 11.588cqw 0 0; }
    .wdi-front__hero--doors .wdi-front__doorlabel { gap: 1.288cqw; }                                 /* 2px */
    .wdi-front__hero--doors .wdi-front__doorlink { font-size: 12.876cqw; }                           /* 20px */
    .wdi-front__hero--doors .wdi-front__doorn { font-size: 8.369cqw; }                               /* 13px */
    .wdi-front__hero--doors .wdi-front__doorbtn { margin-top: 7.725cqw; height: 20.601cqw; min-height: 0; padding: 0 10.3cqw; font-size: 8.369cqw; }   /* 12px; 32px tall, 16px sides, 13px */
  }
}
@media (min-width: 1440px) {
  .wdi-front__hero--doors .wdi-front__heroin { grid-template-columns: minmax(0, 1fr) 55%; }
}

/* The smallest phones (below 360): the column's gutter is 12px, as the top bar's already was there - everything on
   one 12px line, header, page and footer included. It keeps the room the basket had before W27 (its container had a
   12px gutter): at 320 the widest basket line (12 x a four-figure price) needs it to keep Remove inside the card. */
@media (max-width: 359px) { :root { --wdi-gutter: 12px; } }

/* ==================================================================== W28: "About this range" pictures, Keely's choices
 * Hospitality, Cleaning Chemicals and Cleaning Machines show a chosen product (WDI_Category_Content::INTRO_CUTS). A wide
 * product (the bowl) is drawn at most 184px wide and so shorter than 140px: the height comes from the page
 * (--wdi-cut-h), and phones keep their 88/140 scale. The other nine are exactly as before (140px, 88px on phones). */
.wdi-scope--app .wdi-catlede__cut img { height: var(--wdi-cut-h, 140px); }
@media (max-width: 639px) { .wdi-scope--app .wdi-catlede__cut img { height: calc(var(--wdi-cut-h, 140px) * 88 / 140); } }

/* ==================================================================== W30: tidy-ups from Rob's review
 * Header: the logo's drawn edge on the column's left line. The PNG has 11 of its 581px clear on the left (1.89% of its
 * width), so it is drawn that much to the left - at any size, and with nothing beside it moving. The top bar's text and
 * "Sign in" already sit on the column's lines (W27). */
.wdi-header__logo img { transform: translateX(-1.893%); }
/* The category bar: the first name starts, and "More" ends, on the column's lines. Its links had 3px either side, and
   the mega menu's empty search item (no icon, nothing visible) sat after "More" as the row's last item, so the spread
   left More 13px short of the right line. From 1280, where the bar shows. */
@media (min-width: 1280px) {
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li.wpmm-social-link { display: none; }
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li:first-child > a { padding-left: 0; }
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li:not(.wpmm-social-link):nth-last-child(2) > a,
  .wdi-nav .desktop-mega-menu #wp-megamenu-primary > .wpmm-nav-wrap ul.wp-megamenu > li:not(.wpmm-social-link):last-child > a { padding-right: 0; }
}

/* Product page: the description and the other tabs' text at a reading measure, about 72 characters a line (32.5em, 520px,
   against the panel's 16px; the text is 15px), not the full column. The page itself, the photograph and the summary stay
   on the full column. */
.wdi-scope--app .wdi-pinfo__panel { max-width: 32.5em; }

/* Standing orders: the field error (as the brochure form's: the message under the field in the alert red, the field's
   edge red), and the delete question in place of the button row. */
.wdi-field-err { display: block; min-height: 0; margin-top: 4px; font-size: var(--wdi-t-sm); color: var(--wdi-bad); white-space: normal; }
.wdi-field-err:empty { display: none; }
.wdi-standing__form [aria-invalid="true"] { border-color: var(--wdi-bad) !important; box-shadow: 0 0 0 1px var(--wdi-bad); }
.wdi-standing__form [aria-invalid="true"]:focus { border-color: var(--wdi-bad) !important; box-shadow: 0 0 0 3px rgba(197, 40, 28, .22) !important; }   /* focused and still empty: the red edge stays */
.wdi-standing__grid { align-items: start; }   /* a field's error line under it no longer pushes its neighbours down */
.wdi-standing__btns { display: contents; }
.wdi-standing__btns[hidden], .wdi-standing__confirm[hidden] { display: none !important; }
.wdi-standing__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wdi-2) var(--wdi-3); flex: 1 1 100%; grid-column: 1 / -1; min-height: 32px; }
.wdi-standing__confirm-text { margin: 0; color: var(--wdi-ink-charcoal); font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); outline: none; }
.wdi-standing__status { margin: 0 0 var(--wdi-3); color: var(--wdi-ok, var(--wdi-ink-2)); font-weight: var(--wdi-w-semi); }
@media (max-width: 639px) {
  /* the phone's two-column button grid (W8): the buttons are inside .wdi-standing__btns now, which is display: contents */
  .wdi-scope--app .wdi-standing__btns > .wdi-btn { width: 100%; justify-content: center; min-height: 44px; }
  .wdi-scope--app .wdi-standing__confirm-text { flex: 1 1 100%; }
  .wdi-scope--app .wdi-standing__confirm > .wdi-btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
}
