/*
 * wdi-system.css - the design system. Tokens, then components.
 * ============================================================
 *
 * THE RULE THIS FILE EXISTS TO ENFORCE: pages compose from what is in here and add layout only.
 * Nothing on the site may invent a colour, a radius, a shadow or a control. If a page needs
 * something this file lacks, it goes in here FIRST, with a name, and then the page uses it.
 *
 * Written up in reports/w2b-design-system.md, which is the human-readable half of the same thing.
 *
 * WHY IT IS SEPARATE FROM wdi-design.css: that file grew by accretion across four rounds and is
 * page composition. This one is the vocabulary. Loading order is system first, composition second,
 * so a page can position a component without ever having to redefine one.
 *
 * ACCESSIBILITY IS PART OF THE SYSTEM, not a later pass. Every foreground/background pair below
 * carries its measured contrast ratio. Anything that does not reach its threshold is not in here.
 *
 * ---------------------------------------------------------------------------------------------
 * RECONCILED AGAINST THE APP PROTOTYPES (app-screens/v2-mockup*.html), which are now the visual
 * benchmark for the whole site. Their HTML is the source of truth for values; every token above
 * that changed did so because the app says so, with two exceptions, both of which are the app
 * failing WCAG rather than the system disagreeing with it:
 *
 *   --wdi-ink-3   the app's muted text is #8FA4B5, which measures 2.58:1 on white. That is not a
 *                 borderline miss - it is under the 3:1 floor for LARGE text, and the app uses it
 *                 at 10-12px. Darkened along its own hue to #64737F, the lightest value that
 *                 clears 4.5:1 on white AND on the pale card it usually sits on.
 *   --wdi-ok      the app's green is #1A8A4A: 4.39:1 on white and 3.90:1 on its own tint, so the
 *                 "in stock" chip - green text on pale green - failed. #187E43 is the same green,
 *                 one step down, at 5.12:1 and 4.54:1.
 *
 * Everything else is the app's own value: ink #0F1E2D, body #4A5E6E, blue #1565C0 (which is
 * BETTER than the #1277ce it replaces - 5.75:1 against 4.61:1, and it is one blue for links and
 * buttons rather than two), navy #002D72, red #C5281C, lines #DDE8F4 / #C5D5E2, surfaces #F3F7FB
 * and #E3F0FF, and DM Sans.
 *
 * DM SANS IS A REAL DECISION. The site already pays for a Google Fonts request (Inter), so this
 * swaps one webfont for another rather than adding one. It applies wherever the system draws;
 * theme-drawn text stays Inter until its page is rebuilt, which is the same bridge the token
 * aliases use.
 */

