/*
Theme Name: CGTV B2B
Theme URI: https://b2b.edge.cgtv.it
Author: rete.ws
Description: Block theme for the CG Entertainment B2B shop. App-like layout: light collapsible sidebar fused with the page, flat surfaces, data-dense tables. Design tokens in theme.json (same vocabulary as the store theme), zero build step, zero dependencies.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgtv-b2b
Tags: full-site-editing, block-styles, custom-colors, editor-style
*/

/* Block themes drive colors, type and spacing from theme.json. This file holds
   the layout (app shell) and the component rules that cannot live in JSON.
   Every color below is a theme.json token: change the palette, not this file. */

:root {
  --b2b-sidebar-w: var(--wp--custom--shell--sidebar-width);
  --b2b-topbar-h: var(--wp--custom--shell--topbar-height);
  --b2b-radius: var(--wp--custom--radius--control);
  --b2b-radius-lg: var(--wp--custom--radius--surface);
  --b2b-line: var(--wp--preset--color--line);
  --b2b-focus: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; }
h1, h2, h3, h4 { font-feature-settings: "kern", "liga"; }

/* ===================================================================
   APP SHELL: sidebar (light, fused, collapsible) + main (topbar + content)
   =================================================================== */
.b2b-shell {
  display: grid;
  grid-template-columns: var(--b2b-sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
/* WordPress "flow" layout adds margin-block-start to every child after the
   first: it pushed the whole main column (and its topbar) 24px down. The
   shell is a grid, not a flow: no block gap here. */
.b2b-shell > *, .b2b-main > * { margin-block-start: 0 !important; }
.b2b-main { min-width: 0; display: flex; flex-direction: column; }
.b2b-content {
  width: 100%; max-width: calc(1280px + 48px); box-sizing: border-box;
  padding: 24px 24px 64px;
  flex: 1 1 auto;
}
.b2b-content > * + * { margin-block-start: 24px; }
.b2b-page-head { margin-bottom: 8px; }

/* ---------- Sidebar: FUSED with the page (panel, 2nd session, 14 Sep 2026)
   Same ground as the work area, no border: structure comes from the white
   surfaces (the active pill, the tables), not from lines. Shopify/Notion. */
html.b2b-collapsed { --b2b-sidebar-w: var(--wp--custom--shell--sidebar-width-collapsed); }
.b2b-sidebar {
  position: sticky; top: 0; align-self: start;
  /* 1px short of the viewport: a page whose height is fractional (text
     line-heights) ends a fraction ABOVE the viewport bottom, and a sticky
     sidebar as tall as the viewport gets pushed up by that fraction at the
     end of the scroll (the logo "moved" by 0.14px on the film page). */
  height: calc(100vh - 1px); height: calc(100dvh - 1px); max-height: calc(100dvh - 1px); box-sizing: border-box;
  overflow: hidden auto; overscroll-behavior: contain;
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--ink);
  display: flex; flex-direction: column;
  padding: 12px 12px 12px;
  transition: width .12s ease-out;
}
.b2b-sidebar__head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 0 0 8px; margin-bottom: 16px; }
/* Brand: the emblem (same as the login) + "CG | tv": CG bold, a hairline bar, tv regular. */
.b2b-brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; color: var(--wp--preset--color--ink); }
/* `.b2b-brand .b2b-brand__logo`: WooCommerce's `.woocommerce-page img { height:auto }` (0,1,1) beats a lone class */
.b2b-brand .b2b-brand__logo { height: 28px; width: auto; max-width: none; display: block; }
.b2b-brand__word { display: inline-flex; align-items: center; gap: 7px; font-family: var(--wp--preset--font-family--body); font-size: 16px; letter-spacing: 0; color: var(--wp--preset--color--ink); }
.b2b-brand__word b { font-weight: 700; }
.b2b-brand__word i { display: inline-block; width: 1px; height: 16px; background: var(--wp--preset--color--line-2); }
.b2b-brand__word > span { font-weight: 400; color: var(--wp--preset--color--ink); }
.b2b-sidebar__toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--wp--preset--color--muted-ink); cursor: pointer;
  transition: background-color .12s ease-out, color .12s ease-out;
}
.b2b-sidebar__toggle svg { width: 20px; height: 20px; }
.b2b-sidebar__toggle:hover { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); }
.b2b-sidebar__toggle:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.b2b-sidebar__toggle-icon--expand, .b2b-sidebar__toggle-mark { display: none; }
.b2b-sidebar__toggle-mark { width: 28px; height: 28px; }

.b2b-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.b2b-nav__link, .b2b-sidebar__user, .b2b-sidebar__logout {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid transparent;
  color: var(--wp--preset--color--ink); text-decoration: none;
  font-size: var(--wp--preset--font-size--small); font-weight: 500; line-height: 1.2;
  transition: background-color .12s ease-out, color .12s ease-out, border-color .12s ease-out;
}
.b2b-nav__icon { flex: 0 0 20px; color: var(--wp--preset--color--muted-2); transition: color .12s ease-out; }
.b2b-nav__link:hover, .b2b-sidebar__user:hover, .b2b-sidebar__logout:hover { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); }
.b2b-nav__link:hover .b2b-nav__icon { color: var(--wp--preset--color--ink); }
/* Active = a white pill on the grey ground. The white IS the relief: no shadow. */
.b2b-nav__link.is-active {
  background: var(--wp--preset--color--surface); border-color: var(--b2b-line);
  color: var(--wp--preset--color--accent); font-weight: 600;
}
.b2b-nav__link.is-active .b2b-nav__icon { color: var(--wp--preset--color--accent); }
.b2b-nav__link:focus-visible, .b2b-sidebar__user:focus-visible, .b2b-sidebar__logout:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.b2b-nav__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Foot: the account block. A hairline above, then WHO (avatar
   with initials, name, company, price group) and a separate EXIT row. ---------- */
.b2b-sidebar__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--b2b-line); display: flex; flex-direction: column; gap: 2px; }
.b2b-sidebar__user { min-height: 48px; padding: 6px 8px; align-items: center; }
.b2b-sidebar__avatar {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--ink); color: #fff;
  font-family: var(--wp--preset--font-family--heading); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.b2b-sidebar__user-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.b2b-sidebar__name { font-weight: 600; font-size: var(--wp--preset--font-size--small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-sidebar__company { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-sidebar__group {
  align-self: flex-start; margin-top: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  padding: 1px 7px; border-radius: var(--wp--custom--radius--pill);
  background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, white); color: var(--wp--preset--color--accent);
}
/* Esci: a real secondary button, full width, under the user row */
.b2b-sidebar__logout { margin-top: 6px; min-height: 34px; justify-content: center; gap: 6px; border: 1px solid var(--wp--preset--color--line-2); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 600; }
.b2b-sidebar__logout .b2b-nav__icon { color: var(--wp--preset--color--muted-ink); flex-basis: 18px; width: 18px; height: 18px; }
.b2b-sidebar__logout:hover { border-color: var(--wp--preset--color--muted-2); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--accent); }
.b2b-sidebar__logout:hover .b2b-nav__icon { color: var(--wp--preset--color--accent); }
.b2b-sidebar__legal { margin: 10px 0 0; padding: 0 12px; font-size: 11px; line-height: 1.5; color: var(--wp--preset--color--muted-2); }
.b2b-sidebar__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.b2b-sidebar__legal a:hover { color: var(--wp--preset--color--accent); }
html.b2b-collapsed .b2b-sidebar__legal { display: none; }

/* Collapsed: icons only, logo hidden, toggle centred, labels as tooltips. */
html.b2b-collapsed .b2b-sidebar { padding-left: 8px; padding-right: 8px; }
html.b2b-collapsed .b2b-sidebar__head { justify-content: center; padding: 0; }
html.b2b-collapsed .b2b-brand { display: none; }
html.b2b-collapsed .b2b-sidebar__toggle { width: 40px; height: 40px; }
html.b2b-collapsed .b2b-sidebar__toggle-icon--collapse { display: none; }
/* Collapsed: the emblem shows at rest; hover or keyboard focus swaps it for the expand caret. */
html.b2b-collapsed .b2b-sidebar__toggle-mark { display: block; }
html.b2b-collapsed .b2b-sidebar__toggle:hover .b2b-sidebar__toggle-mark,
html.b2b-collapsed .b2b-sidebar__toggle:focus-visible .b2b-sidebar__toggle-mark { display: none; }
html.b2b-collapsed .b2b-sidebar__toggle:hover .b2b-sidebar__toggle-icon--expand,
html.b2b-collapsed .b2b-sidebar__toggle:focus-visible .b2b-sidebar__toggle-icon--expand { display: block; }
html.b2b-collapsed .b2b-nav__link, html.b2b-collapsed .b2b-sidebar__user, html.b2b-collapsed .b2b-sidebar__logout { justify-content: center; padding: 0; width: 48px; min-height: 40px; }
html.b2b-collapsed .b2b-sidebar__user { min-height: 48px; }
html.b2b-collapsed .b2b-sidebar__logout { width: 40px; min-height: 40px; margin: 6px auto 0; }
html.b2b-collapsed .b2b-nav__label, html.b2b-collapsed .b2b-sidebar__user-text { display: none; }
html.b2b-collapsed [data-label]:hover::after, html.b2b-collapsed [data-label]:focus-visible::after {
  content: attr(data-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--wp--preset--color--ink); color: #fff; font-size: var(--wp--preset--font-size--x-small); font-weight: 500;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 50; pointer-events: none;
}

/* ---------- Topbar (panel "Titolo, ricerca, carrello", 14 Sep 2026):
   page title + meta on the left, search in the middle, cart with amount on
   the right. Transparent on the ground; a hairline once scrolled. ---------- */
.b2b-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  /* the hairline is INSIDE the 56px (border-box): the sticky poster and the
     table head use --b2b-topbar-h and must not find a 57px bar (1px jump) */
  box-sizing: border-box; min-height: var(--b2b-topbar-h);
  padding: 0 24px;
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid transparent;
  transition: border-color .12s ease-out;
}
.b2b-topbar.is-scrolled { border-bottom-color: var(--b2b-line); }
.b2b-topbar__toggle { display: none; }
.b2b-topbar__title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; max-width: 420px; }
.b2b-topbar__h1 { margin: 0; font-size: 20px; line-height: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-topbar__meta { font-size: var(--wp--preset--font-size--small); line-height: 20px; padding-top: 2px; color: var(--wp--preset--color--muted-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b2b-topbar__meta:empty { display: none; }
.b2b-topbar__back { align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -8px; border-radius: 8px; color: var(--wp--preset--color--muted-2); }
.b2b-topbar__back:hover { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); }
/* "Torna al catalogo": a quiet text button, the only thing in the title slot */
.b2b-topbar__back--text { width: auto; height: 36px; padding: 0 12px 0 6px; gap: 4px; color: var(--wp--preset--color--ink); font-weight: 600; font-size: var(--wp--preset--font-size--small); text-decoration: none; white-space: nowrap; }
.b2b-topbar__back--text svg { color: var(--wp--preset--color--muted-2); }
.b2b-topbar__back--text:hover svg { color: var(--wp--preset--color--ink); }
.b2b-topbar__chip { align-self: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--wp--preset--color--surface-3); }
.b2b-topbar__search { flex: 1 1 auto; max-width: 480px; margin: 0 auto; position: relative; }
.b2b-topbar__search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wp--preset--color--muted-2); pointer-events: none; }
.b2b-topbar__search input[type="search"] { width: 100%; box-sizing: border-box; padding-left: 38px; padding-right: 44px; min-height: 36px; border-color: var(--b2b-line); }
.b2b-topbar__search input[type="search"]:focus { border-color: var(--wp--preset--color--accent); }
.b2b-topbar__kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--b2b-line); border-radius: 5px; background: var(--wp--preset--color--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--wp--preset--color--muted-ink);
  pointer-events: none;
}
.b2b-topbar__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.b2b-topbar__cart {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px 0 8px; border-radius: 8px;
  color: var(--wp--preset--color--ink); text-decoration: none;
  font-size: var(--wp--preset--font-size--small); font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .12s ease-out;
}
.b2b-topbar__cart:hover { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); }
.b2b-topbar__cart:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.b2b-topbar__cart-icon { position: relative; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.b2b-topbar__cart-count {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--accent); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 16px; text-align: center;
}

/* ---------- Page header inside content ---------- */
.b2b-page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.b2b-page-head h1 { margin: 0; }
.b2b-page-head__sub { color: var(--wp--preset--color--muted-ink); margin: .25rem 0 0; }

/* ===================================================================
   CONTROLS: buttons (panel decision, 14 Sep 2026)
   Primary = one red action per screen (accent #c40812, AA 6.2:1 on white),
   hover primary-dark, pressed primary-deep. Radius 10, height 44/32/48,
   Bricolage 600 15px, no uppercase, no shadows. Focus = outline, never
   removed. Disabled = solid greys, never opacity. Loading = locked width.
   The primary itself is defined in theme.json (styles.elements.button) and
   lands on .wp-element-button; here we (a) extend it to WooCommerce and
   custom buttons at MINIMAL specificity with :where(), (b) add what
   theme.json cannot express: sizes, variants, disabled, loading, focus.
   =================================================================== */
:where(.woocommerce) :where(a.button, button.button, input.button),
:where(.wc-block-components-button:not(.is-link)),
:where(.b2b-btn),
:where(.wp-element-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-sizing: border-box;
  min-height: var(--wp--custom--button--height);
  padding: 0 20px;
  border: 1px solid var(--wp--custom--button--bg);
  border-radius: var(--wp--custom--radius--control);
  background: var(--wp--custom--button--bg); color: var(--wp--custom--button--text);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--control); font-weight: 600; line-height: 1;
  letter-spacing: 0; text-transform: none; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  box-shadow: none;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
:where(.woocommerce) :where(a.button, button.button, input.button):hover,
:where(.wc-block-components-button:not(.is-link)):hover,
:where(.b2b-btn):hover, :where(.wp-element-button):hover {
  background: var(--wp--custom--button--bg-hover); border-color: var(--wp--custom--button--bg-hover); color: var(--wp--custom--button--text);
}
:where(.woocommerce) :where(a.button, button.button, input.button):active,
:where(.wc-block-components-button:not(.is-link)):active,
:where(.b2b-btn):active, :where(.wp-element-button):active {
  background: var(--wp--custom--button--bg-active); border-color: var(--wp--custom--button--bg-active); transform: none;
}

/* <a class="b2b-btn">: the base rule is :where() (specificity 0), so the theme.json
   link colour (a:where(...), 0,0,1) painted the text red on red. Same weight as the
   variants below (0,1,0), declared before them so they still win. */
:where(a).b2b-btn, :where(a).b2b-btn:hover, :where(a).b2b-btn:focus { color: var(--wp--custom--button--text); }

/* ---- Variants (also registered as block styles for core/button in functions.php) ---- */
.b2b-btn--secondary, .wp-block-button.is-style-secondary .wp-element-button,
:where(.woocommerce) :where(a.button, button.button):not(.alt):not(.checkout-button):not(.single_add_to_cart_button) {
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--line-2);
}
.b2b-btn--secondary:hover, .wp-block-button.is-style-secondary .wp-element-button:hover,
:where(.woocommerce) :where(a.button, button.button):not(.alt):not(.checkout-button):not(.single_add_to_cart_button):hover {
  background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink);
}
.b2b-btn--secondary:active, .wp-block-button.is-style-secondary .wp-element-button:active { background: var(--wp--preset--color--surface-3); border-color: var(--wp--preset--color--ink); }

