/* Natural Uniforms Wholesale — Cart & Checkout (WooCommerce BLOCKS).

   WHY THIS FILE EXISTS
   The Cart and Checkout pages on this shop are not the classic WooCommerce
   templates. They are the Cart and Checkout *blocks*, so every rule in
   main.css that begins `.woocommerce ul.products` or `.woocommerce a.button`
   misses them completely — different markup, different class namespace
   (`wc-block-*`). What reached the customer instead was WordPress's own
   default element styling: link-red underlined product titles and a near-black
   #32373c button carrying #9c0f52 text, which is 1.6:1 and effectively
   unreadable. That is the screenshot the client sent.

   Two cascade facts drive most of what is below, and both are easy to
   rediscover the hard way:
   1. WordPress global styles ship `:root :where(.wp-element-button, …)` and
      `:root :where(a:where(:not(.wp-element-button)))` — specificity 0,1,0.
      main.css's bare `a{color:inherit;text-decoration:none}` is 0,0,1 and
      LOSES to them. Anything here must be 0,2,0 or better to land.
   2. Cart and Checkout are ordinary WP pages, so they render through page.php
      inside `.nuw-prose`, which is `max-width:70ch`, `color:ink-2` and
      `overflow-wrap:anywhere`. Left alone it squeezes a two-column checkout
      into a 640px column and hyphen-breaks prices. The first block below
      undoes that, scoped to the two body classes WooCommerce adds.

   Every colour pair that carries text was computed, not eyeballed, against
   the tokens in main.css. Ratios are recorded beside the rules that use them.
   --nuw-ink-faint (2.60 on white) and --nuw-gold (removed in the 4th pass) never carry
   text here; gold appears only as a hairline, on plum, or as a rule.

   No @import, no new fonts, no build step. Tokens come from main.css :root —
   the handful of locals below are component-scoped values, not a second
   system. Order: locals → shared primitives → cart → empty cart → checkout
   → responsive → reduced motion. */

/* ------------------------------------------------------- page frame repair */

/* page.php wraps the block in `.nuw-prose`. Those three inherited properties
   are right for an article and wrong for a data-dense cart, so they are reset
   for these two pages only. Body classes are WooCommerce's own. */
.woocommerce-cart .nuw-prose,
.woocommerce-checkout .nuw-prose{
  max-width:none;
  font-size:16px;
  line-height:1.55;
  color:var(--nuw-ink);          /* 18.17 on card / 17.15 on paper */
  overflow-wrap:break-word;      /* `anywhere` split "$1,234.00" mid-figure */
}
/* main.css hyphen-breaks any word inside prose so fabric codes fit a phone.
   A cart is columns of money; a break inside a figure is a reading error. */
.woocommerce-cart .nuw-prose p,
.woocommerce-checkout .nuw-prose p,
.woocommerce-cart .nuw-prose li,
.woocommerce-checkout .nuw-prose li{overflow-wrap:break-word;}

/* Component-scoped locals. Small and architectural, per the current theme
   direction: the shop's radii are pills for actions and a tight corner for
   surfaces — not the 22px of the earlier card style. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-empty-cart-block{
  --nuw-shop-radius:10px;
  --nuw-shop-radius-sm:8px;
  --nuw-shop-gap:clamp(18px,2.4vw,34px);
  /* The brand row (.nuw-bar) is position:sticky;top:0 and measures ~69px
     (44px of tabs + 12px padding twice + a 1px rule). The summary column
     parks just clear of it. */
  --nuw-shop-stick:92px;
  font-family:var(--nuw-sans);
  color:var(--nuw-ink);
}

/* ---------------------------------------------- shared block primitives */

/* --- money -------------------------------------------------------------
   Every figure on these pages is data in a column, so it is lined and
   tabular. `tnum` is spelled twice because Instrument Sans is served as a
   variable font and older Safari honours font-feature-settings only. */
.wp-block-woocommerce-cart .wc-block-components-formatted-money-amount,
.wp-block-woocommerce-checkout .wc-block-components-formatted-money-amount,
.wp-block-woocommerce-cart .wc-block-components-product-price,
.wp-block-woocommerce-checkout .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__input,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity{
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
  white-space:nowrap;            /* never wrap a price mid-figure on a phone */
}

/* --- block titles -------------------------------------------------------
   Playfair carries the display line in this theme; block headings join it.
   `.nuw-prose h2` (0,2,0) sets 2em margins and weight 700 — overridden here
   at 0,3,0 so the sidebar heading does not float away from its card. */
.woocommerce-cart .nuw-prose .wc-block-components-title,
.woocommerce-checkout .nuw-prose .wc-block-components-title,
.woocommerce-cart .nuw-prose .wc-block-cart__empty-cart__title{
  font-family:var(--nuw-display);
  font-optical-sizing:auto;
  font-weight:600;
  letter-spacing:-.012em;
  font-synthesis-weight:none;
  color:var(--nuw-ink);
  margin:0 0 12px;
}