:root {
  /* ---- brand -------------------------------------------------------------------------------
   * Three blues doing three different jobs, which is the whole point: one blue is not a system.
   */
  --wdi-blue: #1565C0;          /* links, brand marks AND buttons. 5.75:1 on white, both ways */
  --wdi-blue-dark: #0D47A1;     /* hover, and text on the tint. 8.59:1 on white */
  --wdi-navy: #002D72;          /* the deep brand navy: figures that must not be missed. 12.98:1 */
  /* The one button on the site that gets the concept's lighter blue: Proceed to checkout, and
     nothing else. See .wdi-btn--xl - the 19px bold label is what makes 3.09:1 legal. */
  --wdi-button-large: #3397ed;
  --wdi-button-large-hover: #1f86dd;
  --wdi-btn: #1565C0;           /* PRIMARY BUTTON. white text 5.75:1 */
  --wdi-btn-hover: #0D47A1;

  /* ---- ink ---------------------------------------------------------------------------------
   * --wdi-ink is sampled from the wordmark in the logo (#373736), so headings are set in the
   * company's own charcoal rather than an invented near-black.
   */
  --wdi-ink: #0F1E2D;           /* headings and primary text. 16.88:1 on white */
  /* W2s A2: CHARCOAL - the hero's headline and intro, and the category bar's labels. A warm-grey near-black
     (#2A2E35, 13.8:1 on white): Rob wanted them neither jet black nor the navy. */
  --wdi-ink-charcoal: #2A2E35;
  /* W2x: the one borrowed accent - the Hospitality door's yellow (W2w A). ACCENT ONLY: a mark or a stroke,
     never a surface, never a button, never in the hero or the dog band; on the homepage only the four uses in
     wdi-design.css (W2x A); anywhere else only with a design decision recorded in reports/w2b-design-system.md. */
  --wdi-accent-amber: #BA7C01;   /* icons, strokes, rims: 3.52:1 on white, 3.27 on --wdi-pale. Not for text */
  --wdi-accent-yellow: #FDC802;  /* the product's own yellow: fills mixed with white only (the step discs) */
  --wdi-ink-2: #4A5E6E;         /* body text. 6.74:1 */
  --wdi-ink-3: #64737F;         /* secondary text AND column headers. 4.88:1 - the floor */
  --wdi-ink-inverse: #ffffff;

  /* ---- surfaces ----------------------------------------------------------------------------
   * Sampled from the approved concepts pixel by pixel. --wdi-pale is the quiet card and the page
   * furniture; --wdi-tint is the ACTIVE state - the selected segment, the card the page is for.
   */
  --wdi-bg: #ffffff;
  --wdi-pale: #F3F7FB;
  --wdi-tint: #E3F0FF;
  /* W2h: the brand gradient - the top bar's light blue into the site blue, taken to the navy. The
     full-bleed bands on the signed-out homepage; nothing else. */
  --wdi-hero: linear-gradient(115deg, var(--wdi-navy) 0%, var(--wdi-blue-dark) 48%, var(--wdi-blue) 78%, #3ea7f0 100%);
  /* W2p: THE LOGO'S GRADIENT. The logo's mark runs from #42C1FF (light) to #2D91FF (sampled from
     img/logo-transparent.png); the top bar already carried that light-into-brand blue as
     #3EA7F0 -> --wdi-blue at 90deg, so that is the token, named once. --wdi-grad-deep is the same two
     stops one step darker (#1565C0 -> #0D47A1): white on it is 5.75:1 at its lightest, 8.59:1 at its
     darkest - for a surface that carries white text. Gradient appears in three places only: the top
     bar, the closing band, and the primary button's hover/focus (design system, W2p rule). */
  --wdi-grad-stops: #3EA7F0 0%, var(--wdi-blue) 70%;
  --wdi-grad: linear-gradient(90deg, var(--wdi-grad-stops));
  --wdi-grad-deep-stops: var(--wdi-blue) 0%, var(--wdi-blue-dark) 70%;
  --wdi-grad-deep: linear-gradient(90deg, var(--wdi-grad-deep-stops));

  /* ---- the container (W2q) -----------------------------------------------------------------
   * ONE content container for every page: 1280px below 1600, 1400px from 1600 (the box, padding
   * included). The gutter inside it is 24px from 1600, where every container is made to use it, so the
   * header, the nav, the homepage's sections, the catalogue, the product page, My account, the basket and
   * the footer all start and end on the same two lines. Below 1600 each keeps the gutter it had. */
  --wdi-container: 1280px;
  --wdi-gutter: var(--wdi-5);
  /* The category bar. W2i: WHITE, charcoal labels 6.74:1, the brand blue on hover and for the current
     category, a hairline below. The palette is chosen by WDI_Chrome::NAV_STYLE (the header prints
     .wdi-nav--white / --navy / --ink); these are the white defaults. W2h shipped navy (#002D72,
     white labels 12.98:1); before that it was the ink (#0F1E2D, 16.88:1). */
  --wdi-nav-bg: #fff;
  --wdi-nav-ink: var(--wdi-ink-charcoal);   /* W2s A2: full-strength (was --wdi-ink-2) */
  --wdi-nav-hover-ink: var(--wdi-blue);
  --wdi-nav-hover-bg: var(--wdi-tint);
  --wdi-nav-line: var(--wdi-line);

  /* ---- lines -------------------------------------------------------------------------------- */
  --wdi-line: #DDE8F4;          /* hairlines between rows */
  --wdi-line-strong: #C5D5E2;   /* input and button borders */

  /* ---- status ------------------------------------------------------------------------------
   * Each states its meaning in words as well as colour; the chip component enforces that.
   */
  --wdi-ok: #187E43;    --wdi-ok-bg: #E6F5ED;      /* 5.12:1 on white, 4.54:1 on its own tint */
  --wdi-warn: #B45309;  --wdi-warn-bg: #FEF3E0;    /* 5.02:1 */
  --wdi-bad: #C5281C;   --wdi-bad-bg: #FDECEA;     /* 5.68:1 */
  --wdi-info: #0D47A1;  --wdi-info-bg: #E3F0FF;    /* 8.59:1 */
  --wdi-credit: #187E43;                           /* the credit figure: the app's green, 5.12:1 */

  /* ---- type --------------------------------------------------------------------------------
   * No webfont. This is the system UI face on every platform these customers use, with Arial as
   * the last resort: it costs nothing, paints on the first frame and cannot fail to load.
   */
  --wdi-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wdi-t-xs: 12px;   /* uppercase labels and column headers */
  --wdi-t-sm: 13px;   /* chips, captions, table meta */
  --wdi-t-md: 14px;   /* table body, buttons, secondary UI */
  --wdi-t-lg: 15px;   /* body copy and form fields */
  --wdi-t-xl: 18px;   /* panel and card headings */
  --wdi-t-2xl: 22px;  /* page sections */
  --wdi-t-3xl: 28px;  /* page titles and the credit figure */
  --wdi-t-4xl: 32px;  /* the dashboard greeting, and nothing else */
  --wdi-t-display: 48px; /* W2h: the signed-out homepage's headline, and nothing else (34px on a phone) */
  --wdi-w-regular: 400;
  --wdi-w-semi: 600;
  --wdi-w-bold: 700;

  /* ---- space: a 4px grid, and only these ---------------------------------------------------- */
  --wdi-1: 4px;  --wdi-2: 8px;  --wdi-3: 12px;  --wdi-4: 16px;
  --wdi-5: 24px; --wdi-6: 32px; --wdi-7: 48px;  --wdi-8: 64px;

  /* ---- radius ------------------------------------------------------------------------------- */
  --wdi-r-sm: 5px;      /* fields, small tiles */
  --wdi-r: 12px;        /* cards */
  --wdi-r-pill: 999px;  /* every button, every segment, every chip */

  /* ---- elevation ---------------------------------------------------------------------------
   * ONE level, and it is nearly invisible on purpose. Anything that needs to float higher than
   * this is solving a layout problem with a shadow.
   */
  --wdi-shadow: 0 1px 2px rgba(55, 55, 54, .06), 0 2px 8px rgba(55, 55, 54, .05);
  --wdi-shadow-up: 0 -2px 12px rgba(55, 55, 54, .08);   /* the sticky bar, which sits over content */

  --wdi-focus: 0 0 0 2px #fff, 0 0 0 4px var(--wdi-btn);
}

/* ============================================================================ components
 *
 * Each has ONE class. Modifiers are --suffixes on that class. Nothing here positions itself;
 * pages do that.
 */

/*
 * THE FACE, APPLIED. The theme's Customizer sheet prints "* { font-family: Inter }" - on EVERY
 * element directly, so setting the face on a container and relying on inheritance does nothing:
 * the child has its own declaration. A rule of equal reach and one class more specificity is the
 * only thing that shifts it.
 *
 * Icon fonts are excluded by name. Font Awesome, dashicons and the wishlist plugin all work by
 * setting font-family on the element itself and printing a glyph from a private code point; swap
 * the face and they render as empty boxes.
 */
.wdi-chrome *:not(i):not(.fa):not([class*="fa-"]):not([class*="icon"]):not([class*="dashicons"]):not([class*="tinvwl"]) {
  font-family: var(--wdi-font);
}

.wdi-u { font-family: var(--wdi-font); color: var(--wdi-ink-2); }

/* ---- 0. the theme's blanket hover, neutralised ONCE --------------------------------------------
 *
 * The parent theme ships, four times over in style.css:
 *
 *     button:hover { background-color: var(--main-text-color); color: var(--main-bg-color) }
 *
 * A bare element selector plus a pseudo-class is (0,1,1) - which OUT-RANKS any single-class rule
 * of ours that does not itself use :hover. That is why buttons with no hover of their own went
 * black: Close in the quick-add panel, Save basket as a list, Paste a list of codes, Search. Each
 * one was patched where it was found, which meant the next button anybody added inherited the bug
 * again.
 *
 * This is the one rule that ends it. (0,2,1) beats the theme, and it beats every component hover
 * in this file too - so the components no longer state their hover colours directly. They set two
 * CUSTOM PROPERTIES instead, which this rule reads. A button that declares neither simply keeps
 * the background it already had and inherits its text colour: nothing turns black by default, and
 * a hover only exists where the system says it does.
 *
 * Border and underline are deliberately NOT here. They are not what the theme is breaking, and a
 * component that wants an outline on hover should say so itself.
 */
.wdi-chrome button:hover,
.wdi-chrome input[type="submit"]:hover,
.wdi-chrome input[type="button"]:hover,
.wdi-chrome .button:hover,
.wdi-chrome a.button:hover {
  background-color: var(--wdi-hover-bg, transparent);
  color: var(--wdi-hover-ink, inherit);
}

/* ---- 1. buttons -------------------------------------------------------------------------------
 * One shape - a pill - and four jobs. Primary is the action the screen exists for, and there is
 * never more than one on a screen.
 */
.wdi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wdi-2);
  height: 40px;
  padding: 0 var(--wdi-5);
  border: 1px solid transparent;
  border-radius: var(--wdi-r-pill);
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.wdi-btn--primary {
  background: var(--wdi-btn);
  border-color: var(--wdi-btn);
  color: #fff;
  --wdi-hover-bg: var(--wdi-btn-hover);
  --wdi-hover-ink: #fff;
}
.wdi-btn--primary:hover,
.wdi-btn--primary:focus { background: var(--wdi-grad-deep); border-color: var(--wdi-btn-hover); color: #fff; }   /* W2p: the deep gradient */

.wdi-btn--secondary {
  background: #fff;
  border-color: var(--wdi-line-strong);
  color: var(--wdi-blue);
  --wdi-hover-bg: var(--wdi-tint);
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-btn--secondary:hover,
.wdi-btn--secondary:focus { background: var(--wdi-tint); border-color: var(--wdi-blue); color: var(--wdi-blue-dark); }

/* Outline reads quieter than secondary: same shape, no fill at rest. Used for Enquire and Open. */
.wdi-btn--outline {
  background: transparent;
  border-color: var(--wdi-line-strong);
  color: var(--wdi-blue);
  --wdi-hover-bg: var(--wdi-pale);
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-btn--outline:hover { background: var(--wdi-pale); border-color: var(--wdi-blue); }

/* Ghost is a button that reads as a link - Remove, View basket, Change. Still 40px to hit. */
.wdi-btn--ghost {
  background: none;
  border-color: transparent;
  color: var(--wdi-blue);
  padding: 0 var(--wdi-2);
  --wdi-hover-bg: transparent;
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-btn--ghost:hover { color: var(--wdi-blue-dark); text-decoration: underline; }

.wdi-btn--sm { height: 32px; font-size: var(--wdi-t-sm); padding: 0 var(--wdi-4); }
.wdi-btn--lg { height: 48px; font-size: var(--wdi-t-lg); padding: 0 var(--wdi-6); }
.wdi-btn--block { width: 100%; }

.wdi-btn[disabled],
.wdi-btn[aria-disabled="true"] {
  background: var(--wdi-pale);
  border-color: var(--wdi-line);
  color: var(--wdi-ink-3);
  cursor: not-allowed;
}
.wdi-btn:focus-visible { outline: none; box-shadow: var(--wdi-focus); }

/* ---- 2. segmented control ----------------------------------------------------------------------
 * The selected segment is PALE BLUE, never black and never raised. Black was borrowed from the old
 * account nav; on a page of white cards it reads as a disabled state or a bug, and it was the
 * loudest thing on the category page.
 */
.wdi-seg { display: inline-flex; align-items: center; gap: var(--wdi-1); border: 0; margin: 0; padding: 0; }
.wdi-seg__legend {
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-semi);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  padding: 0 var(--wdi-2) 0 0;
  margin: 0;
  float: left;
  /* The theme gives every legend a bottom border. On a legend that spans its group that draws a
     rule across the filter card, which reads as a divider nobody asked for. */
  border: 0;
  width: auto;
}
.wdi-seg__btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--wdi-4);
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-pill);
  background: #fff;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink-2);
  cursor: pointer;
  box-shadow: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.wdi-seg__btn { --wdi-hover-bg: var(--wdi-pale); --wdi-hover-ink: var(--wdi-blue-dark); }
.wdi-seg__btn:hover { border-color: var(--wdi-blue); }
.wdi-seg__btn[aria-pressed="true"],
.wdi-seg__btn.is-on {
  background: var(--wdi-tint);
  border-color: var(--wdi-blue);
  color: var(--wdi-blue-dark);
  box-shadow: none;
  /* The selected segment does not change on hover: it is already the selected one. */
  --wdi-hover-bg: var(--wdi-tint);
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-seg__btn:focus-visible { outline: none; box-shadow: var(--wdi-focus); }

/* ---- 3. label, field, select -------------------------------------------------------------------
 *
 * WHY THE SCOPE CLASS IS NAMED ALONGSIDE EACH COMPONENT HERE. The parent theme styles WooCommerce's
 * inputs at `span.woocommerce-input-wrapper input` - an element plus a class, (0,1,2) - which beats
 * a bare component class no matter how late our stylesheet loads. Naming .wdi-scope--app in the
 * selector list lifts the SAME declarations to (0,2,x) wherever the app scope is on the page,
 * without restating a single value. Fixed once here rather than per page: the round-6 checkout is
 * where it was caught, but the My account address forms carry the same fields.
 */
.wdi-scope--app .wdi-label, .wdi-scope--info .wdi-label, .wdi-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);
}
.wdi-scope--app .wdi-field, .wdi-scope--info .wdi-field, .wdi-field {
  width: 100%;
  height: 44px;
  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: var(--wdi-t-lg);
  color: var(--wdi-ink);
}
.wdi-scope--app textarea.wdi-field, .wdi-scope--info textarea.wdi-field, textarea.wdi-field { height: auto; padding: var(--wdi-3); line-height: 1.6; }
.wdi-scope--app select.wdi-field, select.wdi-field {
  appearance: none;
  padding-right: var(--wdi-6);
  /* The chevron is drawn, not an image request. */
  background-image: linear-gradient(45deg, transparent 50%, var(--wdi-ink-3) 50%),
                    linear-gradient(135deg, var(--wdi-ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.wdi-scope--app .wdi-field:focus, .wdi-scope--info .wdi-field:focus, .wdi-field:focus { outline: none; border-color: var(--wdi-btn); box-shadow: 0 0 0 3px rgba(18, 119, 206, .18); }
.wdi-field::placeholder { color: var(--wdi-ink-3); }
.wdi-help { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); margin: var(--wdi-1) 0 0; }

/* ---- 4. quantity stepper -----------------------------------------------------------------------
 * A field, not three buttons in a trench coat: the number is typeable and the two controls are
 * secondary to it. The spin buttons the browser adds are removed because they are 10px tall.
 */
.wdi-stepper { display: inline-flex; align-items: stretch; height: 40px; }
.wdi-stepper__btn {
  width: 34px;
  border: 1px solid var(--wdi-line-strong);
  background: #fff;
  color: var(--wdi-ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.wdi-stepper__btn:first-child { border-radius: var(--wdi-r-sm) 0 0 var(--wdi-r-sm); }
.wdi-stepper__btn:last-child { border-radius: 0 var(--wdi-r-sm) var(--wdi-r-sm) 0; }
.wdi-stepper__btn:hover { background: var(--wdi-pale); color: var(--wdi-blue-dark); }
.wdi-stepper__input {
  width: 52px;
  border: 1px solid var(--wdi-line-strong);
  border-left: 0;
  border-right: 0;
  text-align: center;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-lg);
  color: var(--wdi-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.wdi-stepper__input::-webkit-outer-spin-button,
.wdi-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wdi-stepper__input:focus { outline: none; box-shadow: 0 0 0 3px rgba(18, 119, 206, .18); position: relative; z-index: 1; }

/* ---- 5. checkbox -------------------------------------------------------------------------------
 * Drawn, not the browser's. The native control is 13px, square, and sits on a different baseline
 * in every browser, which is why the category sidebar's checkboxes never lined up with anything.
 */
.wdi-check { display: inline-flex; align-items: center; gap: var(--wdi-2); cursor: pointer; }
.wdi-check__input {
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--wdi-line-strong);
  border-radius: var(--wdi-r-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.wdi-check__input:checked { background: var(--wdi-btn); border-color: var(--wdi-btn); }
.wdi-check__input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wdi-check__input:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-check__label { font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }

/* ---- 6. table ----------------------------------------------------------------------------------
 * Uppercase grey column headers, hairline separators, no zebra, money right-aligned and tabular.
 * A row is 72px so a 56px product tile has air around it.
 */
.wdi-t { width: 100%; border-collapse: collapse; margin: 0; font-size: var(--wdi-t-md); }
.wdi-t th {
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-semi);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  padding: var(--wdi-2) var(--wdi-3);
  white-space: nowrap;
}
.wdi-t td {
  border: 0;
  border-bottom: 1px solid var(--wdi-line);
  padding: var(--wdi-3);
  height: 72px;
  vertical-align: middle;
  color: var(--wdi-ink);
}
.wdi-t th:first-child, .wdi-t td:first-child { padding-left: 0; }
.wdi-t th:last-child,  .wdi-t td:last-child  { padding-right: 0; text-align: right; }
.wdi-t tbody tr:hover td { background: var(--wdi-pale); }
.wdi-t__num { text-align: right; font-variant-numeric: tabular-nums; }
.wdi-t__money { text-align: right; font-weight: var(--wdi-w-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wdi-t__meta { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
/* The product tile: every image on the same pale square, so photography of mixed quality still
   reads as one column. */
.wdi-t__tile {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-pale);
  border-radius: var(--wdi-r-sm);
  padding: 4px;
}
/* A line that cannot be ordered: greyed, and it says why in words. */
.wdi-t tr.is-off td { background: var(--wdi-pale); color: var(--wdi-ink-3); }

/* ---- 7. status chip ---------------------------------------------------------------------------- */
.wdi-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--wdi-3);
  border-radius: var(--wdi-r-pill);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  white-space: nowrap;
  background: var(--wdi-info-bg);
  color: var(--wdi-info);
}
.wdi-chip--ok   { background: var(--wdi-ok-bg);   color: var(--wdi-ok); }
.wdi-chip--warn { background: var(--wdi-warn-bg); color: var(--wdi-warn); }
.wdi-chip--bad  { background: var(--wdi-bad-bg);  color: var(--wdi-bad); }
.wdi-chip--quiet { background: var(--wdi-pale); color: var(--wdi-ink-2); }
/* A chip that DOES something - a quick filter, not a status. It is a link, so it says where
   it goes before it is clicked, and the selected one uses the segmented control's own tint
   rather than inventing a second idea of "chosen". */
.wdi-chip--action {
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line-strong);
  color: var(--wdi-ink-2);
  text-decoration: none;
  cursor: pointer;
}
.wdi-chip--action { --wdi-hover-bg: var(--wdi-pale); --wdi-hover-ink: var(--wdi-blue-dark); }
.wdi-chip--action:hover { border-color: var(--wdi-blue); }
.wdi-chip--action.is-on { background: var(--wdi-tint); border-color: var(--wdi-blue); color: var(--wdi-blue-dark); }
.wdi-chip--action:focus-visible { outline: none; box-shadow: var(--wdi-focus); }

/* ---- 8. card ------------------------------------------------------------------------------------
 * White by default; pale for quiet furniture; tint for the one card a screen is FOR. No borders -
 * the concepts have none - and the single shadow only where a card floats over content.
 */
.wdi-card { background: var(--wdi-bg); border-radius: var(--wdi-r); padding: var(--wdi-5); }
/* Modifiers carry the card class too, (0,2,0): wdi-design.css restates .wdi-card's background after
   this file, and at (0,1,0) the pale and tint variants silently lost to it (found W2c). */
.wdi-card.wdi-card--pale { background: var(--wdi-pale); }
.wdi-card.wdi-card--tint { background: var(--wdi-tint); }
/* Also (0,2,0), for the same reason as --pale and --tint below: the legacy .wdi-card sets border: 0. */
.wdi-card.wdi-card--bordered { border: 1px solid var(--wdi-line); }
.wdi-card--tight { padding: var(--wdi-4); }
.wdi-card__title {
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-ink);
  margin: 0 0 var(--wdi-3);
}
.wdi-card__label {
  font-size: var(--wdi-t-xs);
  font-weight: var(--wdi-w-bold);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--wdi-ink-3);
  margin: 0 0 var(--wdi-3);
}

/* ---- 9. filter card ---------------------------------------------------------------------------
 * The pale card that holds controls above a table: search, status, per-page, segmented groups.
 */
.wdi-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--wdi-4);
  background: var(--wdi-pale);
  border-radius: var(--wdi-r);
  padding: var(--wdi-4) var(--wdi-5);
  margin: 0 0 var(--wdi-5);
}
.wdi-filters__group { display: flex; flex-direction: column; gap: var(--wdi-1); margin: 0; padding: 0; }
.wdi-filters__group--grow { flex: 1 1 280px; min-width: 200px; }