.b2b-btn--ghost, .wp-block-button.is-style-ghost .wp-element-button { background: transparent; color: var(--wp--preset--color--ink); border-color: transparent; padding: 0 12px; }
.b2b-btn--ghost:hover, .wp-block-button.is-style-ghost .wp-element-button:hover { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink); border-color: transparent; }
.b2b-btn--ghost:active, .wp-block-button.is-style-ghost .wp-element-button:active { background: var(--wp--preset--color--surface-3); border-color: transparent; }

/* Danger: outlined at rest. Solid red is ONLY for the final confirmation. */
.b2b-btn--danger, .wp-block-button.is-style-danger .wp-element-button { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--error); border-color: var(--wp--preset--color--error); }
.b2b-btn--danger:hover, .wp-block-button.is-style-danger .wp-element-button:hover { background: #fdeceb; color: var(--wp--preset--color--error); border-color: var(--wp--preset--color--error); }
.b2b-btn--danger-solid { background: var(--wp--preset--color--error); color: #fff; border-color: var(--wp--preset--color--error); }
.b2b-btn--danger-solid:hover { background: #b3241a; border-color: #b3241a; color: #fff; }

/* ---- Sizes ---- */
.b2b-btn--sm, .is-size-small .wp-element-button { min-height: var(--wp--custom--button--height-sm); padding: 0 12px; font-size: 0.8125rem; border-radius: var(--wp--custom--radius--micro); }
.b2b-btn--lg, .is-size-large .wp-element-button { min-height: var(--wp--custom--button--height-lg); padding: 0 24px; font-size: var(--wp--preset--font-size--base); }
.b2b-btn--block { width: 100%; }

/* ---- States theme.json cannot express ---- */
:where(.b2b-btn, .wp-element-button, .wc-block-components-button, .woocommerce .button):focus-visible {
  outline: var(--wp--custom--focus--outline); outline-offset: var(--wp--custom--focus--outline-offset); box-shadow: none;
}
.b2b-sidebar :where(a, button):focus-visible { outline-color: #fff; }

.b2b-btn[disabled], .b2b-btn.is-disabled, .b2b-btn[aria-disabled="true"],
.wp-element-button[disabled], .wc-block-components-button[disabled], .woocommerce .button[disabled],
.woocommerce .button.disabled {
  background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--muted-ink); border-color: var(--wp--preset--color--line);
  opacity: 1; cursor: not-allowed; pointer-events: none;
}

.b2b-btn.is-loading, .wp-element-button.is-loading, .cgtv-pwl__submit.is-loading {
  position: relative; color: transparent !important; pointer-events: none;
}
.b2b-btn.is-loading::after, .wp-element-button.is-loading::after, .cgtv-pwl__submit.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
  animation: b2b-spin .7s linear infinite;
}
.b2b-btn--secondary.is-loading::after, .b2b-btn--ghost.is-loading::after { border-color: var(--wp--preset--color--line-2); border-top-color: var(--wp--preset--color--ink); }
@keyframes b2b-spin { to { transform: rotate(360deg); } }

/* "Aggiunto": the table row feedback after a click (green, 1.5s, then stepper). */
.b2b-btn.is-added { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--success); border-color: var(--wp--preset--color--success); }
.b2b-btn__plus { font-weight: 700; font-size: 1.1em; line-height: 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="url"], input[type="date"], textarea, select,
.wc-block-components-text-input input, .woocommerce .input-text {
  width: 100%; box-sizing: border-box;
  min-height: var(--wp--custom--control--min-height);
  padding: 0 var(--wp--custom--control--padding-x);
  background: var(--wp--preset--color--field); color: var(--wp--preset--color--ink);
  border: 1px solid var(--wp--preset--color--line-2);
  border-radius: var(--b2b-radius);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--small); line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 6rem; padding-top: .6rem; padding-bottom: .6rem; resize: vertical; }
select {
  appearance: none; padding-right: 2.2rem;
  background-image: url("assets/icons/caret-down.svg");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: var(--b2b-focus); }
input::placeholder, textarea::placeholder { color: var(--wp--preset--color--muted-2); opacity: 1; }
input[aria-invalid="true"], .b2b-field.is-error input { border-color: var(--wp--preset--color--error); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--wp--preset--color--primary); vertical-align: -3px; margin-right: .4rem; }
.b2b-field { display: block; margin: 0 0 1rem; }
.b2b-field > label, .b2b-label {
  display: block; margin-bottom: .35rem;
  font-size: var(--wp--preset--font-size--x-small); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink);
}
.b2b-field__hint { margin: .35rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-field.is-error .b2b-field__hint { color: var(--wp--preset--color--error); }
.b2b-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }

/* ===================================================================
   SURFACES: cards, tables, badges, notices
   =================================================================== */
/* Flat by design: one hairline, no shadows (the store's cards float on dark
   with light shadows; on white the same depth is given by the border alone). */
.b2b-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--b2b-line);
  border-radius: var(--b2b-radius-lg);
  padding: var(--wp--custom--card--padding);
  box-shadow: none;
}
.b2b-card__title { margin: 0 0 .75rem; font-size: var(--wp--preset--font-size--medium); }
.b2b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.b2b-stat { padding: 1rem 1.1rem; }
.b2b-stat__label { font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted-ink); font-weight: 700; }
.b2b-stat__value { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large); font-weight: 600; line-height: 1.1; margin-top: .25rem; font-variant-numeric: tabular-nums; }

.b2b-table-wrap { overflow-x: auto; border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); background: var(--wp--preset--color--surface); }
table.b2b-table, .woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); }
.b2b-table th, .woocommerce table.shop_table th {
  text-align: left; padding: .7rem .9rem;
  font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wp--preset--color--muted-ink); background: var(--wp--preset--color--surface-2);
  border-bottom: 1px solid var(--b2b-line); white-space: nowrap;
}
.b2b-table td, .woocommerce table.shop_table td { padding: .65rem .9rem; border-bottom: 1px solid var(--b2b-line); vertical-align: middle; }
.b2b-table tbody tr:last-child td { border-bottom: 0; }
.b2b-table tbody tr:hover td { background: color-mix(in srgb, var(--wp--preset--color--surface-2) 60%, transparent); }
.b2b-table .is-num, .b2b-table td.is-num, .b2b-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.b2b-table .is-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: var(--wp--preset--color--muted-ink); }
.b2b-table input[type="number"] { width: 5.5rem; min-height: 34px; text-align: right; }

.b2b-badge {
  display: inline-block; padding: .2em .6em; border-radius: var(--wp--custom--radius--pill);
  font-size: var(--wp--preset--font-size--x-small); font-weight: 700; line-height: 1.5; letter-spacing: .03em;
  background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink);
}
.b2b-badge--success { background: color-mix(in srgb, var(--wp--preset--color--success) 15%, white); color: var(--wp--preset--color--success); }
.b2b-badge--warning { background: color-mix(in srgb, var(--wp--preset--color--warning) 18%, white); color: var(--wp--preset--color--warning); }
.b2b-badge--info    { background: color-mix(in srgb, var(--wp--preset--color--info) 15%, white);    color: var(--wp--preset--color--info); }
.b2b-badge--error   { background: color-mix(in srgb, var(--wp--preset--color--error) 14%, white);   color: var(--wp--preset--color--error); }
.b2b-badge--promo   { background: var(--wp--preset--color--primary); color: #fff; }

.b2b-notice, .woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner {
  padding: .8rem 1rem; border-radius: var(--b2b-radius); border: 1px solid;
  font-size: var(--wp--preset--font-size--small); margin: 0 0 1rem;
  background: var(--wp--preset--color--surface); border-color: var(--b2b-line); color: var(--wp--preset--color--ink);
}
.b2b-notice--success, .woocommerce-message { border-color: var(--wp--preset--color--success); background: color-mix(in srgb, var(--wp--preset--color--success) 8%, white); }
.b2b-notice--error, .woocommerce-error   { border-color: var(--wp--preset--color--error);   background: color-mix(in srgb, var(--wp--preset--color--error) 7%, white); }
.b2b-notice--info, .woocommerce-info     { border-color: var(--wp--preset--color--info);    background: color-mix(in srgb, var(--wp--preset--color--info) 7%, white); }
.b2b-notice--warning                     { border-color: var(--wp--preset--color--warning); background: color-mix(in srgb, var(--wp--preset--color--warning) 10%, white); }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; }
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { display: none; }

.b2b-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.b2b-price__net { color: var(--wp--preset--color--ink); }
.b2b-price__list { color: var(--wp--preset--color--muted-2); text-decoration: line-through; font-weight: 400; margin-left: .4em; }
.b2b-price__vat { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); font-weight: 400; margin-left: .3em; }

/* ===================================================================
   LOGIN (guest): bare split page, no shell. Left: brand panel (dark,
   image, claim). Right: the form, big. Mark top-left, no wordmark.
   =================================================================== */
.b2b-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--wp--preset--color--paper);
}
.b2b-login__side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--wp--preset--color--side-bg);
  color: var(--wp--preset--color--side-text);
}
.b2b-login__side::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--b2b-login-img);
  background-size: cover; background-position: center;
  opacity: .38;
}
.b2b-login__side::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,14,.55) 0%, rgba(11,11,14,.15) 40%, rgba(11,11,14,.85) 100%);
}
.b2b-login__brand, .b2b-login__claim { position: relative; z-index: 1; }
/* mark + "CG | tv" wordmark, same proportions as the sidebar brand (28px mark : 16px text) */
.b2b-login__brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--wp--preset--color--side-text); width: fit-content; }
.b2b-login__brand .b2b-login__logo { height: 44px; width: auto; max-width: none; display: block; }
.b2b-login__word { display: inline-flex; align-items: center; gap: 12px; font-family: var(--wp--preset--font-family--body); font-size: 30px; line-height: 1; color: #fff; }
.b2b-login__word b { font-weight: 700; }
.b2b-login__word i { display: inline-block; width: 1px; height: 30px; background: rgba(255, 255, 255, .45); }
.b2b-login__word > span { font-weight: 400; }
.b2b-login__claim { max-width: 34rem; }
.b2b-login__kicker {
  margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--side-muted);
}
.b2b-login__headline {
  margin: 0 0 .75rem; color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700;
}
.b2b-login__lead { margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.45; color: var(--wp--preset--color--side-text); opacity: .9; max-width: 28rem; }

.b2b-login__main { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 4rem); }
.b2b-login__box { width: 100%; max-width: 38rem; }
.b2b-login__foot { text-align: center; margin-top: 2rem; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); }

/* Passwordless form (markup from plugin/cgtv-passwordless.php).
   On the login it is FLAT: no card, no border, no shadow. Wide fields,
   tall controls, one red action, a divider, one outlined secondary action. */
.cgtv-pwl { max-width: 38rem; margin-inline: auto; }
.cgtv-pwl .cgtv-pwl__panel--code { display: none; }
.cgtv-pwl[data-step="code"] .cgtv-pwl__panel--email { display: none; }
.cgtv-pwl[data-step="code"] .cgtv-pwl__panel--code { display: block; }
.cgtv-pwl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cgtv-pwl__panel { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
.cgtv-pwl__title { font-size: var(--wp--preset--font-size--medium); text-align: left; margin: 0 0 .25rem; font-weight: 700; }
.cgtv-pwl__subtitle { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); text-align: left; margin: 0 0 1.25rem; }
.cgtv-pwl__subtitle strong { color: var(--wp--preset--color--ink); }
.cgtv-pwl input[type="email"], .cgtv-pwl input[type="text"] {
  min-height: 56px; font-size: var(--wp--preset--font-size--base);
  padding-left: 1rem; padding-right: 1rem;
  border: 1px solid var(--wp--preset--color--line-2); border-radius: var(--b2b-radius);
  box-shadow: none;
}
.cgtv-pwl input[type="email"]:focus, .cgtv-pwl input[type="text"]:focus { border-color: var(--wp--preset--color--primary); box-shadow: none; }
.cgtv-pwl__field { margin: 0 0 .75rem; }
.cgtv-pwl__field label { display: block; margin-bottom: .35rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.cgtv-pwl__code-input { text-align: center; letter-spacing: .5em; padding-left: calc(1rem + .5em) !important; font-size: var(--wp--preset--font-size--large) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.cgtv-pwl__submit { width: 100%; margin-top: .25rem; min-height: var(--wp--custom--button--height-lg); font-size: var(--wp--preset--font-size--base); box-shadow: none; }
.cgtv-pwl__notice { padding: .7rem .9rem; border-radius: var(--b2b-radius); border: 1px solid; font-size: var(--wp--preset--font-size--small); margin: 0 0 1rem; }
.cgtv-pwl__notice--ok { border-color: var(--wp--preset--color--success); background: color-mix(in srgb, var(--wp--preset--color--success) 8%, white); color: var(--wp--preset--color--ink); }
.cgtv-pwl__notice--err { border-color: var(--wp--preset--color--error); background: color-mix(in srgb, var(--wp--preset--color--error) 7%, white); color: var(--wp--preset--color--error); }
.cgtv-pwl__resend, .cgtv-pwl__request { text-align: center; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); margin: 1rem 0 0; }
.cgtv-pwl__resend-btn { background: none; border: 0; padding: 0; color: var(--wp--preset--color--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.cgtv-pwl__resend-btn[disabled] { color: var(--wp--preset--color--muted-2); text-decoration: none; cursor: default; }
.cgtv-pwl__change { margin-top: 10px; }
.cgtv-pwl__change-link { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: underline; }
/* Divider with a word in the middle, then the SECONDARY action (grey outline:
   it must not compete with the one red action, the login itself). */
.cgtv-pwl__divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--x-small); }
.cgtv-pwl__divider::before, .cgtv-pwl__divider::after { content: ""; flex: 1; height: 1px; background: var(--wp--preset--color--line); }
.cgtv-pwl__alt { width: 100%; }
.cgtv-pwl__alt[aria-disabled="true"] { pointer-events: auto; cursor: default; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--line-2); }
.cgtv-pwl__alt[aria-disabled="true"]:hover { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--line-2); }

/* ===================================================================
   STYLE GUIDE page helpers
   =================================================================== */
.b2b-sg-section { margin-block-start: var(--wp--preset--spacing--60) !important; }
.b2b-sg-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.b2b-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.b2b-swatch { border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); overflow: hidden; background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--x-small); }
.b2b-swatch__chip { height: 56px; }
.b2b-swatch__meta { padding: .5rem .6rem; }
.b2b-swatch__meta code { display: block; color: var(--wp--preset--color--muted-ink); }
.b2b-type-sample > * { margin: 0 0 .5rem; }

/* ===================================================================
   MOBILE: sidebar becomes an off-canvas drawer
   =================================================================== */