/* --- buttons ------------------------------------------------------------
   THE REPORTED BUG. Any `wc-block-components-button` that is not a text link
   becomes the theme's primary action: plum ground, white text, pill,
   uppercase tracking, the same hover and shadow as .nuw-btn in main.css.
   White on --nuw-btn #121614 = 18.25:1, and on hover --nuw-btn-hover
   #2a0923 = 18.08:1. Both clear AA with room to spare.

   `color` carries !important because WordPress's global-styles link rule
   `:root :where(a:where(:not(.wp-element-button)))` re-colours the anchor
   form of these buttons after ours whenever the markup omits the
   `wp-element-button` class — that rule is the literal source of the #9c0f52
   text the client photographed. The background does not need it: 0,3,0 here
   already beats Woo's `.wc-block-components-button:not(.is-link)` at 0,2,0. */
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:50px;
  padding:0 28px;
  border:0;
  border-radius:var(--nuw-r-btn,6px);
  background:var(--nuw-btn);
  color:var(--nuw-btn-ink)!important;
  font-family:var(--nuw-sans);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:0 10px 24px -16px rgba(61,15,51,.9);
  transition:background .22s ease,box-shadow .22s ease,transform .22s ease;
}
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover{
  background:var(--nuw-btn-hover);
  color:var(--nuw-btn-ink)!important;          /* same global-styles link rule, :hover form */
  box-shadow:0 16px 30px -18px rgba(61,15,51,.95);
  transform:translateY(-1px);
}
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):active,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):active{
  transform:none;
}
/* Woo wraps the label in its own span; it must not re-introduce a colour. */
.wp-block-woocommerce-cart .wc-block-components-button__text,
.wp-block-woocommerce-checkout .wc-block-components-button__text,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button__text{
  color:inherit;
  text-decoration:none;
}
/* Disabled / submitting. Dimming plum with opacity would drag white text
   below AA, so the button changes surface instead:
   --nuw-ink-3 #6b5f64 on --nuw-fill #f1ebe6 = 5.16:1. */
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link)[disabled],
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link)[disabled],
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):disabled,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):disabled{
  background:var(--nuw-fill);
  color:var(--nuw-ink-3)!important;  /* beats the global link rule, as above */
  box-shadow:none;
  transform:none;
  cursor:not-allowed;
}

/* The quiet twin — coupon apply, "add a note", edit address, remove. These
   are secondary and must NOT be plum, or the page has four equal primaries.
   Mirrors .nuw-btn-quiet: --nuw-ink #1a1416 on transparent over card white
   = 18.17:1, hairline ring for the affordance. Declared after the primary
   rule and at equal-or-higher specificity, so it wins cleanly. */
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-address-card__edit{
  min-height:44px;
  padding:0 20px;
  background:transparent;
  color:var(--nuw-ink)!important;    /* global link rule again, quiet variant */
  box-shadow:inset 0 0 0 1px var(--nuw-hair);
  font-size:12px;
}
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-components-address-card__edit:hover{
  background:var(--nuw-fill);
  color:var(--nuw-ink)!important;
  box-shadow:inset 0 0 0 1px var(--nuw-ink-4);
  transform:none;
}

/* Text-link buttons stay links, in the theme's link bronze.
   --nuw-accent-ink #5f3f10 on card white = 9.52:1. */
.wp-block-woocommerce-cart .wc-block-components-button.is-link,
.wp-block-woocommerce-checkout .wc-block-components-button.is-link{
  background:none;
  padding:0;
  min-height:24px;               /* WCAG 2.5.8 target floor */
  color:var(--nuw-accent-ink);
  font-size:13px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
  box-shadow:none;
  text-transform:none;
  letter-spacing:0;
}
.wp-block-woocommerce-cart .wc-block-components-button.is-link:hover,
.wp-block-woocommerce-checkout .wc-block-components-button.is-link:hover{
  color:var(--nuw-ink);
}

/* Focus. main.css gives :focus-visible a 6px radius, which reads as a
   rounded rectangle clipped by a pill. These get a pill ring instead.
   --nuw-accent #7d5416 against paper = 6.29:1, well over the 3:1 that
   WCAG 2.4.11 asks of a focus indicator. */
.wp-block-woocommerce-cart .wc-block-components-button:focus-visible,
.wp-block-woocommerce-checkout .wc-block-components-button:focus-visible,
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button:focus-visible{
  outline:2px solid var(--nuw-accent);
  outline-offset:3px;
  border-radius:var(--nuw-r-btn,6px);
}

/* --- notices ------------------------------------------------------------
   Woo's default banners are bordered boxes in its own greens and reds.
   Re-keyed to the theme: a tinted ground, an ink body (so the text never
   depends on a hue for legibility) and a coloured rule + icon to carry the
   meaning. The pink is the shop's sale signal, but inside a notice banner
   the surrounding chrome disambiguates it, and it is the only alert-weight
   hue the palette owns — inventing a second red would break the rule that
   one colour means one thing. */