/* ---- 10. sticky action bar ---------------------------------------------------------------------
 * SOLID, never translucent: it sits over a table of numbers and prices, and a customer has to be
 * able to read both. It docks above whatever follows the table rather than covering it - see
 * .wdi-actionbar--docked, which the page sets when the bar reaches its resting place.
 */
.wdi-actionbar {
  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-actionbar--docked { position: static; box-shadow: var(--wdi-shadow); }
.wdi-actionbar__summary {
  flex: 1 1 auto;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
}
.wdi-actionbar__summary em { font-style: normal; font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); }
.wdi-actionbar__status { font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); flex: 0 0 auto; }

/* ---- 11. pagination ---------------------------------------------------------------------------- */
.wdi-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--wdi-2);
  list-style: none;
  margin: var(--wdi-6) 0 0;
  padding: 0;
  border: 0;
}
.wdi-pager li { margin: 0; border: 0; list-style: none; }
.wdi-pager a,
.wdi-pager 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-pager a:hover { background: var(--wdi-pale); border-color: var(--wdi-blue); }
.wdi-pager .current,
.wdi-pager span.current { background: var(--wdi-tint); border-color: var(--wdi-blue); color: var(--wdi-blue-dark); }
.wdi-pager .dots { border: 0; background: none; color: var(--wdi-ink-3); min-width: 0; }

/* ---- 12. breadcrumb ---------------------------------------------------------------------------- */
.wdi-crumbs {
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-3);
  padding: var(--wdi-5) 0;
  margin: 0;
}
.wdi-crumbs a { color: var(--wdi-ink-3); text-decoration: none; }
.wdi-crumbs a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-crumbs .current,
.wdi-crumbs > span:last-child { color: var(--wdi-ink); font-weight: var(--wdi-w-semi); }

/* ---- 13. notice --------------------------------------------------------------------------------
 * A left rule in the status colour, a pale tint behind, and WORDS. Never colour alone.
 */
.wdi-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--wdi-3);
  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);
  padding: var(--wdi-3) var(--wdi-4);
  margin: 0 0 var(--wdi-4);
}
.wdi-notice--ok  { border-left-color: var(--wdi-ok);  background: var(--wdi-ok-bg); }
.wdi-notice--warn{ border-left-color: var(--wdi-warn);background: var(--wdi-warn-bg); }
.wdi-notice--bad { border-left-color: var(--wdi-bad); background: var(--wdi-bad-bg); }
.wdi-notice .wdi-btn { margin-left: auto; }

/* A notice that carries figures as well as words - the basket's credit block, and anything else
 * that has to say a number and then say what it means. The figures read as a definition list
 * because that is what they are: a label and its value. */
.wdi-notice__body { flex: 1 1 auto; min-width: 0; }
.wdi-notice__title {
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: inherit;
  margin: 0 0 var(--wdi-2);
}
.wdi-notice--ok .wdi-notice__title  { color: var(--wdi-ok); }
.wdi-notice--bad .wdi-notice__title { color: var(--wdi-bad); }
.wdi-notice__figs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--wdi-1) var(--wdi-3);
  margin: 0 0 var(--wdi-2);
  font-size: var(--wdi-t-sm);
}
.wdi-notice__figs dt { margin: 0; color: var(--wdi-ink-2); }
.wdi-notice__figs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--wdi-ink); }
.wdi-notice__figs .is-lead { font-weight: var(--wdi-w-bold); }
.wdi-notice__line { font-size: var(--wdi-t-sm); margin: 0; color: var(--wdi-ink-2); }

