/* Product page, variant C. Loaded after site.css. Replaces the inline styles of mu-plugin bm-content.php, keeps its class names.
   Buy box spacing comes from tools/content/rollout/rhythm.json, approved by Egor. Change it there first. */

.summary-inner { --x1: 4px; --x2: 8px; --x3: 12px; --x4: 20px; --x5: 24px; --card-gap: 8px; }
.single-product div.product { --gal-ratio: 4 / 3; display: block; }

/* The bands run edge to edge, each keeps the container inside */
.single-product .page-body.shop-body { max-width: none; padding: 0; }
.single-product .woocommerce-notices-wrapper { max-width: 1480px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.single-product .woocommerce-notices-wrapper:empty { display: none; }
.single-product .woocommerce-notices-wrapper > * { margin: 12px 0; }

/* ===== Top: white, the photo in a cream frame ===== */
.bmc-hero { padding-bottom: 28px; background: #fff; border-top: 3px solid var(--red); border-bottom: 1px solid var(--rule); }
.bmc-crumbs { padding: 12px 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.bmc-crumbs .woocommerce-breadcrumb { display: none; margin: 0; font-size: inherit; line-height: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmc-crumbs .crumb-sep { margin: 0 8px; color: var(--ink-faint); }
.bmc-crumb-back { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; }
.bmc-crumb-back::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 8px 0 2px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.bmc-crumb-back:hover { color: var(--red); }

.bmc-hero-g { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
.bmc-hero-g > * { min-width: 0; }
.bmc-hero .product_title { overflow-wrap: anywhere; } /* Slashes without spaces in a long name would push the page sideways */
.bmc-hero iframe { max-width: 100%; } /* Films in old short descriptions */
/* One H1 size on every product page (Egor 10.11): it follows the screen width only, never the length of the name; a long name
   wraps to two or three lines. Same size in the build view (heading on the left) and the buy view (heading next to the button). */
.bmc-hero h1.product_title { margin: 0 0 8px; font-size: clamp(28px, calc(16px + 1.75vw), 44px); line-height: 1.04; letter-spacing: -0.035em; }
.bmc-hero-h .woocommerce-product-rating { margin: 0 0 6px; }
.bmc-hero-h .woocommerce-product-details__short-description { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(10,14,20,.75); }
.bmc-hero-h .woocommerce-product-details__short-description p { margin: 0; }
.woocommerce-review-link { display: inline-block; padding: 5px 0; text-underline-offset: 2px; }
.woocommerce-review-link:hover { color: var(--red); }

/* Few options: title, rating and description in the right block, next to the button. */

/* Gallery: every photo in the same frame, so a tall photo cannot push the page */
.woocommerce-product-gallery { position: relative; background: none; }
.woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder { aspect-ratio: var(--gal-ratio); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--cream); }
.woocommerce-product-gallery__image > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image--placeholder img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.flex-viewport { background: var(--cream); aspect-ratio: var(--gal-ratio); height: auto !important; overflow: hidden; isolation: isolate; }
/* Thumbnails: one row that scrolls inside itself, whatever their number. Room for it before the slider script draws it, so nothing jumps. */
.flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.flex-control-thumbs::-webkit-scrollbar { display: none; }
.flex-control-thumbs li { flex: 0 0 64px; width: 64px; height: 64px; }
.flex-control-thumbs img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: var(--cream); border: 1px solid var(--rule); opacity: 1; cursor: pointer; transition: border-color .15s; }
.flex-control-thumbs img.flex-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.flex-control-thumbs img:hover { border-color: var(--ink); }
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: 72px; }
/* Arrows and the counter lie over the frame: this layer has the size of the frame */
.flex-direction-nav { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: var(--gal-ratio); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.flex-direction-nav li { position: absolute; top: 50%; pointer-events: auto; }
.flex-direction-nav .flex-nav-prev { left: 10px; margin-top: -22px; }
.flex-direction-nav .flex-nav-next { right: 10px; margin-top: -22px; }
.flex-direction-nav a { display: none; position: relative; width: 44px; height: 44px; font-size: 0; border: 1px solid var(--rule); background: rgba(255,255,255,.92); transition: border-color .15s; }
.flex-direction-nav a:hover { border-color: var(--ink); }
.flex-direction-nav a.flex-disabled { opacity: .35; cursor: default; }
.flex-direction-nav a::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 2px 2px 0 0; }
.flex-direction-nav .flex-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.flex-direction-nav .flex-next::after { transform: translate(-70%, -50%) rotate(45deg); }
.flex-direction-nav li.bmc-gal-count { top: auto; right: 10px; bottom: 10px; padding: 4px 8px; background: rgba(255,255,255,.92); border: 1px solid var(--rule); color: var(--ink); pointer-events: none; }
.woocommerce-product-gallery__trigger { z-index: 3; }
/* Zoom (PhotoSwipe) opens on black: a product photo with a transparent background (new photos, Egor 10.11) lies on the card
   color there, otherwise a black motor disappears on black. Photos that keep their own background look the same as before. */
.pswp__img { background-color: var(--cream); }

/* Facts of the product: small cards, they scroll sideways on a phone */
.bmc-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 8px; margin: 12px calc(-1 * max(16px, env(safe-area-inset-left))) 0; padding: 0 max(16px, env(safe-area-inset-left)); overflow-x: auto; scrollbar-width: none; }
.bmc-facts::-webkit-scrollbar { display: none; }
.bmc-fact { padding: 10px 12px; background: #fff; border: 1px solid var(--rule); }
.bmc-fact dt { color: var(--ink-soft); }
.bmc-fact dd { margin: 6px 0 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -0.01em; }

/* ===== Buy block ===== */
.bmc-hero .summary { margin: 0 calc(-1 * max(16px, env(safe-area-inset-left))); background: #fff; color: var(--ink); border: 1px solid var(--rule); border-left: 0; border-right: 0; }
.bmc-steps { padding: 20px 16px; counter-reset: step; }
.summary-inner .woocommerce-product-rating { margin: 0 0 10px; font-size: 13px; line-height: 18px; }
.summary-inner .price { display: block; margin: 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
#bm-pdp-price { margin: 0 0 12px; }
.summary-inner > .woocommerce-product-details__short-description { margin: 0 0 var(--x5); font-size: 15px; line-height: 1.55; color: var(--ink); }
.summary-inner > .woocommerce-product-details__short-description p { margin: 0; }
.summary-inner > .woocommerce-product-details__short-description p + p { margin-top: 10px; }
.summary-inner > .woocommerce-product-details__short-description ul { list-style: disc; padding-left: 20px; }

/* Groups inside the buy box */
.bm-pdp-inline { margin: 0; }
.summary-inner > .bm-pdp-inline--before_cart { margin: 0 0 var(--x5); }
.summary-inner > .bm-pdp-inline--after_cart { margin: var(--x4) 0 0; }
.summary-inner .bm-pdp-inline > :last-child { margin-bottom: 0; }
.summary-inner .bm-pdp-inline > :last-child > .bm-pdp-axis:last-child { margin-bottom: 0; }
.bm-pdp-variants { margin: 0 0 var(--x4); }
.bm-pdp-h { margin: 0 0 var(--x3); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; }
.bmc-steps .bm-pdp-h { font-size: 20px; line-height: 24px; letter-spacing: -0.02em; }

/* One choice: label, optional note, then the controls */
.bm-pdp-axis { display: block; border: 0; margin: 0 0 var(--x4); padding: 0; min-width: 0; }
/* Every step label in one rule: the same room between the number and the word (Egor 10.11: Options was 8 px tighter than Finish) */
.bm-pdp-axis legend, .bm-pdp-sizes-l, .bmc-step-label { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; float: none; width: auto; margin: 0 0 var(--x2); padding: 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.bm-pdp-cur { font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); }
.bm-pdp-axis-note { display: block; margin: calc(-1 * var(--x1)) 0 var(--x2); font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.bm-pdp-opts { display: flex; flex-wrap: wrap; gap: var(--x2); }
.bm-pdp-opt, .bm-pdp-tgl, .bm-pdp-card { position: relative; margin: 0; background: #fff; border: 1px solid var(--rule); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s; }
/* Hover is gray: in ink it looked like a second pick next to the real one (Egor 13.11, Finish of the 700 HP). The picked look
   below wins, it comes later. One line, no @media: quick-add.php copies these rules line by line into its panel. */
.bm-pdp-opt:hover, .bm-pdp-tgl:hover, .bm-pdp-card:hover { border-color: var(--ink-faint); }
.bm-pdp-opt input, .bm-pdp-tgl input, .bm-pdp-card input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bm-pdp-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 14px; line-height: 18px; font-weight: 500; }
.bm-pdp-axis--segment .bm-pdp-opt, .bmc-chips .bm-pdp-opt { justify-content: center; min-width: 56px; }
/* TS&S chips sit in an Add-ons form row, and site.css `.form-row label { display: block }` outranked the flex above: the text
   stuck to the top padding, 12.5px over the capitals and 20px under the baseline (Egor 09.11). Its 4px margin stays, it sets the
   rows the total line is measured from. */
.form-row label.bm-pdp-opt { display: inline-flex; }
.bm-pdp-sw { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(10,14,20,.25); }
.bm-pdp-d { font-size: 13px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.bm-pdp-d:empty { display: none; }
.bm-pdp-opt.is-on, .bm-pdp-opt:has(input:checked), .bm-pdp-tgl.is-on, .bm-pdp-tgl:has(input:checked), .bm-pdp-card.is-on, .bm-pdp-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bm-pdp-opt:has(input:focus-visible), .bm-pdp-tgl:has(input:focus-visible), .bm-pdp-card:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.bm-pdp-opt.is-off, .bm-pdp-opt:has(input:disabled), .bm-pdp-tgl.is-off, .bm-pdp-tgl:has(input:disabled), .bm-pdp-card.is-off, .bm-pdp-card:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bm-pdp-opt:has(input:disabled) .bm-pdp-opt-t { text-decoration: line-through; }
.bm-pdp-why { min-height: 18px; margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--red-dark); }

/* Numbered steps. Only choices that are a real sequence get a number. */
.bmc-steps:not(.bmc-steps--one) .bm-pdp-axis:not(.bm-pdp-axis--toggle) > legend:not(.screen-reader-text)::before, .bmc-steps:not(.bmc-steps--one) .bm-pdp-sizes-l::before, .bmc-steps:not(.bmc-steps--one) .bmc-step-label::before, .bmc-steps:not(.bmc-steps--one) .bmc-group-t::before, .bmc-steps:not(.bmc-steps--one) table.variations th.label label::before {
  counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-right: 8px; background: var(--ink); color: #fff; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0;
}
.bmc-step-label { display: flex; align-items: center; margin: 0 0 var(--x2); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; }
.bmc-steps--one .bmc-step-label { display: none; }

/* A required choice that was skipped */
.bm-pdp-need { margin: 0 0 var(--x2); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--red-dark); }
.bm-pdp-miss > legend, .bm-pdp-miss .bm-pdp-sizes-l, .bm-pdp-miss > .wc-pao-addon-name, .bm-pdp-miss th.label label { color: var(--red-dark); }
.bm-pdp-miss .bm-pdp-opt, .bm-pdp-miss .bm-pdp-card, .bm-pdp-miss select, .bm-pdp-miss input[type=text], .bm-pdp-miss textarea { border-color: var(--red); }

/* Check card: add something for a price. A run of them reads as one group. */
.bm-pdp-tgl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; }
.bm-pdp-tgl-box { position: relative; width: 22px; height: 22px; border: 2px solid var(--ink-faint); }
/* The tick sits in the middle of the box (Egor 14.11, 1728 retina: it leaned left): centered on the box, raised 1.5px because the
   rotated L has its weight low. Same rule for the red, the grey "included" and the required boxes. */
.bm-pdp-tgl.is-on .bm-pdp-tgl-box, .bm-pdp-tgl:has(input:checked) .bm-pdp-tgl-box { background: var(--red); border-color: var(--red); }
.bm-pdp-tgl.is-on .bm-pdp-tgl-box::after, .bm-pdp-tgl:has(input:checked) .bm-pdp-tgl-box::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, calc(-50% - 1.5px)) rotate(45deg); }
.bm-pdp-tgl-t strong, .bm-pdp-card-t strong { display: block; font-weight: 600; font-size: 14px; line-height: 18px; }
.bm-pdp-tgl-t small, .bm-pdp-card-t small { display: block; margin-top: 2px; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.summary-inner .bm-pdp-axis:has(+ .bm-pdp-axis--toggle) { margin-bottom: var(--x2); }
.summary-inner .bm-pdp-axis--toggle:has(+ .bm-pdp-axis--toggle) { margin-bottom: var(--card-gap); }
/* Inside the Options group the empty "why" line of a card takes no room: the gap between two cards is the same as between radio cards
   (Egor 10.11: holeshot plate and the TS&S line on Gen 3 Extreme Action were 32 px apart instead of 8). With a reason in it, it shows. */
.summary-inner .bm-pdp-axis--toggle:has(+ .bm-pdp-axis--toggle) > .bm-pdp-why:empty { min-height: 0; margin: 0; }

/* A box with a choice inside (control toggle + pick, bm-content.php): "Add the position gauge", then Black or White face. The check
   area lies over the card, the faces above it; they show once the box is ticked (Egor 10.11, plates in one rhythm). */
.bm-pdp-tgl--pick { position: relative; }
.bm-pdp-tgl-hit { position: absolute; inset: 0; z-index: 1; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bm-pdp-tgl--pick:has(.bm-pdp-tgl-hit input:checked) .bm-pdp-tgl-box { background: var(--red); border-color: var(--red); }
.bm-pdp-tgl--pick:has(.bm-pdp-tgl-hit input:checked) .bm-pdp-tgl-box::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, calc(-50% - 1.5px)) rotate(45deg); }
.bm-pdp-tgl--pick:not(:has(.bm-pdp-tgl-hit input:checked)) { border-color: var(--rule); box-shadow: none; }
.bm-pdp-tgl--pick:not(:has(.bm-pdp-tgl-hit input:checked)) .bm-pdp-pick { display: none; }
/* Options boxes that are not a choice to tick (Egor 14.11, one template; bm-plate-extras.php, bm-content.php). The holeshot plate
   that comes with an 8" and longer plate: ticked in grey, nothing to untick. A required list of the store (the gauge of the Double
   Jac and Splitter Jac): the faces show at once and one has to be picked. */
.bm-px-std .bm-pdp-tgl-box, .bm-pdp-tgl--must:has(.bm-pdp-pick input:checked) .bm-pdp-tgl-box { background: var(--ink-faint); border-color: var(--ink-faint); }
.bm-pdp-tgl--must:has(.bm-pdp-pick input:checked) .bm-pdp-tgl-box { background: var(--red); border-color: var(--red); }
.bm-px-std .bm-pdp-tgl-box::after, .bm-pdp-tgl--must:has(.bm-pdp-pick input:checked) .bm-pdp-tgl-box::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, calc(-50% - 1.5px)) rotate(45deg); }
.bm-pdp-tgl--pick.bm-pdp-tgl--must:not(:has(.bm-pdp-tgl-hit input:checked)) .bm-pdp-pick { display: flex; }
.bm-pdp-tgl--pick.bm-pdp-tgl--must:has(.bm-pdp-pick input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* On a retina screen the rotated tick lands half a pixel off the middle: a quarter pixel right and half a pixel up (measured at 2x
   and 3x, tools/theme/work/options/tick.py; at 1x the rule above is exact). */
@media (min-resolution: 2dppx) {
  .bm-pdp-tgl.is-on .bm-pdp-tgl-box::after, .bm-pdp-tgl:has(input:checked) .bm-pdp-tgl-box::after, .bm-pdp-tgl--pick:has(.bm-pdp-tgl-hit input:checked) .bm-pdp-tgl-box::after,
  .bm-px-std .bm-pdp-tgl-box::after, .bm-pdp-tgl--must:has(.bm-pdp-pick input:checked) .bm-pdp-tgl-box::after { transform: translate(calc(-50% + .25px), calc(-50% - 2px)) rotate(45deg); }
}
.bm-pdp-miss .bm-pdp-tgl--must { border-color: var(--red); }
/* A choice inside an Options box is a line of text, like the bolt card's "Set of 4 · Set of 6 · How to measure" (Egor 14.11):
   "Dial: Black · White". The one picked is dark with no underline, the others read as links. Radios underneath: arrows and screen
   readers work as with radio buttons. The gauge dial, the faces of a store's gauge field, the SBB-5 options, the side of the TS&S
   bracket. */
.bm-pdp-pick { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.bm-pdp-pick[hidden] { display: none; }
.bm-pdp-pick-l { margin-right: 4px; }
.bm-pdp-pick-o { position: relative; display: inline-flex; align-items: center; min-height: 24px; margin: 0; padding: 0; color: var(--ink); cursor: pointer; }
.bm-pdp-pick-o:not(:last-child)::after { content: '·'; content: '·' / ''; margin: 0 6px; color: var(--ink-soft); font-weight: 400; } /* the dot ends a line, never starts one */
.bm-pdp-pick-o input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bm-pdp-pick-t { display: inline-grid; text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-pick-t::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; } /* room for the bold one: the line does not jump */
.bm-pdp-pick-o:hover .bm-pdp-pick-t { color: var(--red); }
.bm-pdp-pick-o.is-on .bm-pdp-pick-t, .bm-pdp-pick-o:has(input:checked) .bm-pdp-pick-t { font-weight: 600; color: var(--ink); text-decoration: none; }
.bm-pdp-pick-o.is-on, .bm-pdp-pick-o:has(input:checked) { cursor: default; }
.bm-pdp-pick-p { margin-left: 4px; color: var(--ink-soft); }
.bm-pdp-pick-o:has(input:focus-visible) .bm-pdp-pick-t { outline: 2px solid var(--red); outline-offset: 2px; }
.bm-pdp-tgl-t > .bm-pdp-need { margin: 2px 0 0; } /* "Pick a dial first." under the line, in the card (bm-content.php need()) */

/* Model choice of plates sold as separate products (bm-plate-steps.php): rows of links like the setback row, cards two to a row */
.bm-ps-axis--cards .bm-pdp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.bm-ps-axis--cards .bm-pdp-card { grid-template-columns: auto minmax(0, 1fr); color: var(--ink); text-decoration: none; }
.bm-ps-axis--models .bm-pdp-card { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 599px) { .bm-ps-axis--models .bm-pdp-opts { grid-template-columns: minmax(0, 1fr); } }
.bm-ps-axis--cards span.bm-pdp-card { cursor: default; }
.bm-ps-axis--cards .bm-pdp-card.is-on .bm-pdp-dot { border-color: var(--red); }
.bm-ps-axis--cards .bm-pdp-card.is-on .bm-pdp-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.bm-ps .bm-pdp-axis { margin-bottom: var(--x4); }
.bm-ps .bm-pdp-why { min-height: 0; color: var(--ink-soft); }
/* Options in the form of a plate without a variant block (minis, Kicker Jac, Double Jac): cards in the same rhythm */
.bm-px-rows { margin: 0 0 var(--x4); }
.bm-px-rows > .bm-pdp-axis { margin-bottom: var(--card-gap); }
.bm-px-rows > .bm-pdp-axis:last-child { margin-bottom: 0; }
/* A box of the store's fields right after the variant block (12" Action: the Performance holeshot plate) is the same Options step:
   card gap, not section gap (Egor 14.11, one template). */
.bm-pdp-variants:has(.bm-pdp-axis--toggle) + .bm-px-rows { margin-top: calc(var(--card-gap) - var(--x4)); }

/* Radio card: name, one line of explanation, price on the right */
.bm-pdp-axis--cards .bm-pdp-opts { display: grid; gap: var(--card-gap); }
.bm-pdp-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; min-height: 44px; padding: 10px 12px; }
/* A card with no line of explanation is as tall as its name, not as a card with one (Egor 10.11, Bigfoot: Standard, Single hose) */
.bm-pdp-card:not(:has(.bm-pdp-card-t small)) { align-items: center; }
.bm-pdp-dot { position: relative; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--ink-faint); border-radius: 50%; }
.bm-pdp-card.is-on .bm-pdp-dot, .bm-pdp-card:has(input:checked) .bm-pdp-dot { border-color: var(--red); }
.bm-pdp-card.is-on .bm-pdp-dot::after, .bm-pdp-card:has(input:checked) .bm-pdp-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.bm-pdp-card .bm-pdp-d { font-weight: 600; color: var(--ink); }
.bm-pdp-howto { margin: calc(-1 * var(--x1)) 0 var(--x2); font-size: 13px; line-height: 19px; }
.bm-pdp-howto summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-howto p { margin: 0 0 8px; color: var(--ink-soft); }