@media (max-width: 960px) {
  .b2b-shell { grid-template-columns: 1fr; }
  html.b2b-collapsed { --b2b-sidebar-w: var(--wp--custom--shell--sidebar-width); }
  .b2b-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(84vw, 280px); z-index: 40;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  body.b2b-nav-open .b2b-sidebar { transform: none; box-shadow: 0 0 0 100vw rgba(11,11,14,.45); }
  html.b2b-collapsed .b2b-brand { display: inline-flex; }
  html.b2b-collapsed .b2b-sidebar__head { justify-content: space-between; padding: 0 4px 0 8px; }
  .b2b-sidebar__toggle { display: none; }
  html.b2b-collapsed .b2b-nav__link, html.b2b-collapsed .b2b-sidebar__user, html.b2b-collapsed .b2b-sidebar__logout { justify-content: flex-start; padding: 0 12px; width: auto; }
  html.b2b-collapsed .b2b-nav__label, html.b2b-collapsed .b2b-sidebar__user-text { display: initial; }
  html.b2b-collapsed [data-label]:hover::after { display: none; }
  .b2b-topbar { padding: 0 16px; }
  .b2b-topbar__toggle { display: inline-flex; }
  .b2b-topbar { gap: 12px; }
  .b2b-topbar__title { max-width: 40vw; }
  .b2b-topbar__meta, .b2b-topbar__cart-amount { display: none; }
  .b2b-topbar__h1 { font-size: 17px; }
  
  .b2b-content { padding: var(--wp--preset--spacing--40); }

  /* login: stack. The brand panel becomes a short band with the mark and headline. */
  .b2b-login { grid-template-columns: 1fr; }
  .b2b-login__side { min-height: 0; padding: 1.25rem 1.25rem 1.5rem; gap: 1rem; }
  .b2b-login__box { max-width: none; }
  .b2b-login__headline { font-size: 1.75rem; margin-bottom: .25rem; }
  .b2b-login__lead { font-size: var(--wp--preset--font-size--small); }
  .b2b-login__main { padding: 1.25rem; align-items: start; }
}

/* ===================================================================
   CATALOG (panel decision 14 Sep 2026): one row per variation, two
   densities, sticky toolbar + header, fixed chips, right drawer.
   =================================================================== */
.b2b-content--catalog { max-width: none; padding-top: 12px; }
.b2b-catalog .b2b-page-head { margin-bottom: 12px; }

/* Toolbar */
/* The thead is the toolbar: sortable headers + density/Filtri in the last th */
.b2b-th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.b2b-th-sort__ic { width: 12px; height: 12px; color: var(--wp--preset--color--line-2); transition: transform .12s ease-out; }
.b2b-th-sort:hover { color: var(--wp--preset--color--ink); }
.b2b-th-sort:hover .b2b-th-sort__ic { color: var(--wp--preset--color--muted-2); }
.b2b-th-sort.is-on { color: var(--wp--preset--color--ink); }
.b2b-th-sort.is-on .b2b-th-sort__ic { color: var(--wp--preset--color--accent); transform: rotate(180deg); }
.b2b-th-sort.is-on.is-desc .b2b-th-sort__ic { transform: none; }
.b2b-th-tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.b2b-dens { display: inline-flex; border: 1px solid var(--wp--preset--color--line-2); border-radius: 7px; overflow: hidden; background: var(--wp--preset--color--surface); height: 28px; }
.b2b-dens__btn { width: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--wp--preset--color--muted-2); cursor: pointer; }
.b2b-dens__btn.is-on { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); }
.b2b-th-filters { min-height: 28px; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 5px; text-transform: none; letter-spacing: 0; }
.b2b-th-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; margin-left: 1px; }

/* Table: one white block per film on the grey page.
   No overflow container here: `position: sticky` anchors to the nearest
   scrolling ancestor, and an `overflow-x: auto` wrapper would pin the header
   below the TABLE top instead of the viewport. Narrow screens hide columns. */
.b2b-catalog__wrap { position: relative; overflow: visible; }
/* The toolbar wraps to two rows on narrower screens (measured: 84px at 1479px),
   so its height is MEASURED by catalog.js (ResizeObserver) into --b2b-tb-h.
   56px is only the single-row fallback before JS runs. */
.b2b-catalog { --b2b-tb-h: 0px; --b2b-film-gap: 6px; --b2b-row-h: 48px; }
/* border-spacing would also open a gap BETWEEN the editions of one film: the
   gap between films is a spacer row (.b2b-gap) at the end of each <tbody>. */
.b2b-catalog__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--wp--preset--font-size--small); }
.b2b-catalog__table thead th { position: sticky; top: calc(var(--b2b-topbar-h) + var(--b2b-tb-h)); z-index: 10; padding: 4px 12px 6px; height: 40px; box-sizing: border-box; vertical-align: middle; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); background: var(--wp--preset--color--base); white-space: nowrap; border-bottom: var(--b2b-film-gap) solid var(--wp--preset--color--base); }
.b2b-catalog__table.is-stuck thead th { box-shadow: 0 1px 0 var(--b2b-line); }
.b2b-catalog__table td { height: var(--b2b-row-h); padding: 2px 12px; vertical-align: middle; background: var(--wp--preset--color--surface); border-top: 1px solid var(--b2b-line); box-sizing: border-box; }
.b2b-catalog__table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
/* block edges: the film's first row has the top edge, its last row the bottom
   edge; poster and title span every row (rowspan) so they get both */
.b2b-film > .b2b-row--first > td { border-top: 1px solid var(--b2b-line); }
.b2b-film > .b2b-row--sibling > td { border-top: 1px solid var(--wp--preset--color--surface-2); }
.b2b-film > .b2b-row--last > td, .b2b-film > .b2b-row--first > td[rowspan] { border-bottom: 1px solid var(--b2b-line); }
.b2b-film > .b2b-row--first > td:first-child { border-left: 1px solid var(--b2b-line); border-top-left-radius: var(--b2b-radius); border-bottom-left-radius: var(--b2b-radius); }
.b2b-film > .b2b-row > td:last-child { border-right: 1px solid var(--b2b-line); }
.b2b-film > .b2b-row--first > td:last-child { border-top-right-radius: var(--b2b-radius); }
.b2b-film > .b2b-row--last > td:last-child { border-bottom-right-radius: var(--b2b-radius); }
.b2b-film:hover > .b2b-row > td { background: color-mix(in srgb, var(--wp--preset--color--surface-2) 45%, var(--wp--preset--color--surface)); }
.b2b-catalog__table .b2b-gap > td { height: var(--b2b-film-gap); padding: 0; border: 0; background: transparent; }
.b2b-catalog[aria-busy="true"] .b2b-catalog__table tbody { opacity: .45; transition: opacity .12s ease-out; }
.b2b-col-thumb { width: 48px; padding-right: 4px !important; }
.b2b-thumb { display: block; width: 32px; line-height: 0; }
.b2b-thumb img { width: 32px; height: auto; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-thumb--empty { display: block; width: 32px; aspect-ratio: 599 / 847; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-col-title { min-width: 260px; }
.b2b-title { font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; line-height: 1.25; }
.b2b-title:hover { color: var(--wp--preset--color--accent); }
.b2b-n-ed { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-2); font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.b2b-meta { display: block; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); margin-top: 1px; }
.b2b-col-format { width: 90px; }
.b2b-fmt { display: inline-block; min-width: 44px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-align: center; background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--ink); white-space: nowrap; }
.b2b-fmt--bd { background: #e4ecfb; color: #1f4fa3; }
.b2b-fmt--4k { background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, white); color: var(--wp--preset--color--accent); }
.b2b-fmt--box { background: #f1e9d6; color: #7a5a12; }
.b2b-col-sku { width: 110px; }
.b2b-col-date { width: 92px; white-space: nowrap; }
.b2b-date { font-size: 12px; color: var(--wp--preset--color--muted-ink); font-variant-numeric: tabular-nums; }
.b2b-ean { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--wp--preset--color--muted-ink); }
.b2b-col-price { width: 96px; white-space: nowrap; }
.b2b-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.b2b-col-avail { width: 120px; white-space: nowrap; }
.b2b-avail { display: inline-flex; align-items: center; gap: 6px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--muted-2); }
.b2b-avail--ok i { background: var(--wp--preset--color--success); }
.b2b-avail--no i { background: var(--wp--preset--color--line-2); }
.b2b-avail--soon i { background: var(--wp--preset--color--warning); }
/* "Disponibile da 22 ott": in the Aggiungi cell of an edition not released yet */
.b2b-soon { display: inline-block; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--wp--preset--color--warning); }
/* quantity: 28px, typed first; the stepper shows on hover/focus of the row */
.b2b-col-qty { width: 104px; }
.b2b-qty { display: inline-flex; align-items: stretch; height: 28px; border: 1px solid var(--wp--preset--color--line-2); border-radius: 7px; overflow: hidden; background: var(--wp--preset--color--surface); vertical-align: middle; }
.b2b-qty__btn { width: 22px; border: 0; background: transparent; color: var(--wp--preset--color--muted-2); font-size: 13px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .1s ease-out; }
.b2b-row:hover .b2b-qty__btn, .b2b-qty:focus-within .b2b-qty__btn { opacity: 1; }
.b2b-qty__btn:hover { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink); }
/* `.b2b-qty >` beats the generic input[type="number"] rule (0,1,1) above */
.b2b-qty > .b2b-qty__input { width: 40px; min-height: 0; height: 26px; border: 0; border-radius: 0; background: transparent; text-align: center; padding: 0; font-size: 13px; font-weight: 600; line-height: 26px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; transition: none; }
.b2b-qty > .b2b-qty__input::-webkit-outer-spin-button, .b2b-qty > .b2b-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b-qty > .b2b-qty__input:focus { box-shadow: none; border: 0; outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }
.b2b-col-add { width: 150px; white-space: nowrap; }
.b2b-act { display: inline-flex; align-items: center; gap: 6px; }
.b2b-add { min-height: 28px; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.b2b-add.is-added { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--success); border-color: var(--wp--preset--color--success); }
.b2b-add.is-error { border-color: var(--wp--preset--color--error); color: var(--wp--preset--color--error); }
.b2b-incart { display: inline-flex; align-items: center; height: 20px; min-width: 20px; padding: 0 7px; box-sizing: border-box; border-radius: var(--wp--custom--radius--pill); background: #e3f3ea; color: #146c3a; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.b2b-incart.is-hidden { display: none; }
.b2b-empty { padding: 48px 24px; text-align: center; color: var(--wp--preset--color--muted-ink); }

/* Density: large = bigger poster, taller rows */
/* "large" is the default: poster 56px (79px tall) → a single-edition film is
   ~92px, about 10 films per 1080p screen; compact (48px rows) stays a click away */
.b2b-catalog.is-density-large { --b2b-row-h: 64px; }
.b2b-catalog.is-density-large .b2b-col-thumb { width: 72px; }
.b2b-catalog.is-density-large .b2b-thumb, .b2b-catalog.is-density-large .b2b-thumb img, .b2b-catalog.is-density-large .b2b-thumb--empty { width: 56px; }
.b2b-catalog.is-density-large .b2b-catalog__table td { padding-top: 6px; padding-bottom: 6px; }
.b2b-catalog.is-density-large .b2b-title { font-size: var(--wp--preset--font-size--base); }

/* Product page: "scheda a due colonne" (docs/panel-scheda-prodotto.md) */
.b2b-product { max-width: calc(1180px + 48px); }
.b2b-pdp { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
/* sticky offset = topbar + the content's own padding (24px): the poster
   stays exactly where it is, it never creeps up before pinning */
.b2b-pdp__left { position: sticky; top: calc(var(--b2b-topbar-h) + 24px); display: grid; gap: 12px; }
.b2b-pdp__poster { display: block; width: 100%; height: auto; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 4px; background: var(--wp--preset--color--surface-2); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .5); cursor: zoom-in; }
.b2b-pdp__media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b2b-pdp__media .b2b-btn { width: 100%; gap: 6px; }
.b2b-pdp__media .b2b-btn:only-child { grid-column: 1 / -1; }
.b2b-pdp__main { min-width: 0; display: grid; gap: 24px; }
.b2b-pdp__id { display: grid; gap: 4px; }
.b2b-pdp__id > * { margin: 0; }
.b2b-pdp__dir { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.b2b-pdp__h { font-family: var(--wp--preset--font-family--heading); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.b2b-pdp__orig { font-style: italic; color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--small); }
.b2b-pdp__sub { color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--small); }
.b2b-pdp__vis { display: inline-flex; align-items: center; gap: 6px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-pdp__vis svg { width: 14px; height: 14px; }
.b2b-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
/* editions: the catalog's cells, in a white card, no film columns */
.b2b-editions__card { background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); overflow: hidden; }
.b2b-editions__table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); }
.b2b-editions__table th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); background: var(--wp--preset--color--surface-2); border-bottom: 1px solid var(--b2b-line); white-space: nowrap; }
.b2b-editions__table td { height: 48px; padding: 2px 12px; border-top: 1px solid var(--wp--preset--color--surface-2); vertical-align: middle; box-sizing: border-box; }
.b2b-editions__table tr:first-child td { border-top: 0; }
.b2b-editions__table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.b2b-editions__table .b2b-col-sku { width: 110px; }
.b2b-editions__table .b2b-row:hover td { background: color-mix(in srgb, var(--wp--preset--color--surface-2) 45%, var(--wp--preset--color--surface)); }
/* reading | technical sheet in φ */
.b2b-pdp__two { display: grid; grid-template-columns: 1.618fr 1fr; gap: 32px; align-items: start; margin-top: 8px; }
.b2b-pdp__syn { max-width: 62ch; font-size: var(--wp--preset--font-size--base); line-height: 1.6; }
.b2b-pdp__syn p { margin: 0 0 10px; }
.b2b-fdl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 16px 0 0; font-size: var(--wp--preset--font-size--small); }
.b2b-fdl dt { color: var(--wp--preset--color--muted-ink); } .b2b-fdl dd { margin: 0; }
.b2b-seg { display: inline-flex; border: 1px solid var(--wp--preset--color--line-2); border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: var(--wp--preset--color--surface); }
.b2b-seg__btn { border: 0; border-right: 1px solid var(--b2b-line); background: transparent; padding: 6px 12px; font: 600 12px/1.2 var(--wp--preset--font-family--body); color: var(--wp--preset--color--ink); cursor: pointer; }
.b2b-seg__btn:last-child { border-right: 0; }
.b2b-seg__btn.is-on { background: var(--wp--preset--color--ink); color: #fff; }
.b2b-seg__btn:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: -2px; }
/* all editions' sheets share one grid cell: the block is as tall as the
   tallest one, so switching edition never pushes what follows */
.b2b-retros { display: grid; }
.b2b-retro { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: var(--wp--preset--font-size--small); align-content: start; }
.b2b-retro[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.b2b-retro__cell b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted-ink); font-weight: 700; margin-bottom: 1px; }
.b2b-retro__cell--full { grid-column: 1 / -1; }
.b2b-pdp__press { margin-top: 20px; }
.b2b-quote { margin: 0 0 10px; max-width: 62ch; }
.b2b-quote p { margin: 0; font-size: var(--wp--preset--font-size--base); line-height: 1.5; }
.b2b-quote cite { display: block; font-style: normal; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); margin-top: 2px; }
.b2b-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.b2b-tag { font-size: var(--wp--preset--font-size--x-small); padding: 3px 9px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-ink); }
/* lightbox: trailer, still, poster */
.b2b-lbx { position: fixed; inset: 0; z-index: 70; background: rgba(11, 11, 14, .88); display: flex; align-items: center; justify-content: center; padding: 48px; }
.b2b-lbx[hidden] { display: none; }
body.b2b-lbx-open { overflow: hidden; }
.b2b-lbx__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.b2b-lbx__close:hover { background: rgba(255, 255, 255, .22); }
.b2b-lbx__stage { max-width: min(1200px, 100%); max-height: 100%; display: flex; align-items: center; justify-content: center; }
.b2b-lbx__video { width: min(1200px, 90vw); aspect-ratio: 16 / 9; max-height: 85vh; background: #000; border-radius: 8px; overflow: hidden; }
.b2b-lbx__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.b2b-lbx__img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
/* fixed 16:9 frame: the size is known before the image arrives, no reflow */
.b2b-lbx__gal { position: relative; width: min(1200px, 90vw); max-width: 100%; aspect-ratio: 16 / 9; max-height: 85vh; background: #000; border-radius: 8px; overflow: hidden; }
.b2b-lbx__gal .b2b-lbx__img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; transition: opacity .18s ease-out; }
.b2b-lbx__gal .b2b-lbx__img.is-loading { opacity: .3; }
.b2b-lbx__gal::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: b2b-spin .8s linear infinite; opacity: 0; transition: opacity .18s; }
.b2b-lbx__gal:has(.is-loading)::before { opacity: 1; }
@keyframes b2b-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .b2b-lbx__gal::before { animation: none; } }
.b2b-lbx__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.b2b-lbx__nav:hover { background: rgba(255, 255, 255, .28); }
.b2b-lbx__nav--prev { left: 12px; } .b2b-lbx__nav--next { right: 12px; }
.b2b-lbx__count { position: absolute; right: 12px; bottom: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 12px var(--wp--preset--font-family--heading); font-variant-numeric: tabular-nums; }
.b2b-lbx__img--poster { max-height: 90vh; }
@media (max-width: 960px) {
  .b2b-pdp { grid-template-columns: 1fr; }
  .b2b-pdp__left { position: static; grid-template-columns: 140px 1fr; align-items: start; }
  .b2b-pdp__media { grid-template-columns: 1fr; align-self: end; }
  .b2b-pdp__two { grid-template-columns: 1fr; }
  .b2b-editions__table .b2b-col-sku, .b2b-editions__table .b2b-col-avail { display: none; }
  .b2b-lbx { padding: 16px; }
}