/* ---- 14. empty state --------------------------------------------------------------------------- */
.wdi-empty { text-align: center; padding: var(--wdi-8) var(--wdi-5); }
.wdi-empty__title { font-size: var(--wdi-t-2xl); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); margin: 0 0 var(--wdi-2); }
.wdi-empty__body { font-size: var(--wdi-t-lg); color: var(--wdi-ink-3); margin: 0 0 var(--wdi-5); }

/* ---- 15. page furniture ------------------------------------------------------------------------ */
.wdi-page-title { font-size: var(--wdi-t-3xl); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); margin: 0 0 var(--wdi-3); line-height: 1.2; }
.wdi-section-title { font-size: var(--wdi-t-2xl); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); margin: 0 0 var(--wdi-4); }
.wdi-lede { font-size: var(--wdi-t-lg); color: var(--wdi-ink-3); margin: 0 0 var(--wdi-5); }
.wdi-link { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); text-decoration: none; }
.wdi-link:hover { color: var(--wdi-blue-dark); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .wdi-btn, .wdi-seg__btn, .wdi-field { transition: none; }
}

/* ---- 16. popover -------------------------------------------------------------------------------
 * A panel hung off a control in the chrome. One shape for all of them, so the account menu and the
 * quick-add panel do not each invent a card. Hidden by CLIPPING, not display:none, so the panel
 * stays in the accessibility tree and can animate; `visibility` flips at 0s on the way OPEN because
 * it is a discrete property and a transition on it leaves the panel computed hidden long enough to
 * swallow the focus call that follows.
 */
.wdi-popover {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  margin: 8px 0 0;
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  box-shadow: var(--wdi-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.wdi-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear 0s;
}
.wdi-popover__head {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  padding: var(--wdi-4) var(--wdi-4) var(--wdi-2);
}
.wdi-popover__title { font-size: var(--wdi-t-md); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); margin: 0; }
.wdi-popover__close {
  margin-left: auto;
  border: 0;
  background: none;
  padding: var(--wdi-1) var(--wdi-2);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink-3);
  cursor: pointer;
}
.wdi-popover__close { --wdi-hover-bg: transparent; --wdi-hover-ink: var(--wdi-ink); }
.wdi-popover__body { padding: 0 var(--wdi-4) var(--wdi-4); }

/* ---- 16b. dialog (W2m) ------------------------------------------------------------------------
 * The popover's card for something that is NOT hung off a control: centred over a backdrop - the
 * same radius, hairline, shadow, header (bold title, "Close" with the Lucide x) and padding as the
 * add-by-code panel - and, on a phone, a sheet across the top of the screen, as add-by-code is (the
 * top, not the bottom, so the keyboard never covers a field in it). Built on .wdi-modal, so focus
 * moves in, Tab is trapped, Escape and the backdrop close it (wdi-modal.js).
 *
 * .wdi-picklist is its choice-of-several: radio rows, the name left and a muted count right, the
 * chosen row in the segmented control's tint and blue - one idea of "chosen" across the system.
 */
/* W13: the overlay itself - fixed over the page, the backdrop under it, the page locked while it is open. These lived
   only in wdi-reorder.css, which a visitor's page (the homepage, the brochure pages) never loads, so there the brochure
   dialog fell into the page flow under the footer and focusing its first field scrolled the page down to it. The
   system layer loads on every page, so it owns the mechanics now; wdi-reorder.css still repeats them, identically,
   for its own older modals. */
body.wdi-modal-open { overflow: hidden; }
.wdi-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; }
.wdi-modal[hidden] { display: none; }
.wdi-modal__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); }

/* (0,2,0): wdi-reorder.css, which loads after this file, gives .wdi-modal its own padding. */
.wdi-modal.wdi-dialog { align-items: flex-start; padding: 12vh var(--wdi-4) var(--wdi-4); }
.wdi-dialog > .wdi-modal__backdrop { background: rgba(15, 30, 45, .45); }
.wdi-dialog__box {
  position: relative; width: 100%; max-width: 460px; max-height: 76vh; display: flex; flex-direction: column;
  background: var(--wdi-bg); border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); box-shadow: var(--wdi-shadow);
  font-family: var(--wdi-font); color: var(--wdi-ink);
}
.wdi-dialog__head { display: flex; align-items: flex-start; gap: var(--wdi-3); padding: var(--wdi-4) var(--wdi-4) var(--wdi-2); }
.wdi-dialog__heading { min-width: 0; flex: 1 1 auto; }
.wdi-dialog__title { font-size: var(--wdi-t-md); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); margin: 0; }
.wdi-dialog__sub { margin: 2px 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdi-dialog__sub:empty { display: none; }
.wdi-dialog__close {
  flex: none; display: inline-flex; align-items: center; gap: var(--wdi-1); border: 0; background: none; cursor: pointer;
  padding: var(--wdi-1) 0; font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); color: var(--wdi-ink-3);
  --wdi-hover-bg: transparent; --wdi-hover-ink: var(--wdi-ink);
}
.wdi-dialog__close .wdi-icon { width: 16px; height: 16px; }
.wdi-dialog__body { padding: var(--wdi-2) var(--wdi-4) var(--wdi-4); overflow-y: auto; }
.wdi-dialog__box--wide { max-width: 640px; }   /* W5: Order again lists the order's lines */
/* W2y C: the parent theme's style.css has `.row form { display: flex }`, and a dialog printed inside a .row turned its
   body into a row - the Save-as-a-list help line stood beside the field and ran over the edge. A dialog body is a column. */
.wdi-modal.wdi-dialog form.wdi-dialog__body { display: block; }
/* W2y C: a dialog printed inside the account content took that page's heading size (22px, `.wdi-scope--app
   .woocommerce-MyAccount-content h2`). A dialog's title is the pattern's, wherever the dialog is printed. */
.wdi-modal.wdi-dialog .wdi-dialog__head .wdi-dialog__title { font-size: var(--wdi-t-md); line-height: 1.2; letter-spacing: 0; margin: 0; }
.wdi-dialog__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--wdi-2); padding: var(--wdi-3) var(--wdi-4) var(--wdi-4); border-top: 1px solid var(--wdi-line); }
.wdi-dialog__foot .wdi-modal__status { flex: 1 1 auto; margin: 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
@media (max-width: 782px) {
  .wdi-modal.wdi-dialog { padding: 0; }
  .wdi-dialog__box { max-width: none; max-height: 88vh; border-width: 0 0 1px; border-radius: 0 0 var(--wdi-r) var(--wdi-r); }
  .wdi-dialog__foot .wdi-btn { flex: 1 1 0; justify-content: center; }
  .wdi-dialog__foot .wdi-modal__status:not(:empty) { flex-basis: 100%; }
  .wdi-dialog__foot { flex-wrap: wrap; }
}

.wdi-picklist { margin: 0; padding: 0; border: 0; min-width: 0; }
.wdi-picklist__rows { display: grid; gap: var(--wdi-2); margin: 0 0 var(--wdi-2); }
.wdi-picklist__row {
  display: flex; align-items: center; gap: var(--wdi-3); min-height: 44px; margin: 0; padding: var(--wdi-2) var(--wdi-3);
  border: 1px solid var(--wdi-line-strong); border-radius: var(--wdi-r-sm); background: var(--wdi-bg); cursor: pointer;
  font-size: var(--wdi-t-md); color: var(--wdi-ink);
}
.wdi-picklist__row:hover { border-color: var(--wdi-blue); }
.wdi-picklist__row:has(input:checked) { background: var(--wdi-tint); border-color: var(--wdi-blue); }
.wdi-picklist__row:has(input:focus-visible) { box-shadow: var(--wdi-focus); }
.wdi-picklist__row input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--wdi-blue); }
.wdi-picklist__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wdi-picklist__row:has(input:checked) .wdi-picklist__name { color: var(--wdi-blue-dark); font-weight: var(--wdi-w-semi); }
.wdi-picklist__count { flex: none; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); font-variant-numeric: tabular-nums; }
.wdi-picklist__row--new .wdi-picklist__name { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); }
.wdi-dialog .wdi-picker-new { margin: var(--wdi-3) 0 0; }
.wdi-dialog .wdi-picker-new .wdi-field { width: 100%; }
/* W2y C: a dialog's own field - the label over a full-width field, and a help line UNDER it (not beside). */
.wdi-dialog .wdi-dialog__field { margin: 0; }
.wdi-dialog .wdi-dialog__field .wdi-label { display: block; }
.wdi-dialog .wdi-dialog__field .wdi-field { display: block; width: 100%; box-sizing: border-box; }
.wdi-dialog .wdi-dialog__hint { display: block; width: 100%; margin: var(--wdi-2) 0 0; }
/* the muted help style wherever the dialog is printed (the account content's paragraphs are body ink, --wdi-ink-2) */
.wdi-modal.wdi-dialog .wdi-dialog__body .wdi-dialog__hint { color: var(--wdi-ink-3); font-size: var(--wdi-t-sm); line-height: 1.5; }

/* ---- 16c. picture preview (W2m) ---------------------------------------------------------------
 * A list's 72px product picture, larger, beside it: hover (or focus the row's product link) and after
 * 150ms a card - the system card: white, hairline, 12px radius, the one shadow - holds a 240px picture
 * with the product's name under it. Flips to the other side near the right edge, never off-screen.
 * Fine pointers only (no preview on touch); decorative (aria-hidden - the row's link is the accessible
 * target); the picture is fetched on the first hover. wdi-chrome.js.
 */