/* Row of sizes: plain links to the other products of the line */
.bm-pdp-sizes { display: block; }
.bm-pdp-size { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; padding: 8px 12px; border: 1px solid var(--rule); background: #fff; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .15s; }
a.bm-pdp-size:hover { border-color: var(--ink); }
.bm-pdp-size.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; cursor: default; }
.bm-pdp-sizes-all { display: inline-flex; align-items: center; min-height: 32px; margin-top: var(--x1); font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-sizes-all:hover { color: var(--red); }
/* one size in the line: no size buttons, only the "All … jack plates" link right under the description, without the gap of the whole sizes block (Egor 13.11) */
.summary-inner > .woocommerce-product-details__short-description + .bm-pdp-inline--before_cart > .bm-pdp-sizes--alone:first-child { margin-top: -28px; }
/* one size, the link right under "Build your plate": the same distance as from the heading to step 1 on plates with sizes (Egor 15.11) */
.bm-pdp-h + .bm-pdp-inline--before_cart > .bm-pdp-sizes--alone:first-child { margin-top: -10px; }

/* Option fields of the shop. 16 px in the fields: a phone does not zoom in on them. */
.summary-inner .wc-pao-addons-container { flex: 0 0 100%; margin: 0 0 var(--x5); }
.summary-inner .wc-pao-addon-container { margin: 0; }
.summary-inner .wc-pao-addon-container + .wc-pao-addon-container { margin-top: var(--x4); }
.summary-inner .wc-pao-addon-name { display: block; margin: 0 0 var(--x2); font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.summary-inner h3.wc-pao-addon-name { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; text-transform: none; font-weight: 600; color: var(--ink); }
.summary-inner .wc-pao-addon-name .required { color: var(--red); font-style: normal; }
.summary-inner .wc-pao-addon-description { margin: calc(-1 * var(--x1)) 0 var(--x2); font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.summary-inner .wc-pao-addon-description p { margin: 0; }
.summary-inner .wc-pao-addon-wrap { margin: 0; }
.summary-inner .wc-pao-addon-field:not([type=radio]):not([type=checkbox]), .summary-inner table.variations select { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0; background-color: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .15s; }
.summary-inner .wc-pao-addon-field:not([type=radio]):not([type=checkbox]):focus, .summary-inner table.variations select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.summary-inner textarea.wc-pao-addon-field { min-height: 76px; height: 76px; resize: vertical; }
.summary-inner .wc-pao-addon-radio-row, .summary-inner .wc-pao-addon-checkbox-row { margin: 0 0 var(--x1); }
.summary-inner .wc-pao-addon-radio-row label, .summary-inner .wc-pao-addon-checkbox-row label { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; line-height: 18px; cursor: pointer; }
/* The list stays in the form under the buttons, it is what gets posted */
.bmc-has-chips select { display: none !important; }
.summary-inner table.variations, .summary-inner table.variations tbody, .summary-inner table.variations tr { display: block; width: 100%; }
.summary-inner table.variations { margin: 0 0 var(--x4); border: 0; }
.summary-inner table.variations th, .summary-inner table.variations td { display: block; padding: 0; text-align: left; }
.summary-inner table.variations th.label { margin: 0 0 var(--x2); }
.summary-inner table.variations th.label label { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.summary-inner table.variations td { margin-bottom: var(--x4); }
.summary-inner table.variations tr:last-child td { margin-bottom: 0; }
.summary-inner .reset_variations { display: none; }
/* Several lists can block each other, there the way back stays. With one list the next button simply replaces the choice. */
.summary-inner table.variations:has(tr + tr) .reset_variations { display: inline-block; min-height: 24px; margin-top: var(--x1); }
.summary-inner .woocommerce-variation-price { display: none; }
.summary-inner .woocommerce-variation-description { font-size: 14px; }
.summary-inner .woocommerce-variation-availability .stock { margin: 0 0 var(--x2); }
#product-addons-total { display: none; }

/* Count: minus, number, plus */
.bmc-stepper { display: flex; align-items: stretch; flex-wrap: wrap; }
.bmc-stepper .qty-step { width: 46px; height: 46px; border: 1px solid var(--rule); background: #fff; }
.bmc-stepper .qty-step:hover { border-color: var(--ink); color: var(--ink); }
.bmc-stepper-n { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-weight: 600; }
.bmc-stepper-each { align-self: center; margin-left: 12px; font-size: 13px; color: var(--ink-soft); }

/* Questions of a long form, by topic */
.bmc-group { min-width: 0; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.bmc-group:last-of-type { border-bottom: 1px solid var(--rule); }
.bmc-group-h { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; min-height: 52px; padding: 10px 0; list-style: none; cursor: pointer; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; line-height: 20px; letter-spacing: -0.01em; }
.bmc-group-h::-webkit-details-marker { display: none; }
.bmc-group-t { display: inline-flex; align-items: center; }
.bmc-group-tag { color: var(--ink-soft); }
.bmc-group-ans { flex: 1 0 100%; order: 3; font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--ink-soft); letter-spacing: 0; }
.bmc-group-ans:empty, .bmc-group[open] .bmc-group-ans { display: none; }
.bmc-group .bm-qa-i { margin-left: auto; }
.bmc-group[open] .bm-qa-i { transform: rotate(-135deg) translate(-1px, -1px); }
.bmc-group-b { padding: 4px 0 20px; }

/* Total right above the button */
.bmc-total { flex: 0 0 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 var(--x1); padding-top: var(--x3); border-top: 2px solid var(--ink); }
.bmc-total-t { min-width: 0; min-height: 38px; }
.bmc-total-l { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; line-height: 20px; }
.bmc-total-s { display: block; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.bmc-total #bm-pdp-price { margin: 0; flex: none; text-align: right; }
.bmc-total .price { font-size: 26px; }
.bmc-total .price del { display: block; font-size: 14px; }

/* Quantity and the button, one line */
.summary-inner > form.cart { margin: 0; }
.summary-inner .woocommerce-variation-add-to-cart, .summary-inner form.cart:not(.variations_form):not(.grouped_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
html.bm-pdp-js .single-product .summary-inner .woocommerce-variation-add-to-cart { display: flex !important; }
.quantity:has(.qty-step) { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); background: #fff; }
.quantity:has(input[type=hidden]) { display: none; }
.quantity:has(.qty-step) .qty { width: 44px; min-height: 50px; padding: 0; border: 0; text-align: center; font-weight: 600; font-size: 16px; -moz-appearance: textfield; appearance: textfield; background: none; }
.quantity:has(.qty-step) .qty::-webkit-outer-spin-button, .quantity:has(.qty-step) .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step { flex: none; width: 40px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.qty-step:hover { color: var(--red); }
.summary-inner .single_add_to_cart_button { flex: 1 1 180px; min-height: 52px; font-size: 16px; }
.bmc-hero--build .summary-inner .single_add_to_cart_button { min-height: 56px; font-size: 17px; }
/* Nothing chosen yet: the button works, it leads to what is missing. A variant that cannot be bought stays dim. */
.summary-inner .single_add_to_cart_button.disabled.wc-variation-selection-needed { opacity: 1; cursor: pointer; }

/* Under the button: PayPal, then our lines */
.summary-inner > .ppcp-messages { margin: var(--x3) 0 0; }
.summary-inner > .ppc-button-wrapper { margin: var(--x3) 0 0; }
.bm-pdp-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.bm-pdp-note + .bm-pdp-note { margin-top: var(--x3); }
/* "Lead times" under the Finish block, where the weeks are (Egor 14.11, bm-lead-time.php): close to Finish, the usual gap to the next step. */
.bm-pdp-note--warn { padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--red); }
.bm-pdp-note--hold { padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--ink-faint); color: var(--ink-soft); }
.bm-pdp-cta { display: block; width: max-content; max-width: 100%; margin-top: var(--x1); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* The link of a note ends its sentence, in the same type, underlined: "...2 to 3 weeks powder coated. Lead times" (Egor 10.11) */
.bm-pdp-note .bm-pdp-note-l, .bm-pdp-note-l { display: inline; width: auto; margin: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-cta:hover, .bm-pdp-note-l:hover { color: var(--red); }
.summary-inner .stock { margin: var(--x2) 0 0; font-size: 14px; }

/* ===== TS&S: the black block of the home page and the category, red only as a fill ===== */
.bmc-hero.is-tss { padding-bottom: 24px; background: var(--tss-black); border-bottom: 0; color: #fff; }
.is-tss .bmc-crumbs, .is-tss .woocommerce-breadcrumb a, .is-tss .bmc-hero-h .woocommerce-review-link { color: rgba(255,255,255,.7); }
.is-tss .woocommerce-breadcrumb a:hover, .is-tss .bmc-crumb-back:hover, .is-tss .bmc-hero-h .woocommerce-review-link:hover { color: #fff; }
.is-tss .bmc-hero-h .product_title { color: #fff; }
.is-tss .bmc-hero-h .woocommerce-product-details__short-description { color: rgba(255,255,255,.75); }
.is-tss .flex-viewport, .is-tss .woocommerce-product-gallery__image, .is-tss .woocommerce-product-gallery__image--placeholder, .is-tss .flex-control-thumbs img { background: #fff; }
.is-tss .bmc-fact { color: var(--ink); }
.is-tss :focus-visible { outline-color: #fff; }
.is-tss .summary :focus-visible { outline-color: var(--red); }

/* ===== Bands ===== */
.bmc-band { padding: 32px 0; }
.bmc-band--white, .bmc-band--meta { background: #fff; }
.bmc-band--cream { background: var(--cream); }
.bmc-band--ink { background: var(--ink); color: #fff; }
.bmc-band--ink .bm-pdp-video-t { color: rgba(255,255,255,.7); }
.bmc-band--meta { padding-top: 0; }
.bmc-band > .wrap > * + *, .bmc-split > div > * + * { margin-top: 32px; }
.bmc-split { display: grid; gap: 32px; }
.bmc-split > div { min-width: 0; }
.bm-content { margin: 0; }
.bm-content-block { margin: 0; padding: 0; }
.bm-content-block > h2, .bm-pdp .cmp-short h2, .bm-sec > h2:first-child { margin: 0 0 16px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; }
.product_meta { padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.product_meta > span { display: block; }
.product_meta a { text-decoration: underline; text-underline-offset: 2px; }
.product_meta a:hover { color: var(--red); }

.bm-content-prose, .bm-sec--description { font-size: 15px; line-height: 1.625; }
.bm-content-prose p, .bm-sec--description p, .bm-sec--description ul, .bm-sec--description ol, .bm-sec--description table { margin: 0 0 14px; }
.bm-content-prose p:last-child { margin-bottom: 0; }
.bm-content-prose h3, .bm-sec--description h3, .bm-sec--description h4 { margin: 18px 0 8px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; }
.bm-content-prose ul, .bm-sec--description ul { list-style: disc; padding-left: 20px; }
.bm-sec--description ol { list-style: decimal; padding-left: 20px; }
.bm-content-prose a, .bm-sec--description a { text-decoration: underline; text-underline-offset: 2px; }
/* Rewritten descriptions (Content, tools/theme/STATE-rewrite-rollout.md): lists end with the paragraph gap, a real table of figures
   inside the text scrolls in its frame on a phone, a note by a stock option of the shop (inc/rewrite-sample.php). */
.bm-content-prose ul { margin: 0 0 14px; }
.bm-content-prose ul:last-child { margin-bottom: 0; }
.bmc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.bmc-table table { display: table; width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.bmc-table tr { display: table-row; }
.bmc-table th, .bmc-table td { display: table-cell; min-width: 112px; padding: 10px 20px 10px 0; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--rule); }
.bmc-table th:first-child, .bmc-table td:first-child { min-width: 140px; }
.bmc-table thead th { padding-top: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.bm-opt-note { margin: var(--x1) 0 var(--x2); }
.bmc-group-b > p.bm-opt-note:first-child { margin-top: 0; }
.bm-content-prose a:hover, .bm-sec--description a:hover { color: var(--red); }
.bm-sec--description img { max-width: 100%; height: auto; }
/* Old descriptions carry fixed-width tables (21 products): the table scrolls inside itself, the page stays still. */
.bm-sec--description table { display: block; max-width: 100%; overflow-x: auto; }
.bm-sec--description [style*="width"] { max-width: 100%; }
.bm-sec--description iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin-bottom: 14px; }
.bm-sec--description > h2:first-child + h1, .bm-sec--description h1 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
/* Old descriptions from the page builder keep an empty second column: the text takes the whole width */
.bm-sec--description .bm-col:empty { display: none; }
.bm-sec--description .bm-row:has(> .bm-col:empty) { display: block; }

/* Questions: closed by default, a quiet arrow, 44 px to tap */
.bm-qa { border-bottom: 1px solid var(--rule); }
.bm-content-fit > .bm-qa:first-of-type, .bm-content-faq > .bm-qa:first-of-type { border-top: 1px solid var(--rule); }
.bm-qa-q { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; list-style: none; cursor: pointer; }
.bm-qa-q::-webkit-details-marker { display: none; }
.bm-qa-q h3, .bm-qa-q h4 { flex: 1; margin: 0; font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.bm-qa-q:hover h3, .bm-qa-q:hover h4 { color: var(--red); }
.bm-qa-i { flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); transition: transform .15s; }
.bm-qa[open] .bm-qa-i { transform: rotate(-135deg) translate(-1px, -1px); }
.bm-qa-a { padding: 0 0 14px; font-size: 15px; line-height: 1.6; }
.bm-qa-a p { margin: 0; }
.bm-qa-a a { text-decoration: underline; text-underline-offset: 2px; }

/* Specifications: not folded */
.bm-content-table { display: block; width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.bm-content-table tbody { display: block; border-top: 1px solid var(--rule); }
.bm-content-table tr { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.bm-content-table th, .bm-content-table td { display: block; padding: 0; text-align: left; font-weight: 400; }
.bm-content-table th[scope=row] { color: var(--ink-soft); }
.bm-content-table a { text-decoration: underline; text-underline-offset: 2px; }
.bm-content-matrix .bm-content-table thead { display: block; }
.bm-content-matrix .bm-content-table thead tr { padding: 0 0 8px; border-bottom: 0; font-weight: 500; }
.bm-content-slink { white-space: nowrap; }
/* A few short specifications: one line of cells */
.bmc-strip .bm-content-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bmc-strip .bm-content-table tr { display: block; padding: 10px 0; border-bottom: 0; }
.bmc-strip .bm-content-table th { margin-bottom: 2px; font-size: 13px; line-height: 18px; }
.bmc-strip .bm-content-table td { font-weight: 500; }

/* The shared comparison block sits in a band here, not in a page band of its own */
.bm-pdp .cmp-short { padding: 0; border: 0; background: none; }
.bm-pdp .cmp-short > .wrap { padding: 0; max-width: none; }
.bm-pdp .cmp-short .cmp-lede { margin-bottom: 12px; }
.bm-pdp .cmp-short .cmp-lede:empty { display: none; }

/* Good to know: plain rows, read at a glance */
.bm-good { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.bm-good li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.bm-good strong { font-weight: 600; }
.bm-good-l { white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; color: var(--ink-soft); }
.bm-good-l:hover { color: var(--red); }

/* Line of links to the service pages */
.bm-pdp-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 12px 0 0; font-size: 14px; }
.bm-pdp-svc-l { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-svc-l:hover { color: var(--red); }
.bm-pdp-svc-s { color: var(--ink-faint); }
.bm-content-backlink p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Product cards: one size whatever their number. Five in a row on a desktop, four on a tablet, two on a phone. */
.bm-content-links ul { list-style: none; margin: 0; padding: 0; }
.bm-content-links li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.bm-content-links a { text-decoration: underline; }
.bm-content-note { color: var(--ink-soft); font-size: 13px; }
.bm-pdp-lede { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.bm-pdp-lede a { text-decoration: underline; text-underline-offset: 2px; }
.bm-pdp-lede a:hover { color: var(--red); }
.bm-pdp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.bm-pdp-pc { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--rule); background: #fff; transition: border-color .2s, box-shadow .3s; }
.bm-pdp-pc:hover { border-color: var(--ink); box-shadow: 0 12px 28px -10px rgba(10,14,20,.18); }
.bm-pdp-pc-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--rule-light); }
.bm-pdp-pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bm-pdp-pc-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 12px 4px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.25; letter-spacing: -0.01em; }
.bm-pdp-pc-note { padding: 0 12px 6px; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.bm-pdp-pc-note:empty { display: none; }
.bm-pdp-pc-price { margin-top: auto; padding: 0 12px 10px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.4; letter-spacing: -0.02em; }
.bm-pdp-pc-add { padding: 0 12px 12px; }
.bm-pdp-pc-add .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 9px 10px; font-size: 13px; background: var(--ink); border-color: var(--ink); color: #fff; }
.bm-pdp-pc-add .button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.bm-pdp-pc-add .added_to_cart { display: block; margin-top: 6px; font-size: 13px; text-align: center; text-decoration: underline; }
.bm-pdp-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; padding: 8px 18px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; }
.bm-pdp-more:hover { background: var(--ink); color: #fff; }
.bmc-more-d { display: none; }
@media (max-width: 1199px) { .bm-pdp-products.has-more .bm-pdp-pc:nth-child(n+5) { display: none; } }

/* Videos: a picture until pressed, nothing from YouTube loads before that */
.bmc-videos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.bmc-video-cap { margin: 0 0 10px; }
.bmc-video-len { margin: 2px 0 0; font-size: 12px; line-height: 16px; letter-spacing: .04em; color: var(--ink-soft); }
.bmc-band--ink .bmc-video-len { color: rgba(255,255,255,.7); }
.bmc-video-h { margin: 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; }
.bm-pdp-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.bm-pdp-video > iframe, .bm-pdp-video > button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-pdp-play { display: block; padding: 0; background: var(--ink); cursor: pointer; }
.bm-pdp-play img { width: 100%; height: 100%; object-fit: cover; }
.bm-pdp-play-i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); transition: background-color .2s; }
.bm-pdp-play-i::after { content: ''; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; }
.bm-pdp-play:hover .bm-pdp-play-i { background: var(--red-dark); }
.bm-pdp-video-t { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }

/* Reviews: columns of different height, a long review never stretches its neighbors. Over 8 lines folds, Read more opens it in place. */
.bm-pdp-reviews .woocommerce-noreviews, .bm-sec--reviews .woocommerce-noreviews { background: none; border: 0; padding: 0; margin: 0; }
.woocommerce-verification-required { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.bmc-rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin: 0 0 16px; }
.bmc-rev-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bmc-rev-avg { font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.bmc-rev-n { font-size: 14px; color: var(--ink-soft); }
.bmc-rev-bars { list-style: none; display: grid; gap: 3px; margin: 0; padding: 0; min-width: 220px; flex: 0 1 320px; }
.bmc-rev-bar { display: grid; grid-template-columns: 12px minmax(0, 1fr) 24px; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.bmc-rev-bar-t { display: block; height: 6px; background: var(--rule-light); }
.bmc-rev-bar-t > span { display: block; height: 100%; background: #F5B400; }
.bmc-rev-bar-n { text-align: right; }
.commentlist { margin: 0; padding: 0; list-style: none; }
.commentlist.bmc-rev-cols { column-gap: 12px; }
.commentlist.bmc-rev-cols li.review { break-inside: avoid; margin: 0 0 12px; padding: 16px; border: 1px solid var(--rule); background: #fff; }
.commentlist.bmc-rev-cols li.review[hidden] { display: none; }
.comment_container { display: block; }
.comment_container .avatar { display: none; }
.comment-text .star-rating { margin-bottom: 4px; }
.comment-text .description { font-size: 15px; line-height: 1.55; }
.comment-text .description p { margin: 0 0 8px; }
.comment-text .description p:last-child { margin-bottom: 0; }
.comment-text img { display: inline-block; width: 92px; height: 92px; object-fit: cover; margin: 6px 6px 0 0; }
.bmc-rev-cols .description:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.bmc-rev-read { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -10px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; color: var(--ink); }
.bmc-rev-read:hover { color: var(--red); }
.bmc-rev-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.bmc-rev-pager[hidden] { display: none; }
.bmc-rev-pager .bm-pdp-more { margin-top: 0; }
.bmc-rev-shown { font-size: 14px; color: var(--ink-soft); }
.bm-rev-proscons, .bm-review-pros-cons { margin-top: 6px; font-size: 14px; line-height: 20px; }
/* Portions from the first paint, so nothing jumps: the script takes over from these rules */
@media (max-width: 767px) { .bmc-rev-cols:not(.is-ready) > li:nth-child(n+5) { display: none; } }
@media (min-width: 768px) { .bmc-rev-cols.is-many:not(.is-ready) > li:nth-child(n+7) { display: none; } }

/* ===== The bar with the button: appears when the main button is out of sight ===== */
.bmc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -12px rgba(10,14,20,.18); transform: translateY(110%); visibility: hidden; transition: transform .22s cubic-bezier(.16,1,.3,1), visibility .22s; padding-bottom: env(safe-area-inset-bottom); color: var(--ink); }
.bmc-bar.on { transform: none; visibility: visible; }
.bmc-bar-i { display: flex; align-items: center; gap: 12px; max-width: 1480px; margin: 0 auto; padding: 8px 16px; }
.bmc-bar-t { flex: 1; min-width: 0; }
.bmc-bar-price { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 18px; line-height: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.bmc-bar-note { display: block; font-size: 12px; line-height: 16px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmc-bar-note:empty { display: none; }
.bmc-bar-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 150px; padding: 10px 16px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #fff; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 15px; line-height: 20px; letter-spacing: -0.01em; cursor: pointer; transition: background-color .2s, border-color .2s; }
.bmc-bar-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.bmc-bar-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A move by translate, not by bottom: it is not a layout shift, and the plate moves whenever the bar comes up */
.bmc-btn-away .bm-chat-plate { translate: 0 -64px; }
@media (prefers-reduced-motion: reduce) { .bmc-bar { transition: none; } }

@media (min-width: 768px) {
  .bmc-crumbs .woocommerce-breadcrumb { display: block; }
  .bmc-crumb-back { display: none; }
  .bmc-facts { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-left: 0; margin-right: 0; padding: 0; overflow: visible; }
  .bmc-hero .summary { margin: 0; border: 1px solid var(--rule); }
  .bm-pdp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .commentlist.bmc-rev-cols { column-count: 2; }
  .bmc-videos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .single-product div.product { --gal-ratio: 5 / 4; }
  .single-product .woocommerce-notices-wrapper { padding: 0 40px; }
  .bmc-hero { padding-bottom: 28px; }
  /* The panel starts right under the breadcrumb, so its button is on the first screen */
  .bmc-hero-g { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 20px; align-items: start; }
  .bmc-hero-h { grid-column: 1; grid-row: 1; }
  .bmc-hero-h .woocommerce-product-details__short-description { font-size: 16px; }
  .bmc-hero-l { grid-column: 1; grid-row: 2; }
  .bmc-hero .summary { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: var(--rail-top, 100px); }
  .bmc-steps { padding: 24px; }
  .summary-inner .price { font-size: 32px; }
  .bmc-total .price { font-size: 30px; }
  .summary-inner { --card-gap: 5px; }
  .bm-pdp-tgl { min-height: 48px; padding: 7px 12px; }
  .bm-pdp-card { padding: 7px 12px; }
  .flex-control-thumbs li { flex-basis: 80px; width: 80px; height: 80px; }
  .woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: 88px; }
  .flex-direction-nav a { display: block; }

  /* Few options: both blocks end on one line, neither looks small next to the other */
  .bmc-hero--buy .bmc-hero-g { grid-template-rows: auto; align-items: stretch; }
  .bmc-hero--buy .bmc-hero-l { grid-column: 1; grid-row: 1; }
  .bmc-hero--buy .summary { grid-column: 2; grid-row: 1; position: static; }

  .bmc-band { padding: 56px 0; }
  .bmc-band--meta { padding-top: 0; }
  .bmc-band > .wrap > * + *, .bmc-split > div > * + * { margin-top: 48px; }
  .bmc-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .bm-content-block > h2, .bm-pdp .cmp-short h2, .bm-sec > h2:first-child { margin-bottom: 22px; font-size: clamp(32px, 3vw, 44px); line-height: 1; }
  .bm-content-fit { column-count: 2; column-gap: 40px; }
  .bm-content-fit > h2 { column-span: all; }
  .bm-content-fit .bm-qa { break-inside: avoid; border-top: 1px solid var(--rule); border-bottom: 0; }
  .bm-content-table tr { grid-template-columns: 34% minmax(0, 1fr); }
  .bmc-cols .bm-content-block { column-count: 2; column-gap: 56px; }
  .bmc-cols .bm-content-block > h2 { column-span: all; }
  .bmc-cols .bm-content-block > *:not(h2) { break-inside: avoid; }
  .bmc-strip .bm-content-table tbody { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
  .bmc-rows2 .bm-content-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 0; }
  .bmc-rows2 .bm-content-table tr:nth-child(-n+2) { border-top: 1px solid var(--rule); }
  .commentlist.bmc-rev-cols { column-count: 3; }
  .bmc-rev-head { margin-bottom: 22px; }
  /* One film on its own: its name and caption on the left half, the film on the right half. Across 1400 px its picture only looks blurred. */
  .bmc-videos--1 .bm-content-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  .bmc-videos--1 .bmc-video-cap { grid-column: 1; margin: 0 0 10px; }
  .bmc-videos--1 .bmc-video-h { font-size: 22px; line-height: 28px; }
  .bmc-videos--1 .bm-pdp-video { grid-column: 2; grid-row: 1 / span 2; }
  .bmc-videos--1 .bm-pdp-video-t { grid-column: 1; grid-row: 2; margin: 0; font-size: 15px; line-height: 22px; }

  /* The bar stays on a desktop too: under the top the panel is gone */
  .bmc-bar-i { padding: 10px 40px; }
  .bmc-bar-t { display: flex; align-items: baseline; flex-direction: row-reverse; justify-content: flex-end; gap: 16px; }
  .bmc-bar-note { font-size: 14px; }
  /* The buy box stands at the right edge: on the right the chat plate would cover its button */
  .single-product .bm-chat-plate { right: auto; left: calc(24px + env(safe-area-inset-left)); }
  .single-product .bm-chat-window { right: auto; left: calc(24px + env(safe-area-inset-left)); }
}

@media (min-width: 1200px) {
  .bm-pdp-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .bm-pdp-products.has-more .bm-pdp-pc:nth-child(n+6) { display: none; }
  .bmc-more-d { display: inline; }
  .bmc-more-m { display: none; }
  .bmc-more--narrow { display: none; }
}