/* "Richiedi accesso" form (docs/panel-richiedi-accesso.md): same frame as
   the login, wider box, paired fields, visible labels, flat */
.b2b-login__box--wide { max-width: 44rem; }
/* no side panel (user, 14 Sep): one centred column on the light ground, the
   mark + "CG | tv" on top, like a registration page */
.b2b-login--single { grid-template-columns: 1fr; }
.b2b-login--single .b2b-login__main { align-items: start; padding-top: clamp(2rem, 6vh, 4rem); }
.b2b-brandtop { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 1.5rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.b2b-login .b2b-brandtop img { height: 36px; width: auto; max-width: none; display: block; }
.b2b-brandtop__word { display: inline-flex; align-items: center; gap: 9px; font-family: var(--wp--preset--font-family--body); font-size: 22px; line-height: 1; }
.b2b-brandtop__word b { font-weight: 700; }
.b2b-brandtop__word i { display: inline-block; width: 1px; height: 22px; background: var(--wp--preset--color--line-2); }
.b2b-brandtop__word > span { font-weight: 400; }
.b2b-req { max-width: 44rem; margin-inline: auto; }
.b2b-req__title { font-size: var(--wp--preset--font-size--medium); margin: 0 0 .25rem; font-weight: 700; }
.b2b-req__sub { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); margin: 0 0 1.25rem; max-width: 60ch; }
.b2b-req__errors { margin: 0 0 1rem; padding: 10px 14px; border: 1px solid var(--wp--preset--color--error); border-radius: var(--b2b-radius); background: color-mix(in srgb, var(--wp--preset--color--error) 6%, white); font-size: var(--wp--preset--font-size--small); }
.b2b-req__errors ul { margin: 4px 0 0; padding-left: 18px; }
.b2b-req__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.b2b-req__group { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.b2b-req__eyebrow { padding: 0; margin: 0 0 .6rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.b2b-req__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .8rem; }
.b2b-req__field { min-width: 0; }
.b2b-req__field--full { grid-column: 1 / -1; }
.b2b-req__field label { display: block; margin-bottom: .3rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: var(--wp--preset--color--ink); }
.b2b-req__field input, .b2b-req__field select { min-height: 44px; }
.b2b-req__field.is-error input, .b2b-req__field.is-error select { border-color: var(--wp--preset--color--error); }
.b2b-req__submit { margin-top: .4rem; }
.b2b-req__privacy { margin: .9rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); line-height: 1.5; }
.b2b-req__consent { display: flex; align-items: flex-start; gap: 10px; margin: 1rem 0 .9rem; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); line-height: 1.5; cursor: pointer; }
.b2b-req__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wp--preset--color--primary); }
.b2b-req__consent a { color: var(--wp--preset--color--accent); font-weight: 600; }
.b2b-req__consent.is-error { color: var(--wp--preset--color--error); }
.b2b-req__consent.is-error input { outline: 2px solid var(--wp--preset--color--error); outline-offset: 1px; border-radius: 3px; }
.b2b-req__login { margin: 1rem 0 0; text-align: center; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-req__login a { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }
.b2b-req--sent { text-align: center; padding: 1rem 0; }
.b2b-req__check { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--success) 12%, white); color: var(--wp--preset--color--success); font-size: 28px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.b2b-req--sent .b2b-req__sub { margin: 0 auto 1.25rem; }
@media (max-width: 640px) { .b2b-req__grid { grid-template-columns: 1fr; } }
/* billing read-only block on "I miei dati" (b2b-billing-lock.php) */
.b2b-billing-ro { margin: 0 0 24px; padding: 16px 18px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); }
.b2b-billing-ro .b2b-fdl { margin: 0; grid-template-columns: 140px 1fr; }
.b2b-billing-ro__note { margin: 12px 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }

/* Load more */
.b2b-more { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0 8px; }
.b2b-more__seen { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }

/* Drawer (right) */
.b2b-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,14,0); transition: background-color .16s ease-out; }
.b2b-drawer-backdrop.is-open { background: rgba(11,11,14,.35); }
.b2b-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 400px); z-index: 61; background: var(--wp--preset--color--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .16s ease-out; box-shadow: -1px 0 0 var(--b2b-line); }
.b2b-drawer.is-open { transform: none; }
.b2b-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--b2b-line); }
.b2b-drawer__head h2 { margin: 0; font-size: var(--wp--preset--font-size--medium); }
.b2b-drawer__close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--wp--preset--color--muted-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.b2b-drawer__close:hover { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink); }
.b2b-drawer__form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.b2b-fgroup { border-bottom: 1px solid var(--b2b-line); }
.b2b-fgroup__sum { display: flex; align-items: center; gap: 8px; padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--small); list-style: none; }
.b2b-fgroup__sum::-webkit-details-marker { display: none; }
.b2b-fgroup__sum::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--wp--preset--color--muted-2); border-bottom: 2px solid var(--wp--preset--color--muted-2); transform: rotate(45deg); transition: transform .12s ease-out; }
.b2b-fgroup[open] .b2b-fgroup__sum::after { transform: rotate(-135deg); }
.b2b-fgroup__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.b2b-fgroup__body { padding: 0 20px 14px; }
.b2b-fgroup__search { min-height: 36px; margin-bottom: 8px; font-size: var(--wp--preset--font-size--small); }
.b2b-fgroup__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.b2b-fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--wp--preset--font-size--small); cursor: pointer; }
.b2b-fopt input { margin: 0; }
.b2b-fopt__name { flex: 1 1 auto; }
.b2b-fopt__n { font-size: 11px; color: var(--wp--preset--color--muted-2); font-variant-numeric: tabular-nums; }
li.is-zero .b2b-fopt { opacity: .45; }
.b2b-fgroup__more { margin-top: 6px; border: 0; background: none; color: var(--wp--preset--color--accent); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; cursor: pointer; padding: 0; }
.b2b-drawer__foot { margin-top: auto; display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--b2b-line); background: var(--wp--preset--color--surface); }
.b2b-drawer__foot .b2b-btn { flex: 1 1 0; }
.b2b-drawer__form { overflow: hidden; }
.b2b-drawer__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
/* Body lock: <html> too (the page scroll belongs to html in most browsers,
   measured on the store); the JS pads the body by the scrollbar width so
   the layout does not jump when the bar disappears. */
html:has(body.b2b-drawer-open), body.b2b-drawer-open { overflow: hidden; }

/* Cart drawer (docs/panel-carrello.md): same shell as the filters drawer */
.b2b-cart { width: min(100%, 420px); }
.b2b-cart .b2b-drawer__head h2 { display: inline-flex; align-items: center; gap: 8px; }
.b2b-cart__n { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; font-family: var(--wp--preset--font-family--body); }
.b2b-cart__n[hidden] { display: none; }
.b2b-cart__body { flex: 1 1 auto; min-height: 0; overflow: auto; transition: opacity .12s ease-out; }
.b2b-cart__body.is-updating { opacity: .55; pointer-events: none; }
.b2b-cart__loading, .b2b-cart__empty { padding: 40px 20px; text-align: center; color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--small); }
.b2b-cart__empty b { display: block; color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--medium); margin-bottom: 4px; }
.b2b-cart__empty p { margin: 0 0 16px; }
.b2b-cart__items { display: flex; flex-direction: column; }
.b2b-ci { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 12px; align-items: start; padding: 10px 20px; border-bottom: 1px solid var(--b2b-line); }
.b2b-ci__thumb { display: block; width: 32px; line-height: 0; }
.b2b-ci__thumb img, .b2b-ci__thumb--empty { display: block; width: 32px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-ci__info { min-width: 0; }
.b2b-ci__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; font-size: var(--wp--preset--font-size--small); line-height: 1.25; color: var(--wp--preset--color--ink); text-decoration: none; }
.b2b-ci__name:hover { color: var(--wp--preset--color--accent); }
.b2b-ci__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.b2b-ci__meta { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.b2b-ci__meta .b2b-ean { font-size: 11px; white-space: nowrap; }
.b2b-ci__buy { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.b2b-ci__buy .b2b-qty__btn { width: 20px; } .b2b-ci__buy .b2b-qty > .b2b-qty__input { width: 36px; }
.b2b-ci__total { min-width: 64px; text-align: right; font-size: var(--wp--preset--font-size--small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-ci__unavail { font-size: 11px; color: var(--wp--preset--color--error); white-space: nowrap; }
.b2b-ci__rm { width: 28px; height: 28px; margin-top: -2px; border: 0; border-radius: 7px; background: transparent; color: var(--wp--preset--color--muted-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.b2b-ci__rm:hover { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--error); }
.b2b-ci:hover .b2b-qty__btn, .b2b-ci .b2b-qty:focus-within .b2b-qty__btn { opacity: 1; }
.b2b-cart__search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--b2b-line); color: var(--wp--preset--color--muted-2); }
.b2b-cart__search[hidden] { display: none; }
.b2b-cart__search input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--wp--preset--color--line-2); border-radius: 8px; font-size: var(--wp--preset--font-size--small); background: var(--wp--preset--color--field); color: var(--wp--preset--color--ink); }
.b2b-cart__search input:focus { outline: 0; border-color: var(--wp--preset--color--primary); box-shadow: var(--b2b-focus); }
.b2b-cart__nomatch { margin: 0; padding: 12px 20px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-cart__nomatch[hidden] { display: none; }
.b2b-cart__fmt { margin: 0 0 2px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); font-variant-numeric: tabular-nums; }
.b2b-cart__fmt[hidden] { display: none; }
.b2b-cart__foot { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid var(--b2b-line); background: var(--wp--preset--color--surface); }
.b2b-cart__foot[hidden] { display: none; }
.b2b-cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); padding: 2px 0; }
.b2b-cart__row b { color: var(--wp--preset--color--ink); font-variant-numeric: tabular-nums; }
.b2b-cart__row--total { font-size: var(--wp--preset--font-size--base); color: var(--wp--preset--color--ink); }
.b2b-cart__row--total b { font-size: var(--wp--preset--font-size--medium); }
.b2b-cart__note { margin: 4px 0 12px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); }
.b2b-cart__cta { display: grid; grid-template-columns: 1fr; gap: 8px; }
.b2b-cart__cta .b2b-btn { width: 100%; }
.b2b-cart__noship { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.45; }
.b2b-cart__noship b { display: block; margin-bottom: 2px; }
.b2b-cart__noship a { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }

@media (max-width: 1100px) {
  .b2b-col-sku, .b2b-col-date { display: none; }
}
@media (max-width: 960px) {
  .b2b-catalog__table thead th { top: auto; position: static; }
  .b2b-tb__count { order: 9; width: 100%; }
  .b2b-meta { display: none; }
  .b2b-col-avail { display: none; }
}

/* =====================================================================
   Checkout (docs/panel-checkout.md, 15 set 2026): the WooCommerce
   Checkout block dressed as the app. Two columns in the golden ratio,
   steps as cards, the sidebar is ONE card (numbers + totals + CTA).
   The block's contact step, billing form and item list are hidden;
   checkout.js moves the theme cards in. Scope: .b2b-checkout.
   ===================================================================== */
.b2b-checkout .wp-block-woocommerce-checkout { max-width: none; margin: 0; }
.b2b-checkout .wc-block-components-sidebar-layout { display: flex; gap: 24px; align-items: flex-start; margin: 0; }
.b2b-checkout .wc-block-components-sidebar-layout .wc-block-components-main { flex: 1.618 1 0; width: auto; padding: 0; min-width: 0; }
.b2b-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar { flex: 1 1 0; width: auto; padding: 0; min-width: 0; position: sticky; top: calc(var(--b2b-topbar-h, 56px) + 24px); }
.b2b-checkout .wc-block-components-notices { margin: 0; }