.wdi-peek {
  position: fixed; z-index: 70; left: 0; top: 0; width: 266px; box-sizing: border-box; margin: 0; padding: var(--wdi-3);
  background: var(--wdi-bg); border: 1px solid var(--wdi-line); border-radius: var(--wdi-r); box-shadow: var(--wdi-shadow);
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s linear .12s;
}
.wdi-peek.is-open { opacity: 1; visibility: visible; transition: opacity .12s ease, visibility 0s linear 0s; }
/* (0,2,1): WooCommerce's `.woocommerce img { height: auto; max-width: 100% }` is (0,1,1). */
.wdi-peek img.wdi-peek__img { display: block; width: 240px; height: 240px; max-width: none; object-fit: contain; background: #fff; }
.wdi-peek__name { margin: var(--wdi-2) 0 0; font-family: var(--wdi-font); font-size: var(--wdi-t-sm); line-height: 1.35; color: var(--wdi-ink); text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .wdi-peek, .wdi-peek.is-open { transition: none; } }

/* ---- 17. toast ---------------------------------------------------------------------------------
 * The confirmation for something that happened without leaving the page. It is the notice
 * component in a fixed corner, not a new thing: same rule, same tint, same words-not-colour rule.
 * It is polite, never assertive - nothing here is urgent enough to interrupt a screen reader
 * mid-sentence - and it keeps its action as a real link so it can be reached by keyboard.
 */
.wdi-toast {
  position: fixed;
  right: var(--wdi-5);
  bottom: var(--wdi-5);
  z-index: 200;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  border-left: 3px solid var(--wdi-ok);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-ok-bg);
  color: var(--wdi-ink-2);
  font-size: var(--wdi-t-md);
  padding: var(--wdi-3) var(--wdi-4);
  box-shadow: var(--wdi-shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.wdi-toast.is-open { opacity: 1; transform: none; }
.wdi-toast--bad { border-left-color: var(--wdi-bad); background: var(--wdi-bad-bg); }
.wdi-toast__link { margin-left: auto; white-space: nowrap; }

/* ---- 18. horizontal product card ---------------------------------------------------------------
 * A product offered ALONGSIDE something else - "frequently ordered with", "customers also add".
 * It is deliberately not the catalogue's grid card: these sit under the thing a customer came for,
 * and a tall card with a big picture competes with it. Image left at 56px, name and price right,
 * one pill. The website concept draws them exactly this way.
 */
.wdi-hcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wdi-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wdi-hcard {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  margin: 0;
  padding: var(--wdi-3);
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  list-style: none;
}
.wdi-hcard__thumb { flex: 0 0 auto; display: block; line-height: 0; }
.wdi-hcard__thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--wdi-pale);
  border-radius: var(--wdi-r-sm);
  padding: 4px;
}
.wdi-hcard__text { flex: 1 1 auto; min-width: 0; }
.wdi-hcard__name {
  margin: 0;
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-regular);
  line-height: 1.35;
  /* Two lines, then stop. A five-line name turns a row of equal cards into a staircase. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wdi-hcard__name a { color: var(--wdi-ink); text-decoration: none; }
.wdi-hcard__name a:hover { color: var(--wdi-blue); text-decoration: underline; }
.wdi-hcard__price {
  margin: 2px 0 0;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-bold);
  color: var(--wdi-ink);
  font-variant-numeric: tabular-nums;
}
.wdi-hcard__price .wdi-no-price { font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-regular); color: var(--wdi-ink-3); text-decoration: none; }
.wdi-hcard > .wdi-btn { flex: 0 0 auto; }
/* W2j: the next suggestions wait in the row, hidden (display:flex would outrank [hidden]); an added
   card fades out before the next takes its place. */
.wdi-hcard[hidden] { display: none; }
.wdi-hcard.is-leaving { opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .wdi-hcard.is-leaving { transition: none; } }
/* A card whose content needs 160px does not fit a 78px column, and because the card cannot
   shrink below its own content it pushed the DOCUMENT wide on a phone rather than just the
   grid. Below the tablet breakpoint the row becomes a column. */
@media (max-width: 767px) {
  .wdi-hcards { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 18b. money is never pure black ------------------------------------------------------------
 *
 * The parent theme sets `.product.type-product span.woocommerce-Price-amount.amount bdi { color:
 * #000 }` - (0,4,2), so it beats any component that colours a price by class alone. It was the
 * only pure black left on the product page: every figure inside a Frequently-ordered-with card
 * rendered #000 while the name beside it was the charcoal token.
 *
 * A <bdi> is a bidirectional isolate. It carries no meaning about colour and should never own one;
 * making it inherit hands the figure back to whatever component it sits in - the card, the totals
 * row, the navy order total - so each keeps the colour it declared and none of them is black.
 *
 * The first selector mirrors the theme's own shape on purpose. A doubled scope class alone TIES
 * with it at (0,4,2), and a tie goes to whichever stylesheet loads last - which is the theme's.
 */
.wdi-scope--app .product.type-product span.woocommerce-Price-amount.amount bdi,
.wdi-scope--app.wdi-scope--app span.woocommerce-Price-amount.amount bdi,
.wdi-scope--app.wdi-scope--app .amount bdi,
.wdi-scope--app.wdi-scope--app bdi {
  color: inherit;
}

/* ---- 19. the large primary button --------------------------------------------------------------
 * ONE button on the site gets this: the one that leaves the basket. --wdi-button-large is the
 * concept's lighter blue, kept because at this size and weight it is the concept's own emphasis
 * and not a body-text colour. It measures 3.09:1 against white, which clears WCAG's LARGE-text
 * floor of 3:1 - and large text starts at 14pt bold, i.e. 18.66px, which is why the label is 19px
 * and not the 18 it looks like. At 18px bold the same colour would be a fail, so the size is
 * load-bearing: do not shrink the label without darkening the blue.
 */
.wdi-btn--xl {
  height: 52px;
  width: 100%;
  padding: 0 var(--wdi-5);
  font-size: 19px;
  font-weight: var(--wdi-w-bold);
  background: var(--wdi-button-large);
  border-color: var(--wdi-button-large);
  color: #fff;
}
.wdi-btn--xl { --wdi-hover-bg: var(--wdi-button-large-hover); --wdi-hover-ink: #fff; }
.wdi-btn--xl:hover { border-color: var(--wdi-button-large-hover); }

/* ---- 20. suggestion list (W2c) -----------------------------------------------------------------
 * The panel of products that drops under a search field as the customer types. It is a popover in
 * everything but position - same ground, hairline, radius and single shadow - and it hangs from
 * the LEFT of the field rather than the right of a control, so it is its own component rather than
 * a popover modifier that fights .wdi-popover's right:0.
 *
 * A row is a picture, the product (a real link: Enter on it opens the product), then - for a trade
 * customer only - figures and one action. The row the keyboard is on takes --wdi-tint, the system's
 * "this is the chosen one", never a coloured border on its own. Hidden with [hidden], not by
 * clipping: nothing in it needs to exist before there is something to show.
 */
.wdi-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  margin-top: var(--wdi-2);
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  box-shadow: var(--wdi-shadow);
  max-height: min(70vh, 640px);
  overflow-y: auto;
  text-align: left;
}
.wdi-suggest[hidden] { display: none; }
.wdi-suggest__list { list-style: none; margin: 0; padding: var(--wdi-1) 0; }
.wdi-suggest__row {
  display: flex;
  align-items: center;
  gap: var(--wdi-3);
  margin: 0;
  padding: var(--wdi-2) var(--wdi-4);
  min-height: 60px;
  list-style: none;
  border-top: 1px solid var(--wdi-line);
}
.wdi-suggest__row:first-child { border-top: 0; }
.wdi-suggest__row:hover { background: var(--wdi-pale); }
.wdi-suggest__row:focus-within { background: var(--wdi-tint); }
.wdi-suggest__tile {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--wdi-pale);
  border-radius: var(--wdi-r-sm);
  padding: 3px;
  mix-blend-mode: multiply;   /* cut-outs on white disappear into the pale tile */
}
.wdi-suggest__main {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--wdi-r-sm);
}
.wdi-suggest__main:focus { outline: none; }
.wdi-suggest__main:focus-visible { box-shadow: var(--wdi-focus); }
.wdi-suggest__name {
  display: block;
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wdi-suggest__main:hover .wdi-suggest__name { color: var(--wdi-blue); text-decoration: underline; }
.wdi-suggest__meta { display: block; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-suggest__figures { flex: 0 0 auto; min-width: 104px; text-align: right; }
.wdi-suggest__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-suggest__price.is-none { font-size: var(--wdi-t-sm); font-weight: var(--wdi-w-semi); color: var(--wdi-ink-3); }
.wdi-suggest__stock { display: block; font-size: var(--wdi-t-sm); }
.wdi-suggest__stock.is-ok  { color: var(--wdi-ok); }
.wdi-suggest__stock.is-bad { color: var(--wdi-bad); }
.wdi-suggest__act {
  flex: 0 0 132px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--wdi-2);
}
.wdi-suggest__qty {
  width: 56px;
  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-suggest__qty { -moz-appearance: textfield; appearance: textfield; }
/* No native spin buttons - they are 10px tall (see the stepper, section 4). The field is typable. */
.wdi-suggest__qty::-webkit-inner-spin-button,
.wdi-suggest__qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wdi-suggest__qty:focus { outline: none; box-shadow: var(--wdi-focus); }
.wdi-suggest__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--wdi-3);
  padding: var(--wdi-4);
  font-size: var(--wdi-t-md);
  color: var(--wdi-ink-2);
  list-style: none;
}
.wdi-suggest__all {
  display: flex;
  align-items: center;
  gap: var(--wdi-1);
  padding: var(--wdi-3) var(--wdi-4);
  border-top: 1px solid var(--wdi-line);
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-blue);
  text-decoration: none;
}
.wdi-suggest__all[hidden] { display: none; }
.wdi-suggest__all:hover { background: var(--wdi-pale); color: var(--wdi-blue-dark); text-decoration: underline; }
.wdi-suggest__all:focus { outline: none; }
.wdi-suggest__all:focus-visible { background: var(--wdi-tint); color: var(--wdi-blue-dark); text-decoration: underline; }

/* Below 640 the figures and the action drop under the name, aligned with it, so the name keeps
   the width it needs to be read. */