.wp-block-woocommerce-cart .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner,
.wc-block-store-notice{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid var(--nuw-line);
  border-inline-start:3px solid var(--nuw-ink-4);
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-sunk);
  color:var(--nuw-ink);          /* 16.33 on --nuw-sunk */
  font-size:14.5px;
  line-height:1.5;
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error{
  background:var(--nuw-sale-soft);
  border-color:var(--nuw-sale-soft);
  border-inline-start-color:var(--nuw-sale);
  color:var(--nuw-ink);          /* 15.60 on --nuw-sale-soft */
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-info,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-info{
  background:var(--nuw-plum-soft);
  border-color:var(--nuw-plum-soft);
  border-inline-start-color:var(--nuw-plum);
  color:var(--nuw-ink);          /* 15.69 on --nuw-plum-soft */
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-success,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-success{
  background:var(--nuw-good-soft);
  border-color:var(--nuw-good-soft);
  border-inline-start-color:var(--nuw-good);
  color:var(--nuw-ink);          /* 16.52 on --nuw-good-soft */
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner__content,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner__content{
  flex:1 1 auto;
  min-width:0;
  color:inherit;
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner > svg,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner > svg{
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin:1px 0 0;
  fill:currentColor;
}
/* The dismiss control is a real target, not a 16px cross. */
.wp-block-woocommerce-cart .wc-block-components-notice-banner__dismiss,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner__dismiss{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  min-height:32px;
  padding:0;
  border-radius:var(--nuw-r-btn,6px);
  background:transparent;
  color:var(--nuw-ink-2);        /* 9.05 on --nuw-sunk */
  box-shadow:none;
}
.wp-block-woocommerce-cart .wc-block-components-notice-banner__dismiss:hover,
.wp-block-woocommerce-checkout .wc-block-components-notice-banner__dismiss:hover{
  background:rgba(26,20,22,.07);
  color:var(--nuw-ink);
}
/* The toast. Ink ground so it reads over any part of the page: white on
   --nuw-ink #1a1416 = 18.17:1. */
.wc-block-components-notices__snackbar .wc-block-components-notice-snackbar,
.wc-block-components-notices__snackbar{
  font-family:var(--nuw-sans);
}
.wc-block-components-notices__snackbar .wc-block-components-snackbar-list__notice,
.wc-block-components-notices__snackbar .components-snackbar{
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-ink);
  color:#fff;
  font-size:14px;
  box-shadow:var(--nuw-lift);
}

/* --- panels (coupon accordion) ----------------------------------------- */
.wp-block-woocommerce-cart .wc-block-components-panel,
.wp-block-woocommerce-checkout .wc-block-components-panel{
  border-top:1px solid var(--nuw-line);
  padding:4px 0;
}
.wp-block-woocommerce-cart .wc-block-components-panel__button,
.wp-block-woocommerce-checkout .wc-block-components-panel__button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:44px;
  padding:0;
  background:none;
  box-shadow:none;
  color:var(--nuw-ink-2);        /* 10.07 on card white */
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
}
.wp-block-woocommerce-cart .wc-block-components-panel__button:hover,
.wp-block-woocommerce-checkout .wc-block-components-panel__button:hover{
  background:none;
  color:var(--nuw-accent-ink);   /* 9.52 on card white */
  transform:none;
  box-shadow:none;
}

/* --- badges ------------------------------------------------------------- */
.wp-block-woocommerce-cart .wc-block-components-product-badge,
.wp-block-woocommerce-checkout .wc-block-components-product-badge{
  display:inline-block;
  padding:3px 10px;
  border:0;
  border-radius:var(--nuw-r-btn,6px);
  background:var(--nuw-fill);
  color:var(--nuw-ink-2);        /* 8.52 on --nuw-fill */
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  line-height:1.5;
}
/* The pink now means exactly one thing on this shop: this line is on sale.
   --nuw-sale #b0135c on --nuw-sale-soft #fbe9f1 = 5.83:1. */
.wp-block-woocommerce-cart .wc-block-components-sale-badge,
.wp-block-woocommerce-checkout .wc-block-components-sale-badge{
  background:var(--nuw-sale-soft);
  color:var(--nuw-sale);
  border:0;
}

/* --- the sidebar surface ------------------------------------------------
   Cart and Checkout share one summary column: a quieter card on the warm
   paper, a hairline, a small corner — and it follows the buyer down the
   page while the line items scroll. Turned off below 900px further down. */
.wp-block-woocommerce-cart .wc-block-components-sidebar,
.wp-block-woocommerce-checkout .wc-block-components-sidebar{
  align-self:flex-start;
}
.wp-block-woocommerce-cart .wc-block-cart__sidebar > .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title,
.wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit,
.wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__payment-options{
  padding-inline:clamp(16px,1.6vw,24px);
}

/* ------------------------------------------------------------------- cart */

.wp-block-woocommerce-cart .wc-block-cart{
  margin:0;
}
.wp-block-woocommerce-cart .wc-block-cart .wc-block-components-sidebar-layout{
  gap:var(--nuw-shop-gap);
}

/* --- the line-item table ------------------------------------------------
   Hairline rules, no boxes. A wholesale cart is a ledger; ruled rows read
   faster than nested cards and keep more lines on one screen. */
.wp-block-woocommerce-cart .wc-block-cart-items{
  width:100%;
  margin:0;
  border:0;
  border-collapse:collapse;
  background:transparent;
}
.wp-block-woocommerce-cart .wc-block-cart-items__header{
  border-bottom:1px solid var(--nuw-hair);
}
.wp-block-woocommerce-cart .wc-block-cart-items__header th,
.wp-block-woocommerce-cart .wc-block-cart-items__header-image,
.wp-block-woocommerce-cart .wc-block-cart-items__header-product,
.wp-block-woocommerce-cart .wc-block-cart-items__header-total{
  padding:0 0 12px;
  border:0;
  background:transparent;
  color:var(--nuw-ink-3);        /* 5.75 on paper */
  font-family:var(--nuw-sans);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:start;
}
.wp-block-woocommerce-cart .wc-block-cart-items__header-total{
  text-align:end;
}
.wp-block-woocommerce-cart .wc-block-cart-items__row{
  border-bottom:1px solid var(--nuw-line-2);
}
.wp-block-woocommerce-cart .wc-block-cart-items__row td{
  padding-block:clamp(16px,1.8vw,24px);
  border:0;
  vertical-align:top;
  background:transparent;
}

/* Thumbnail. Same letterbox as the shop's product card (4/4.15, cover) so a
   line item and a grid card show the garment at the same crop. */
.wp-block-woocommerce-cart .wc-block-cart-item__image{
  width:112px;
  padding-inline-end:clamp(12px,1.4vw,20px);
}
.wp-block-woocommerce-cart .wc-block-cart-item__image img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/4.15;
  object-fit:cover;
  object-position:50% 5%;
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-sunk);
  border:1px solid var(--nuw-line-2);
}