/* steps as cards */
.b2b-checkout .wc-block-components-checkout-step,
.b2b-checkout .wc-block-checkout__order-notes,
.b2b-checkout .b2b-co-card {
  margin: 0 0 16px; padding: 18px 20px; background: var(--wp--preset--color--surface);
  border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius);
}
.b2b-checkout .wc-block-components-checkout-step__heading-container { margin: 0 0 12px; }
.b2b-checkout .wc-block-components-checkout-step__title,
.b2b-checkout .b2b-co-card__h {
  margin: 0; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink);
  display: flex; align-items: center; gap: 10px;
}
.b2b-checkout .wc-block-components-checkout-step__description { margin: -6px 0 12px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-checkout .wc-block-components-checkout-step__content > .wc-block-components-notices { margin-bottom: 10px; }

/* hidden pieces of the block */
.b2b-checkout #contact-fields,
.b2b-checkout #billing-fields,
.b2b-checkout .wc-block-checkout__use-address-for-billing,
.b2b-checkout .wc-block-checkout__actions_row,
.b2b-checkout .wc-block-components-checkout-order-summary__title,
.b2b-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block,
.b2b-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.b2b-checkout .wc-block-components-express-payment,
.b2b-checkout .wc-block-components-express-payment-continue-rule { display: none !important; }

/* the courier step hangs under the delivery card */
.b2b-checkout #shipping-fields:has(~ #shipping-option) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.b2b-checkout #shipping-fields ~ #shipping-option { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 0; }
.b2b-checkout #shipping-fields ~ #shipping-option .wc-block-components-checkout-step__heading-container { display: none; }
.b2b-checkout .wc-block-components-shipping-rates-control__package { margin: 0; }
.b2b-checkout .wc-block-components-radio-control__option,
.b2b-checkout .wc-block-components-radio-control-accordion-option {
  margin: 8px 0 0; padding: 10px 12px 10px 40px; border: 1px solid var(--b2b-line); border-radius: 8px; background: var(--wp--preset--color--surface);
  font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink);
}
.b2b-checkout .wc-block-components-radio-control-accordion-option { padding: 0; }
.b2b-checkout .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option { margin: 0; border: 0; border-radius: 0; padding: 10px 12px 10px 40px; }
.b2b-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control-accordion-content { padding: 0 12px 12px 40px; }
.b2b-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--wp--preset--color--ink); }
.b2b-checkout .wc-block-components-radio-control__option:first-child,
.b2b-checkout .wc-block-components-radio-control-accordion-option:first-child { margin-top: 0; }
.b2b-checkout .wc-block-components-radio-control__option-checked,
.b2b-checkout .wc-block-components-radio-control-accordion-option.wc-block-components-radio-control__option-checked { border-color: var(--wp--preset--color--ink); }
.b2b-checkout .wc-block-components-radio-control__option::after,
.b2b-checkout .wc-block-components-radio-control--highlight-checked::after,
.b2b-checkout .wc-block-components-radio-control-accordion-option::after,
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control::after { display: none !important; content: none !important; }
.b2b-checkout .wc-block-components-radio-control-accordion-option,
.b2b-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option,
.b2b-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
.b2b-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: none !important; outline: 0; }
.b2b-checkout .wc-block-components-radio-control-accordion-option { overflow: hidden; }
.b2b-checkout .wc-block-components-radio-control__input { width: 16px; height: 16px; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; border-color: var(--wp--preset--color--line-2); }
/* payment options: the radio sits IN the row (flex), not absolute — centred on the
   title when there is no description, on the first line when there is one */
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option { display: flex; align-items: flex-start; gap: 12px; padding-left: 12px; }
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option:not(:has(.wc-block-components-radio-control__description)) { align-items: center; }
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__input { position: static; top: auto; left: auto; transform: none; flex: none; margin: 2px 0 0; }
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option:not(:has(.wc-block-components-radio-control__description)) .wc-block-components-radio-control__input { margin-top: 0; }
.b2b-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout { flex: 1 1 auto; min-width: 0; }
.b2b-checkout .wc-block-components-radio-control__input:checked { border: 5px solid var(--wp--preset--color--accent); }
.b2b-checkout .wc-block-components-radio-control__input:checked::before { display: none; }
.b2b-checkout .wc-block-components-radio-control__label-group,
.b2b-checkout .wc-block-components-radio-control__label { font-weight: 600; }
.b2b-checkout .wc-block-components-radio-control__description-group,
.b2b-checkout .wc-block-components-radio-control__description { color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--x-small); }
.b2b-checkout .wc-block-components-radio-control__secondary-label { font-weight: 500; font-variant-numeric: tabular-nums; }
.b2b-checkout .wc-block-components-radio-control-accordion-content { padding: 8px 0 0 28px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-checkout .wc-block-components-payment-method-label { font-weight: 600; }
.b2b-checkout .wc-block-components-payment-method-icons { margin-left: auto; }
/* one shipping rate: a plain line, not a choice */
.b2b-checkout .wc-block-components-shipping-rates-control__package:has(.wc-block-components-radio-control__option:only-child) .wc-block-components-radio-control__option { background: var(--wp--preset--color--surface-2); border-color: transparent; padding-left: 12px; }
.b2b-checkout .wc-block-components-shipping-rates-control__package:has(.wc-block-components-radio-control__option:only-child) .wc-block-components-radio-control__input { display: none; }

/* fields: labels on top, app inputs */
.b2b-checkout .wc-block-components-address-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.b2b-checkout .wc-block-components-address-form > * { grid-column: span 12; margin: 0; }
.b2b-checkout .wc-block-components-address-form__first_name,
.b2b-checkout .wc-block-components-address-form__last_name,
.b2b-checkout .wc-block-components-address-form__phone,
.b2b-checkout .wc-block-components-address-form__city { grid-column: span 6; }
.b2b-checkout .wc-block-components-address-form__postcode,
.b2b-checkout .wc-block-components-address-form__state { grid-column: span 3; }
.b2b-checkout .wc-block-components-address-form__address_2-toggle { grid-column: span 12; }
.b2b-checkout .wc-block-components-text-input,
.b2b-checkout .wc-block-components-country-input,
.b2b-checkout .wc-block-components-state-input,
.b2b-checkout .wc-block-components-combobox,
.b2b-checkout .wc-blocks-components-select,
.b2b-checkout .wc-blocks-components-select__container,
.b2b-checkout .wc-block-components-textarea { margin: 0; position: relative; display: flex; flex-direction: column; }
.b2b-checkout .wc-block-components-address-form__country { display: none; } /* Italy only */
/* floating-label markup (input first, label after): the label goes on top */
.b2b-checkout .wc-block-components-text-input > label,
.b2b-checkout .wc-block-components-textarea > label { order: -1; }
.b2b-checkout .wc-block-components-text-input > input,
.b2b-checkout .wc-block-components-textarea > textarea { order: 0; }
.b2b-content.b2b-checkout .wc-block-components-text-input > label,
.b2b-content.b2b-checkout .wc-block-components-combobox .components-base-control__label,
.b2b-content.b2b-checkout .wc-block-components-combobox label,
.b2b-content.b2b-checkout .wc-blocks-components-select__label,
.b2b-content.b2b-checkout .wc-block-components-textarea label,
.b2b-checkout .wc-block-components-checkout-order-note label:not(.wc-block-components-checkbox__label) {
  position: static; transform: none; display: block; margin: 0 0 4px; padding: 0; pointer-events: auto;
  font-size: var(--wp--preset--font-size--x-small); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink);
}
.b2b-content.b2b-checkout .wc-block-components-text-input input,
.b2b-content.b2b-checkout .wc-block-components-combobox .components-combobox-control__input,
.b2b-content.b2b-checkout .wc-block-components-combobox input,
.b2b-content.b2b-checkout .wc-blocks-components-select__select,
.b2b-content.b2b-checkout .wc-block-components-textarea textarea {
  width: 100%; min-height: 44px; height: 44px; margin: 0; padding: 0 13px; box-sizing: border-box; opacity: 1;
  border: 1px solid var(--wp--preset--color--line-2); border-radius: var(--b2b-radius); background: var(--wp--preset--color--field);
  font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--small); line-height: 1.3; color: var(--wp--preset--color--ink);
}
.b2b-content.b2b-checkout .wc-block-components-textarea textarea { padding: 10px 13px; min-height: 88px; height: auto; }
/* the block's floating-label rules (.is-active / :focus-within) push the text down
   with a padding-top meant for the label INSIDE the field: here the label is above */
.b2b-content.b2b-checkout .wc-block-components-text-input.is-active input,
.b2b-content.b2b-checkout .wc-block-components-text-input:focus-within input,
.b2b-content.b2b-checkout .wc-block-components-text-input input:focus,
.b2b-content.b2b-checkout .wc-block-components-text-input input:not(:placeholder-shown) { padding: 0 13px !important; line-height: 42px; }
.b2b-content.b2b-checkout .wc-blocks-components-select__select { padding-top: 0 !important; padding-bottom: 0 !important; }
.b2b-content.b2b-checkout .wc-block-components-textarea.is-active textarea,
.b2b-content.b2b-checkout .wc-block-components-textarea:focus-within textarea { padding: 10px 13px !important; }
.b2b-content.b2b-checkout .wc-blocks-components-select__select { appearance: none; padding-right: 36px; }
.b2b-content.b2b-checkout .wc-blocks-components-select__expand { position: absolute; right: 12px; top: auto; bottom: 12px; width: 20px; height: 20px; pointer-events: none; }
.b2b-content.b2b-checkout .wc-block-components-text-input input:focus,
.b2b-content.b2b-checkout .wc-block-components-combobox input:focus,
.b2b-content.b2b-checkout .wc-blocks-components-select__select:focus,
.b2b-content.b2b-checkout .wc-block-components-textarea textarea:focus { outline: 0; border-color: var(--wp--preset--color--primary); box-shadow: var(--b2b-focus); }
.b2b-content.b2b-checkout .wc-block-components-text-input.has-error input,
.b2b-content.b2b-checkout .wc-block-components-combobox.has-error input,
.b2b-content.b2b-checkout .has-error .wc-blocks-components-select__select { border-color: var(--wp--preset--color--error); }
.b2b-checkout .wc-block-components-validation-error { margin: 4px 0 0; }
.b2b-checkout .wc-block-components-validation-error p { margin: 0; padding: 0; font-size: 11px; color: var(--wp--preset--color--error); }
.b2b-checkout .wc-block-components-combobox .components-base-control__field { margin: 0; }
.b2b-checkout .wc-block-components-address-form__address_2-toggle .wc-block-components-button { padding: 0; height: auto; min-height: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--accent); background: transparent; border: 0; }
.b2b-checkout .wc-block-components-checkbox { margin: 0; }
/* same checkbox as the "Richiedi accesso" consent (23 Sep 2026): the browser's own box with the
   brand accent-color (red fill, white tick), instead of WC's custom box + SVG mark */
.b2b-content.b2b-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  appearance: auto; -webkit-appearance: auto; width: 18px !important; height: 18px !important; min-width: 18px; margin: 1px 0 0;
  border: 0; border-radius: 5px; background: transparent; box-shadow: none; accent-color: var(--wp--preset--color--primary); cursor: pointer;
}
.b2b-content.b2b-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: transparent; }
.b2b-content.b2b-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.b2b-content.b2b-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { display: none !important; }
.b2b-content.b2b-checkout .wc-block-components-checkbox label { display: flex; align-items: flex-start; gap: 0; }
.b2b-checkout .wc-block-components-checkbox__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; padding-left: 8px; }

/* reference + notes = one card; terms plain */
.b2b-checkout .wc-block-checkout__order-notes .wc-block-components-checkout-step__content { margin: 0; }
.b2b-checkout .wc-block-checkout__add-note { margin: 0; }
.b2b-checkout .wc-block-checkout__add-note .wc-block-components-textarea { margin-top: 10px; }
.b2b-checkout .wc-block-checkout__terms { margin: 0 0 16px; padding: 0 4px; border: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.b2b-checkout .wc-block-checkout__terms--with-separator::before { display: none; }
.b2b-checkout .wc-block-checkout__terms a { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }
/* approval of the clauses, artt. 1341-1342 c.c. (9 Oct 2026, the only additional field): a plain line right under the terms, same look */
.b2b-checkout .wc-block-checkout__terms:has(+ #order-fields) { margin-bottom: 10px; }
.b2b-checkout #order-fields { margin: 0 0 16px; padding: 0 4px; background: none; border: 0; border-radius: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.b2b-checkout #order-fields .wc-block-components-checkout-step__heading-container { display: none; }
.b2b-checkout #order-fields .wc-block-components-checkout-step__content,
.b2b-checkout #order-fields .wc-block-components-address-form,
.b2b-checkout #order-fields .wc-block-components-checkbox { margin: 0; padding: 0; }
.b2b-content.b2b-checkout #order-fields .wc-block-components-checkbox label { flex-wrap: wrap; color: var(--wp--preset--color--ink); }
.b2b-content.b2b-checkout #order-fields .wc-block-components-checkbox__label { flex: 1 1 0; min-width: 0; color: var(--wp--preset--color--ink); }
.b2b-checkout #order-fields .wc-block-components-validation-error { flex: 0 0 100%; }
.b2b-checkout #order-fields a { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }
.b2b-checkout .wc-block-checkout__actions { margin: 0; padding: 0; }
.b2b-checkout .wc-block-checkout__actions .wc-block-components-notices { margin-bottom: 12px; }

/* the locked card */
.b2b-checkout .b2b-co-card--lock { background: var(--wp--preset--color--base); }
.b2b-co-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--wp--preset--font-family--body); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.b2b-co-dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; margin: 0; font-size: var(--wp--preset--font-size--small); }
.b2b-co-dl dt { color: var(--wp--preset--color--muted-ink); } .b2b-co-dl dd { margin: 0; font-weight: 500; color: var(--wp--preset--color--ink); overflow-wrap: anywhere; }
.b2b-co-hint { margin: 10px 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); }
.b2b-co-hint a, .b2b-co-link { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }
.b2b-co-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.b2b-co-link:hover, .b2b-co-hint a:hover { text-decoration: underline; }
.b2b-co-hint--center { text-align: center; }
.b2b-co-error { color: var(--wp--preset--color--error); font-weight: 600; }

/* the sidebar is ONE card: numbers, then the block's totals, then the CTA */
.b2b-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar { padding: 18px 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); }
.b2b-checkout .wc-block-checkout__sidebar .b2b-co-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.b2b-co-order__toggle { display: none; }
.b2b-co-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 10px; }
.b2b-co-kpi > div { padding: 8px 10px; border-radius: 8px; background: var(--wp--preset--color--surface-2); }
.b2b-co-kpi b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--wp--preset--color--ink); font-variant-numeric: tabular-nums; }
.b2b-co-kpi span { font-size: 11px; color: var(--wp--preset--color--muted-ink); }
.b2b-co-fmt { display: flex; flex-direction: column; gap: 3px; font-size: var(--wp--preset--font-size--x-small); font-variant-numeric: tabular-nums; }
.b2b-co-fmt > div { display: flex; justify-content: space-between; color: var(--wp--preset--color--muted-ink); }
.b2b-co-fmt b { font-weight: 500; color: var(--wp--preset--color--ink); }
.b2b-co-peek { position: relative; margin-top: 10px; display: flex; flex-direction: column; }
.b2b-co-peek.has-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(rgba(255,255,255,0), var(--wp--preset--color--surface)); pointer-events: none; }
.b2b-co-it { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--b2b-line); }
.b2b-co-it img, .b2b-co-it__ph { display: block; width: 26px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-co-it__name { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; line-height: 1.25; color: var(--wp--preset--color--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.b2b-co-it__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 10.5px; color: var(--wp--preset--color--muted-ink); }
.b2b-co-it__meta .b2b-fmt { min-width: 0; padding: 1px 5px; font-size: 9px; }
.b2b-co-it__meta .b2b-ean { font-size: 10px; }
.b2b-co-it__rt { text-align: right; font-size: var(--wp--preset--font-size--x-small); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--wp--preset--color--ink); }
.b2b-co-it__rt small { display: block; color: var(--wp--preset--color--muted-ink); }
.b2b-co-all { margin: 6px 0 0; text-align: center; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-2); }
/* the block's totals */
.b2b-checkout .wp-block-woocommerce-checkout-order-summary-block { margin-top: 12px; border: 0; border-top: 1px solid var(--b2b-line); border-radius: 0; padding: 8px 0 0; }
.b2b-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
.b2b-checkout .wc-block-components-totals-wrapper,
.b2b-checkout .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) { border: 0; margin: 0; }
.b2b-checkout .wc-block-components-checkout-order-summary__content { display: block !important; }
.b2b-checkout .wc-block-components-totals-wrapper { padding: 0; border: 0; }
.b2b-checkout .wc-block-components-totals-item { padding: 3px 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-checkout .wc-block-components-totals-item__value { font-weight: 500; color: var(--wp--preset--color--ink); font-variant-numeric: tabular-nums; }
.b2b-checkout .wc-block-components-totals-item__description { font-size: 11px; color: var(--wp--preset--color--muted-2); }
.b2b-checkout .wc-block-components-totals-footer-item { margin-top: 6px; padding: 10px 0 0 !important; border-top: 1px solid var(--b2b-line); font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--ink); }
.b2b-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 600; font-size: var(--wp--preset--font-size--base); }
.b2b-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; font-size: var(--wp--preset--font-size--medium); }
.b2b-checkout .wc-block-components-totals-footer-item-tax-label { display: none; }
.b2b-checkout .wc-block-components-shipping-rates-control__package-title,
.b2b-checkout .wc-block-components-totals-shipping__change-address-button { display: none !important; }
.b2b-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__description { display: none; }
.b2b-checkout .wc-block-components-totals-taxes .wc-block-components-totals-item__label { text-transform: none; }
/* proxy CTA */
.b2b-co-cta { margin-top: 12px; }
.b2b-co-bar { display: none; }