@media (max-width: 639px) {
  .wdi-suggest__row { flex-wrap: wrap; padding: var(--wdi-3); }
  .wdi-suggest__main { flex-basis: calc(100% - 56px); }
  .wdi-suggest__name { white-space: normal; }
  .wdi-suggest__figures { margin-left: 56px; min-width: 0; text-align: left; }
  .wdi-suggest__act { flex: 1 1 auto; }
}

/* ---- 21. prose (W2c) ---------------------------------------------------------------------------
 * Running copy - the About, Industries, Environmental and Deliveries pages brought over from the
 * .co.uk. The site had no text component because until now it had no text pages: everything was a
 * table or a card. One measure (72ch), the body colour, the system's heading sizes, and links that
 * look like the system's links. Headings step 22 / 18 so a page has one h1 (the page title) and
 * its sections below it in order.
 */
.wdi-prose { max-width: 72ch; color: var(--wdi-ink-2); font-size: var(--wdi-t-lg); line-height: 1.65; }
.wdi-prose > :first-child { margin-top: 0; }
.wdi-prose h2 { font-size: var(--wdi-t-2xl); font-weight: var(--wdi-w-bold); color: var(--wdi-ink); line-height: 1.3; margin: var(--wdi-6) 0 var(--wdi-3); }
.wdi-prose h3 { font-size: var(--wdi-t-xl); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); line-height: 1.35; margin: var(--wdi-5) 0 var(--wdi-2); }
.wdi-prose p { margin: 0 0 var(--wdi-4); }
.wdi-prose ul, .wdi-prose ol { margin: 0 0 var(--wdi-4); padding-left: var(--wdi-5); }
.wdi-prose li { margin: 0 0 var(--wdi-2); }
.wdi-prose a { color: var(--wdi-blue); font-weight: var(--wdi-w-semi); text-decoration: underline; text-underline-offset: 2px; }
.wdi-prose a:hover { color: var(--wdi-blue-dark); }
.wdi-prose a:focus-visible { outline: none; box-shadow: var(--wdi-focus); border-radius: 2px; }

/* ---- 22. clamped title (W2d) -------------------------------------------------------------------
 * A title that stops after N lines and ALWAYS takes N lines, so a row of cards lines up whether a
 * name is one line or five. Height, not max-height: max-height let a short title collapse and a
 * long one peek a third line over the product code beneath it (1/2 100mm Gastronorm Polycarbonate
 * LONG..., /shop grid, W2d).
 *
 * The line-height is the component's own and the height is computed from it, so the arithmetic
 * cannot drift. It drifted before because the theme's Customizer prints
 *   .product.type-product h2.woocommerce-loop-product__title { line-height: var(--small-font-size) !important }
 * inline, after every stylesheet: our clamp assumed 1.35 while the text ran at 16px, and the box
 * showed 2.36 lines. That selector is named in this list (section 7's rule: beat it once, at source).
 * --wdi-clamp-lines defaults to 3 - see the doc for why not 2.
 */
.wdi-clamp,
.wdi-chrome .product.type-product h2.woocommerce-loop-product__title.wdi-clamp {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: var(--wdi-clamp-lines, 3) !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: var(--wdi-clamp-lh, 1.35) !important;
  height: calc(var(--wdi-clamp-lh, 1.35) * 1em * var(--wdi-clamp-lines, 3)) !important;
  max-height: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* The grid card is a flex column, and a flex item shrinks by default: half the logged-out cards
     were squeezed from three lines to two. The title keeps its height; something else gives. */
  flex: none !important;
}

/* ---- 23. information pill (W2d) ----------------------------------------------------------------
 * The concept product page's row under Add to basket: "COSHH data sheet", "Suitable for food
 * preparation areas", "Vegetable oil & fat remover". Not a chip: a chip is a status or a filter,
 * 24px, and says something about a list; a pill is a control that opens a piece of information,
 * so it gets the control treatment - 36px drawn, 44px to the pointer (the ::after), a focus ring.
 *
 *   .wdi-pill              a button that opens a panel; aria-expanded/.is-on = the tint, like a
 *                          selected segment
 *   .wdi-pill--download    a link to a document (the COSHH sheet): tinted from the start, as the
 *                          concept draws it, with its arrow
 *   .wdi-pill--static      a label with nothing behind it (a tag with no description) - pale, no
 *                          pointer, not in the tab order because it is a span
 */
.wdi-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--wdi-1);
  min-height: 36px;
  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-ink-2);
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  --wdi-hover-bg: var(--wdi-pale);
  --wdi-hover-ink: var(--wdi-blue-dark);
}
.wdi-pill::after { content: ''; position: absolute; inset: -4px 0; }
.wdi-pill:hover { border-color: var(--wdi-blue); color: var(--wdi-blue-dark); text-decoration: none; }
.wdi-pill:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-pill.is-on,
.wdi-pill[aria-expanded="true"] { background: var(--wdi-tint); border-color: var(--wdi-blue); color: var(--wdi-blue-dark); --wdi-hover-bg: var(--wdi-tint); }
.wdi-pill--download { background: var(--wdi-tint); border-color: var(--wdi-tint); color: var(--wdi-blue-dark); --wdi-hover-bg: var(--wdi-tint); }
.wdi-pill--static { background: var(--wdi-pale); border-color: var(--wdi-pale); color: var(--wdi-ink-2); cursor: default; }
.wdi-pill--static:hover { border-color: var(--wdi-pale); color: var(--wdi-ink-2); }
.wdi-pill__icon { font-weight: var(--wdi-w-bold); }

/* ---- 24. table scroll box (W2d) ----------------------------------------------------------------
 * A table that is wider than the column it sits in scrolls INSIDE this box, never the page: the
 * brief's rule since W2b, and until W2d there was no component for it, so the catalogue list at 1024
 * (sidebar plus eight columns) pushed the whole document out to 1,209px. Wrap the table; nothing
 * else. A shadow on the edge that has more says there is more, and the box keeps the keyboard focus
 * ring of anything inside it visible.
 */
.wdi-t-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--wdi-bg) 30%, rgba(255, 255, 255, 0)) left center / 24px 100% no-repeat local,
    linear-gradient(to left, var(--wdi-bg) 30%, rgba(255, 255, 255, 0)) right center / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 30, 45, .12), transparent) left center / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 30, 45, .12), transparent) right center / 10px 100% no-repeat scroll;
}
/* 1 Dec 2026 (Keely: "The tick boxes are cut of by the side bar"). The scroll box clips at its own edge, and the
   list view's tick-box cell had no left padding, so the box sat flush on that edge: at Windows display scaling the
   box's left side rounded outside it, and the focus ring and the ticked state were always cut. Room for the box
   and its 3px focus ring, inside the box. Specific enough to beat the first-cell reset in wdi-design.css
   (.wdi-scope--app table.shop_table td:first-child). */
.wdi-t-scroll table.shop_table.wdi-rows th.wdi-col-check,
.wdi-t-scroll table.shop_table.wdi-rows td.wdi-col-check,
.wdi-my-products table.shop_table.wdi-rows th.wdi-col-check,   /* My products: below desktop its table is the scroll box */
.wdi-my-products table.shop_table.wdi-rows td.wdi-col-check { padding-left: 8px; }

/* ---- 9, on a phone (W2d). The filter card's groups wrapped as a flex row at every width, and on a
   390 phone the grow group took a line of its own with the label and field floated to its right and a
   blank block beside them (orders). Below 640 the card is a column: every group the full width. */
@media (max-width: 639px) {
  .wdi-scope--app .wdi-filters, .wdi-filters { flex-direction: column; align-items: stretch; gap: var(--wdi-3); padding: var(--wdi-4); }
  /* flex: none on EVERY group, the --grow one included: its 280px basis is a width in a row and
     becomes a 280px HEIGHT the moment the row turns into a column. */
  .wdi-scope--app .wdi-filters .wdi-filters__group, .wdi-filters .wdi-filters__group,
  .wdi-scope--app .wdi-filters .wdi-filters__group--grow, .wdi-filters .wdi-filters__group--grow { width: 100%; min-width: 0; flex: none; }
  .wdi-scope--app .wdi-filters .wdi-field, .wdi-filters .wdi-field { width: 100%; }
}

/* ---- 25. callout (W2e) -------------------------------------------------------------------------
 * One small pointer at a control, shown once: "Switch between grid and list here". Not a tooltip
 * (it is not on hover) and never a modal (it takes no focus and blocks nothing). White on the ink -
 * the one dark thing in the bar, so it reads as a pointer and not as content - with a 6px tail
 * pointing up at what it describes, and the one elevation (16.9:1). It fades by
 * itself after six seconds - in CSS, so it goes even without JavaScript - and wdi-chrome.js lets any
 * click dismiss it sooner. The page positions it; the component does not position itself.
 */
.wdi-callout {
  position: absolute;
  z-index: 40;
  margin: 0;
  padding: var(--wdi-2) var(--wdi-3);
  max-width: 240px;
  background: var(--wdi-ink);
  color: #fff;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-sm);
  font-weight: var(--wdi-w-semi);
  line-height: 1.35;
  border-radius: var(--wdi-r-sm);
  box-shadow: var(--wdi-shadow);
  pointer-events: auto;
  animation: wdi-callout-out .4s ease 6s forwards;
}
.wdi-callout::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--wdi-callout-tail, 24px);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--wdi-ink);
}
.wdi-callout.is-gone { animation: wdi-callout-out .2s ease 0s forwards; }
@keyframes wdi-callout-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .wdi-callout { animation-duration: .01s; } }

