/* ---------- Prints: catalogue + viewer. The whole section takes the visitor's chosen wall colour (default off-white);
   text and lines take the wall's opposite colour (window.wjrInk in header.php). ---------- */
/* Ink follows the site's --ink / --soft / --rule, which take the wall's opposite colour (header.php, William 15 Nov 2026). */
body.wjr-prints { --wall: var(--paper, #F9F6EE); --ink-soft: var(--soft); --line: var(--rule);
	background: var(--wall); color: var(--ink); overflow-x: clip; transition: background-color 0.6s ease, color 0.6s ease; }
.wjr-prints :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wjr-prints .shop { background: var(--wall); transition: background-color 0.6s ease; }
/* The prints section is full screen: the page never scrolls; only the prints themselves do (the spread, the stack).
   Without JavaScript the page scrolls normally. The header bar floats over it (header.php, .bar--over). */
html.js:has(body.wjr-prints) { overflow: hidden; }
.wjr-prints .bar a { transition: color 0.6s ease; }
/* Moving between the print stack and a project's prints: the pages cross-fade and the header stays still. */
@view-transition { navigation: auto; }
.wjr-prints .bar { view-transition-name: wjr-bar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
.wjr-prints .skip-link { background: var(--ink); color: var(--wall); }

/* ---------- The spread (/prints/{series}/, /prints/?all=1): all the project's prints laid out across the full screen,
   each sitting slightly crooked (its own tilt and offset, set in prints.php), with a white border and a soft shadow.
   The spread is the only thing that scrolls; it scrolls plainly (no trailing motion since 15 Nov 2026). ---------- */
.shop__spread { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: calc(var(--head) + 28px) 16px 72px; }
.shop__spread::-webkit-scrollbar { display: none; }
.admin-bar .shop__spread { top: 46px; }
@media (min-width: 783px) { .admin-bar .shop__spread { top: 32px; } }

.shop__head { max-width: 640px; margin: 0 auto 40px; text-align: center; transition: opacity 0.5s ease; }
.shop__up { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.shop__up::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.shop__up:hover { color: var(--ink-soft); }
.shop__title { margin: 6px 0 0; font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; } /* set like the name in the header */
.shop__count { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; }

/* Rows of prints, not a grid: each print's place has its own width (--cw, prints.php), and every row is centred, so the prints never line up in columns (v0.32.0). */
.shop__grid { --cell: 44%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 6px; max-width: 1800px; margin: 0 auto; }
/* The table runs past the screen edges, so the outer prints can hang slightly off the page (William, 16 Nov 2026, v0.32.3). */
.shop__grid { width: calc(100% + 10vw); max-width: none; margin-left: -5vw; }
/* The title block is one of the grid's items, so prints can sit either side of it (desktop, below); the list itself adds no box. */
.shop__prints { display: contents; margin: 0; padding: 0; list-style: none; }
.shop__grid > .shop__head { flex: 0 0 100%; margin: 0 auto; position: relative; z-index: 20; }
.print { flex: 0 0 calc(var(--cell) * var(--cw, 1)); position: relative; display: flex; justify-content: center; min-width: 0; container-type: inline-size; transition: opacity 0.5s ease, transform 0.6s ease; }
/* Same long side for every print (v0.32.4): a landscape print's width = a portrait print's height.
   --k = width as a share of the long side, from prints.php (1 for landscape). */
.print a { --bw: 7px; position: relative; z-index: var(--z, 1); display: block; width: calc(var(--k, 0.667) * 1.22 * min(78cqi, 50vh) + 2 * var(--bw)); max-width: 112%; transform: translate(var(--ox, 0), var(--oy, 0px)) rotate(var(--rot, 0deg)); }
.print a:hover, .print a:focus-visible { z-index: 30; } /* the print you point at comes to the top of the table */
.print img { display: block; width: 100%; height: auto; border: var(--bw) solid #FFFFFF; background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 10px 26px rgba(0, 0, 0, 0.14); transition: box-shadow 0.4s ease, transform 0.4s ease; }
/* Transparent (lenticular): no border; hovering slowly fades to the second view (2 s, as on the project page) and back. */
.print[data-cat="transparent"] a { --bw: 0px; }
.print[data-cat="transparent"] img { background: none; }
.print__after { position: absolute; inset: 0; height: 100% !important; object-fit: cover; opacity: 0; pointer-events: none; box-shadow: none !important; transition: opacity 2s ease, transform 0.4s ease !important; }
.print a:focus-visible .print__after { opacity: 1; }
/* Every size sold out: a red "Sold out" sticker on the corner of the print, like the dot in a gallery. */
.print__sold { position: absolute; top: calc(var(--bw) + 8px); right: calc(var(--bw) + 8px); z-index: 2; padding: 5px 10px; border-radius: 999px; background: #B3261E; color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transform: rotate(4deg); pointer-events: none; }
@media (hover: hover) {
	.print a:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 18px 38px rgba(0, 0, 0, 0.2); }
	.print a:hover .print__after { opacity: 1; }
}
/* With JavaScript the prints wait, piled, until they spread out from the middle (a 2.5 s fallback shows them anyway). */
html.js .shop__grid:not(.is-spread) { animation: wjr-late 0s 2.5s both; }
/* Brick rows (prints.js, v0.32.1): rows alternate n / n − 1 prints; every print the same size (--ps), whatever share of its row it has. */
.shop__grid.is-brick { column-gap: 0; }
.shop__grid.is-brick .print a { width: calc(var(--k, 0.667) * 1.22 * var(--ps, 220px) + 2 * var(--bw)); max-width: none; flex: none; } /* long side = 1.22 × --ps for every print; a wide print may overlap its neighbours rather than shrink */
@keyframes wjr-late { from { visibility: hidden; } to { visibility: visible; } }

/* While a print is open, everything else steps back. */
.shop.is-viewing .print, .shop.is-viewing .shop__head { opacity: 0; transform: scale(0.97); pointer-events: none; transition: opacity 0.5s ease, transform 0.6s ease; }
.shop.is-viewing .print { transition-delay: calc(var(--d, 0) * 1ms); }
/* Wide screens: the title sits in the middle of the first row, with prints either side of it (William, 16 Nov 2026, v0.31.0). */
@media (min-width: 1200px) { /* the first print sits left of the title, the rest follow */
	.shop__grid > .shop__head { flex: 0 0 auto; width: min(560px, 40%); order: 1; }
	.print { order: 2; }
	.print:first-child { order: 0; }
}

/* ---------- Viewer: one full-screen room. The wall colour fills the whole screen; text and buttons switch to
   black or white to stand out against it. The first screen fits the window; "More details" opens below it,
   and the whole page scrolls as one. ---------- */
/* The print viewer starts under the header bar, so the bar (Cart, the menu) stays as on the other prints pages (William, 24 Nov 2026). */
body.wjr-prints { --vt: calc(var(--head) + var(--wp-admin--admin-bar--height, 0px)); }
.wjr-prints .bar--over { z-index: 60; }
.viewer { position: fixed; inset: var(--vt, 0) 0 0; z-index: 50; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); transition: color 0.6s ease; }
.viewer[hidden] { display: none; }
.viewer__wash { position: fixed; inset: var(--vt, 0) 0 0; background: var(--wall); transition: background-color 0.6s ease; }

/* First screen. Phone: the print on top, then the info, then "More details". */
.viewer__screen { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: calc(100vh - var(--vt, 0px)); min-height: calc(100svh - var(--vt, 0px)); padding: 68px 20px 32px; /* room under Back on phones; the header bar is above the viewer now (24 Nov 2026) */ }
.viewer__back { position: absolute; top: 16px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.viewer__back::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.viewer__room { position: relative; width: 100%; height: 58vh; display: flex; flex-direction: column; }
.viewer__info { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 420px; text-align: center; }
.viewer__info > * { margin: 0; }
.viewer__info.is-in > * { animation: wjr-rise 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 260ms); }
@keyframes wjr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Project title first and largest; the print's own name (its timestamp) small underneath. */
.viewer__title { display: flex; flex-direction: column; align-self: stretch; gap: 14px; font-weight: 400; } /* as wide as the info column, so a long title is measured against it */
.viewer__info { font-family: inherit; } /* Inter, as the name in the header and the More details text */
.viewer__series { display: block; font-weight: 600; font-size: clamp(2.25rem, 10vw, 3.25rem); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; } /* prints.js shrinks a long title to fit its column */ /* set like the name in the header */
.viewer__name { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); } /* lighter parts: like the More details text */
.viewer__price { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.viewer__sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.viewer__sizes button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 400; white-space: nowrap; cursor: pointer; transition: border-color 0.2s, background-color 0.3s, color 0.3s; }
.viewer__sizes button:hover { border-color: var(--ink); }
.viewer__sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--wall); }
.viewer__sizes button[data-sold] { text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.6; } /* that size is sold out */
.viewer__stock { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink-soft); }
.viewer__buy { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 340px; min-height: 56px; background: var(--ink); color: var(--wall); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; transition: background-color 0.3s, color 0.3s, opacity 0.2s; }
.viewer__buy:hover { opacity: 0.85; }
.viewer__buy[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
/* Buy now + Add to cart (William, 24 Nov 2026): side by side on phones, one above the other beside the print on computers. */
.viewer__actions { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.viewer__actions .viewer__buy { flex: 1 1 0; max-width: none; }
.viewer__add { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 10px; border: 1px solid var(--ink); background: none; color: var(--ink);
	font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.viewer__add:hover, .viewer__add.is-added { background: var(--ink); color: var(--wall); }
.viewer__add[hidden] { display: none; }
html:not(.js) .viewer__add { display: none; } /* it needs JavaScript; Buy now works without */
/* The header on the prints pages: Cart with its icon and the number of prints in it, instead of the name. */
.bar__cart { display: inline-flex; align-items: center; gap: 8px; }
.bar__cart svg { flex: none; }
.bar__count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--wall); font-size: 10px; font-weight: 600; letter-spacing: 0; transition: background-color 0.6s ease, color 0.6s ease; }
.bar__count[hidden] { display: none; }

/* More details: centred at the bottom of the first screen. */
.viewer__more { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 8px 12px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.viewer__more::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.4s ease; }
.viewer__more[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
/* More details: full width, with room above it below the print, and smaller text (William, 16 Nov 2026). */
.viewer__details { position: relative; max-width: none; margin: 0; padding: 72px 24px 120px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
@media (min-width: 900px) { .viewer__details { padding: 96px 48px 140px; } }
.viewer__details[hidden] { display: none; }
.viewer__note { margin: 0 0 1.5em; color: var(--ink); font-size: 15px; line-height: 1.55; }
.viewer__desc p { margin: 0 0 1em; }
.viewer__desc h2, .viewer__desc h3 { margin: 2em 0 0.6em; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.viewer__desc a { color: inherit; }
.viewer__desc strong { color: var(--ink); font-weight: 600; }

/* The room: the print on the wall, sized in proportion to its real size (prints.js). */
.room { position: relative; flex: 1 1 auto; overflow: hidden; }

.art { --frame: 0px; --mount: 0px; --border: 6px; position: absolute; left: 50%; top: var(--art-mid, 46%); margin: 0; transform: translate(-50%, -50%); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); width: var(--art-w, 200px); }
.art { perspective: 1800px; }
.art__frame { padding: var(--frame); background: var(--frame-bg, transparent); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 24px 34px 60px rgba(0, 0, 0, 0.24);
	transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); transition: padding 0.5s ease, background 0.5s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); }
.art.is-following .art__frame { transition: padding 0.5s ease, background 0.5s ease, transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1); } /* turns to face the cursor (prints.js) */
.viewer.is-flat .art__frame { transform: none; transition: none; } /* flat while it flies in and out */
.art__frame.is-push { animation: wjr-push 1s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes wjr-push { from { transform: translateZ(-500px) rotateY(-30deg); } to { transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); } }
.art[data-frame="none"] .art__frame { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 20px 30px 54px rgba(0, 0, 0, 0.2); }
.art[data-frame="black"] { --frame-bg: #141414; }
.art[data-frame="oak"] { --frame-bg: linear-gradient(135deg, #C79E6E, #A47A4C 55%, #B98E5E); }
/* White frame removed; walnut and silver (brushed aluminium) added (William, 16 Nov 2026). */
.art[data-frame="walnut"] { --frame-bg: linear-gradient(135deg, #6B4A33, #4A3122 55%, #5E4130); }
.art[data-frame="silver"] { --frame-bg: linear-gradient(135deg, #D9DADB, #A9ABAE 50%, #C8C9CB); }
.art__mount { padding: var(--mount); background: #FBFAF7; transition: padding 0.5s ease; }
.art[data-frame="none"] .art__mount { padding: 0; } /* a mount only shows inside a frame */
.art__paper { position: relative; padding: var(--border); background: #FFFFFF; transition: padding 0.5s ease; }
.art__paper::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); pointer-events: none; }
.art__img { display: block; width: 100%; height: auto; }
.art__img--b { position: absolute; inset: var(--border); width: calc(100% - 2 * var(--border)); height: calc(100% - 2 * var(--border)); opacity: 0; transition: opacity 2s ease; }
.art.is-turned .art__img--b { opacity: 1; } /* Transparent: lenticular, the second view fades in */
.art__size { display: none; } /* no size caption under the print (William, 12 Nov) */
.art__hint { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.art__hint { top: calc(100% + 18px); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* The theme's own .tools (other pages) styles buttons white with a shadow; reset that inside the viewer. */
.viewer .tools { font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; }
.viewer .tools button:hover { text-decoration: none; }
.viewer .tools .tool__btn:hover { color: var(--ink); }
.viewer .pop button:hover { color: #111; }

/* Room tools (option B): three round buttons under the print – Wall, Frame, Mount – each opening its own pop-up. */
.viewer .tools { display: flex; justify-content: center; gap: 36px; padding-top: 8px; }
.tool { position: relative; }
.viewer .tools .tool__btn { display: flex; min-height: 0; height: auto; width: auto; max-width: none; margin: 0; opacity: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.tool__ring { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: box-shadow 0.2s; }
.viewer .tool__btn:hover .tool__ring { box-shadow: inset 0 0 0 1px var(--ink); }
.viewer .tool__btn[aria-expanded="true"] .tool__ring { box-shadow: inset 0 0 0 2px var(--ink); }
.pop { text-transform: none; letter-spacing: normal; font-weight: 400; position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 3; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; width: max-content; max-width: min(340px, 86vw); padding: 16px 18px; background: #FFFFFF; color: #111; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18); animation: wjr-pop 0.25s ease both; }
.pop[hidden] { display: none; }
#tool-frame { width: max-content; max-width: min(380px, 90vw); } /* five frames fit on one line */
#tool-wall:not([hidden]) { display: grid; grid-template-columns: repeat(6, 30px); gap: 12px; } /* 6 full rows: 35 wall colours, then any colour */
@keyframes wjr-pop { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.viewer .pop button { min-width: 0; width: auto; color: #666; min-height: 40px; padding: 0 10px; border: 0; border-bottom: 1.5px solid transparent; background: none; color: #666; font: inherit; font-size: 13px; cursor: pointer; }
.viewer .pop button:hover { color: #111; }
.viewer .pop button[aria-pressed="true"] { color: #111; border-bottom-color: #111; }
.pop button:disabled { opacity: 0.35; cursor: default; }
.viewer .pop .pop__swatch { flex: none; position: relative; width: 30px; min-width: 30px; max-width: 30px; height: 30px; min-height: 30px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); cursor: pointer; }
.viewer .pop .pop__swatch[aria-pressed="true"] { outline: 1.5px solid #111; outline-offset: 3px; }
.pop__swatch--pick { display: inline-block; background: conic-gradient(#E05252, #E0C352, #52E07A, #52B6E0, #7A52E0, #E052B6, #E05252) !important; }
.pop__swatch--pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pop__note { flex: 1 1 100%; margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: #767676; text-align: center; white-space: normal; }

/* The print in flight between the catalogue and the wall. */
.fly { position: fixed; z-index: 60; margin: 0; background: #FFFFFF; pointer-events: none; transform-origin: 0 0; will-change: transform; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22); } /* white: the print's border travels with it */
.fly img { display: block; width: 100%; height: 100%; }
.viewer.is-flying .art { visibility: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 700px) {
	.shop__spread { padding-left: 32px; padding-right: 32px; }
	.shop__grid { --cell: 30%; gap: 16px 8px; }
	.print a { --bw: 10px; }
}
@media (min-width: 900px) {
	.shop__spread { padding: calc(var(--head) + 40px) 64px 96px; }
	.shop__grid { --cell: 290px; gap: 18px 10px; }
	.print a { --bw: 12px; }

	/* First screen (option A): the print centred on the whole screen, as large as the window allows; the info in the
	   bottom-left corner (project title largest); Wall / Frame / Mount stacked on the right; More details bottom centre. */
	.viewer__screen { display: block; position: relative; height: calc(100vh - var(--vt, 0px)); min-height: 500px; padding: 0; }
	.viewer__back { top: 24px; left: 48px; }
	.viewer__room { position: absolute; z-index: 1; inset: 64px 0 60px; height: auto; pointer-events: none; }
	.viewer__room .room { flex: 1 1 auto; overflow: visible; }
	.viewer__room .art, .viewer__room .tools { pointer-events: auto; }
	/* The info is one block on the left, centred vertically on the same line as Wall / Frame / Mount on the right. */
	.viewer__info { position: absolute; z-index: 2; top: 64px; bottom: 64px; left: 48px; width: 300px; max-width: none; justify-content: center; align-items: flex-start; text-align: left; gap: 14px; }
	.viewer__title { display: flex; gap: 10px; }
	.viewer__series { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
	.viewer__name { font-size: 14px; }
	.viewer__price { font-size: clamp(1.5rem, 2vw, 2rem); margin-top: 4px; }
	.viewer__sizes { justify-content: flex-start; gap: 6px; }
	.viewer__sizes button { min-height: 36px; padding: 0 11px; font-size: 13px; }
	.viewer__stock { font-size: 12px; }
	.viewer__buy { width: 220px; min-height: 46px; font-size: 12px; letter-spacing: 0.2em; }
	.viewer__actions { flex-direction: column; width: 220px; }
	.viewer__actions .viewer__buy, .viewer__add { flex: none; width: 220px; min-height: 46px; }
	.viewer .tools { position: absolute; z-index: 3; top: 64px; bottom: 64px; right: 44px; flex-direction: column; justify-content: center; gap: 26px; padding: 0; }
	.pop { left: auto; right: calc(100% + 16px); top: 0; bottom: auto; transform: none; animation-name: wjr-pop-side; } /* top of the box lines up with the top of the round icon */
	.viewer__more { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; }
}
@keyframes wjr-pop-side { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.art__frame, .art.is-following .art__frame { transform: none; transition: padding 0.5s ease, background 0.5s ease; }
	.art__frame.is-push { animation: none; }
	.shop.is-viewing .print { transition-delay: 0ms; }
}

/* ---------- The print stack: first screen of /prints/ (parts/stack.php, stack.js) ----------
   One print per project, piled on the wall. Prints keep their own shape (any orientation) with a white border.
   Without JavaScript: a simple grid of project links. */
.stack { --pad: 20px; position: relative; padding: 12px var(--pad) 24px; color: var(--ink); }
.stack__label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.stack__title { margin: 6px 0 0; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.05; text-transform: uppercase; }
.stack__from { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.stack__actions { display: flex; gap: 10px; margin-top: 18px; }
.stack__view { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--ink); color: var(--wall); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.stack__view:hover { color: var(--wall); opacity: 0.85; }
.stack__arrow { min-width: 48px; min-height: 48px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 400 18px Inter, system-ui, sans-serif; cursor: pointer; }
.stack__all { display: inline-block; margin-top: 16px; padding: 6px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.stack__cards { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stack__card a { display: block; color: var(--ink); text-decoration: none; }
.stack__card img { display: block; max-width: 100%; height: auto; background: #FFFFFF; padding: 9px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.stack__name { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.stack__arrow, .stack__nums, .stack__modes { display: none; }
/* Pile / Grid (William, 16 Nov 2026, v0.30.0; Scattered + Shuffle removed v0.30.2; 'Tidy' renamed Grid v0.30.3 – tried in the bottom-left corner, put back under the details v0.30.4) */
.stack.is-live .stack__modes { display: inline-flex; margin-top: 22px; border: 1px solid var(--ink); }
.stack__modes button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 600 11px Inter, system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.stack__modes button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
.stack__modes button:hover { opacity: 0.8; }
.stack.is-moving .stack__card { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: calc(var(--i) * 35ms); }
.stack.is-live.is-arranged .stack__cards { transform: none; }
.stack.is-live .stack__cards { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); }
.stack.is-live.is-arranged .stack__card:not(.is-top) { pointer-events: auto; }
.stack.is-arranged .stack__card:hover, .stack.is-arranged .stack__card:focus-within { z-index: 999 !important; }
.stack.is-arranged .stack__card:hover img { box-shadow: 0 26px 50px rgba(0, 0, 0, 0.22); }
.stack.is-arranged .stack__arrow, .stack.is-arranged .stack__nums { visibility: hidden; }

/* With JavaScript: the pile */
.stack.is-live { position: fixed; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; padding-top: calc(var(--head) + 4px); padding-bottom: 20px; }
.admin-bar .stack.is-live { top: 46px; }
@media (min-width: 783px) { .admin-bar .stack.is-live { top: 32px; } }
.stack.is-live .stack__arrow { display: inline-block; }
.stack.is-live .stack__info { grid-row: 2; position: relative; z-index: 300; }
.stack.is-live .stack__pile { grid-row: 1; position: relative; perspective: 1400px; touch-action: none; }
.stack.is-live .stack__cards { --lean: 14deg; position: absolute; inset: 0; margin: 0; display: block; transform: rotateX(calc(var(--lean) + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); }
.stack.is-following:not(.is-arranged) .stack__cards { transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1); } /* the pile turns to face the cursor, like the print in the viewer (stack.js, William 16 Nov) */
.stack.is-live .stack__card { position: absolute; left: 50%; top: 50%; }
.stack.is-live .stack__card { will-change: transform; } /* stack.js moves the prints every frame, following the scroll */
/* Every print in the pile has the same long side (--long): a portrait print's height = a landscape print's width (William, 16 Nov). */
.stack.is-live .stack__card { --long: min(46svh, 72vw); }
.stack.is-live .stack__card img { width: auto; height: var(--long); max-width: none; padding: 9px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.stack.is-live .stack__card.is-wide img { width: var(--long); height: auto; }
.stack.is-live .stack__card.is-top img { box-shadow: 0 26px 50px rgba(0, 0, 0, 0.22); }
.stack.is-live .stack__card:not(.is-top) { pointer-events: none; }
.stack.is-live .stack__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack.is-live .stack__view { flex: 1; justify-content: center; }

@media (min-width: 900px) {
	.stack { --pad: 48px; }
	.stack.is-live { grid-template-columns: 340px minmax(0, 1fr) 32px; grid-template-rows: minmax(0, 1fr) auto; column-gap: 32px; padding-top: calc(var(--head) + 4px); }
	.stack.is-live .stack__info { grid-row: 1; grid-column: 1; align-self: center; }
	.stack.is-live .stack__view { flex: 0 0 auto; }
	.stack.is-live .stack__pile { grid-row: 1; grid-column: 2; perspective: 1600px; }
	.stack.is-live .stack__cards { --lean: 16deg; }
	.stack.is-live .stack__card { --long: min(66vh, 36vw); }
	.stack.is-live .stack__card img { padding: 14px; }
	.stack.is-live .stack__nums { grid-row: 1; grid-column: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px; position: relative; z-index: 300; }
	/* Dots down the right, one per project (William, 12 Nov, v0.14.0 – replaced the I–V / 01… numbers). */
	.stack.is-live .stack__nums { gap: 0; }
	.stack__nums button { display: flex; align-items: center; justify-content: flex-end; width: 32px; height: 20px; padding: 0 6px 0 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
	.stack__nums button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.28; transition: opacity 0.3s ease, transform 0.3s ease; }
	.stack__nums button:hover::before { opacity: 0.6; }
	.stack__nums button[aria-current]::before { opacity: 1; transform: scale(1.4); }
	.stack__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones (24 Nov 2026): Entire catalogue on its own line under the Pile / Grid switch, lined up on the left (they were 5 px apart on one line). */
@media (max-width: 899px) { .stack.is-live .stack__modes ~ .stack__all { display: table; margin-top: 14px; } }

/* ---------- Checkout (William, 24 Nov 2026, 16:39) ----------
   page-checkout.php, assets/basket.js. No progress bar. Left: a pile of the prints in the basket on the page's own colour, as
   large as the space allows (basket.js sizes and places them). Right: the step, the button to the next step underneath, then
   Back and the policy links. Step 1 is a plain list (no title, no pictures); steps 2 and 3 are WooCommerce's form – one form,
   only the current step's parts shown. Computers: nothing scrolls. Phones: the pile on top, the rest underneath. */
html.js:has(body.wjr-basket) { overflow: auto; }
.viewer:not([hidden]) .art { view-transition-name: wjr-art; }
::view-transition-group(wjr-art) { animation-duration: 0.45s; }
body.wjr-basket .bar__cart { display: none; } /* no Cart link on the checkout (16:34) */
.co { --co-field: color-mix(in srgb, var(--wall), #FFFFFF 60%); display: flex; flex-direction: column; color: var(--ink); font-size: 14px; }
/* The pile. */
.co__pile { position: relative; height: 44svh; min-height: 240px; margin: 8px 16px 0; }
.co__print { position: absolute; box-sizing: border-box; background: #FFFFFF; box-shadow: 10px 16px 32px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.12); transform-origin: 50% 60%;
	opacity: 0; transition: opacity 0.4s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
	transform: perspective(1600px) translateY(var(--lift, 0px)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--rot, 0deg)) scale(var(--s, 1)); }
/* Hover (20:22): the print, or its name in the list, brings it forward and enlarges it. */
.co__print.is-hot { --s: 1.1; --lift: -14px; z-index: 999 !important; box-shadow: 18px 34px 64px rgba(0, 0, 0, 0.26), 0 2px 6px rgba(0, 0, 0, 0.14); }
.co__line.is-hot .co__text strong { text-decoration: underline; text-underline-offset: 4px; }
.co__pile.is-laid .co__print { opacity: 1; }
.co__print img { display: block; width: 100%; height: auto; aspect-ratio: var(--w) / var(--h); object-fit: cover; }
/* The side: the step, then the buttons. */
.co__side { display: flex; flex-direction: column; gap: 22px; padding: 20px 20px 0; }
.co__screens { min-height: 0; }
.co__lines { margin: 0; padding: 0; list-style: none; }
.co__line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; } /* no dividing lines (William, 20:19) */
.co__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.co__text strong { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.co__text span, .co__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co__text small { color: var(--ink-soft); font-size: 12px; }
.co__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.co__price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.co__remove { color: var(--ink-soft); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.co__remove:hover { color: var(--ink); }
.co__sums { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.co__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.co__row--soft { color: var(--ink-soft); }
.co__row--total { padding-top: 4px; font-size: 18px; font-weight: 600; }
.co__note { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.co__nav { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.co__next, .co__back { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px solid var(--ink); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.co__next { background: var(--ink); color: var(--wall); }
.co__next:hover { opacity: 0.85; }
.co__back { min-height: 44px; background: none; color: var(--ink); }
.co__back:hover { background: var(--ink); color: var(--wall); }
.co__nav [hidden] { display: none !important; }
.co__next.is-pay::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.co .legal--basket { justify-content: center; padding: 4px 0 0; gap: 16px; }
.basket-empty { text-align: center; }

/* What each step shows (two steps since 20:24). 1: the list and the pile. 2: no pile – details, address, delivery and payment
   on one screen, then the totals and Pay. */
.co[data-step="1"] .co__form { display: none; }
.co[data-step="2"] .co__pile { display: none; }
.co[data-step="2"] .co__form :is(.wp-block-woocommerce-checkout-shipping-method-block, .wp-block-woocommerce-checkout-pickup-options-block, .wc-block-checkout__actions) { display: none !important; }
.co[data-step="2"] .co__screens { display: flex; flex-direction: column; }
.co[data-step="2"] .co__order { order: 2; }
.co[data-step="2"] .co__order :is(.co__lines, .co__note) { display: none; }
.co[data-step="3"] .co__sums { margin-top: 4px; }

/* WooCommerce's form: sections named plainly, everything not needed for paying taken away. */
.co .wc-block-checkout, .co .wc-block-components-sidebar-layout { margin: 0; padding: 0; font-family: inherit; color: var(--ink); }
.co .wc-block-components-sidebar-layout { display: block; }
.co .wc-block-components-main { width: 100%; padding: 0; }
.co :is(.wc-block-checkout__sidebar, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-express-payment, .wc-block-components-express-payment-continue-rule,
	#order-notes, .wc-block-components-checkout-return-to-cart-button, .wc-block-components-checkout-step__description, .wc-block-components-checkout-step__heading-content) { display: none !important; }
.co .wc-block-components-form .wc-block-components-checkout-step { margin: 0 0 14px; padding: 0; break-inside: avoid; }
.co .wc-block-components-checkout-step__container::after { display: none; }
.co .wc-block-components-checkout-step__heading, .co .wc-block-components-checkout-step__heading-container { margin: 0 0 2px; }
.co .wc-block-components-checkout-step__title { margin: 0; font-size: 0 !important; line-height: 1.3; }
.co .wc-block-components-checkout-step__title::before { content: none !important; }
.co .wc-block-components-checkout-step__title::after { position: static; display: inline; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none;
	color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.co #contact-fields .wc-block-components-checkout-step__title::after { content: "Your details"; }
.co #shipping-fields .wc-block-components-checkout-step__title::after { content: "Delivery address"; }
.co #billing-fields .wc-block-components-checkout-step__title::after { content: "Billing address"; }
.co #shipping-option .wc-block-components-checkout-step__title::after { content: "Delivery"; }
.co #payment-method .wc-block-components-checkout-step__title::after { content: "Payment"; }
/* Compact fields, two to a row where they're short. */
.co .wc-block-components-address-form { display: flex; flex-wrap: wrap; gap: 0 12px; }
.co .wc-block-components-address-form > * { flex: 1 1 100%; margin-top: 8px !important; }
.co .wc-block-components-address-form > :is(.wc-block-components-address-form__first_name, .wc-block-components-address-form__last_name,
	.wc-block-components-address-form__address_1, .wc-block-components-address-form__address_2, .wc-block-components-address-form__city, .wc-block-components-address-form__state, .wc-block-components-address-form__postcode, .wc-block-components-address-form__phone) { flex: 1 1 calc(50% - 6px); min-width: 0; }
.co .wc-block-components-address-form__address_2-toggle { display: none; } /* basket.js opens the Apartment field straight away (20:19) */
.co .wc-block-components-text-input, .co .wc-block-components-combobox, .co .wc-blocks-components-select { margin-top: 8px; }
.co .wc-block-components-text-input input, .co .wc-block-components-combobox .components-combobox-control__input,
.co .wc-blocks-components-select .wc-blocks-components-select__select, .co textarea {
	min-height: 44px; height: 44px !important; padding-top: 15px !important; padding-bottom: 2px !important; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 0; background: var(--co-field); color: var(--ink); font-family: inherit; font-size: 15px; box-shadow: none; }
.co .wc-blocks-components-select .wc-blocks-components-select__container { height: 44px; border-radius: 0; background: transparent; }
.co .wc-block-components-text-input input:focus, .co .wc-blocks-components-select__select:focus, .co .components-combobox-control__input:focus {
	border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; box-shadow: none; }
.co :is(.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox label) { color: var(--ink-soft); font-family: inherit; }
.co .wc-block-components-checkbox { margin-top: 8px; font-size: 13px; }
.co :is(.wc-block-components-checkbox__input, .wc-block-components-radio-control__input) { border-color: var(--ink); background: transparent; }
.co .wc-block-components-checkbox__input { border-radius: 0; }
.co .wc-block-components-checkbox__mark { fill: var(--ink); }
.co .wc-block-components-radio-control__input:checked::before { background: var(--ink); }
.co :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option) { border-radius: 0; box-shadow: inset 0 0 0 1px var(--ink) !important; background: var(--co-field); }
.co .wc-block-components-radio-control__option { padding-top: 12px; padding-bottom: 12px; }
.co .wc-block-components-radio-control__label { font-weight: 600; }
.co .wc-block-checkout__terms { margin: 0 0 12px; padding: 0; color: var(--ink-soft); font-size: 12px; break-inside: avoid; }
.co .wc-block-checkout__terms--with-separator { border-top: 0; }
.co .wc-block-checkout__actions { margin: 0; break-inside: avoid; }
.co .wc-block-checkout__actions_row { display: block; }
.co .wc-block-components-checkout-place-order-button { width: 100%; min-height: 54px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--wall);
	font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.co .wc-block-components-checkout-place-order-button .wc-block-components-button__text { display: inline-flex; align-items: center; gap: 10px; }
.co .wc-block-components-checkout-place-order-button .wc-block-components-button__text::before { content: ""; width: 15px; height: 15px; background: currentColor; /* the padlock */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.co .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }
.co .wc-block-components-notice-banner { border-radius: 0; font-size: 13px; }
.co a { color: inherit; }
.checkout-plain { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }



/* Phones: the pile on top; Back / Continue / Pay stay at the bottom of the screen. */
@media (max-width: 899px) {
	.co__nav { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px 14px; background: var(--wall); border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
	.co__next { flex: 1 1 auto; order: 2; }
	.co__back { order: 1; }
	.co .legal--basket { order: 3; flex-basis: 100%; }
}
/* Computers: one screen, nothing scrolls. The checkout moves up into the header's height (the bar is transparent here, its menu
   stays top right); the pile fills the left, the side is a column on the right, centred top to bottom. */
@media (min-width: 900px) {
	html.js:has(body.wjr-basket) { overflow: hidden; }
	body.wjr-basket .bar { background: transparent; pointer-events: none; }
	body.wjr-basket .bar :is(nav, details, a) { pointer-events: auto; }
	/* 20:15 (William): the step on the LEFT, the pile on the right. */
	.co { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); box-sizing: border-box;
		height: 100vh; height: 100svh; min-height: 460px; margin-top: calc(-1 * var(--head)); padding: 0 0 0 48px; }
	.co__side { grid-column: 1; grid-row: 1; }
	.co__pile { grid-column: 2; grid-row: 1; }
	.admin-bar .co { height: calc(100svh - 32px); }
	.co__pile { height: auto; min-height: 0; margin: var(--head) 0 16px; } /* clear of the menu top right */
	.co__side { justify-content: center; min-height: 0; padding: calc(var(--head) + 8px) 0 28px; gap: clamp(14px, 3svh, 24px); }
	.co__screens { overflow: hidden; }
	/* Your prints: the rows share the height, so the list never scrolls; with many prints, name and size only. */
	.co__order { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
	.co__lines { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; overflow: hidden; }
	.co__line { flex: 0 1 auto; min-height: 0; overflow: hidden; }
	.co__lines:has(> li:nth-child(5)) .co__text > span { display: none; }
	.co__lines:has(> li:nth-child(5)) .co__line { padding: 8px 0; }
	.co__lines:has(> li:nth-child(8)) .co__text small { display: none; }
	/* Step 2 in a narrow column: two fields to a row where they're short. */
	/* Step 2 in two columns (William, 20:27): details and address on the left; delivery, payment, terms, the totals and Pay on the
	   right. WooCommerce's wrappers are opened up (display: contents) so its sections and our totals share one grid (subgrid);
	   row 1 is for WooCommerce's notices, row 8 for the billing address when it differs. */
	.co[data-step="2"] { grid-template-columns: minmax(0, 1fr); padding: 0 48px; }
	.co[data-step="2"] .co__side { grid-column: 1; display: grid; width: 100%; max-width: 1000px; justify-self: center; align-content: center;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(8, auto); column-gap: clamp(40px, 5vw, 80px); row-gap: 0; }
	.co[data-step="2"] .co__screens { display: contents; }
	.co[data-step="2"] .co__form { grid-column: 1 / -1; grid-row: 1 / 9; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; min-width: 0; }
	.co[data-step="2"] .co__form :is(.wp-block-woocommerce-checkout, .wc-block-components-sidebar-layout, .wc-block-components-main, .wc-block-checkout__form) { display: contents !important; }
	.co[data-step="2"] .co__form .wp-block-woocommerce-checkout > :not(.wc-block-components-sidebar-layout),
	.co[data-step="2"] .co__form .wc-block-components-sidebar-layout > :not(.wc-block-components-main) { grid-column: 1 / -1; grid-row: 1; }
	.co[data-step="2"] .wc-block-checkout__form > * { grid-column: 1; grid-row: 8; align-self: start; min-width: 0; }
	.co[data-step="2"] .wc-block-checkout__form > #contact-fields { grid-row: 2; }
	.co[data-step="2"] .wc-block-checkout__form > #shipping-fields { grid-row: 3 / 8; }
	.co[data-step="2"] .wc-block-checkout__form > #shipping-option { grid-column: 2; grid-row: 2; }
	.co[data-step="2"] .wc-block-checkout__form > #payment-method { grid-column: 2; grid-row: 3; }
	.co[data-step="2"] .wc-block-checkout__form > #order-notes { grid-column: 2; grid-row: 4; }
	.co[data-step="2"] .wc-block-checkout__form > .wc-block-checkout__terms { grid-column: 2; grid-row: 5; }
	.co[data-step="2"] .co__order { grid-column: 2; grid-row: 6; position: relative; z-index: 1; max-height: none; }
	.co[data-step="2"] .co__nav { grid-column: 2; grid-row: 7; margin-top: 20px; position: relative; z-index: 1; }
}
@media (min-width: 900px) and (max-height: 760px) {
	.co__side { padding-top: var(--head); padding-bottom: 18px; }
	.co .wc-block-components-address-form > * { margin-top: 6px !important; }
	.co .wc-block-components-text-input { margin-top: 6px; }
	.co__line { padding: 8px 0; }
	.co__sums { gap: 5px; margin-top: 10px; }
	.co__note { margin-top: 8px; }
	.co__next { min-height: 46px; }
	.co__back { min-height: 38px; }
	.co .wc-block-components-form .wc-block-components-checkout-step { margin-bottom: 8px; }
	.co .wc-block-components-text-input input, .co .wc-blocks-components-select .wc-blocks-components-select__select, .co .wc-blocks-components-select .wc-blocks-components-select__container,
	.co .wc-block-components-combobox .components-combobox-control__input { min-height: 40px; height: 40px !important; }
	.co .wc-block-components-radio-control__option { padding-top: 9px; padding-bottom: 9px; }
	.co .wc-block-checkout__terms { margin-bottom: 6px; }
}
@media (min-width: 900px) and (max-height: 560px) { .co__screens { overflow: auto; } } /* a very short window: the step scrolls rather than cutting anything off */
/* Step 2 spacing (William, 25 Nov 2026, 14:51): the two columns start clear of the menu, nothing overlaps (the totals can no longer
   shrink under Pay / Back), even gaps between the sections, roomier fields – and if the window is too short, the step scrolls
   inside its own area (thin scrollbar) instead of spilling under the menu or off the bottom. */
@media (min-width: 900px) {
	.co[data-step="2"] { grid-template-rows: minmax(0, 1fr); }
	.co[data-step="2"] .co__side { align-self: stretch; min-height: 0; margin-top: calc(var(--head) + 4px); padding: 12px 8px 32px;
		overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-content: safe center; }
	.co[data-step="2"] .co__order { min-height: auto; }
	.co[data-step="2"] .co__sums { gap: 8px; margin-top: 16px; }
	.co[data-step="2"] .co__nav { margin-top: 20px; gap: 10px; }
	.co[data-step="2"] .co__next { min-height: 52px; }
	.co[data-step="2"] .co__back { min-height: 44px; }
	.co[data-step="2"] .wc-block-components-form .wc-block-components-checkout-step { margin-bottom: 22px; }
	.co[data-step="2"] .wc-block-components-checkout-step__heading-container { margin-bottom: 4px; }
	.co[data-step="2"] .wc-block-components-address-form > * { margin-top: 10px !important; }
	.co[data-step="2"] :is(.wc-block-components-text-input, .wc-block-components-combobox, .wc-blocks-components-select) { margin-top: 10px; }
	.co[data-step="2"] .wc-block-components-address-form > :is(.wc-block-components-text-input, .wc-block-components-combobox, .wc-blocks-components-select) { margin-top: 10px !important; }
	.co[data-step="2"] :is(.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input,
		.wc-blocks-components-select .wc-blocks-components-select__select) { min-height: 50px; height: 50px !important; padding-top: 20px !important; padding-bottom: 4px !important; }
	.co[data-step="2"] .wc-block-components-address-form > * > :is(.wc-block-components-text-input, .wc-block-components-combobox, .wc-blocks-components-select) { margin-top: 0; }
	.co[data-step="2"] .wc-blocks-components-select .wc-blocks-components-select__container { height: 50px !important; }
	.co[data-step="2"] .wc-block-components-checkbox { margin-top: 12px; }
	.co[data-step="2"] .wc-block-components-radio-control__option { padding-top: 12px; padding-bottom: 12px; }
	.co[data-step="2"] .wc-block-checkout__terms { margin: 4px 0 0; }
}