/* one column: under 1100px of viewport (the shell takes 240px) */
@media (max-width: 1100px) {
  .b2b-checkout .wc-block-components-sidebar-layout { flex-direction: column; }
  .b2b-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .b2b-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 100%; flex: none; position: static; }
  .b2b-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar { order: -1; margin-bottom: 16px; padding: 0; overflow: hidden; }
  .b2b-checkout .wc-block-checkout__sidebar .b2b-co-card__h { display: none; }
  .b2b-co-order__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--wp--preset--color--ink);
  }
  .b2b-co-order__brief { min-width: 0; flex: 1; }
  .b2b-co-order__brief b, .b2b-co-order__tot b { display: block; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; line-height: 1.2; }
  .b2b-co-order__brief small, .b2b-co-order__tot small { display: block; font-size: 11px; color: var(--wp--preset--color--muted-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .b2b-co-order__tot { text-align: right; font-variant-numeric: tabular-nums; }
  .b2b-co-order__caret { color: var(--wp--preset--color--muted-2); transition: transform .12s ease-out; }
  .b2b-co-order.is-open .b2b-co-order__caret { transform: rotate(180deg); }
  .b2b-co-order__body { display: none; padding: 0 16px 12px; }
  .b2b-co-order.is-open .b2b-co-order__body { display: block; }
  .b2b-checkout .wp-block-woocommerce-checkout-order-summary-block { display: none; margin: 0 16px 12px; }
  body.b2b-co-sum-open .b2b-checkout .wp-block-woocommerce-checkout-order-summary-block { display: block; }
  .b2b-checkout .wc-block-checkout__sidebar .b2b-co-cta { display: none; }
  /* the fixed bar */
  .b2b-co-bar:not([hidden]) {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--wp--preset--color--surface); border-top: 1px solid var(--b2b-line);
  }
  .b2b-co-bar__tot { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
  .b2b-co-bar__tot small { display: block; font-size: 11px; color: var(--wp--preset--color--muted-ink); }
  .b2b-co-bar__tot b { display: block; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.15; }
  body.b2b-co-ready .b2b-checkout { padding-bottom: 96px; }
  .b2b-checkout .wc-block-components-address-form__postcode { grid-column: span 4; }
  .b2b-checkout .wc-block-components-address-form__city { grid-column: span 5; }
  .b2b-checkout .wc-block-components-address-form__state { grid-column: span 3; }
}
@media (max-width: 560px) {
  .b2b-checkout .wc-block-components-address-form__first_name,
  .b2b-checkout .wc-block-components-address-form__last_name,
  .b2b-checkout .wc-block-components-address-form__phone { grid-column: span 12; }
  .b2b-co-dl { grid-template-columns: 1fr; gap: 0; }
  .b2b-co-dl dt { margin-top: 6px; }
}

/* =====================================================================
   Search popup (docs/panel-ricerca.md, v2 "a gruppi con Aggiungi"):
   anchored under the topbar bar, results from Meilisearch rendered by
   assets/js/search.js. The highlighted film shows its editions (same
   badge, stepper and button as the catalog rows). Scope: .b2b-search__pop
   ===================================================================== */
.b2b-topbar__search.is-open input[type="search"] { border-color: var(--wp--preset--color--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.b2b-search__pop {
  position: absolute; left: 0; right: 0; top: calc(100% - 1px); z-index: 70;
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--accent); border-top-color: var(--b2b-line);
  border-radius: 0 0 12px 12px; box-shadow: 0 16px 40px rgba(11,11,14,.16); overflow: hidden; text-align: left;
}
.b2b-search__pop[hidden] { display: none; }
.b2b-topbar__search.is-searching .b2b-topbar__search-icon { animation: b2b-pulse .8s ease-in-out infinite; }
@keyframes b2b-pulse { 50% { opacity: .35; } }
.b2b-sp__lbl { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.b2b-sp__relaxed { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--warning); }
.b2b-sp__clear { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--accent); cursor: pointer; }
.b2b-sp__list { max-height: min(60vh, 520px); overflow: auto; padding-bottom: 6px; }
.b2b-sp__film { border-left: 3px solid transparent; }
.b2b-sp__film.is-active { background: var(--wp--preset--color--surface-2); border-left-color: var(--wp--preset--color--accent); }
.b2b-sp__row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 11px; color: inherit; text-decoration: none; }
.b2b-sp__row:hover { background: var(--wp--preset--color--surface-2); }
.b2b-sp__poster { display: block; width: 28px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-3); flex: none; }
.b2b-sp__info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.b2b-sp__title { font-weight: 600; font-size: var(--wp--preset--font-size--small); line-height: 1.25; color: var(--wp--preset--color--ink); }
.b2b-sp__meta { font-size: 11px; color: var(--wp--preset--color--muted-ink); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-sp__pop mark, .b2b-search__pop mark { background: #fff3c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.b2b-sp__right { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; }
.b2b-sp__right .b2b-fmt { min-width: 0; padding: 1px 6px; font-size: 10px; }
.b2b-sp__price { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wp--preset--color--ink); margin-left: 6px; white-space: nowrap; }
.b2b-sp__hint { font-size: 11px; color: var(--wp--preset--color--muted-2); }
.b2b-sp__eds { padding: 0 14px 8px 51px; display: flex; flex-direction: column; gap: 4px; }
.b2b-sp__ed { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--b2b-line); border-radius: 8px; background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--x-small); }
.b2b-sp__ed .b2b-fmt { min-width: 0; padding: 1px 6px; font-size: 10px; }
.b2b-sp__ed .b2b-ean { font-size: 11px; }
.b2b-sp__ed-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
.b2b-sp__ed .b2b-ean { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2b-sp__ed .b2b-qty { height: 28px; } .b2b-sp__ed .b2b-qty__btn { opacity: 1; width: 22px; } .b2b-sp__ed .b2b-qty > .b2b-qty__input { width: 40px; }
.b2b-sp__unavail { font-size: 11px; color: var(--wp--preset--color--error); }
.b2b-sp__soon { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--wp--preset--color--warning); }
.b2b-sp__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--b2b-line); background: var(--wp--preset--color--surface-2); font-size: 11px; color: var(--wp--preset--color--muted-2); }
.b2b-sp__all { color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; font-size: var(--wp--preset--font-size--x-small); }
.b2b-sp__all:hover { text-decoration: underline; }
.b2b-sp__keys { white-space: nowrap; }
.b2b-sp__empty { padding: 18px 14px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-sp__empty b { display: block; color: var(--wp--preset--color--ink); margin-bottom: 4px; }
.b2b-sp__empty p { margin: 0; }
.b2b-sp__empty--down { color: var(--wp--preset--color--warning); }
.b2b-sp__recent { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 14px; font: inherit; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); cursor: pointer; }
.b2b-sp__recent:hover { background: var(--wp--preset--color--surface-2); }
@media (max-width: 760px) {
  .b2b-search__pop { position: fixed; left: 0; right: 0; top: var(--b2b-topbar-h, 56px); bottom: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; display: flex; flex-direction: column; }
  .b2b-search__pop[hidden] { display: none; }
  .b2b-sp__list { max-height: none; flex: 1 1 auto; }
  .b2b-sp__eds { padding-left: 14px; }
  .b2b-sp__ed { flex-wrap: wrap; row-gap: 8px; }
  .b2b-sp__ed .b2b-ean { flex: 1 1 auto; overflow: visible; text-overflow: clip; }
  .b2b-sp__ed-r { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
  .b2b-sp__ed-r .b2b-price-was, .b2b-sp__price-was { margin-left: 0; }
  .b2b-sp__keys { display: none; }
  .b2b-sp__meta { white-space: normal; }
}

/* =====================================================================
   "Ordine ricevuto" (inc/order-received.php): one status card, minimal.
   ===================================================================== */
.b2b-recv { max-width: 640px; margin: 0 auto; }
.b2b-recv__card { position: relative; padding: 28px 28px 24px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); }
.b2b-recv__check { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--success) 12%, white); color: var(--wp--preset--color--success); }
.b2b-recv__eyebrow { margin: 0 0 4px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-recv__eyebrow b { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--ink); }
.b2b-recv__h { margin: 0 0 8px; font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.b2b-recv__line { margin: 0 0 14px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); font-variant-numeric: tabular-nums; }
.b2b-recv__line b { color: var(--wp--preset--color--ink); }
.b2b-recv__p { margin: 0 0 6px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-recv__p b { color: var(--wp--preset--color--ink); font-weight: 600; }
.b2b-recv__ship { margin-bottom: 0; }
.b2b-recv__pay { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--b2b-radius); background: var(--wp--preset--color--surface-2); }
.b2b-recv__pay--ok { background: color-mix(in srgb, var(--wp--preset--color--success) 8%, white); }
.b2b-recv__pay-h { margin: 0 0 8px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; }
.b2b-recv__dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0; font-size: var(--wp--preset--font-size--small); }
.b2b-recv__dl dt { color: var(--wp--preset--color--muted-ink); } .b2b-recv__dl dd { margin: 0; color: var(--wp--preset--color--ink); }
.b2b-recv__mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .02em; }
.b2b-recv__next { margin: 10px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.b2b-recv__pay--ok .b2b-recv__next { margin-top: 0; }
.b2b-recv__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
@media (max-width: 560px) { .b2b-recv__card { padding: 22px 18px; } .b2b-recv__dl { grid-template-columns: 1fr; gap: 0; } .b2b-recv__dl dt { margin-top: 6px; } .b2b-recv__actions .b2b-btn { flex: 1 1 100%; } }

/* =====================================================================
   Account: order detail "Scheda" (inc/account.php). The WooCommerce
   navigation is unhooked; the content wrapper spans the page.
   ===================================================================== */
.b2b-account .woocommerce-MyAccount-content { width: 100%; float: none; }
.b2b-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }
.b2b-ord { max-width: none; } /* full width like the catalog (user, 23 Sep 2026; was 1040px) */
.b2b-ord__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.b2b-ord__num { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.b2b-ord__num .b2b-badge { font-size: 11px; }
.b2b-badge--muted { background: var(--wp--preset--color--surface-3); color: var(--wp--preset--color--muted-ink); }
.b2b-ord__sub { margin: 4px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); font-variant-numeric: tabular-nums; }
.b2b-ord__sub b { color: var(--wp--preset--color--ink); }
.b2b-ord__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.b2b-ord__hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.b2b-ord__hl--4 { grid-template-columns: repeat(4, 1fr); }
.b2b-ord__hl > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); min-width: 0; }
.b2b-ord__k { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
.b2b-ord__v { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--ink); overflow-wrap: anywhere; }
.b2b-ord__s { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); overflow-wrap: anywhere; }
.b2b-ord__bank { margin-top: 12px; padding: 14px 16px; border-radius: var(--b2b-radius); background: color-mix(in srgb, var(--wp--preset--color--warning) 10%, white); }
.b2b-ord__bank-h { margin: 0 0 8px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; }
.b2b-ord__bank .b2b-recv__dl { grid-template-columns: 120px 1fr; }
.b2b-ord__bank-next { margin: 10px 0 0; font-size: var(--wp--preset--font-size--small); }
.b2b-ord__tblwrap { margin-top: 16px; overflow-x: auto; }
.b2b-ord__tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.b2b-ord__tbl th { padding: 8px 12px; background: var(--wp--preset--color--surface-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); text-align: left; white-space: nowrap; }
.b2b-ord__tbl td { padding: 8px 12px; border-top: 1px solid var(--b2b-line); vertical-align: middle; }
.b2b-ord__tbl .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-ord__tbl .b2b-col-thumb { width: 28px; padding-right: 0; }
.b2b-ord__tbl .b2b-col-thumb img, .b2b-ord__ph { display: block; width: 28px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-ord__title a { font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; }
.b2b-ord__title a:hover { color: var(--wp--preset--color--accent); }
.b2b-ord__totals { display: flex; justify-content: flex-end; margin-top: 12px; }
.b2b-ord__tot { width: min(100%, 300px); padding: 12px 16px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); font-size: var(--wp--preset--font-size--small); font-variant-numeric: tabular-nums; }
.b2b-ord__tot > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--wp--preset--color--muted-ink); }
.b2b-ord__tot > div b { color: var(--wp--preset--color--ink); font-weight: 500; }
.b2b-ord__tt { margin-top: 6px; padding-top: 8px !important; border-top: 1px solid var(--b2b-line); color: var(--wp--preset--color--ink) !important; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); }
.b2b-ord__tt b { font-weight: 700 !important; }
.b2b-ord__upd { margin-top: 16px; padding: 14px 16px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); font-size: var(--wp--preset--font-size--small); }
.b2b-ord__h3 { margin: 0 0 8px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; }
.b2b-ord__upd > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--b2b-line); }
.b2b-ord__upd > div:first-of-type { border-top: 0; }
.b2b-ord__upd-d { color: var(--wp--preset--color--muted-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-ord__upd p { margin: 0; }
@media (max-width: 900px) { .b2b-ord__hl, .b2b-ord__hl--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .b2b-ord__hl, .b2b-ord__hl--4 { grid-template-columns: 1fr; } .b2b-ord__actions { width: 100%; } .b2b-ord__actions .b2b-btn { flex: 1 1 auto; } .b2b-ord__tot { width: 100%; } .b2b-ord__upd > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- "I miei ordini" (inc/account.php) ---- */
.b2b-orders { max-width: none; } /* full width like the catalog (user, 23 Sep 2026; was 1040px) */
.b2b-orders__due { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 16px; border-radius: var(--b2b-radius); background: color-mix(in srgb, var(--wp--preset--color--warning) 12%, white); color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--small); }
.b2b-orders__due .b2b-icon { color: var(--wp--preset--color--warning); flex: none; }
.b2b-orders__due > span { flex: 1 1 auto; min-width: 0; }
.b2b-orders__due b { font-family: var(--wp--preset--font-family--display); }
.b2b-orders__tb { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.b2b-orders__chips, .b2b-orders__years { display: flex; gap: 8px; flex-wrap: wrap; }
.b2b-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line-2); background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap; }
.b2b-chip small { font-weight: 500; color: var(--wp--preset--color--muted-2); font-size: 11px; }
.b2b-chip:hover { border-color: var(--wp--preset--color--ink); }
.b2b-chip.is-on { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); }
.b2b-chip.is-on small { color: rgba(255,255,255,.7); }
.b2b-orders__tblwrap { overflow-x: auto; }
.b2b-orders__tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.b2b-orders__tbl th { padding: 10px 18px; background: var(--wp--preset--color--surface-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); text-align: left; white-space: nowrap; }
.b2b-orders__tbl td { padding: 14px 18px; border-top: 1px solid var(--b2b-line); vertical-align: middle; }
.b2b-orders__row { cursor: pointer; }
.b2b-orders__row:hover td { background: var(--wp--preset--color--surface-2); }
.b2b-orders__tbl .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-orders__num { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 700; color: var(--wp--preset--color--ink); text-decoration: none; }
.b2b-orders__date { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-orders__stack { display: inline-flex; align-items: center; }
.b2b-orders__stack img { width: 24px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; border: 2px solid var(--wp--preset--color--surface); box-shadow: 0 0 0 1px var(--b2b-line); margin-left: -8px; background: var(--wp--preset--color--surface-2); }
.b2b-orders__stack img:first-child { margin-left: 0; }
.b2b-orders__stack b { margin-left: 14px; font-weight: 600; }
.b2b-orders__stack small { margin-left: 6px; color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--x-small); }
.b2b-orders__acts .b2b-btn + .b2b-btn { margin-left: 6px; }
.b2b-orders__more { margin: 14px 0 0; text-align: center; }
.b2b-orders__none { margin: 24px 0; color: var(--wp--preset--color--muted-ink); }
.b2b-orders__empty { max-width: 420px; margin: 56px auto; text-align: center; color: var(--wp--preset--color--muted-ink); }
.b2b-orders__empty .b2b-icon { width: 48px; height: 48px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-2); margin-bottom: 12px; }
.b2b-orders__empty h2 { margin: 0 0 4px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--ink); }
.b2b-orders__empty p { margin: 0 0 14px; }
/* old B2B orders in the same list (docs/panel-storico-ordini.md, "A rivista", 8 Oct 2026) */
.b2b-orders__oldtag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--wp--preset--color--line-2); border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--muted-2); vertical-align: 2px; white-space: nowrap; }
.b2b-orders__row.is-old td { background: color-mix(in srgb, var(--wp--preset--color--surface-2) 45%, var(--wp--preset--color--surface)); }
.b2b-orders__row.is-old:hover td { background: var(--wp--preset--color--surface-2); }
.b2b-orders__old { margin: 0 0 20px; padding: 10px 14px; border-radius: var(--b2b-radius); background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--small); }
.b2b-orders__old b { color: var(--wp--preset--color--ink); }
.b2b-orders__old a { color: var(--wp--preset--color--ink); }
.b2b-ord .b2b-orders__old { margin: 0; }
@media (max-width: 760px) {
  .b2b-orders__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .b2b-orders__tbl, .b2b-orders__tbl tbody, .b2b-orders__tbl tr, .b2b-orders__tbl td { display: block; }
  .b2b-orders__tbl thead { display: none; }
  .b2b-orders__tbl { background: transparent; border: 0; }
  .b2b-orders__row { position: relative; margin-bottom: 8px; padding: 10px 12px 10px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); }
  .b2b-orders__tbl td { padding: 0; border: 0; }
  .b2b-orders__row td:nth-child(1) { display: flex; align-items: baseline; gap: 8px; }
  .b2b-orders__row td:nth-child(2) { position: absolute; top: 10px; right: 12px; }
  /* under the badge it ran over the total (8 Oct 2026): the total already says "−X rimborsati" in red */
  .b2b-orders__row td:nth-child(2) .b2b-orders__note { display: none; }
  /* cards: the tint per cell made stripes inside the card (8 Oct 2026); the "Vecchio sito" tag is enough */
  .b2b-orders__row.is-old td, .b2b-orders__row.is-old:hover td { background: transparent; }
  .b2b-orders__row td:nth-child(3) { margin-top: 6px; }
  .b2b-orders__row td:nth-child(4) { position: absolute; right: 12px; bottom: 10px; }
  .b2b-orders__tbl td.b2b-orders__acts { display: none; }
  .b2b-orders__due { align-items: flex-start; }
}