/* ---- 26. stacking table (W2e) ------------------------------------------------------------------
 * A data table that becomes ONE CARD PER ROW below 640px, instead of scrolling sideways. Every
 * value sits under the row's name on one left edge, labelled by its column header.
 *
 *   <table class="wdi-stack">             the table (keep its own classes too)
 *   td.wdi-stack__media                   the thumbnail: left of the card, beside the name
 *   td.wdi-stack__head                    the name: the card's first line, full width
 *   td[data-label="Qty"]                  any other cell: "Qty 2", on its own line under the name
 *   td.wdi-stack__l / td.wdi-stack__r     two short cells side by side (Code | Pack, Qty | Unit price)
 *   td.wdi-stack__end                     the row's action, at the card's right edge
 *
 * Above 640px it is an ordinary table - nothing here applies.
 *
 * THE HEAVY PREFIX IS DELIBERATE. The tables it stacks are positioned by composition rules as
 * heavy as (0,4,1) - `.wdi-scope--app.wdi-scope--app table.wdi-orderlines .wdi-num` - and
 * wdi-design.css loads after this file, so an equal selector loses. This one out-weighs them
 * without !important.
 */
@media (max-width: 639px) {
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack { display: block; width: 100%; min-width: 0; margin: 0; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody { display: block; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--wdi-3) 0;
    border-bottom: 1px solid var(--wdi-line);
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td {
    display: block; grid-column: 2 / -1; width: auto; min-width: 0; height: auto;
    margin: var(--wdi-1) 0 0; padding: 0; border: 0;
    text-align: left; white-space: normal;
    font-size: var(--wdi-t-sm);
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td[data-label]::before {
    content: attr(data-label) " ";
    color: var(--wdi-ink-3);
    font-weight: 400;
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__media {
    grid-column: 1; grid-row: 1 / span 4; align-self: start; margin: 0 var(--wdi-3) 0 0; width: auto;
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__media img { width: 48px; height: 48px; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__head {
    grid-column: 2 / -1; margin: 0; font-size: var(--wdi-t-md); color: var(--wdi-ink);
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__l { grid-column: 2; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__r { grid-column: 3; padding-left: var(--wdi-2); }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__end { grid-column: 3; justify-self: end; text-align: right; }
}

/* ---- 27. icon (W2e) ----------------------------------------------------------------------------
 * Lucide 1.48 (ISC), one inline sprite per page, <svg class="wdi-icon"><use href="#wdi-i-NAME">.
 * Written by wdi_icon() in PHP and icon() in wdi-api.js. Rules: reports/w2b-design-system.md, 27.
 *
 *   SIZE comes from the type scale: 1.2em of the text it sits in, so an icon in a 13px chip and one
 *   in an 18px card title are each in proportion without a size per place. --lg is the empty-state
 *   size, --wdi-t-4xl, the top of the scale.
 *   ONE STROKE WEIGHT for the whole set: 1.75 on Lucide's 24-unit grid (Lucide's own default is 2,
 *   which reads heavy beside this type at 13-15px). Set here, stripped from the sprite.
 *   COLOUR is currentColor: an icon is the colour of its words, so a stock icon is green, amber or
 *   red because its word is - and the word is always there, so colour is still never the only signal.
 */
.wdi-icon {
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  margin-inline-end: .4em;
  vertical-align: -.22em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.wdi-icon--lg {
  display: block;
  width: var(--wdi-t-4xl);
  height: var(--wdi-t-4xl);
  margin: 0 0 var(--wdi-3);
  color: var(--wdi-ink-3);
}

/* ---- 28. collapsible (W2f) ---------------------------------------------------------------------
 * A full-width row that opens and closes the panel under it: the label, and a chevron that turns.
 * Used where a long list should not push the page down on a phone (the catalogue's categories) and
 * for the phone drawer's category accordion.
 *
 *   <button class="wdi-collapse__toggle" aria-expanded="false" aria-controls="x">Label <svg chevron></button>
 *   <div id="x" class="wdi-collapse__panel">...</div>
 *
 * THE PANEL SHIPS OPEN; wdi-chrome.js closes it (the disclosure's rule), so with JavaScript off the
 * content is simply there. `data-wdi-collapse-below="992"` on the toggle: collapsed only below that
 * width, and above it the toggle is not drawn at all and the panel is always open (`--below-lg`).
 */
.wdi-collapse__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--wdi-3);
  width: 100%; min-height: 44px; margin: 0; padding: 0 var(--wdi-1);
  background: none; border: 0; border-radius: var(--wdi-r-sm);
  font-family: var(--wdi-font); font-size: var(--wdi-t-md); font-weight: var(--wdi-w-semi);
  color: var(--wdi-ink); text-align: left; cursor: pointer;
}
.wdi-collapse__toggle:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-collapse__toggle .wdi-icon { margin: 0; color: var(--wdi-ink-3); transition: transform .2s ease; transform-origin: 50% 50%; transform-box: view-box; }
.wdi-collapse__toggle[aria-expanded="true"] .wdi-icon { transform: rotate(180deg); }
.wdi-collapse__panel.is-collapsed { display: none; }
@media (prefers-reduced-motion: reduce) { .wdi-collapse__toggle .wdi-icon { transition: none; } }
@media (min-width: 992px) {
  .wdi-collapse--below-lg > .wdi-collapse__toggle { display: none; }
  .wdi-collapse--below-lg > .wdi-collapse__panel.is-collapsed { display: block; }
}

/* ---- 26, quiet (W2f) ---------------------------------------------------------------------------
 * .wdi-stack--quiet: the same cards WITHOUT the column labels, for tables whose values say what they
 * are (a code, a date, a price, a status pill). td.wdi-stack__tr puts a cell top right, level with
 * the name (an order's status beside its number); the name then takes the middle column only.
 */
@media (max-width: 639px) {
  html body.wdi-scope--app table.wdi-stack.wdi-stack--quiet.wdi-stack > tbody > tr > td[data-label]::before { content: none; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack--quiet.wdi-stack > tbody > tr { padding: var(--wdi-3) 0; row-gap: 2px; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack--quiet.wdi-stack > tbody > tr > td { margin-top: 2px; }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr > td.wdi-stack__tr {
    grid-column: 3; grid-row: 1; justify-self: end; align-self: start; margin: 0;
  }
  html body.wdi-scope--app table.wdi-stack.wdi-stack.wdi-stack > tbody > tr:has(> td.wdi-stack__tr) > td.wdi-stack__head { grid-column: 2; }
  /* A figure in the right-hand half sits at the right edge, where the orders list puts its total. */
  html body.wdi-scope--app table.wdi-stack.wdi-stack--quiet.wdi-stack > tbody > tr > td.wdi-num.wdi-stack__r { justify-self: end; text-align: right; }
}

/* ---- 24, more to the right (W2f) ---------------------------------------------------------------
 * wdi-chrome.js wraps each scroll box that actually overflows in .wdi-t-scroll-wrap: a fade over
 * the right edge while there is more (gone at the end), and ONCE per device a "Swipe for more" hint
 * above it, dismissed by the first scroll.
 */
.wdi-t-scroll-wrap { position: relative; }
.wdi-t-scroll-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
  background: linear-gradient(to left, var(--wdi-bg), rgba(255, 255, 255, 0));
  transition: opacity .2s ease;
}
.wdi-t-scroll-wrap.is-at-end::after { opacity: 0; }
.wdi-swipe-hint {
  display: inline-flex; align-items: center; margin: 0 0 var(--wdi-2);
  font-size: var(--wdi-t-sm); color: var(--wdi-ink-3);
}

/* ---- 29. drawer (W2f) --------------------------------------------------------------------------
 * The phone and tablet navigation: a full-height panel from the right over a backdrop. Markup and
 * contents: WDI_Drawer. Solid white, the one elevation, 360px or the screen less 48px, whichever is
 * smaller, so a strip of the page stays visible to say "tap here to go back". Rows are 48px - a
 * thumb's target - and the sub-categories sit indented under their parent in the smaller size.
 */
.wdi-drawer { position: fixed; inset: 0; z-index: 1000; }
.wdi-drawer[hidden] { display: none; }
.wdi-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 45, .45); opacity: 0; transition: opacity .2s ease; }
.wdi-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: var(--wdi-4);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--wdi-4) + env(safe-area-inset-top, 0px)) var(--wdi-4) calc(var(--wdi-6) + env(safe-area-inset-bottom, 0px));
  background: #fff; box-shadow: var(--wdi-shadow); font-family: var(--wdi-font);
  transform: translateX(100%); transition: transform .2s ease;
}
.wdi-drawer__panel:focus { outline: none; }
.wdi-drawer.is-open .wdi-drawer__backdrop { opacity: 1; }
.wdi-drawer.is-open .wdi-drawer__panel { transform: none; }
html.wdi-drawer-open, html.wdi-drawer-open body { overflow: hidden; }
.wdi-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.wdi-drawer__title { margin: 0; font-size: var(--wdi-t-xl); font-weight: var(--wdi-w-semi); color: var(--wdi-ink); }
.wdi-drawer__close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: 0 calc(-1 * var(--wdi-2)) 0 0; padding: 0; background: none; border: 0; border-radius: var(--wdi-r-sm);
  color: var(--wdi-ink-2); cursor: pointer;
}
.wdi-drawer__close .wdi-icon { margin: 0; width: 24px; height: 24px; }
.wdi-drawer__close:focus-visible, .wdi-drawer__link:focus-visible, .wdi-drawer__sublink:focus-visible { outline: none; box-shadow: var(--wdi-focus); }
.wdi-drawer__search .wdi-field { width: 100%; height: 44px; }
.wdi-drawer__section { display: flex; flex-direction: column; }
.wdi-drawer__heading {
  margin: var(--wdi-2) 0 var(--wdi-1); font-size: var(--wdi-t-xs); font-weight: var(--wdi-w-semi);
  text-transform: uppercase; letter-spacing: .06em; color: var(--wdi-ink-3);
}
.wdi-drawer__cats, .wdi-drawer__list, .wdi-drawer__sub { list-style: none; margin: 0; padding: 0; }
.wdi-drawer__cat { border-top: 1px solid var(--wdi-line); }
.wdi-drawer__catrow { display: flex; align-items: center; }
.wdi-drawer__link {
  display: flex; align-items: center; flex: 1 1 auto; min-height: 48px; padding: 0 var(--wdi-1);
  font-size: var(--wdi-t-lg); color: var(--wdi-ink); text-decoration: none; border-radius: var(--wdi-r-sm);
}
.wdi-drawer__link:hover { color: var(--wdi-blue); }
.wdi-drawer__link--strong { font-weight: var(--wdi-w-semi); }
.wdi-drawer__link .wdi-icon { color: var(--wdi-ink-3); margin-inline-end: .6em; }
.wdi-drawer__more { width: 48px; min-height: 48px; flex: none; justify-content: center; padding: 0; }
.wdi-drawer__sub { padding: 0 0 var(--wdi-2) calc(var(--wdi-1) + 1.2em + .6em); }
.wdi-drawer__sublink {
  display: flex; align-items: center; min-height: 40px; font-size: var(--wdi-t-md); color: var(--wdi-ink-2); text-decoration: none; border-radius: var(--wdi-r-sm);
}
.wdi-drawer__sublink:hover { color: var(--wdi-blue); }
@media (prefers-reduced-motion: reduce) { .wdi-drawer__panel, .wdi-drawer__backdrop { transition: none; } }

/* 29: the account the drawer is signed in as (the phone header only says "Account"). */
.wdi-drawer__who { margin: 2px 0 0; font-size: var(--wdi-t-sm); color: var(--wdi-ink-3); }
.wdi-drawer__who strong { color: var(--wdi-ink-2); font-weight: var(--wdi-w-semi); }

/* ---- 30. meter (W2g) ---------------------------------------------------------------------------
 * How much of something is used: a 6px track in the line colour and a fill in the state colour. It
 * never carries the number on its own - the figure is always written beside it - so it is
 * aria-hidden decoration. The state comes from where it sits: inside .wdi-notice--ok/--warn/--bad
 * (or a notice marked the same way) the fill takes that colour; anywhere else it is the brand blue.
 * First use: the account budget banner on the basket and checkout (C26).
 */
.wdi-meter { display: block; height: 6px; border-radius: 999px; background: var(--wdi-line); overflow: hidden; }
.wdi-meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--wdi-blue); max-width: 100%; }
.wdi-notice--ok .wdi-meter__fill   { background: var(--wdi-ok); }
.wdi-notice--warn .wdi-meter__fill { background: var(--wdi-warn); }
.wdi-notice--bad .wdi-meter__fill  { background: var(--wdi-bad); }