.wp-block-woocommerce-cart .wc-block-cart-item__product{
  min-width:0;                   /* without this a long SKU forces page scroll */
  padding-inline-end:clamp(12px,1.6vw,28px);
}
.wp-block-woocommerce-cart .wc-block-cart-item__wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
}

/* THE TITLE THE CLIENT PHOTOGRAPHED. WordPress global styles paint this
   anchor link-red and underline it; main.css's bare `a` rule is too weak to
   stop it. 0,3,0 here is. --nuw-ink on card/paper = 18.17 / 17.15. */
.wp-block-woocommerce-cart .wc-block-cart-item__wrap .wc-block-components-product-name,
.wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-name{
  display:block;
  color:var(--nuw-ink);
  font-family:var(--nuw-sans);
  font-size:15.5px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.018em;
  text-decoration:none;
  text-underline-offset:3px;
}
.wp-block-woocommerce-cart .wc-block-cart-items__row a.wc-block-components-product-name:hover{
  color:var(--nuw-accent-ink);   /* 9.52 on card white */
  text-decoration:underline;
}

.wp-block-woocommerce-cart .wc-block-cart-item__prices{
  margin:0;
  font-size:13.5px;
  color:var(--nuw-ink-3);        /* 5.75 on paper — the per-unit line */
}
.wp-block-woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value{
  color:var(--nuw-ink-2);        /* 9.50 on paper */
  font-weight:600;
}
.wp-block-woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__regular{
  color:var(--nuw-ink-4);        /* 5.19 on paper — struck retail, still legible */
  text-decoration:line-through;
  margin-inline-end:8px;
  font-weight:500;
}