/* =====================================================================
   Promozioni (inc/promo.php + plugin/b2b-promozioni.php): the store's
   promo cards (10:3 image, "Fino al…" chip) in the app's tokens; the
   promo page = banner strip + the catalog table of its editions.
   ===================================================================== */
.b2b-promo__intro { margin-bottom: 20px; max-width: 64ch; }
.b2b-promo__claim { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.b2b-promo__sub { margin: 4px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-promo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1160px; }
.b2b-promo__card { display: flex; flex-direction: column; min-width: 0; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
@media (hover: hover) { .b2b-promo__card:hover { border-color: var(--wp--preset--color--ink); transform: translateY(-2px); } }
.b2b-promo__art { display: block; }
.b2b-promo__art img { display: block; width: 100%; aspect-ratio: 10 / 3; object-fit: cover; background: var(--wp--preset--color--surface-2); }
.b2b-promo__art--empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 10 / 3; padding: 16px; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-2); font-family: var(--wp--preset--font-family--display); font-weight: 600; text-align: center; }
.b2b-promo__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.b2b-promo__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b2b-promo__chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--warning); background: color-mix(in srgb, var(--wp--preset--color--warning) 14%, white); border: 1px solid color-mix(in srgb, var(--wp--preset--color--warning) 35%, transparent); }
.b2b-promo__n { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-promo__title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--wp--preset--color--ink); text-wrap: balance; }
.b2b-promo__text { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-promo__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--accent); }
.b2b-promo__cta .b2b-icon { transition: transform .12s ease; }
.b2b-promo__card:hover .b2b-promo__cta .b2b-icon { transform: translateX(3px); }
.b2b-promo__empty { max-width: 460px; margin: 48px auto; text-align: center; color: var(--wp--preset--color--muted-ink); }
.b2b-promo__empty .b2b-icon { width: 48px; height: 48px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--muted-2); margin-bottom: 12px; }
.b2b-promo__empty h3 { margin: 0 0 4px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--ink); }
.b2b-promo__empty p { margin: 0 0 14px; }
/* promo page */
.b2b-promo__hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 20px; align-items: center; margin-bottom: 20px; padding: 14px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); }
.b2b-promo__hero-img { display: block; width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-radius: var(--b2b-radius); background: var(--wp--preset--color--surface-2); }
.b2b-promo__hero-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.b2b-promo__hero-title { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.b2b-promo__hero-body .b2b-promo__text { -webkit-line-clamp: 4; }
.b2b-catalog--promo { --b2b-tb-h: 0px; }
.b2b-price-was { color: var(--wp--preset--color--muted-2); font-weight: 400; font-size: var(--wp--preset--font-size--x-small); margin-right: 4px; font-variant-numeric: tabular-nums; }
.b2b-price--sale { color: var(--wp--preset--color--accent); }
.b2b-sp__price-was { color: var(--wp--preset--color--muted-2); font-size: var(--wp--preset--font-size--x-small); margin-left: 6px; margin-right: -4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-sp__price--sale { color: var(--wp--preset--color--accent); }
.b2b-nov__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.b2b-nov__price .b2b-price-was { margin: 0; }
.b2b-nov__price--sale > span { color: var(--wp--preset--color--accent); }
.b2b-promo__back { margin: 24px 0 0; }
@media (max-width: 900px) { .b2b-promo__grid { grid-template-columns: 1fr; } .b2b-promo__hero { grid-template-columns: 1fr; } }

/* ---- Novità (22 Sep 2026): carousel rows by format + curated; each row opens /novita/<slug>/ (a promo-like page) ---- */
.b2b-nov { display: flex; flex-direction: column; gap: 32px; }
.b2b-nov__intro { display: flex; flex-direction: column; gap: 4px; }
.b2b-nov__claim { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.b2b-nov__sub { margin: 0; color: var(--wp--preset--color--muted-ink); font-size: var(--wp--preset--font-size--small); }
.b2b-nov__row { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.b2b-nov__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b2b-nov__h { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.b2b-nov__h a { color: inherit; text-decoration: none; }
.b2b-nov__h a:hover { text-decoration: underline; }
.b2b-nov__n { margin-left: 6px; font-family: var(--wp--preset--font-family--body); font-size: 12px; font-weight: 500; color: var(--wp--preset--color--muted-ink); letter-spacing: 0; }
.b2b-nov__tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.b2b-nov__all { display: inline-flex; align-items: center; gap: 4px; font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; white-space: nowrap; }
.b2b-nov__all:hover { text-decoration: underline; }
.b2b-nov__nav { display: none; gap: 6px; }
.b2b-nov__row.has-overflow .b2b-nov__nav { display: flex; }
.b2b-nov__arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--b2b-line); border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); cursor: pointer; }
.b2b-nov__arrow:hover { border-color: var(--wp--preset--color--ink); }
.b2b-nov__arrow:disabled { opacity: .35; cursor: default; }
.b2b-nov__arrow:disabled:hover { border-color: var(--b2b-line); }
.b2b-nov__track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 8px; margin: -2px -2px 0; scrollbar-width: none; }
.b2b-nov__track::-webkit-scrollbar { display: none; }
.b2b-nov__track:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; border-radius: var(--b2b-radius); }
.b2b-nov__card { display: flex; flex-direction: column; gap: 3px; flex: 0 0 150px; width: 150px; min-width: 0; scroll-snap-align: start; }
.b2b-nov__link { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-decoration: none; color: inherit; }
.b2b-nov__foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 4px; }
.b2b-nov__act { display: flex; align-items: center; gap: 6px; }
.b2b-nov__act .b2b-nov__add { flex: 1 1 auto; justify-content: center; }
.b2b-nov__soldout { font-size: 11px; color: var(--wp--preset--color--muted-ink); }
.b2b-nov__poster { display: block; width: 150px; aspect-ratio: 150 / 212; border-radius: var(--b2b-radius); overflow: hidden; background: var(--wp--preset--color--surface-2); box-shadow: 0 1px 0 var(--b2b-line); margin-bottom: 5px; transition: transform .18s ease, box-shadow .18s ease; }
.b2b-nov__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-nov__link:hover .b2b-nov__poster { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.b2b-nov__link:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 3px; border-radius: var(--b2b-radius); }
.b2b-nov__poster--all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--wp--preset--color--line-2); background: var(--wp--preset--color--surface); box-shadow: none; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ink); }
.b2b-nov__card--all:hover .b2b-nov__poster--all { border-style: solid; border-color: var(--wp--preset--color--ink); }
.b2b-nov__title { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-nov__meta { font-size: 11.5px; color: var(--wp--preset--color--muted-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-nov__line { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.b2b-nov__line .b2b-fmt { min-width: 0; padding: 1px 6px; font-size: 10px; }
.b2b-nov__date { font-size: 11px; color: var(--wp--preset--color--muted-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-nov__price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* sub-page: text-only hero strip, same frame as the promo one */
.b2b-promo__hero--text { grid-template-columns: 1fr; padding: 18px 20px; }
.b2b-nov-page__eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-ink); }
@media (prefers-reduced-motion: reduce) { .b2b-nov__poster { transition: none; } .b2b-nov__link:hover .b2b-nov__poster { transform: none; } }
@media (max-width: 720px) {
  .b2b-nov { gap: 26px; }
  .b2b-nov__claim { font-size: 22px; }
  .b2b-nov__nav { display: none !important; }
  .b2b-nov__track { gap: 12px; margin-inline: calc(-1 * var(--wp--preset--spacing--40, 16px)); padding-inline: var(--wp--preset--spacing--40, 16px); scroll-padding-inline: var(--wp--preset--spacing--40, 16px); }
  .b2b-nov__card, .b2b-nov__poster { flex-basis: 128px; width: 128px; }
}

/* ---- I miei dati (23 Sep 2026): billing locked, shipping entered once then locked, access ---- */
.b2b-dati { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.b2b-dati .b2b-co-card { margin: 0; padding: 18px 20px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius); }
.b2b-dati .b2b-co-card--lock { background: var(--wp--preset--color--base); }
.b2b-dati .b2b-co-card__h { margin: 0 0 12px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--control); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink); display: flex; align-items: center; gap: 10px; }
.b2b-dati__sub { margin: 0 0 14px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-dati__form { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.b2b-dati .b2b-req__submit { margin-top: 12px; }
/* checkout: no "Modifica" on the address card when the shipping is locked */
.b2b-shipping-locked .b2b-checkout #shipping-fields .wc-block-components-address-card__edit { display: none; }
.b2b-co-shiplock { margin: 8px 0 0; }
.b2b-shipping-locked .b2b-checkout #shipping-fields .wc-block-components-checkout-step__heading-container { display: flex; }
.b2b-shipping-locked .b2b-checkout #shipping-fields .wc-block-components-checkout-step__title { flex: 1 1 auto; }
/* confirmation dialog (native <dialog>) */
.b2b-dialog { width: min(480px, calc(100vw - 32px)); padding: 22px 22px 18px; border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.b2b-dialog::backdrop { background: rgba(20,20,24,.45); }
.b2b-dialog__h { margin: 0 0 6px; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.2; }
.b2b-dialog__p { margin: 0 0 14px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); }
.b2b-dialog__dl { padding: 12px 14px; border-radius: var(--b2b-radius); background: var(--wp--preset--color--base); }
.b2b-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 480px) { .b2b-dialog__actions .b2b-btn { flex: 1 1 100%; justify-content: center; } }
/* legal texts: conditions of sale + privacy (inc/legal-modal.php): same dialog, wider, text scrolls inside */
.b2b-dialog [hidden] { display: none !important; } /* .b2b-btn sets display: the hidden attribute alone would lose */
.b2b-dialog--legal { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
.b2b-dialog--legal[open] { display: flex; }
.b2b-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--b2b-line); }
.b2b-dialog--legal .b2b-dialog__h { margin: 0; }
.b2b-dialog__x { flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0; border: 0; border-radius: 999px; background: transparent; color: var(--wp--preset--color--muted-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.b2b-dialog__x:hover, .b2b-dialog__x:focus-visible { background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink); }
.b2b-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 22px 18px; font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.b2b-dialog__body:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: -2px; }
.b2b-dialog__body > :first-child { margin-top: 0; }
.b2b-dialog__body h2, .b2b-dialog__body h3, .b2b-dialog__body h4 { margin: 1.4em 0 .4em; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--normal, 1rem); font-weight: 700; line-height: 1.3; }
.b2b-dialog__body p, .b2b-dialog__body ul, .b2b-dialog__body ol { margin: 0 0 .8em; }
.b2b-dialog--legal .b2b-dialog__actions { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--b2b-line); }
/* red dot: shipping address missing (sidebar item "I miei dati" + mobile menu toggle) */
.b2b-nav__link { position: relative; }
.b2b-nav__dot { position: absolute; left: 24px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 0 2px var(--wp--preset--color--base); }
.b2b-nav__link.is-active .b2b-nav__dot { box-shadow: 0 0 0 2px var(--wp--preset--color--surface); }
.b2b-topbar__toggle { position: relative; }
.b2b-topbar__dot { position: absolute; right: 4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 0 2px var(--wp--preset--color--base); }
.b2b-dati__banner { margin: 0; }
.b2b-dati__banner b { display: block; margin-bottom: 2px; }
/* promo urgency (23 Sep 2026): the chip gets warmer as the deadline nears */
.b2b-promo__chip--warn { color: #9a3412; background: #ffedd5; border-color: #fdba74; }
.b2b-promo__chip--hot { color: #fff; background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.b2b-nov__card[hidden] { display: none; }

/* ---- Download (docs/panel-download.md, 23 Sep 2026, version 3): featured block + grid of covers ---- */
.b2b-dl { max-width: 1160px; }
.b2b-dl__intro { margin: 0 0 20px; }
.b2b-dl__claim { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.b2b-dl__sub { margin: 4px 0 0; color: var(--wp--preset--color--muted-2); font-size: var(--wp--preset--font-size--small); }
.b2b-dl__hero { display: flex; align-items: center; gap: 20px; padding: 18px 20px; margin: 0 0 14px; background: var(--wp--preset--color--surface); border: 1px solid var(--b2b-line); border-radius: var(--b2b-radius-lg); color: inherit; text-decoration: none; transition: border-color .12s ease; }
.b2b-dl__hero:hover { border-color: var(--wp--preset--color--line-2); }
.b2b-dl__hero-ic { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 88px; height: 88px; border-radius: 12px; background: var(--wp--preset--color--surface-2); overflow: hidden; }
.b2b-dl__hero-ic--xls { background: #e8f6ee; }
.b2b-dl__hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-dl__hero-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.b2b-dl__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.b2b-dl__hero-title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.b2b-dl__meta { font-size: 12px; color: var(--wp--preset--color--muted-2); }
.b2b-dl__hero-btn { flex: 0 0 auto; gap: 6px; }
.b2b-dl__hero:hover .b2b-dl__hero-btn { background: var(--wp--preset--color--primary-dark); }
.b2b-dl__sec { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.b2b-dl__sec-title { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; font-weight: 700; }
.b2b-dl__sec-meta { font-size: 12px; color: var(--wp--preset--color--muted-2); }
.b2b-dl__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.b2b-dl__card { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: inherit; text-decoration: none; }
.b2b-dl__art { position: relative; display: block; aspect-ratio: 210 / 297; border: 1px solid var(--b2b-line); border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--surface-2); transition: border-color .12s ease, transform .12s ease; }
.b2b-dl__card:hover .b2b-dl__art { border-color: var(--wp--preset--color--ink); transform: translateY(-2px); }
.b2b-dl__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-dl__glyph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; color: var(--wp--preset--color--muted-2); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.b2b-dl__dl { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line-2); color: var(--wp--preset--color--ink); opacity: 0; transition: opacity .12s ease; }
.b2b-dl__card:hover .b2b-dl__dl, .b2b-dl__card:focus-visible .b2b-dl__dl { opacity: 1; background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; }
.b2b-dl__card:focus-visible { outline: none; }
.b2b-dl__card:focus-visible .b2b-dl__art { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.b2b-dl__title { margin-top: 4px; font-family: var(--wp--preset--font-family--display); font-size: 13px; font-weight: 600; line-height: 1.25; }
.b2b-dl__card .b2b-dl__meta { font-size: 11.5px; }
.b2b-dl__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--wp--preset--color--muted-2); background: var(--wp--preset--color--surface); border: 1px dashed var(--b2b-line); border-radius: var(--b2b-radius-lg); }
.b2b-dl__empty h3 { margin: 4px 0 0; font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--ink); }
.b2b-dl__empty p { margin: 0; font-size: var(--wp--preset--font-size--small); }
@media (max-width: 1100px) { .b2b-dl__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .b2b-dl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .b2b-dl__hero { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .b2b-dl__hero-ic { width: 64px; height: 64px; }
  .b2b-dl__hero-btn { width: 100%; }
}
@media (max-width: 480px) { .b2b-dl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Pay for order (woocommerce/checkout/form-pay.php, 23 Sep 2026): the checkout's shape on an existing order ---- */
.b2b-checkout .b2b-pay { max-width: none; }
.b2b-checkout .b2b-pay__form { display: flex; gap: 24px; align-items: flex-start; }
.b2b-checkout .b2b-pay__main { flex: 1.618 1 0; min-width: 0; }
.b2b-checkout .b2b-pay__side { flex: 1 1 0; min-width: 0; position: sticky; top: calc(var(--b2b-topbar-h, 56px) + 24px); }
.b2b-checkout .b2b-pay__head { margin: 0 0 16px; }
.b2b-checkout .b2b-pay__eyebrow { margin: 0 0 4px; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted-2); }
.b2b-checkout .b2b-pay__title { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.b2b-checkout .b2b-pay__sub { margin: 6px 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted-ink); max-width: 60ch; }
/* payment methods (classic markup: li > input.input-radio + label + div.payment_box), drawn like the block's radio
   accordion. WooCommerce's own rules carry the #payment id (.woocommerce-checkout #payment ul.payment_methods li …):
   ours repeat the id to win. */
.b2b-checkout .b2b-pay #payment { background: transparent; border-radius: 0; }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; border: 0; }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 0 8px; padding: 10px 12px; line-height: 1.3; border: 1px solid var(--b2b-line); border-radius: 8px; background: var(--wp--preset--color--surface); overflow: hidden; }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method:last-child { margin-bottom: 0; }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method:has(input.input-radio:checked) { border-color: var(--wp--preset--color--ink); }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method input.input-radio { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--wp--preset--color--accent); }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method > label { display: block; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--ink); cursor: pointer; }
.b2b-checkout .b2b-pay #payment ul.wc_payment_methods li.wc_payment_method > label img { display: none; }
.b2b-checkout .b2b-pay #payment div.payment_box { flex: 1 1 100%; width: 100%; margin: 8px 0 0; padding: 0 0 0 28px; background: transparent; border-radius: 0; font-size: var(--wp--preset--font-size--x-small); line-height: 1.5; color: var(--wp--preset--color--muted-ink); }
.b2b-checkout .b2b-pay #payment div.payment_box::before { display: none; content: none; }
.b2b-checkout .b2b-pay #payment div.payment_box p { margin: 0 0 8px; }
.b2b-checkout .b2b-pay #payment div.payment_box .testmode-info { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; background: var(--wp--preset--color--surface-2); font-size: 11px; }
.b2b-checkout .b2b-pay #payment div.payment_box.payment_method_ppcp-gateway { display: none !important; } /* PayPal's own sentence: the button says it; WooCommerce's JS sets display:block inline when selected */
.b2b-checkout .b2b-pay #payment .wc-stripe-upe-element, .b2b-checkout .b2b-pay #payment #wc-stripe-upe-element { margin-top: 4px; }
.b2b-checkout .b2b-pay #payment div.payment_box .input-text { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--wp--preset--color--line-2); border-radius: var(--b2b-radius); background: var(--wp--preset--color--field); color: var(--wp--preset--color--ink); }
.b2b-checkout .b2b-pay #payment div.form-row { padding: 0; }
/* right card: lines with poster, totals, CTA */
.b2b-checkout .b2b-pay__items { list-style: none; margin: 10px 0 0; padding: 0; max-height: 380px; overflow: auto; overscroll-behavior: contain; }
.b2b-checkout .b2b-pay__item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--b2b-line); }
.b2b-checkout .b2b-pay__item:first-child { border-top: 0; padding-top: 0; }
.b2b-checkout .b2b-pay__thumb img, .b2b-checkout .b2b-pay__thumb--empty { display: block; width: 32px; aspect-ratio: 599 / 847; object-fit: cover; border-radius: 3px; background: var(--wp--preset--color--surface-2); }
.b2b-checkout .b2b-pay__info { min-width: 0; }
.b2b-checkout .b2b-pay__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--wp--preset--font-size--small); font-weight: 600; line-height: 1.25; color: var(--wp--preset--color--ink); }
.b2b-checkout .b2b-pay__line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--wp--preset--color--muted-2); }
.b2b-checkout .b2b-pay__qty { font-variant-numeric: tabular-nums; }
.b2b-checkout .b2b-pay__total { font-size: var(--wp--preset--font-size--small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-checkout .b2b-pay__totals { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--b2b-line); }
.b2b-checkout .b2b-pay__trow { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); }
.b2b-checkout .b2b-pay__trow b { font-weight: 500; color: var(--wp--preset--color--ink); font-variant-numeric: tabular-nums; }
.b2b-checkout .b2b-pay__trow--grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--b2b-line); font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--base); font-weight: 600; color: var(--wp--preset--color--ink); }
.b2b-checkout .b2b-pay__trow--grand b { font-weight: 700; font-size: var(--wp--preset--font-size--medium); }
.b2b-checkout .b2b-pay__cta { margin: 16px 0 0; }
.b2b-checkout .b2b-pay__cta .woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; }
.b2b-checkout .b2b-pay__cta .woocommerce-terms-and-conditions, .b2b-checkout .b2b-pay__cta .woocommerce-privacy-policy-text { display: none; } /* same as the checkout: only the terms checkbox */
.b2b-checkout .b2b-pay__cta .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted-ink); cursor: pointer; }
.b2b-checkout .b2b-pay__cta .woocommerce-form__input-checkbox { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--wp--preset--color--accent); }
.b2b-checkout .b2b-pay__cta .woocommerce-form__label-for-checkbox a { color: var(--wp--preset--color--accent); font-weight: 600; }
.b2b-checkout .b2b-pay__cta #place_order { width: 100%; }
.b2b-checkout .b2b-pay__cta #ppc-button-ppcp-applepay, .b2b-checkout .b2b-pay__cta #ppc-button-ppcp-googlepay { display: none !important; }
.b2b-checkout .b2b-pay__cta .ppc-button-wrapper, .b2b-checkout .b2b-pay__cta #ppc-button-ppcp-gateway { margin-top: 10px; }
/* notices of the pay page (core banner markup) */
.b2b-checkout .woocommerce-notices-wrapper:empty { display: none; }
.b2b-checkout .wc-block-components-notice-banner { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--b2b-line); border-left: 4px solid var(--wp--preset--color--info); border-radius: 8px; background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.b2b-checkout .wc-block-components-notice-banner.is-error { border-left-color: var(--wp--preset--color--error); }
.b2b-checkout .wc-block-components-notice-banner.is-error > svg { fill: var(--wp--preset--color--error); flex: none; }
.b2b-checkout .wc-block-components-notice-banner > svg { fill: var(--wp--preset--color--info); flex: none; }
.b2b-checkout .woocommerce-error, .b2b-checkout .woocommerce-message, .b2b-checkout .woocommerce-info { list-style: none; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--b2b-line); border-left: 4px solid var(--wp--preset--color--error); border-radius: 8px; background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); }
.b2b-checkout .woocommerce-message { border-left-color: var(--wp--preset--color--success); }
.b2b-checkout .woocommerce-info { border-left-color: var(--wp--preset--color--info); }
@media (max-width: 1100px) {
  .b2b-checkout .b2b-pay__form { flex-direction: column; }
  .b2b-checkout .b2b-pay__side { position: static; width: 100%; }
  .b2b-checkout .b2b-pay__items { max-height: none; }
}