/* ---- 31. section card (W2g) --------------------------------------------------------------------
 * One section of a page that is made of sections - the dashboard below its three actions. A header
 * row (`__head`: the section's icon and `__title` on the left, ONE `__action` on the right - a link
 * or a small button, never two), then the content. White, hairline, the one elevation.
 *
 *   .wdi-scard--soft   a secondary section - about the account rather than the next order - on the
 *                      soft ground (--wdi-scard-soft, the pale blue) with no elevation, so the eye
 *                      goes to the plain cards first. (W2h: the D34 sand trial was not adopted.)
 *   __lede / __empty   one line under the head; the empty state is only ever a line, never a box
 *   __footrow/__footlink  a table's closing row that leads somewhere ("Browse the full catalogue")
 */
:root { --wdi-scard-soft: var(--wdi-pale); --wdi-scard-soft-line: var(--wdi-line); }
.wdi-scard {
  min-width: 0;
  background: var(--wdi-bg);
  border: 1px solid var(--wdi-line);
  border-radius: var(--wdi-r);
  box-shadow: var(--wdi-shadow);
  padding: var(--wdi-4) var(--wdi-5) var(--wdi-5);
}
.wdi-scard--soft { background: var(--wdi-scard-soft); border-color: var(--wdi-scard-soft-line); box-shadow: none; }
.wdi-scard__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-scard__title {
  display: flex;
  align-items: center;
  gap: var(--wdi-2);
  margin: 0;
  font-family: var(--wdi-font);
  font-size: var(--wdi-t-xl);
  font-weight: var(--wdi-w-semi);
  line-height: 1.3;
  color: var(--wdi-ink);
}
.wdi-scard__title .wdi-icon { color: var(--wdi-blue); flex: none; }
.wdi-scard__action { margin-left: auto; }
.wdi-scard__lede, .wdi-scard__empty { margin: 0 0 var(--wdi-3); font-size: var(--wdi-t-md); color: var(--wdi-ink-2); }
.wdi-scard__footlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wdi-2);
  padding: var(--wdi-3);
  border-radius: var(--wdi-r-sm);
  background: var(--wdi-pale);
  font-size: var(--wdi-t-md);
  font-weight: var(--wdi-w-semi);
  color: var(--wdi-blue);
  text-decoration: none;
}
.wdi-scard__footlink:hover { background: var(--wdi-tint); color: var(--wdi-blue-dark); text-decoration: none; }
.wdi-scard__footlink:focus-visible { outline: none; box-shadow: var(--wdi-focus); }

/* ---- 32. category bar palettes (W2i) -----------------------------------------------------------
 * One class per palette, each only setting the --wdi-nav-* tokens; wdi-design.css paints the bar
 * from the tokens. WDI_Chrome::NAV_STYLE picks the class, so a switch is one line.
 */
.wdi-nav--white { --wdi-nav-bg: #fff; --wdi-nav-ink: var(--wdi-ink-charcoal) /* W2s A2 */; --wdi-nav-hover-ink: var(--wdi-blue); --wdi-nav-hover-bg: var(--wdi-tint); --wdi-nav-line: var(--wdi-line); }
.wdi-nav--navy  { --wdi-nav-bg: var(--wdi-navy); --wdi-nav-ink: #fff; --wdi-nav-hover-ink: #fff; --wdi-nav-hover-bg: rgba(255, 255, 255, .14); --wdi-nav-line: transparent; }
.wdi-nav--ink   { --wdi-nav-bg: var(--wdi-ink); --wdi-nav-ink: #fff; --wdi-nav-hover-ink: #fff; --wdi-nav-hover-bg: rgba(255, 255, 255, .14); --wdi-nav-line: transparent; }
/* W8 A4: charcoal, as navy and ink - white labels (13.9:1 on --wdi-ink-charcoal), the same white wash on hover */
.wdi-nav--charcoal { --wdi-nav-bg: var(--wdi-ink-charcoal); --wdi-nav-ink: #fff; --wdi-nav-hover-ink: #fff; --wdi-nav-hover-bg: rgba(255, 255, 255, .14); --wdi-nav-line: transparent; }
/* W9 Part 0 previews (?wdi_nav=): white and charcoal above, and -
 *   tint   8% of --wdi-blue over white (#ECF3FA), charcoal labels (12.6:1), a white pill on hover with blue-dark ink
 *   grey   a pale neutral - --wdi-pale without its blue (#F2F4F6) - charcoal labels (12.9:1), the system tint on hover
 *   brand  the deep gradient (--wdi-grad-deep: white 5.75-8.59:1; the lighter --wdi-grad fails white text at its
 *          left end), white labels; the top bar moves under the header onto the same gradient - one band
 *   blue   ("navy" in the brief) --wdi-blue solid, white labels 5.75:1 - a TEST RENDER: the system says navy and
 *          the brand blue are never a background (W2p) */
.wdi-nav--tint  { --wdi-nav-bg: #ECF3FA; --wdi-nav-ink: var(--wdi-ink-charcoal); --wdi-nav-hover-ink: var(--wdi-blue-dark); --wdi-nav-hover-bg: #fff; --wdi-nav-line: var(--wdi-line); }
.wdi-nav--grey  { --wdi-nav-bg: #F2F4F6; --wdi-nav-ink: var(--wdi-ink-charcoal); --wdi-nav-hover-ink: var(--wdi-blue-dark); --wdi-nav-hover-bg: var(--wdi-tint); --wdi-nav-line: #E1E5EA; }
.wdi-nav--brand { --wdi-nav-bg: transparent; --wdi-nav-ink: #fff; --wdi-nav-hover-ink: #fff; --wdi-nav-hover-bg: rgba(255, 255, 255, .16); --wdi-nav-line: transparent; }
.wdi-nav--blue  { --wdi-nav-bg: var(--wdi-blue); --wdi-nav-ink: #fff; --wdi-nav-hover-ink: #fff; --wdi-nav-hover-bg: rgba(255, 255, 255, .16); --wdi-nav-line: transparent; }


/* W2q: the container steps up to 1400px from 1600 (see --wdi-container). */
@media (min-width: 1600px) { :root { --wdi-container: 1400px; } }

/* ---------------------------------------------------------------------------------------------------------
 * W4: THE SWITCH (.wdi-switch) - an on/off preference. A real checkbox, visually a 40 x 24 track with a 20px knob:
 * off --wdi-line track, on --wdi-btn (5.75:1 against the white knob); keyboard focus is the system's ring. The label
 * text sits beside it and is the checkbox's label, so the whole row is the target.
 * --------------------------------------------------------------------------------------------------------- */
.wdi-switch { display: inline-flex; align-items: center; gap: var(--wdi-3); cursor: pointer; position: relative; }
.wdi-switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.wdi-switch__track { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px; background: var(--wdi-line); position: relative; transition: background .15s; }
.wdi-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--wdi-shadow); transition: transform .15s; }
.wdi-switch input:checked + .wdi-switch__track { background: var(--wdi-btn); }
.wdi-switch input:checked + .wdi-switch__track::after { transform: translateX(16px); }
.wdi-switch input:focus-visible + .wdi-switch__track { box-shadow: var(--wdi-focus); }
@media (prefers-reduced-motion: reduce) { .wdi-switch__track, .wdi-switch__track::after { transition: none; } }