/* --- line metadata, and the wholesale band line ------------------------- */
.wp-block-woocommerce-cart .wc-block-components-product-metadata{
  margin:2px 0 0;
  font-size:13px;
  line-height:1.5;
  color:var(--nuw-ink-3);        /* 5.75 on paper */
}
.wp-block-woocommerce-cart .wc-block-components-product-details{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.wp-block-woocommerce-cart .wc-block-components-product-details__name{
  color:var(--nuw-ink-4);        /* 5.19 on paper */
  font-weight:600;
  margin-inline-end:6px;
}
.wp-block-woocommerce-cart .wc-block-components-product-details__value{
  color:var(--nuw-ink-2);        /* 9.50 on paper */
}
/* Size and colour are ordinary attributes — kept inline so two facts take
   one line rather than two, which matters on a 20-line wholesale cart. */
.wp-block-woocommerce-cart .wc-block-components-product-details__size,
.wp-block-woocommerce-cart .wc-block-components-product-details__colour{
  display:inline;
  margin-inline-end:14px;
}
/* The volume price is a fact about this line's rate. */
.wp-block-woocommerce-cart .wc-block-components-product-details__volume-price{
  color:var(--nuw-accent-ink);   /* 8.99 on paper */
  font-weight:600;
}
/* THE MOST VALUABLE LINE ON THIS PAGE. "Add 6 more to reach $8.40 each" is
   the whole reason a wholesale buyer is looking at the cart rather than the
   product page, so it is not grey metadata — it is a bronze chip on the
   bronze tint with a gold hairline, the theme's "this is worth money" cue.
   --nuw-accent-ink #5f3f10 on --nuw-accent-soft #f7f0e3 = 8.40:1. */
.wp-block-woocommerce-cart .wc-block-components-product-details__next-band{
  display:block;
  margin:8px 0 0;
  padding:7px 12px;
  border:1px solid var(--nuw-line);
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-accent-soft);
  color:var(--nuw-accent-ink);
  font-size:12.5px;
  font-weight:600;
  line-height:1.4;
}
.wp-block-woocommerce-cart .wc-block-components-product-details__next-band .wc-block-components-product-details__name{
  color:var(--nuw-accent);       /* 5.88 on --nuw-accent-soft */
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.wp-block-woocommerce-cart .wc-block-components-product-details__next-band .wc-block-components-product-details__value{
  color:var(--nuw-accent-ink);   /* 8.40 on --nuw-accent-soft */
}

/* --- quantity stepper ---------------------------------------------------
   Secondary by design: plum here would compete with Proceed to Checkout.
   The buttons carry ink on the sunk tint. DOM order is input → minus → plus,
   so `order` is set explicitly rather than trusted. */
.wp-block-woocommerce-cart .wc-block-cart-item__quantity{
  padding-inline-end:clamp(8px,1.2vw,18px);
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector{
  display:flex;
  align-items:stretch;
  width:auto;
  max-width:152px;
  border:1px solid var(--nuw-hair);
  border-radius:var(--nuw-r-btn,6px);
  background:var(--nuw-card);
  overflow:hidden;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after{
  content:none;                  /* Woo draws its own border here */
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__input{
  order:2;
  flex:1 1 auto;
  width:56px;
  min-width:0;
  min-height:44px;               /* WCAG 2.5.8 / comfortable on touch */
  padding:0 2px;
  border:0;
  background:transparent;
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-family:var(--nuw-sans);
  font-size:15px;
  font-weight:700;
  text-align:center;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:0;
  background:var(--nuw-sunk);
  color:var(--nuw-ink);          /* 16.33 on --nuw-sunk */
  font-size:17px;
  font-weight:600;
  line-height:1;
  box-shadow:none;
  text-transform:none;
  letter-spacing:0;
  transition:background .18s ease,color .18s ease;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button--minus{order:1;}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button--plus{order:3;}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button:hover{
  background:var(--nuw-fill);
  color:var(--nuw-ink);          /* 15.37 on --nuw-fill */
  transform:none;
  box-shadow:none;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button:disabled{
  background:var(--nuw-sunk);
  color:var(--nuw-ink-4);        /* 4.94 on --nuw-sunk */
  cursor:not-allowed;
}

/* --- line total and remove --------------------------------------------- */
.wp-block-woocommerce-cart .wc-block-cart-item__total{
  text-align:end;
  white-space:nowrap;
}
.wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value{
  color:var(--nuw-ink);          /* 17.15 on paper */
  font-size:16px;
  font-weight:700;
  letter-spacing:-.02em;
}
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__regular{
  color:var(--nuw-ink-4);        /* 5.19 on paper */
  font-size:13px;
  text-decoration:line-through;
}
/* Destructive, so it stays a quiet link until the buyer means it. */
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link{
  display:inline-block;
  margin-top:10px;
  min-height:24px;               /* WCAG 2.5.8 */
  color:var(--nuw-ink-3);        /* 5.75 on paper */
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  border-bottom:1px solid var(--nuw-line);
  transition:color .18s ease,border-color .18s ease;
}
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover{
  color:var(--nuw-sale);         /* 6.41 on paper — destructive, on purpose */
  border-color:var(--nuw-sale);
}

/* --- the cart summary --------------------------------------------------- */
.wp-block-woocommerce-cart .wc-block-cart__sidebar{
  min-width:0;
}
.wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-sidebar{
  padding-block:clamp(18px,2vw,26px);
  border:1px solid var(--nuw-line);
  border-radius:var(--nuw-shop-radius);
  background:var(--nuw-card);
  box-shadow:var(--nuw-shadow);
}
.wp-block-woocommerce-cart .wc-block-cart__totals-title{
  display:block;
  margin:0 0 4px;
  color:var(--nuw-ink-3);        /* 6.09 on card white */
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper{
  padding-block:14px;
  border-top:1px solid var(--nuw-line-2);
}
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper:first-child,
.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper:first-child{
  border-top:0;
}
/* Money is data: label left, figure hard right, tabular so the column lines
   up even while shipping recalculates. */
.wp-block-woocommerce-cart .wc-block-components-totals-item,
.wp-block-woocommerce-checkout .wc-block-components-totals-item{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin:0;
  padding:4px 0;
  font-size:14.5px;
}
.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label{
  color:var(--nuw-ink-2);        /* 10.07 on card white */
  font-weight:500;
}
.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value{
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-weight:600;
  text-align:end;
  white-space:nowrap;
}
.wp-block-woocommerce-cart .wc-block-components-totals-item__description,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__description{
  flex:1 0 100%;
  margin:2px 0 0;
  color:var(--nuw-ink-3);        /* 6.09 on card white */
  font-size:12.5px;
  line-height:1.45;
}
/* The order total. 19px at weight 700 clears the large-text threshold, but
   --nuw-ink is 18.17:1 anyway, so it is AA on the stricter body rule too. */
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item{
  padding-top:14px;
  border-top:1px solid var(--nuw-hair);
  font-size:15px;
}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
  color:var(--nuw-ink);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:var(--nuw-display);
  font-size:26px;
  font-weight:600;
  letter-spacing:-.025em;
  line-height:1.1;
}
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__form{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:10px;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-container{
  margin-top:18px;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button{
  width:100%;
}
.wp-block-woocommerce-cart .wc-block-cart__payment-options{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--nuw-line-2);
}

/* ------------------------------------------------------------- empty cart */

/* The empty state is a real next action, not an apology: a heading, a gold
   rule, then the same product cards the rest of the shop uses. The brief for
   these cards is `.woocommerce ul.products li.product` in main.css — white
   card, hairline, 4/4.15 letterbox, sans title, ink price, pill button — at
   the theme's current tighter radius. */
.wp-block-woocommerce-empty-cart-block{
  padding-block:clamp(8px,1.4vw,18px);
}
.woocommerce-cart .nuw-prose .wc-block-cart__empty-cart__title{
  position:relative;
  margin:0 0 10px;
  padding-top:16px;
  font-size:clamp(25px,2.9vw,38px);
  line-height:1.12;
  text-wrap:balance;
}
/* The 32px of gold that opens every section in this theme (.nuw-sec-head). */
.woocommerce-cart .nuw-prose .wc-block-cart__empty-cart__title::before{
  content:"";
  position:absolute;
  top:0;
  inset-inline-start:0;
  width:32px;
  height:2px;
  background:var(--nuw-line);
}
.wp-block-woocommerce-empty-cart-block .wp-block-heading{
  font-family:var(--nuw-display);
  font-weight:600;
  letter-spacing:-.012em;
  color:var(--nuw-ink);
  font-size:clamp(19px,2vw,24px);
  margin:clamp(28px,3.4vw,44px) 0 16px;
}
.wp-block-woocommerce-empty-cart-block p{
  max-width:56ch;
  color:var(--nuw-ink-2);        /* 9.50 on paper */
  font-size:15.5px;
}
.wp-block-woocommerce-empty-cart-block .wp-block-separator{
  margin:clamp(22px,3vw,36px) 0;
  border:0;
  border-top:1px solid var(--nuw-line);
  height:0;
  opacity:1;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__products{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,248px),1fr));
  gap:clamp(12px,1.6vw,22px);
  margin:0;
  padding:0;
  list-style:none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product{
  display:flex;
  flex-direction:column;
  width:auto;
  margin:0;
  padding:0;
  text-align:start;
  background:var(--nuw-card);
  border:1px solid var(--nuw-line);
  border-radius:var(--nuw-shop-radius);
  overflow:hidden;
  transition:transform .24s cubic-bezier(.2,.8,.3,1),box-shadow .24s ease,border-color .24s ease;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover{
  transform:translateY(-4px);
  box-shadow:var(--nuw-lift);
  border-color:var(--nuw-hair);
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image{
  margin:0;
  display:block;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/4.15;
  object-fit:cover;
  object-position:50% 5%;
  background:var(--nuw-sunk);
}
/* The headline bug again, in the grid: WP global styles paint this anchor
   link-red and underline it. Same fix, same reason. */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-title,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link .wc-block-grid__product-title{
  display:block;
  margin:0;
  padding:16px 16px 0;
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-family:var(--nuw-sans);
  font-size:15.5px;
  font-weight:600;
  line-height:1.26;
  letter-spacing:-.022em;
  text-decoration:none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover .wc-block-grid__product-title{
  color:var(--nuw-accent-ink);   /* 9.52 on card white */
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price{
  display:block;
  margin:0;
  padding:8px 16px 0;
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-size:19px;
  font-weight:700;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums lining-nums;
  font-feature-settings:"tnum" 1,"lnum" 1;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price del,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price .wc-block-grid__product-price__regular{
  margin-inline-end:8px;
  color:var(--nuw-ink-4);        /* 5.50 on card white */
  font-size:13.5px;
  font-weight:500;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price ins{
  text-decoration:none;
  color:var(--nuw-accent-ink);   /* 9.52 on card white */
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart{
  margin-top:auto;
  padding:16px;
}
/* The add-to-cart pill. WordPress's default for .wp-block-button__link is the
   #32373c ground the client photographed, so it is replaced outright.
   White on --nuw-btn = 18.25:1. */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wc-block-components-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:var(--nuw-r-btn,6px);
  background:var(--nuw-btn);
  color:var(--nuw-btn-ink)!important;          /* WP global-styles link rule, as above */
  font-family:var(--nuw-sans);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  transition:background .2s ease;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wc-block-components-button:hover{
  background:var(--nuw-btn-hover);  /* white 18.08:1 */
  color:var(--nuw-btn-ink)!important;
}

/* --------------------------------------------------------------- checkout */

.wp-block-woocommerce-checkout .wc-block-checkout__main{
  min-width:0;
}
.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout{
  gap:var(--nuw-shop-gap);
}

/* --- steps --------------------------------------------------------------
   Each step is a ruled band rather than a card, so the form reads as one
   continuous column of work. Numbers are Woo's own CSS counter. */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step{
  margin:0;
  padding:clamp(20px,2.4vw,30px) 0;
  border:0;
  border-top:1px solid var(--nuw-line);
  background:transparent;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step:first-of-type{
  border-top:0;
  padding-top:0;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0 0 4px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title{
  font-family:var(--nuw-display);
  font-optical-sizing:auto;
  font-weight:600;
  letter-spacing:-.012em;
  font-synthesis-weight:none;
  font-size:clamp(20px,2.1vw,26px);
  line-height:1.15;
  color:var(--nuw-ink);          /* 17.15 on paper */
  margin:0;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content{
  margin:0 0 14px;
  color:var(--nuw-ink-3);        /* 5.75 on paper */
  font-size:13.5px;
  line-height:1.5;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-content a{
  color:var(--nuw-accent-ink);   /* 8.99 on paper */
  text-decoration:underline;
  text-underline-offset:3px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__content{
  padding:0;
  margin:0;
}
/* Woo numbers the steps through `counter()` on the heading. Bronze so the
   sequence reads without shouting: --nuw-accent on paper = 6.29:1. */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading::before,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__number{
  color:var(--nuw-accent);
  font-family:var(--nuw-sans);
  font-size:13px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* --- fields -------------------------------------------------------------
   `wc-block-components-text-input` is a floating-label control: the label
   sits as a placeholder until `.is-active`, then shrinks into a caption.
   Both positions must stay legible, so the label is --nuw-ink-3 (6.09 on
   card white) in each — a lighter "resting" grey would fail AA in the
   placeholder position, which is the state most people read it in. */
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-blocks-components-select__container{
  position:relative;
  margin:0 0 14px;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=text],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=email],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=tel],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=number],
.wp-block-woocommerce-checkout .wc-blocks-components-select__select{
  width:100%;
  min-height:56px;
  padding:22px 16px 6px;
  border:1px solid var(--nuw-hair);
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-card);
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-family:var(--nuw-sans);
  font-size:15.5px;
  line-height:1.3;
  box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select__label{
  position:absolute;
  inset-inline-start:17px;
  top:18px;
  margin:0;
  color:var(--nuw-ink-3);        /* 6.09 on card white, both positions */
  font-family:var(--nuw-sans);
  font-size:15.5px;
  font-weight:500;
  line-height:1.2;
  pointer-events:none;
  transition:top .16s ease,font-size .16s ease,color .16s ease;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label{
  top:9px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  transform:none;                /* Woo scales the label; we resize it instead */
}
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus{
  outline:none;
  border-color:var(--nuw-accent);
  box-shadow:0 0 0 3px var(--nuw-accent-soft);
}
.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus-visible,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus-visible{
  outline:2px solid var(--nuw-accent);   /* 6.29 on paper */
  outline-offset:2px;
}
/* Validation. Ink on the pink tint, with the pink carried by the rule and
   the message weight — the colour is never the only signal.
   --nuw-sale on card white = 6.79:1. */
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error input,
.wp-block-woocommerce-checkout .wc-blocks-components-select.has-error .wc-blocks-components-select__select{
  border-color:var(--nuw-sale);
  background:var(--nuw-sale-soft);
}
.wp-block-woocommerce-checkout .wc-block-components-validation-error{
  margin:6px 0 0;
  color:var(--nuw-sale);         /* 6.41 on paper */
  font-size:12.5px;
  font-weight:600;
  line-height:1.4;
}

/* Native select needs the caret back once the padding changes. */
.wp-block-woocommerce-checkout .wc-blocks-components-select__select{
  padding-inline-end:38px;
  appearance:none;
  -webkit-appearance:none;
}

/* Field groups. Woo's address form is its own CSS grid; only the rhythm
   between groups is set here so the block keeps its own column logic and
   its own single-column fallback below 700px. */
.wp-block-woocommerce-checkout .wc-block-checkout__contact-fields,
.wp-block-woocommerce-checkout .wc-block-checkout__billing-fields,
.wp-block-woocommerce-checkout .wc-block-checkout__shipping-fields,
.wp-block-woocommerce-checkout .wc-block-components-address-form{
  margin:0;
}
.wp-block-woocommerce-checkout .wc-block-components-address-form__company,
.wp-block-woocommerce-checkout .wc-block-components-address-form__phone,
.wp-block-woocommerce-checkout .wc-block-components-address-form__address_2{
  margin-bottom:14px;
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 10px;
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox__input{
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin:2px 0 0;
  accent-color:var(--nuw-plum);
}
.wp-block-woocommerce-checkout .wc-block-components-checkbox__label{
  min-height:24px;               /* WCAG 2.5.8 with the 10px gap beside it */
  color:var(--nuw-ink-2);        /* 9.50 on paper */
  font-size:14.5px;
  line-height:1.5;
}
.wp-block-woocommerce-checkout .wc-block-checkout__terms,
.wp-block-woocommerce-checkout .wc-block-checkout__add-note,
.wp-block-woocommerce-checkout .wc-block-checkout__order-notes{
  margin-top:16px;
}
.wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice{
  color:var(--nuw-ink-3);        /* 5.75 on paper */
  font-size:13.5px;
}

/* The saved-address card: a sunk panel, so it reads as a stored fact rather
   than an editable field. --nuw-ink-2 on --nuw-sunk = 9.05:1. */
.wp-block-woocommerce-checkout .wc-block-components-address-card{
  padding:16px;
  border:1px solid var(--nuw-line);
  border-radius:var(--nuw-shop-radius-sm);
  background:var(--nuw-sunk);
  color:var(--nuw-ink-2);
  font-size:14.5px;
  line-height:1.55;
}

/* --- order summary ------------------------------------------------------ */
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar{
  min-width:0;
}
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-sidebar{
  padding:clamp(18px,2vw,26px);
  border:1px solid var(--nuw-line);
  border-radius:var(--nuw-shop-radius);
  background:var(--nuw-card);
  box-shadow:var(--nuw-shadow);
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:44px;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
  text-align:start;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text{
  color:var(--nuw-ink-3);        /* 6.09 on card white */
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-price{
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-size:16px;
  font-weight:700;
  font-variant-numeric:tabular-nums lining-nums;
}
/* The disclosure caret. --nuw-ink-faint would be the natural "this is only
   shape" token, but at 2.60:1 on white it fails WCAG 1.4.11 for a graphic
   that carries the expanded/collapsed state, so it takes the ink-3 step
   (6.09:1) instead. */
.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon{
  color:var(--nuw-ink-3);
  fill:currentColor;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--nuw-line-2);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item:last-child{
  border-bottom:0;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image{
  position:relative;
  flex:0 0 auto;
  width:60px;
  margin:0;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/4.15;
  object-fit:cover;
  object-position:50% 5%;
  border-radius:6px;
  background:var(--nuw-sunk);
  border:1px solid var(--nuw-line-2);
}
/* The count bubble. Decorative-sized, but it carries a number, so it is
   white on --nuw-btn = 18.25:1 rather than a tint. */
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity{
  position:absolute;
  top:-8px;
  inset-inline-end:-8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border:2px solid var(--nuw-card);
  border-radius:var(--nuw-r-btn,6px);
  background:var(--nuw-btn);
  color:var(--nuw-btn-ink);
  font-size:11.5px;
  font-weight:700;
  line-height:1;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description{
  flex:1 1 auto;
  min-width:0;
  font-size:13.5px;
  color:var(--nuw-ink-3);        /* 6.09 on card white */
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{
  display:block;
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none;
}
/* Woo has spelled this class both ways across releases; both are matched so
   a minor update does not silently drop the per-unit line. */
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-price,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-prices{
  display:block;
  margin-top:2px;
  color:var(--nuw-ink-3);        /* 6.09 on card white */
  font-size:12.5px;
  font-variant-numeric:tabular-nums lining-nums;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price{
  flex:0 0 auto;
  color:var(--nuw-ink);          /* 18.17 on card white */
  font-size:14.5px;
  font-weight:700;
  text-align:end;
  white-space:nowrap;
  font-variant-numeric:tabular-nums lining-nums;
}

.wp-block-woocommerce-checkout .wc-block-checkout__actions{
  margin-top:clamp(18px,2.2vw,28px);
  padding-top:clamp(18px,2.2vw,28px);
  border-top:1px solid var(--nuw-line);
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button--full-width{
  width:100%;
  min-height:56px;               /* the one action the whole page exists for */
  font-size:13px;
}

/* ------------------------------------------------------------- responsive */

/* Desktop: the summary column follows the buyer down a long cart while the
   ledger scrolls. `align-self:flex-start` is required — a stretched flex
   item is as tall as the row and can never stick. */
@media (min-width:900px){
  .wp-block-woocommerce-cart .wc-block-cart__sidebar,
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar{
    position:sticky;
    top:var(--nuw-shop-stick);
    align-self:flex-start;
  }
}

@media (min-width:1200px){
  .wp-block-woocommerce-cart .wc-block-cart__sidebar,
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar{
    flex:0 0 380px;
    max-width:380px;
  }
}

/* Below 900 the layout is one column, so a sticky summary would pin a card
   over the form it belongs under. Off, explicitly. */
@media (max-width:899px){
  .wp-block-woocommerce-cart .wc-block-cart__sidebar,
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar{
    position:static;
    top:auto;
    margin-top:var(--nuw-shop-gap);
  }
}

/* WooCommerce's own block CSS collapses the cart table to one column around
   700px. These rules keep the row readable through that change: the
   thumbnail keeps a real size instead of collapsing to a sliver, the stepper
   keeps 44px targets, and the line total stays on the figure's own line. */
@media (max-width:700px){
  .wp-block-woocommerce-cart .wc-block-cart-items__header{
    display:none;                /* the labels repeat inside each stacked row */
  }
  .wp-block-woocommerce-cart .wc-block-cart-item__image{
    width:88px;
    min-width:88px;
    padding-inline-end:14px;
  }
  .wp-block-woocommerce-cart .wc-block-cart-items__row td{
    padding-block:16px;
  }
  .wp-block-woocommerce-cart .wc-block-cart-item__total{
    text-align:end;
  }
  .wp-block-woocommerce-cart .wc-block-components-quantity-selector{
    max-width:144px;
  }
  .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image{
    width:52px;
  }
}

@media (max-width:480px){
  .wp-block-woocommerce-cart .wc-block-cart-item__image{
    width:72px;
    min-width:72px;
    padding-inline-end:12px;
  }
  .wp-block-woocommerce-cart .wc-block-cart-item__wrap .wc-block-components-product-name{
    font-size:14.5px;
  }
  /* The one figure that must never break: at 375px the row is 335px wide and
     a wrapped "$1,2 / 34.00" is a misread price, not a layout nit. */
  .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value{
    font-size:15px;
    white-space:nowrap;
  }
  .wp-block-woocommerce-cart .wc-block-components-quantity-selector{
    max-width:136px;
  }
  .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input{
    width:44px;
  }
  .wp-block-woocommerce-cart .wc-block-components-product-details__size,
  .wp-block-woocommerce-cart .wc-block-components-product-details__colour{
    display:block;
    margin-inline-end:0;
  }
  .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-sidebar,
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-sidebar{
    padding-inline:16px;
  }
  .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
    font-size:22px;
  }
  /* A pill that has to hold "PROCEED TO CHECKOUT" at .08em tracking is the
     one thing that can push the page past 375px. Let it wrap instead. */
  .wp-block-woocommerce-cart .wc-block-cart__submit-button,
  .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button{
    padding-inline:18px;
    font-size:11.5px;
    letter-spacing:.06em;
    text-align:center;
  }
}

/* --------------------------------------------------------- reduced motion */

/* Nothing here animates anything a buyer needs; every transition is a
   nicety, so all of it stops rather than merely shortening. */
@media (prefers-reduced-motion:reduce){
  .wp-block-woocommerce-cart *,
  .wp-block-woocommerce-checkout *,
  .wp-block-woocommerce-empty-cart-block *{
    transition-duration:.01ms!important;   /* the standard reduced-motion kill */
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover,
  .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover,
  .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover{
    transform:none;
  }
}


/* ======================================================================
   TWO THINGS WOOCOMMERCE ITSELF PRINTS THAT READ AS OUR BUGS
   ====================================================================== */

/* Woo lays the line-item metadata out INLINE and prints a real separator
   element between the pairs — `<span aria-hidden="true"> / </span>` — so a
   cart row ended "Size: m /", a slash hanging after the last pair like a
   template that lost a variable. (It is markup, not a ::after, so no amount of
   `content:none` reaches it.) The pairs are stacked one per line instead and
   the separator is dropped: a wholesale row carries four facts — volume
   price, next band, size, colour — and they are worth reading down a column.
   The separator span is only ever emitted between pairs, and it is already
   hidden from assistive technology, so removing it costs nothing. */
.wc-block-components-product-metadata .wc-block-components-product-details{
  display:flex;flex-direction:column;gap:3px;margin:6px 0 0;padding:0;list-style:none}
.wc-block-components-product-metadata .wc-block-components-product-details > span,
.wc-block-components-product-metadata .wc-block-components-product-details > li{
  display:block;margin:0;padding:0;list-style:none}
.wc-block-components-product-metadata .wc-block-components-product-details > span > span[aria-hidden="true"],
.wc-block-components-product-metadata .wc-block-components-product-details > li::after{display:none;content:none}

/* The size is stored in the variation's own spelling, which is lower case
   ("m", "4x-petite"). On a purchase order a size is an M. */
.wc-block-components-product-details__size .wc-block-components-product-details__value{
  text-transform:uppercase;letter-spacing:.04em;font-weight:700}

/* Tap targets on the two buttons that finish an order.
   Measured on the running site at 375px: "Proceed to checkout" came out 37.5px
   tall, under the 44px minimum a thumb needs (WCAG 2.2 Target Size, and simple
   good manners on a phone). Padding alone is fragile here because Woo sizes
   these from line-height, so a floor is set explicitly. */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button{
  min-height:52px;display:inline-flex;align-items:center;justify-content:center}