/* ---- terms error in the checkout (23 Sep 2026): the theme's inline error, not the block's red-on-red icon ---- */
.b2b-checkout .wc-block-components-validation-error { margin: 6px 0 0; padding: 0; background: none; border: 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: var(--wp--preset--color--error); }
.b2b-checkout .wc-block-components-validation-error > p { display: flex; align-items: center; gap: 6px; margin: 0; } /* markup: p > svg + span */
.b2b-checkout .wc-block-components-validation-error > p > svg { display: none; }
.b2b-checkout .wc-block-components-validation-error > p::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; border-radius: 999px; background: var(--wp--preset--color--error); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.b2b-checkout .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input,
.b2b-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[aria-invalid="true"] { border-color: var(--wp--preset--color--error); outline: 2px solid var(--wp--preset--color--error); outline-offset: 1px; box-shadow: none; }
.b2b-checkout .wc-block-components-checkbox.has-error .wc-block-components-checkbox__label { color: inherit; }
.b2b-checkout .b2b-pay__cta .woocommerce-terms-and-conditions-checkbox-text + abbr.required { display: none; }
/* ---- long text pages (condizioni di vendita): readable prose inside the shell ---- */
.b2b-content .b2b-prose { max-width: 72ch; }
.b2b-content .b2b-prose > * { max-width: none; }
.b2b-content .b2b-prose h2 { margin: 0 0 12px; font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.b2b-content .b2b-prose h2:not(:first-child) { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--b2b-line); }
.b2b-content .b2b-prose h3 { margin: 26px 0 8px; font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.b2b-content .b2b-prose p { margin: 0 0 12px; font-size: var(--wp--preset--font-size--small); line-height: 1.65; color: var(--wp--preset--color--ink); }
.b2b-content .b2b-prose ul { margin: 0 0 12px; padding-left: 20px; font-size: var(--wp--preset--font-size--small); line-height: 1.65; }
.b2b-content .b2b-prose li { margin: 0 0 4px; }

/* ---- account pages at full width (user, 23 Sep 2026): orders and order detail fill the page like the
   catalog. Two caps removed: the shell's 1280px and WooCommerce's 1000px on `.woocommerce-account main
   .woocommerce` (woocommerce-blocktheme.css). "I miei dati" keeps its own 720px (.b2b-dati). ---- */
.woocommerce-account .b2b-content { max-width: none; }
.woocommerce-account main .woocommerce { max-width: none; }

/* ---- catalog banner (docs/panel-banner-catalogo.md, version 1, 23 Sep 2026): the promo hero, plus eyebrow, button and × ---- */
.b2b-cbanner { position: relative; margin: 0 0 16px; }
.b2b-cbanner[hidden] { display: none; }
.b2b-cbanner__card { grid-template-columns: minmax(0, 300px) 1fr auto; margin-bottom: 0; padding: 12px; color: inherit; text-decoration: none; transition: border-color .12s ease; }
a.b2b-cbanner__card:hover { border-color: var(--wp--preset--color--line-2); }
.b2b-cbanner__noimg { background: var(--wp--preset--color--surface-2); }
.b2b-cbanner__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.b2b-cbanner__title { font-size: 18px; }
.b2b-cbanner__sub { margin: 0; }
.b2b-cbanner__btn { margin-right: 36px; gap: 6px; white-space: nowrap; }
a.b2b-cbanner__card:hover .b2b-cbanner__btn { background: var(--wp--preset--color--primary-dark); }
.b2b-cbanner__x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--wp--preset--color--muted-2); cursor: pointer; }
.b2b-cbanner__x:hover { background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--ink); }
@media (max-width: 900px) {
  .b2b-cbanner__card { grid-template-columns: 1fr; gap: 12px; }
  .b2b-cbanner__btn { margin-right: 0; justify-self: start; }
}

/* order detail: refunds (23 Sep 2026) */
.b2b-ord__tot > .b2b-ord__refund { color: var(--wp--preset--color--error); } /* beats .b2b-ord__tot > div */
.b2b-ord__tot > .b2b-ord__refund b { color: var(--wp--preset--color--error); }
.b2b-ord__tt--net { margin-top: 4px; }
.b2b-ord__rq { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--wp--preset--color--error); }
/* order detail: the "Rimborsi" box (6 Oct 2026), rows like "Aggiornamenti" */
.b2b-ord__rf-ls { margin: 4px 0 0; padding: 0; list-style: none; }
.b2b-ord__rf-ls li { padding: 2px 0; }
.b2b-ord__rf-t { font-weight: 600; color: var(--wp--preset--color--ink); }
.b2b-ord__rf-m { color: var(--wp--preset--color--muted-ink); }
.b2b-ord__rf-q { color: var(--wp--preset--color--error); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b2b-ord__rf-why { margin: 4px 0 0 !important; color: var(--wp--preset--color--muted-ink); }
/* orders list: refunds (23 Sep 2026) */
.b2b-orders__note { margin-top: 4px; font-size: 11px; color: var(--wp--preset--color--muted-2); }
.b2b-orders__refund { margin-top: 2px; font-size: 11px; color: var(--wp--preset--color--error); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* optional field hint in the shipping form (1 Oct 2026: name, surname, phone optional) */
.b2b-req__opt{font-weight:400;color:var(--wp--preset--color--muted, #6b7080);font-size:.85em}

/* ===================================================================
   COOKIE NOTICE (inc/cookie-notice.php, panel docs/panel-cookie-banner.md: version 01)
   Informative bar at the bottom: right of the sidebar in the app, full width on login and phone.
   =================================================================== */
.b2b-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; gap: 16px 20px; padding: 12px clamp(16px, 3vw, 32px) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--wp--preset--color--paper); border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.b2b-cookie:not([hidden]) { display: flex; }
.b2b-cookie__text { margin: 0; flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.b2b-cookie__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.b2b-cookie__text a:hover { color: var(--wp--preset--color--accent); }
.b2b-cookie .b2b-cookie__ok { flex: none; background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.b2b-cookie .b2b-cookie__ok:hover { background: #000; border-color: #000; }
@media (min-width: 961px) { body:has(.b2b-shell) .b2b-cookie { left: var(--b2b-sidebar-w); } }
@media (max-width: 640px) { .b2b-cookie { flex-wrap: wrap; } .b2b-cookie .b2b-cookie__ok { flex: 1 1 100%; justify-content: center; } }
