/**
 * The public booking surface.
 *
 * WHAT CHANGED IN 2.0.1 AND WHY (F-2744)
 * --------------------------------------
 * 2.0.0 shipped "base styling only" and the result was the shape the agency has banned outright:
 * every control at identical full width, stacked top to bottom, the floor plan squeezed into the
 * same narrow measure, a browser-default button in the middle of it, and section edges that did
 * not line up with anything. Rejected in review in those words — no symmetry, mismatched section
 * widths, cheap.
 *
 * So this file is a LAYOUT, not a paint job:
 *   - ONE GRID. The panels and the closing strip share the same column edges at every width. A
 *     container that is 40px wider than the one above it is the loudest "unfinished" signal a
 *     page can send, and it is the one thing CSS can guarantee for free.
 *   - FIELDS SIZED BY CONTENT. `--wrsv-cols` gives each panel a 6-track grid; a name takes all
 *     six, a phone or a date three, a party size two. A party size does not want the width of an
 *     e-mail address.
 *   - THE OTHER HALF IS FILLED, NOT EMPTY. On a wide screen the plan panel sits beside the
 *     controls at exactly the same width, and before the guest opens the plan it carries the
 *     default, the legend and the real radio — never dead space.
 *   - MOBILE FIRST, AND MEASURED AGAINST THE CONTAINER. One column is the base; two columns
 *     arrive when the SHORTCODE has 42rem, not when the window does — a shortcode drops into
 *     whatever measure a theme gives it, and a window-width breakpoint has no idea what that is.
 *
 * TOKENS WITH A COMPLETE FALLBACK. Every colour, radius and space reads a `--wdt-*` design token
 * and carries a literal fallback, so the page is finished on a site with no WEPRO template loaded
 * (standalone-first, lock 8). Nothing here uses `!important`: a theme that wants to map its own
 * form styling through `wepro_reservations_class` always wins.
 */

.wrsv-shell {
	--wrsv-gap: clamp( 1rem, 2.4vw, 1.75rem );
	--wrsv-pad: clamp( 1.1rem, 2.4vw, 1.9rem );
	/*
	 * ── THE PALETTE, MEASURED OFF THE OWNER'S NAMED REFERENCE ─────────────────────
	 *
	 * Source: the reference image of 8 Sept. 2026 that he named as the frontend
	 * reference. Every literal below was sampled from it rather than picked to taste, so the built
	 * page and the drawing agree on the hex value and not merely on the adjective: forest green
	 * #0B3C2A, warm off-white ground #F6F5F4, field fill #FAFAFA, hairline #E4E5E7, ink #1E1F27,
	 * muted #5F6570, and the pale green notice tint #E7EDE8.
	 *
	 * THE CONSOLE DOES NOT SHARE THIS PALETTE, AND THAT IS DELIBERATE. `admin.css` stays warm-ivory
	 * with a COBALT primary, because the owner allocated two references: the zip for the eight
	 * admin screens, this image for the guest surface. A warm photographic consumer face and a
	 * cool dense operator console is a normal split, not an inconsistency to be reconciled — the
	 * one thing that would be wrong is making them the same.
	 *
	 * GREEN IS THE PRIMARY ACTION HERE, NOT AVAILABILITY. See the long note at the foot of
	 * `floor.css` for the measurement behind that move and for what took availability's place.
	 * Nothing in THIS file may use green for a state: it is the brand's action colour and nothing
	 * else.
	 *
	 * The token-first contract is unchanged — a tenant with WEPRO design tokens loaded still wins,
	 * and the literals are only the standalone fallback (lock 8).
	 */
	--wrsv-line: var( --wdt-color-border, #E4E5E7 );
	--wrsv-ink: var( --wdt-color-text, #1E1F27 );
	/*
	 * 2.7.7 · THE MUTED FALLBACK FAILS AA AT #707682 AND IS DARKENED TO #5F6570 (F-4626).
	 *
	 * The sampled value was #707682, and on a tenant with no WEPRO design tokens loaded — which
	 * is the standalone case this fallback exists for — it is what every form LABEL, every hint
	 * and every step name is painted in. Measured with axe on 127.0.0.1:8170: thirteen
	 * `color-contrast` failures at 4.37 on the field fill, 4.19 on the ground and 3.84 on the
	 * notice tint, against an AA floor of 4.5 for normal text. That is the booking form's field
	 * labels, not decoration.
	 *
	 * #5F6570 is the SAME HUE taken down until it clears the floor on every background this
	 * stylesheet actually pairs it with — 5.62 on #FAFAFA, 5.38 on #F6F5F4, 4.93 on #E7EDE8,
	 * 5.37 on #F1F5FD, 5.86 on white — rather than a new colour picked to taste, so the
	 * reference image's palette relationship is kept and the text is legible. The token-first
	 * contract is unchanged: a tenant with `--wdt-color-muted` still wins (Nu&Da does, which is
	 * why its own pages reported zero contrast failures while the plain demo reported thirteen).
	 */
	--wrsv-muted: var( --wdt-color-muted, #5F6570 );
	--wrsv-surface: var( --wdt-color-surface, #FFFFFF );
	--wrsv-field: #FAFAFA;
	--wrsv-ground: var( --wdt-color-surface-2, #F6F5F4 );
	--wrsv-brand: var( --wdt-color-primary, #0B3C2A );
	--wrsv-brand-soft: var( --wdt-color-primary-soft, #E7EDE8 );
	--wrsv-on-brand: var( --wdt-color-on-primary, #FFFFFF );
	/* Availability, on the guest surface only. Bronze — never green. */
	--wrsv-avail-bg: #F7F0E1;
	--wrsv-avail-ink: #6B5120;
	--wrsv-avail-line: #DDCFAE;
	--wrsv-off-bg: #F0EEEA;
	--wrsv-off-ink: #6E6961;
	/* Message roles (2.30.1, pamfres1): every banner names its INK as well as its fill — see the rule block. */
	--wrsv-ok-bg: var( --wdt-color-success-bg, #E6F6EC );
	--wrsv-ok-ink: var( --wdt-color-success-ink, #14532F );
	--wrsv-ok-line: var( --wdt-color-success, #1D7A46 );
	--wrsv-err-bg: var( --wdt-color-danger-bg, #FDECEB );
	--wrsv-err-ink: var( --wdt-color-danger-ink, #7A1A12 );
	--wrsv-err-line: var( --wdt-color-danger, #B42318 );
	--wrsv-info-bg: var( --wdt-color-info-bg, #EEF4FB );
	--wrsv-info-ink: var( --wdt-color-info-ink, #173B66 );
	--wrsv-info-line: var( --wdt-color-info, #2F6DB5 );
	--wrsv-calm-bg: var( --wdt-color-surface-2, #FAFBFC );
	--wrsv-radius: var( --wdt-radius-md, 14px );
	--wrsv-radius-sm: var( --wdt-radius-sm, 8px );
	--wrsv-cols: 6;

	box-sizing: border-box;
	width: 100%;
	max-width: var( --wdt-measure-wide, 68rem );
	margin-inline: auto;
	color: var( --wrsv-ink );

	/*
	 * THE BREAKPOINT MUST ASK THE CONTAINER, NOT THE WINDOW.
	 *
	 * Measured on the demo: a 1440px viewport inside wepro-food gives this shortcode a 715px
	 * measure. A `@media (min-width: 60rem)` rule reads the WINDOW, so it happily painted two
	 * columns into 715px and truncated the date picker — a desktop breakpoint firing on a
	 * container that is not a desktop. A container query asks the only question that matters:
	 * how much room do I actually have. Where container queries are unsupported the page stays
	 * one column, which is the correct fallback rather than a broken two.
	 */
	container-type: inline-size;
	container-name: wrsv;
}
.wrsv-shell-narrow { max-width: var( --wdt-measure, 42rem ); }

/*
 * DARK MODE. MEASURED DEFECT, NOT A REFINEMENT: every role above resolves through `--wdt-color-*`,
 * and a theme that ships a dark palette maps it into its OWN namespace — it does not redefine the
 * ecosystem tokens. So on a dark page the header went dark, the footer went dark, and this form
 * stayed a sheet of white with white input boxes on it. A booking page that blinds the guest at
 * night is not a styling nicety.
 *
 * The three-state contract, same as the rest of the ecosystem: light on bare `:root` above; the
 * dark values under the OS signal, guarded so an explicit `light` choice still wins; and again
 * under an explicit `dark` choice so the toggle wins in both directions. Every one still reads a
 * token first, so a tenant that DOES ship dark tokens overrides all of it.
 */
.wrsv-shell-dark-roles,
:root[data-theme="dark"] .wrsv-shell {
	--wrsv-line: var( --wdt-dark-color-border, #33373C );
	--wrsv-ink: var( --wdt-dark-color-text, #F1F1F1 );
	--wrsv-muted: var( --wdt-dark-color-text-muted, #A9B0B7 );
	--wrsv-surface: var( --wdt-dark-color-surface, #1C1E21 );
	--wrsv-ground: var( --wdt-dark-color-surface-alt, #242629 );
	--wrsv-brand: var( --wdt-dark-color-primary, #4E8F70 );
	--wrsv-brand-soft: var( --wdt-dark-color-primary-soft, #16241D );
	--wrsv-on-brand: var( --wdt-dark-color-on-primary, #08130D );
	--wrsv-field: #212226;
	--wrsv-avail-bg: #2A2114;
	--wrsv-avail-ink: #D9B876;
	--wrsv-avail-line: #4A3A20;
	--wrsv-off-bg: #26282C;
	--wrsv-off-ink: #A9B0B7;
	--wrsv-ok-bg: var( --wdt-dark-color-success-bg, #15291D );
	--wrsv-ok-ink: var( --wdt-dark-color-success-ink, #BFE8CF );
	--wrsv-ok-line: var( --wdt-dark-color-success, #3C9A64 );
	--wrsv-err-bg: var( --wdt-dark-color-danger-bg, #3A1714 );
	--wrsv-err-ink: var( --wdt-dark-color-danger-ink, #FFD8D3 );
	--wrsv-err-line: var( --wdt-dark-color-danger, #E0533F );
	--wrsv-info-bg: var( --wdt-dark-color-info-bg, #14233A );
	--wrsv-info-ink: var( --wdt-dark-color-info-ink, #CFE1F7 );
	--wrsv-info-line: var( --wdt-dark-color-info, #5B93D6 );
	--wrsv-calm-bg: var( --wdt-dark-color-surface-alt, #242629 );
	color-scheme: dark;
}
@media ( prefers-color-scheme: dark ) {
	:root:not([data-theme="light"]) .wrsv-shell {
		--wrsv-line: var( --wdt-dark-color-border, #33373C );
		--wrsv-ink: var( --wdt-dark-color-text, #F1F1F1 );
		--wrsv-muted: var( --wdt-dark-color-text-muted, #A9B0B7 );
		--wrsv-surface: var( --wdt-dark-color-surface, #1C1E21 );
		--wrsv-ground: var( --wdt-dark-color-surface-alt, #242629 );
		--wrsv-brand: var( --wdt-dark-color-primary, #4E8F70 );
		--wrsv-brand-soft: var( --wdt-dark-color-primary-soft, #16241D );
		--wrsv-on-brand: var( --wdt-dark-color-on-primary, #08130D );
		--wrsv-field: #212226;
		--wrsv-avail-bg: #2A2114;
		--wrsv-avail-ink: #D9B876;
		--wrsv-avail-line: #4A3A20;
		--wrsv-off-bg: #26282C;
		--wrsv-off-ink: #A9B0B7;
		--wrsv-ok-bg: var( --wdt-dark-color-success-bg, #15291D );
		--wrsv-ok-ink: var( --wdt-dark-color-success-ink, #BFE8CF );
		--wrsv-ok-line: var( --wdt-dark-color-success, #3C9A64 );
		--wrsv-err-bg: var( --wdt-dark-color-danger-bg, #3A1714 );
		--wrsv-err-ink: var( --wdt-dark-color-danger-ink, #FFD8D3 );
		--wrsv-err-line: var( --wdt-dark-color-danger, #E0533F );
		--wrsv-info-bg: var( --wdt-dark-color-info-bg, #14233A );
		--wrsv-info-ink: var( --wdt-dark-color-info-ink, #CFE1F7 );
		--wrsv-info-line: var( --wdt-dark-color-info, #5B93D6 );
		--wrsv-calm-bg: var( --wdt-dark-color-surface-alt, #242629 );
		color-scheme: dark;
	}
}

.wrsv-shell *,
.wrsv-shell *::before,
.wrsv-shell *::after { box-sizing: border-box; }

/* ── The one grid every section shares ─────────────────────────────── */

.wrsv-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --wrsv-gap );
	align-items: start;
}
@container wrsv ( min-width: 42rem ) {
	/* Two EQUAL columns. Not 2fr/1fr: unequal halves are exactly the mismatch that was rejected. */
	.wrsv-grid { grid-template-columns: 1fr 1fr; }
	.wrsv-grid-single { grid-template-columns: 1fr; }
}

.wrsv-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var( --wrsv-pad );
	background: var( --wrsv-surface );
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius );
}
/* The plan panel is the tall one; matching its neighbour's height keeps the two edges level. */
@container wrsv ( min-width: 42rem ) {
	.wrsv-grid > .wrsv-panel { height: 100%; }
}

.wrsv-panel-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var( --wrsv-line );
}
.wrsv-panel-head + .wrsv-fields { margin-bottom: 0.2rem; }
.wrsv-panel .wrsv-panel-head ~ .wrsv-panel-head { margin-top: 1.4rem; }

.wrsv-step {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}
.wrsv-panel-title {
	margin: 0;
	font-size: var( --wdt-font-size-lg, 1.05rem );
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* ── Fields: a 6-track sub-grid, so widths follow meaning ──────────── */

.wrsv-fields {
	display: grid;
	grid-template-columns: repeat( var( --wrsv-cols ), 1fr );
	gap: 0.85rem 0.85rem;
}
.wrsv-row {
	grid-column: 1 / -1;
	margin: 0;
	min-width: 0;
	/* Top-align: a note box is taller than a number box on purpose, and their two labels sharing a
	   baseline is what makes the row read as one row rather than two things that happen to touch. */
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
@container wrsv ( min-width: 26rem ) {
	.wrsv-span-2 { grid-column: span 2; }
	.wrsv-span-3 { grid-column: span 3; }
	.wrsv-span-4 { grid-column: span 4; }
}

.wrsv-row label {
	display: block;
	margin-bottom: 0.35rem;
	color: var( --wrsv-muted );
	font-size: var( --wdt-font-size-sm, 0.82rem );
	font-weight: 600;
	letter-spacing: 0.01em;
}
.wrsv-row input,
.wrsv-row select,
.wrsv-row textarea {
	/* Radios, checkboxes and the date picker's own chrome are painted by the browser. `accent-color`
	   is the one hook that makes them the product's colour instead of the platform's default blue,
	   and it is the difference between "a form" and "our form". */
	accent-color: var( --wrsv-brand );
	width: 100%;
	min-height: 2.85rem;
	padding: 0.6rem 0.8rem;
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-surface );
	color: inherit;
	font: inherit;
}
.wrsv-row textarea { min-height: 4.5rem; resize: vertical; }
.wrsv-row input:hover,
.wrsv-row select:hover,
.wrsv-row textarea:hover { border-color: var( --wdt-color-border-strong, #b9c0c9 ); }
.wrsv-row input:focus-visible,
.wrsv-row select:focus-visible,
.wrsv-row textarea:focus-visible {
	outline: 2px solid var( --wrsv-brand );
	outline-offset: 1px;
	border-color: var( --wrsv-brand );
}

/* ── The item block (non-table verticals) ──────────────────────────── */

.wrsv-item {
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	padding: 1rem 1rem 1.1rem;
	margin: 0 0 0.9rem;
}
.wrsv-item legend {
	padding: 0 0.4rem;
	color: var( --wrsv-ink );
	font-size: var( --wdt-font-size-sm, 0.88rem );
	font-weight: 700;
	letter-spacing: -0.005em;
}
.wrsv-more { margin: 0 0 0.9rem; }
.wrsv-more > summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0.2rem; }
.wrsv-more > summary:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 1px; }
.wrsv-other { margin-top: -0.2rem; }
.wrsv-other[hidden] { display: none; }

/* ── "Open the plan" — a real secondary button, never a browser default ── */

.wrsv-showplan { margin: 1rem 0 0; }

/*
 * The reassurance line, pinned to the BOTTOM of the controls panel.
 *
 * The two panels are the same height so their edges line up; that leaves room under the controls,
 * and room under the controls is exactly where a guest's last hesitation lives. `margin-top: auto`
 * turns the leftover into deliberate spacing instead of dead space.
 */
.wrsv-panel-note {
	margin: 1.4rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-ground );
	color: var( --wrsv-muted );
	font-size: var( --wdt-font-size-sm, 0.86rem );
	line-height: 1.5;
}
.wrsv-panel > .wrsv-panel-note:last-child { margin-top: auto; }
/* Equal-height panels leave the shorter one with slack. Pinning the note to the floor is right,
   but the slack above it should still read as measured space, not as an unfinished panel — so it
   is bounded and the note keeps a hairline that ties it to the panel's own edge. */
@container wrsv ( min-width: 42rem ) {
	.wrsv-panel > .wrsv-panel-note:last-child { border-top: 1px solid var( --wrsv-line ); border-radius: 0 0 var( --wrsv-radius-sm ) var( --wrsv-radius-sm ); }
}
.wrsv-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.85rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid var( --wrsv-brand );
	border-radius: var( --wrsv-radius-sm );
	background: transparent;
	color: var( --wrsv-brand );
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
/* `content: "▦"` rendered whatever glyph the user's font happened to have — a placeholder, not an
   icon. A drawn mark is the same weight everywhere and needs no font to exist. */
.wrsv-ghost::before {
	content: "";
	flex: 0 0 auto;
	width: 0.95em;
	height: 0.95em;
	border: 1.5px solid currentColor;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1.5px transparent, inset 0 -0.30em 0 -0.16em currentColor;
}
.wrsv-ghost:hover { background: var( --wdt-color-primary-soft, rgba( 26, 86, 219, 0.08 ) ); }
.wrsv-ghost:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }

/* ── The plan panel ────────────────────────────────────────────────── */

.wrsv-planwrap { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.wrsv-planwrap .wrsv-planframe { margin: 0; }

/*
 * FULL BLEED ON A PHONE. The plan is scaled to fit, so every pixel of panel padding beside it is a
 * pixel off every table in the room. Measured at 360px: the panel's own gutters cost the drawing
 * 35px, which is a sixth of its width. On a narrow screen the frame therefore runs to the panel's
 * edges — the pattern any phone map or gallery uses — and takes its side borders off with it, so
 * the room ends at the card edge instead of inside a second box.
 */
@container wrsv ( max-width: 30rem ) {
	.wrsv-panel { padding-inline: 1rem; }
	.wrsv-planwrap .wrsv-planframe {
		margin-inline: -1rem;
		border-inline: 0;
		border-radius: 0;
	}
}

.wrsv-areas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var( --wdt-font-size-sm, 0.85rem );
}
.wrsv-areas-label { color: var( --wrsv-muted ); font-weight: 600; }
/*
 * THE AREA SWITCH IS A BUTTON GROUP NOW, AND THE RULES STILL SAID `a`.
 *
 * The switcher became <button> so a change of area carries every field the guest has typed instead
 * of navigating away and losing it — the right fix. But the selectors underneath it were never
 * moved, so the tabs rendered as three identical browser-default buttons with NO indication of
 * which area you were looking at. Measured on the running page in both themes. Both selectors are
 * listed so the control is styled whichever markup a tenant's filter ends up producing.
 */
.wrsv-areas > span[role="group"] {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.2rem;
	border-radius: 999px;
	background: var( --wrsv-ground );
}
.wrsv-areas a,
.wrsv-area {
	padding: 0.35rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var( --wrsv-muted );
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	margin-inline-end: 0;
}
.wrsv-areas a:hover,
.wrsv-area:hover { color: var( --wrsv-ink ); background: var( --wrsv-surface ); }
.wrsv-areas a[aria-current="true"],
.wrsv-area[aria-current="true"],
.wrsv-area[aria-pressed="true"] {
	border-color: var( --wrsv-brand );
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font-weight: 700;
	text-decoration: none;
}
.wrsv-areas a:focus-visible,
.wrsv-area:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }

/* ── Plan / List: two modes, one at a time (F-2777) ─────────────────
 *
 * The switch is the AREA switch's control, not a new one: same pill group, same pressed
 * treatment, same focus ring. A second visual vocabulary for a second row of tabs would make one
 * panel look like two products, which is the fault the page was rejected for.
 *
 * The pressed state is driven by `[data-wrsv-view]` on the wrapper rather than by `aria-pressed`,
 * because the server deliberately omits `aria-pressed` until the guest has actually named a mode
 * — see the <noscript> block in plan.php, which turns the defaulted state around for a browser
 * that cannot select on the drawing. The picker sets the attribute truthfully on boot.
 */
.wrsv-modes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var( --wdt-font-size-sm, 0.85rem );
}
.wrsv-modes-label { color: var( --wrsv-muted ); font-weight: 600; }
.wrsv-modes > span[role="group"] {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.2rem;
	border-radius: 999px;
	background: var( --wrsv-ground );
}
.wrsv-mode {
	padding: 0.35rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var( --wrsv-muted );
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}
.wrsv-mode:hover { color: var( --wrsv-ink ); background: var( --wrsv-surface ); }
.wrsv-planwrap[data-wrsv-view="plan"] .wrsv-mode[data-wrsv-view-to="plan"],
.wrsv-planwrap[data-wrsv-view="list"] .wrsv-mode[data-wrsv-view-to="list"] {
	border-color: var( --wrsv-brand );
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font-weight: 700;
}
.wrsv-mode:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }

/* The whole mechanism: one attribute decides which half of the panel exists on screen. Nothing is
   copied between the two, because the radio group never leaves the list — a hidden radio still
   posts its value, so the selection is shared by construction rather than by synchronisation. */
.wrsv-planwrap[data-wrsv-view="plan"] [data-wrsv-only="list"],
.wrsv-planwrap[data-wrsv-view="list"] [data-wrsv-only="plan"] { display: none; }

/* In plan mode the fieldset holds one confirmed row and the "any" option. The wide-screen scroll
   box below exists for a thirty-row list; over two rows it would paint a fade with nothing behind
   it, which reads as a clipped panel. */
.wrsv-planwrap[data-wrsv-view="plan"] .wrsv-tables {
	max-height: none;
	overflow: visible;
	mask-image: none;
}

/* ── The confirmed selection ───────────────────────────────────────── */

.wrsv-picked { margin: 0 0 0.5rem; }
.wrsv-picked-row {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var( --wrsv-brand );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wdt-color-primary-soft, rgba( 26, 86, 219, 0.06 ) );
	box-shadow: inset 3px 0 0 var( --wrsv-brand );
	line-height: 1.35;
}
/* An author `display` beats the user-agent's `[hidden]{display:none}`, so an element given a
   display here must take its own hidden rule with it — otherwise `el.hidden = true` silently does
   nothing and the row stays on screen with an empty label in it. */
.wrsv-picked-row[hidden],
.wrsv-picked-hint[hidden] { display: none; }
/* A drawn tick, for the same reason the ghost button's mark is drawn: a glyph is whatever font
   the visitor happens to have, and this one has to read as "done" at 12px on a phone. */
.wrsv-picked-mark {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 999px;
	background: var( --wrsv-brand );
	position: relative;
}
.wrsv-picked-mark::after {
	content: "";
	position: absolute;
	left: 0.34rem;
	top: 0.2rem;
	width: 0.28rem;
	height: 0.55rem;
	border: solid var( --wrsv-on-brand );
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}
.wrsv-picked-body { display: block; min-width: 0; flex: 1 1 auto; }
.wrsv-picked-body small { display: block; color: var( --wrsv-muted ); font-size: 0.78rem; font-weight: 600; }
.wrsv-picked-body strong { display: block; font-size: var( --wdt-font-size-base, 0.98rem ); }
.wrsv-picked-seats { display: block; color: var( --wrsv-muted ); font-size: 0.82rem; }
.wrsv-picked-acts { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.wrsv-picked-clear,
.wrsv-picked-change {
	padding: 0.4rem 0.7rem;
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-surface );
	color: var( --wrsv-ink );
	font: inherit;
	font-size: var( --wdt-font-size-sm, 0.84rem );
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}
.wrsv-picked-change { border-color: var( --wrsv-brand ); color: var( --wrsv-brand ); }
.wrsv-picked-clear:hover,
.wrsv-picked-change:hover { background: var( --wrsv-ground ); }
.wrsv-picked-clear:focus-visible,
.wrsv-picked-change:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }
.wrsv-picked-hint { margin: 0 0 0.5rem; color: var( --wrsv-muted ); font-size: var( --wdt-font-size-sm, 0.86rem ); line-height: 1.5; }

/*
 * A PHONE HAS NO ROOM FOR A ROW THAT IS LABEL + TWO BUTTONS. Measured at 390px with the German
 * "Anderen Tisch wählen", which is 20 characters against the Turkish 16 and the English 20: side
 * by side the two actions squeezed the table label to two characters. Below 26rem of container
 * the actions take their own line and stretch, which also puts them past the 44px touch target.
 */
@container wrsv ( max-width: 26rem ) {
	.wrsv-picked-row { flex-wrap: wrap; }
	.wrsv-picked-acts { flex: 1 1 100%; justify-content: stretch; }
	.wrsv-picked-clear,
	.wrsv-picked-change { flex: 1 1 auto; min-height: 2.75rem; text-align: center; }
}

/* The empty state: a filled half, not a blank one. */
.wrsv-planwrap-empty { justify-content: flex-start; }
.wrsv-planempty {
	display: grid;
	place-items: center;
	padding: 1.6rem 1rem;
	border: 1px dashed var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-ground );
}
.wrsv-planempty svg { width: min( 60%, 190px ); height: auto; fill: var( --wrsv-line ); }

.wrsv-hint { margin: 0; color: var( --wrsv-muted ); font-size: var( --wdt-font-size-sm, 0.88rem ); line-height: 1.5; }

/* ── Table choices: real rows, not a bare radio list ───────────────── */

.wrsv-tables { border: 0; padding: 0; margin: 0; min-width: 0; }
/*
 * THE HEADING WAS THE LOUDEST SMALL THING ON THE PAGE. `text-transform: uppercase` at 700 weight
 * shouted "MASANIZI SEÇIN" beside a panel title set in the theme's own serif at sentence case, and
 * the two read as two different products. A section heading inside a panel is a THIRD-level
 * heading; it takes the panel's voice one step quieter, not a different voice one step louder.
 */
.wrsv-tables > legend {
	float: left;
	width: 100%;
	padding: 0 0 0.45rem;
	margin-bottom: 0.7rem;
	border-bottom: 1px solid var( --wrsv-line );
	color: var( --wrsv-ink );
	font-size: var( --wdt-font-size-base, 0.95rem );
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.005em;
}
.wrsv-tables > legend + * { clear: both; }
.wrsv-tchoice {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0.8rem;
	margin: 0 0 0.5rem;
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-surface );
	cursor: pointer;
	line-height: 1.35;
}
.wrsv-tchoice input { margin: 0.2rem 0 0; flex: 0 0 auto; }
.wrsv-tchoice-body { display: block; min-width: 0; flex: 1 1 auto; }
.wrsv-tchoice small { display: block; color: var( --wrsv-muted ); font-size: 0.82em; }
/* The seat count as a badge on the row: the number stays one glance away even when a tabletop on
   a phone is too small to carry its own pill. */
.wrsv-tchoice-seats {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: var( --wrsv-ground );
	color: var( --wrsv-muted );
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.wrsv-tchoice-any .wrsv-tchoice-seats { display: none; }
.wrsv-tchoice:hover { border-color: var( --wdt-color-border-strong, #b9c0c9 ); }
/*
 * `.is-selected` is set by floor-picker.js on the row whose table is chosen ON THE PLAN, and
 * `:has(input:checked)` covers the same row with no JavaScript at all. Both are listed so the plan
 * and the list can never appear to disagree about which table the guest has.
 */
.wrsv-tchoice.is-selected,
.wrsv-tchoice:has( input:checked ) {
	border-color: var( --wrsv-brand );
	background: var( --wdt-color-primary-soft, rgba( 26, 86, 219, 0.06 ) );
	box-shadow: inset 3px 0 0 var( --wrsv-brand );
}
.wrsv-tchoice.is-selected .wrsv-tchoice-seats,
.wrsv-tchoice:has( input:checked ) .wrsv-tchoice-seats {
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
}
.wrsv-tchoice:has( input:focus-visible ) { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }
.wrsv-tchoice-any { border-style: dashed; }

/*
 * A BIG RESTAURANT MUST NOT BREAK THE COMPOSITION. Measured on a seeded 30-table room: the choice
 * list ran to thirty rows and made the plan panel roughly three times the height of the panel
 * beside it — the same mismatched-section-heights fault the page was rejected for, arriving by a
 * different door. On a wide layout the list is bounded and scrolls in place, so the two panels
 * keep their shared edges however many tables the tenant has.
 *
 * ONLY on a wide layout. On a phone the panels are already stacked, there is no symmetry to keep,
 * and a scroll region inside a scrolling page is a trap rather than a tidy-up — so the phone gets
 * the whole list, full height, exactly as before.
 */
@container wrsv ( min-width: 42rem ) {
	.wrsv-tables {
		max-height: 26rem;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		scrollbar-width: thin;
		/* Room for the focus ring of the first and last rows, which an overflow box would clip. */
		padding: 3px;
		margin: -3px;
		/*
		 * A half-visible row at the cut looks like a clipped row, not a scrollable list — the same
		 * misreading the plan's old scroll frame caused. The mask fades the last few millimetres so
		 * the list visibly CONTINUES, and it costs no markup and no script.
		 */
		/*
		 * 2.7.7 · THE FADE STARTS AT ZERO AND IS PAINTED BY THE SCROLL, NOT THE OTHER WAY ROUND
		 * (F-2785). It used to be declared at 1.6rem here and removed inside the `@supports`
		 * block below — so an engine WITHOUT scroll-driven animations had no rule that could ever
		 * take it away, and painted a permanent fade over the last few millimetres of a list that
		 * might not scroll at all: a hint at more rows, on a venue with four tables, where there
		 * are none. Measured in Chromium 140 on the Nu&Da tenant, the shipped behaviour was
		 * already correct in all three states (long list at the top 1.6rem · scrolled to the end
		 * 0rem · too short to scroll 0rem), because an inactive scroll timeline resolves to the
		 * keyframe's own value — so this is the class being closed rather than a defect that
		 * engine could show. Inverting it makes the absence of the feature produce NO hint instead
		 * of a false one, which is the honest direction: a fade is a promise that there is more.
		 */
		--wrsv-fade: 0rem;
		mask-image: linear-gradient( to bottom, #000 calc( 100% - var( --wrsv-fade ) ), transparent 100% );
	}
	/* The fade exists WHILE there is something below to hint at, and goes as the end arrives. */
	@supports ( animation-timeline: scroll( self block ) ) {
		.wrsv-tables { animation: wrsv-list-fade linear both; animation-timeline: scroll( self block ); animation-range: contain; }
		@keyframes wrsv-list-fade { from { --wrsv-fade: 1.6rem; } to { --wrsv-fade: 0rem; } }
	}
}
@property --wrsv-fade { syntax: "<length>"; inherits: false; initial-value: 0rem; }

/* ── Consent + submit: one strip, on the grid's own edges ──────────── */

.wrsv-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem var( --wrsv-gap );
	margin-top: var( --wrsv-gap );
	padding: var( --wrsv-pad );
	background: var( --wrsv-ground );
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius );
}
.wrsv-foot .wrsv-consent { flex: 1 1 18rem; margin: 0; min-width: 0; }
.wrsv-foot .wrsv-submit { flex: 0 0 auto; margin: 0; }

.wrsv-consent { font-size: var( --wdt-font-size-sm, 0.88rem ); line-height: 1.5; }
.wrsv-consent label { display: flex; align-items: flex-start; gap: 0.55rem; }
.wrsv-consent input,
.wrsv-tchoice input { accent-color: var( --wrsv-brand ); }
.wrsv-consent input { margin: 0.2rem 0 0; flex: 0 0 auto; }
.wrsv-consent a { color: var( --wrsv-brand ); }
.wrsv-consent-purpose { display: block; margin: 0.3rem 0 0 1.55rem; color: var( --wrsv-muted ); font-size: 0.92em; }

.wrsv-button,
.wrsv-button-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.9rem;
	border-radius: var( --wrsv-radius-sm );
	border: 1px solid var( --wrsv-brand );
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wrsv-button-outline { background: transparent; color: var( --wrsv-brand ); }
/* These are BUTTONS, and one of them is an <a>. Themes underline links, so a link wearing a button
   arrives underlined — measured on the demo, where the confirmation card's action came out with a
   rule through the bottom of its own box. */
.wrsv-button,
.wrsv-button-outline { text-decoration: none; }
.wrsv-button:hover,
.wrsv-button-outline:hover { text-decoration: none; }
.wrsv-button:focus-visible,
.wrsv-button-outline:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── Feedback, manage surface, honeypot ────────────────────────────── */

.wrsv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrsv-ok,
.wrsv-err {
	padding: 0.85rem 1.05rem;
	border-radius: var( --wrsv-radius-sm );
	margin: 0 0 var( --wrsv-gap );
	line-height: 1.5;
}
/*
 * A BANNER NAMES ITS INK, NOT ONLY ITS FILL (2.30.1, pamfres1). These rules set a pale fill and left the
 * text colour to inheritance; on a dark page the inherited ink is the theme's light text, so the one
 * sentence that tells a guest why the booking failed was drawn near-white on pale pink — measured 1.02:1
 * on pamfilyarestaurant.de with the dark-mode toggle on. Fill, ink and line now come as one role from
 * the light and dark role blocks above, so neither half can follow the page without the other.
 */
.wrsv-ok { background: var( --wrsv-ok-bg, #E6F6EC ); color: var( --wrsv-ok-ink, #14532F ); border: 1px solid var( --wrsv-ok-line, #1D7A46 ); }
.wrsv-err { background: var( --wrsv-err-bg, #FDECEB ); color: var( --wrsv-err-ink, #7A1A12 ); border: 1px solid var( --wrsv-err-line, #B42318 ); }
.wrsv-ok a,
.wrsv-err a { color: inherit; text-decoration: underline; }
.wrsv-planwrap .wrsv-err { margin: 0; }

.wrsv-manage-title { margin: 0 0 0.35rem; font-size: 1.15rem; }
.wrsv-manage-status { margin: 0 0 0.9rem; color: var( --wrsv-muted ); font-weight: 600; }
.wrsv-manage-items { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.wrsv-manage-form { margin: 0 0 0.9rem; }
.wrsv-note { color: var( --wrsv-muted ); }

/* ── R23 · access rules: the house notice, a slot's description, the VIP line, the call-us link ──
   Tokens only, like every other message here; the notice is information, so it is drawn calmer than
   an error and louder than a note. */
.wrsv-notice {
	padding: 0.85rem 1.05rem;
	border-radius: var( --wrsv-radius-sm );
	margin: 0 0 var( --wrsv-gap );
	line-height: 1.5;
	background: var( --wrsv-info-bg, #EEF4FB );
	color: var( --wrsv-info-ink, #173B66 );
	border: 1px solid var( --wrsv-info-line, #2F6DB5 );
}
.wrsv-slotdesc { display: block; margin-top: 0.35rem; font-size: 0.92em; line-height: 1.45; color: var( --wrsv-muted ); }
.wrsv-slotdesc[hidden] { display: none; }
.wrsv-vip {
	padding: 0.7rem 1rem;
	border: 1px dashed var( --wrsv-line, #e2e5ea );
	border-radius: var( --wrsv-radius-sm );
	margin: 0 0 var( --wrsv-gap );
	line-height: 1.5;
}
.wrsv-vip p { margin: 0 0 0.6rem; }
.wrsv-vip p:last-child { margin-bottom: 0; }
.wrsv-callus { margin: 0 0 var( --wrsv-gap ); }
/* Both actions are links wearing a button; a theme's content-link colour and underline must not reach them
   (measured on the NU&DA twin at 390 px: dark text on the brand fill, an underlined outline button). */
.wrsv-vip a.wrsv-button,
.wrsv-vip a.wrsv-button:hover,
.wrsv-vip a.wrsv-button:visited { color: var( --wrsv-on-brand ); text-decoration: none; }
.wrsv-callus a.wrsv-button-outline,
.wrsv-callus a.wrsv-button-outline:hover,
.wrsv-callus a.wrsv-button-outline:visited { color: var( --wrsv-brand ); text-decoration: none; }

/* ── The waitlist opt-in, offered beneath a full-house refusal (2.8.0) ──────────
   It sits under an error banner, so it is drawn as a CALM panel rather than a
   second alarm: the refusal is the news, this is the way out of it. Tokens only —
   a tenant that has restyled the form gets this for free and can override it. */
.wrsv-waitlist {
	border: 1px solid var( --wrsv-line, #e2e5ea );
	border-radius: var( --wrsv-radius-sm );
	padding: 1.05rem 1.1rem;
	margin: 0 0 var( --wrsv-gap );
	background: var( --wrsv-calm-bg, #FAFBFC );
	color: var( --wrsv-ink );
}
.wrsv-waitlist-title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.wrsv-waitlist .wrsv-note { margin: 0 0 0.6rem; }
.wrsv-waitlist .wrsv-row { margin: 0 0 0.6rem; }
.wrsv-waitlist .wrsv-submit { margin: 0.4rem 0 0; }

/* R44b — the sister venue offered beneath the same refusal: the same calm panel, one row per venue. */
.wrsv-sister {
	list-style: none;
	border: 1px solid var( --wrsv-line, #e2e5ea );
	border-radius: var( --wrsv-radius-sm );
	padding: 0.8rem 1.1rem;
	margin: 0 0 var( --wrsv-gap );
	background: var( --wrsv-calm-bg, #FAFBFC );
	color: var( --wrsv-ink );
}
.wrsv-sister li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.25rem 0; }

@media ( prefers-reduced-motion: no-preference ) {
	.wrsv-tchoice,
	.wrsv-ghost,
	.wrsv-more > summary { transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE 2.1 SURFACE — the owner's ten mockups, built
   ═══════════════════════════════════════════════════════════════════════════

   Everything below is new work for the approved redesign. It adds components; it replaces no
   behaviour. Each block names the mockup it answers to.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── The step index (mockups 01–03) ─────────────────────────────────
 *
 * Anchors, not navigation. The numbering is decoration on top of a list that already reads as
 * "1, 2, 3" to a screen reader because it is an <ol> — so the visual numerals are aria-hidden
 * rather than being announced twice.
 */
.wrsv-steps { margin: 0 0 var( --wrsv-gap ); }
.wrsv-steps ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.wrsv-stepitem { margin: 0; min-width: 0; }
.wrsv-stepitem a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.3rem 0;
	color: var( --wrsv-muted );
	font-size: var( --wdt-font-size-sm, 0.86rem );
	font-weight: 600;
	text-decoration: none;
}
.wrsv-stepitem a:hover { color: var( --wrsv-ink ); }
.wrsv-stepitem a:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 3px; border-radius: 4px; }
.wrsv-stepnum {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 999px;
	background: var( --wrsv-off-bg );
	color: var( --wrsv-muted );
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}
/* A completed step is cobalt with a tick — the mark, not the number, because "done" is a
   different fact from "third" and the two must not share one channel. */
.wrsv-stepitem.is-done a { color: var( --wrsv-ink ); }
.wrsv-stepitem.is-done .wrsv-stepnum {
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font-size: 0;
	position: relative;
}
.wrsv-stepitem.is-done .wrsv-stepnum::after {
	content: "";
	position: absolute;
	left: 0.58rem;
	top: 0.42rem;
	width: 0.34rem;
	height: 0.62rem;
	border: solid var( --wrsv-on-brand );
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

/* ── The context line above the floor (mockups 02/03) ───────────────── */

.wrsv-context {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0;
	color: var( --wrsv-muted );
	font-size: var( --wdt-font-size-sm, 0.88rem );
	font-weight: 600;
}
.wrsv-context-sep { color: var( --wrsv-line ); }

/* ── The room cards (mockup 01) ─────────────────────────────────────
 *
 * A three-up grid that becomes one column only when a card would be narrower than its own name.
 * `auto-fit` with a floor rather than a media query, because this component lives inside a
 * shortcode whose measure the window knows nothing about — the same reason the page's own
 * breakpoints are container queries.
 */
/*
 * THE SET IS ITS OWN CONTAINER, AND THAT IS THE ACTUAL F-3978 (measured 2026-09-13).
 *
 * The three-up decision used to be `@container wrsv ( min-width: 22rem )`, and `wrsv` is named on
 * `.wrsv-shell` — the WHOLE shortcode. The room cards do not live in the shell; they live in a
 * column inside it, and on a real tenant the two are nothing like the same width:
 *
 *   viewport   .wrsv-shell   the column the cards are in   card width   result
 *   390 px         353            319                          100      breaks
 *   768 px         691            298                           93      breaks
 *   1440 px        695            271                           84      breaks
 *   2560 px       1017            432                          137      clean
 *
 * So the query answered "there is room for three" from a box the cards are not in, and at 768 and
 * 1440 — where the shell is nearly 700 px — it laid three 84–93 px cards into a 271 px column.
 * That is why the names broke at EVERY width and not only on a phone, and why no amount of
 * `overflow-wrap` tuning could fix it: the text was being handed a box too small for one word.
 *
 * `.wrsv-rooms` becomes the container, so the query measures the box the cards are actually in.
 */
.wrsv-rooms {
	margin: 0;
	container-type: inline-size;
	container-name: wrsvrooms;
}
.wrsv-rooms-label {
	display: block;
	margin: 0 0 0.5rem;
	color: var( --wrsv-muted );
	font-size: var( --wdt-font-size-sm, 0.82rem );
	font-weight: 600;
}
/*
 * THE SET FILLS ITS ROWS. A three-room house shows three cards across, not two and an orphan —
 * a grid whose last row is short is the "10 items in a 3-column grid" defect, and it is just as
 * visible with three items as with ten. The floor is set at 6.25rem so three cards still fit the
 * 358px measure a phone actually gives this shortcode (measured), and a house with more rooms
 * wraps into full rows of three rather than reflowing to an arbitrary count.
 */
.wrsv-rooms-set {
	display: grid;
	/*
	 * ONE COLUMN IS THE DEFAULT, and it is the honest one: a full-width card always holds its own
	 * name. Two columns are never used, because with three rooms that is a full row and a
	 * half-width orphan — the shape this file already calls a defect — and because the reason to
	 * leave one column is that the cards were getting too narrow, which two of them do not fix.
	 */
	grid-template-columns: 1fr;
	gap: 0.6rem;
}
/*
 * THREE ACROSS WHEN THREE ACTUALLY FIT, and the threshold is measured rather than chosen. The
 * longest room name on the fleet, `Spisestuen`, renders 86 px at this weight and size; with the
 * card's 1.1 rem of side padding that needs a card of ~104 px, and three of those plus two 0.6 rem
 * gaps need ~23.4 rem of column. 24 rem gives cards of ~122 px and a text box of ~104 px — clean
 * for every room name on all four local tenants at 390 / 768 / 1024 / 1440 / 2560, with headroom.
 * Below it the set is one column, which is what the old comment promised and the old query never
 * delivered.
 */
@container wrsvrooms ( min-width: 24rem ) {
	.wrsv-rooms-set { grid-template-columns: repeat( 3, 1fr ); }
}
.wrsv-room {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.55rem 0.55rem 0.7rem;
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-surface );
	color: var( --wrsv-ink );
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.wrsv-room-thumb {
	display: block;
	position: relative;
	height: 3.6rem;
	margin-bottom: 0.5rem;
	overflow: hidden;
	border-radius: calc( var( --wrsv-radius-sm ) - 3px );
	/* The honest empty frame: a warm tint, never a stock photograph of somebody else's dining room. */
	background: var( --wrsv-off-bg );
}
.wrsv-room-pic { display: block; width: 100%; height: 100%; object-fit: cover; }
/*
 * A ROOM NAME BREAKS WHERE THE LANGUAGE BREAKS IT, OR NOT AT ALL (F-3978).
 *
 * This was `overflow-wrap: anywhere`, and `anywhere` is not a stronger `break-word` — it is a
 * different rule. It admits a soft-wrap opportunity between EVERY pair of characters, so the
 * browser splits a word at whatever column runs out rather than at a place the word has. Measured
 * on the Nu&Da booking form at 390 / 768 / 1024 / 1440 / 2560, where the three cards are 84–143 px
 * wide because the shortcode sits in the theme's content column:
 *
 *   "Spisest / uen"      "Terrass / en"      "Den private afdelin / g"
 *
 * Ten-character room names are not an edge case — they are what every tenant with a real room
 * name has, and the reader sees a typo rather than a word.
 *
 * `break-word` admits a break inside a word ONLY when the word cannot fit a line of its own, and
 * `hyphens: auto` gives the browser the language's own break points to use first, so the same
 * card now reads "Spise-/stuen". Hyphenation needs the document's `lang`, which WordPress emits
 * on `<html>` — and where a language has no dictionary (Turkish, on every engine measured) the
 * result is simply the unhyphenated wrap, never the mid-syllable one. Nothing is worse anywhere.
 *
 * `hyphenate-limit-chars` is deliberately NOT set: measured in Chromium 140, `6 3 3` suppressed
 * hyphenation entirely on both Danish and German samples, which is the defect again with a
 * tidier spelling.
 */
.wrsv-room-name {
	font-size: var( --wdt-font-size-base, 0.95rem );
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: break-word;
	word-break: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
}
.wrsv-room-count { color: var( --wrsv-muted ); font-size: 0.8rem; font-weight: 600; }
.wrsv-room:hover { border-color: var( --wrsv-muted ); }
.wrsv-room[aria-pressed="true"] {
	border-color: var( --wrsv-brand );
	background: var( --wrsv-brand-soft );
	box-shadow: inset 0 0 0 1px var( --wrsv-brand );
}
.wrsv-room[aria-pressed="true"] .wrsv-room-count { color: var( --wrsv-brand ); }
.wrsv-room:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }

/* ── List rows: availability chips and the location note (mockup 03) ── */

.wrsv-tchoice-note {
	display: inline;
	color: var( --wrsv-muted );
}
.wrsv-tchoice-note::before { content: " · "; }
.wrsv-tchoice-chip {
	flex: 0 0 auto;
	align-self: center;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var( --wrsv-off-bg );
	color: var( --wrsv-off-ink );
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}
/* THE ONE PLACE GREEN IS ALLOWED: availability. It is a chip, never a control. */
.wrsv-tchoice-chip-free {
	background: var( --wrsv-avail-bg );
	border-color: var( --wrsv-avail-line );
	color: var( --wrsv-avail-ink );
}
/*
 * An unavailable row is present, readable and inert. It is dimmed rather than hidden because the
 * greyed tables are what make the list read as the ROOM the plan is drawing — but it carries no
 * radio, no pointer and no hover, so nothing about it invites a tap that cannot land.
 */
.wrsv-tchoice-off {
	cursor: default;
	background: transparent;
	border-style: dashed;
	color: var( --wrsv-muted );
}
.wrsv-tchoice-off:hover { border-color: var( --wrsv-line ); }
.wrsv-tchoice-off strong { font-weight: 600; }
/* Stands where the radio stands, so every row's text starts on the same x. A list whose labels
   zig-zag by 20px reads as two lists that got mixed together. */
.wrsv-tchoice-dot {
	flex: 0 0 auto;
	width: 0.95rem;
	height: 0.95rem;
	margin: 0.25rem 0 0;
	border-radius: 999px;
	border: 1.5px solid var( --wrsv-line );
	background: var( --wrsv-off-bg );
}

/* ── The confirmation card (mockup 04) ──────────────────────────────── */

.wrsv-done {
	margin: 0 0 var( --wrsv-gap );
	padding: var( --wrsv-pad );
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius );
	background: var( --wrsv-surface );
}
.wrsv-done-head { display: flex; align-items: flex-start; gap: 0.85rem; }
/* Emerald here is the AVAILABILITY/positive role, and it is a mark — not a button and not a
   border on anything the guest can press. */
.wrsv-done-mark {
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	background: var( --wrsv-avail-bg );
	position: relative;
}
.wrsv-done-mark::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 0.62rem;
	width: 0.5rem;
	height: 0.95rem;
	border: solid var( --wrsv-avail-ink );
	border-width: 0 2.5px 2.5px 0;
	transform: rotate( 45deg );
}
.wrsv-done-headings { min-width: 0; }
.wrsv-done-title { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.wrsv-done-sub { display: block; margin-top: 0.2rem; color: var( --wrsv-muted ); font-size: var( --wdt-font-size-sm, 0.88rem ); line-height: 1.5; }

.wrsv-done-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	margin-top: 1.1rem;
	padding: 0.85rem 1rem;
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-ground );
}
.wrsv-done-code-label { flex: 1 1 100%; color: var( --wrsv-muted ); font-size: 0.78rem; font-weight: 600; }
.wrsv-done-code-value {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}
/*
 * THE STATUS CHIP IS NEUTRAL BY DEFAULT AND EARNS ITS COLOUR.
 *
 * `pending` deliberately gets the plain stone chip: a booking awaiting confirmation must not be
 * dressed in the same green as a confirmed one, which is precisely what printing the mockup's
 * literal "Onaylandı" would have done to every web booking on a manual-approval house.
 */
.wrsv-done-status {
	margin-left: auto;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var( --wrsv-line );
	background: var( --wrsv-off-bg );
	color: var( --wrsv-off-ink );
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}
.wrsv-done-status.wrsv-status-confirmed,
.wrsv-done-status.wrsv-status-completed {
	background: var( --wrsv-avail-bg );
	border-color: var( --wrsv-avail-line );
	color: var( --wrsv-avail-ink );
}
.wrsv-done-facts { margin: 0.85rem 0 0; color: var( --wrsv-ink ); font-weight: 600; }
.wrsv-done-manage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 1.1rem 0 0;
}
.wrsv-done-manage-hint { color: var( --wrsv-muted ); font-size: var( --wdt-font-size-sm, 0.84rem ); }

/* ── The action bar sticks on a phone (mockups 01–03) ────────────────
 *
 * ONE submit, made sticky — not a second button pinned to the viewport. Two submits in one form
 * is two controls that can disagree about what was pressed, and the consent checkbox has to
 * travel with the button that books, so the whole strip sticks or nothing does.
 *
 * Only where the page actually scrolls under it: on a short container a sticky footer sits in the
 * middle of empty space, which reads as a rendering fault rather than as a control.
 */
@container wrsv ( max-width: 42rem ) {
	.wrsv-foot {
		position: sticky;
		/*
		 * THE OFFSET IS A HOOK, BECAUSE A TENANT MAY ALREADY OWN THE BOTTOM OF THE SCREEN.
		 *
		 * Measured on this demo: the theme ships a fixed mobile bottom navigation (`.wfd-bottomnav`)
		 * and a `bottom: 0` action bar sits underneath it, with the booking button half hidden.
		 * A shortcode cannot know what a theme has pinned to the viewport, and it must not guess a
		 * height — so it exposes `--wrsv-sticky-bottom` and defaults to 0, which is correct for a
		 * theme that has pinned nothing. A theme with its own bar sets the variable once and both
		 * fit; the fallback keeps every other tenant finished with no configuration at all
		 * (standalone-first, lock 8). `env(safe-area-inset-bottom)` is added on top for the home
		 * indicator on a notched phone, which is a device fact rather than a theme's choice.
		 */
		bottom: calc( var( --wrsv-sticky-bottom, 0px ) + env( safe-area-inset-bottom, 0px ) );
		z-index: 5;
		/* An opaque ground: the plan scrolls UNDER this bar, and a translucent strip over a floor
		   plan makes both unreadable. */
		background: var( --wrsv-surface );
		box-shadow: 0 -1px 0 var( --wrsv-line ), 0 -10px 24px -18px rgba( 32, 35, 43, 0.5 );
	}
	.wrsv-foot .wrsv-submit { flex: 1 1 100%; }
	.wrsv-foot .wrsv-button { width: 100%; }
	/*
	 * ── THE CONSENT TRAVELS WITH THE BUTTON IT AUTHORISES ─────────────────────
	 *
	 * Option A, deliberately, over "reveal the consent when they press the button". Two reasons,
	 * and the second is the decisive one:
	 *
	 *  1. An action's precondition belongs where the action is offered, not after it is attempted.
	 *     A consent that appears only once somebody has pressed the primary button is technically
	 *     fine and feels like a gate that was hidden.
	 *  2. THIS FORM BOOKS WITH NO JAVASCRIPT. A confirm sheet needs a script, so the no-JS path
	 *     would still need the checkbox on the page — leaving TWO consent controls for one legal
	 *     act, which is the "two controls, one value" trap this module has now hit three times
	 *     (`wrsv_view`/`wrsv_view_to`, the duplicated settings inputs, the party stepper). For a
	 *     consent checkbox that trap is not a bug, it is an evidence problem.
	 *
	 * So the strip is one solid ground carrying the sentence, the box and the button together, and
	 * the bar grows by however many lines German needs.
	 */
	.wrsv-foot { padding: 0.85rem 1rem calc( 0.85rem + env( safe-area-inset-bottom, 0px ) ); }
	.wrsv-foot .wrsv-consent { padding: 0; }
	.wrsv-foot .wrsv-trust { margin-top: 0.1rem; }
	/*
	 * ── A STRIP THAT CARRIES THE PAYMENT TERMS DOES NOT STICK ─────────────────
	 *
	 * The payment terms box (2.27.0) sits in this strip because its checkbox authorises the button. With it the strip grew
	 * to 648 px of an 844 px phone screen under a 105 px theme header, and with the Danish checkout lines (R28) to 1013 px:
	 * taller than the screen, so at every scroll position it covered the party, date, time and name fields above it, and a
	 * guest could not change the party at all (measured in Chrome at 390 px, review RSG44R H-1 fix round). Legal text the
	 * guest must read before paying is read in the flow of the page, so such a strip stays where it is in the form: the
	 * box, the tick and the button still travel together, at the end of the form. A strip without payment terms keeps sticking.
	 */
	.wrsv-foot:has( [data-wrsv-pay-terms] ),
	.wrsv-foot:has( [data-wrsv-addons] ),
	.wrsv-foot:has( [data-wrsv-preorder] ) { /* R29, R31: a list is read and chosen in the flow, never under a sticky strip */
		position: static;
		box-shadow: none;
	}
}
/* R31 — the guest's dishes: the add-on rows, inside one closed line. */
.wrsv-preorder {
	margin: 0 0 1rem;
}
.wrsv-preorder summary {
	cursor: pointer;
	font-weight: 600;
	padding: .625rem 0; /* a 44 px target; the disclosure arrow stays, so it reads as something to open */
}
.wrsv-preorder-note {
	margin: 0 0 .75rem;
	font-size: .875em;
}
.wrsv-preorder-section {
	border: 0;
	margin: 0 0 .75rem;
	padding: 0;
}
.wrsv-preorder-section legend {
	font-weight: 600;
	padding: 0;
}
.wrsv-preorder-section .wrsv-addons-list {
	margin: 0;
	padding: 0;
}
/* R29 — the add-ons a slot sells: one row per offer, the control and name first, price and line beneath. */
.wrsv-addons {
	border: 1px solid var( --wrsv-line, #d9dde3 );
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 14px;
}
.wrsv-addons legend {
	font-weight: 600;
	padding: 0 6px;
}
.wrsv-addons-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wrsv-addon {
	display: grid;
	gap: 2px;
	padding: 8px 0;
	border-bottom: 1px solid var( --wrsv-line, #eceff3 );
}
.wrsv-addon:last-child {
	border-bottom: 0;
}
.wrsv-addon-pick {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}
.wrsv-addon-pick select {
	min-width: 64px;
	min-height: 40px;
}
.wrsv-addon-name {
	font-weight: 600;
}
.wrsv-addon-price,
.wrsv-addon-descr,
.wrsv-addon-scope,
.wrsv-addons-terms {
	font-size: 0.9em;
	color: var( --wrsv-muted, #5a606b );
}
.wrsv-addons-terms {
	margin: 8px 0 0;
}
/*
 * A KEYBOARD USER MUST NOT LOSE THE FIELD THEY ARE TABBING TO BEHIND THE BAR. `scroll-padding`
 * on the scrolling box keeps the focused control clear of the sticky strip, and it costs nothing
 * on a layout where the bar is not sticky.
 */
@container wrsv ( max-width: 42rem ) {
	.wrsv-shell { scroll-padding-bottom: calc( 6rem + var( --wrsv-sticky-bottom, 0px ) ); }
}

/*
 * The visually-hidden utility. Used for a fieldset legend that names a radio group but must not
 * print a second heading beside the panel title. Never `display:none` and never `[hidden]`: both
 * take the element out of the accessibility tree, which would leave the group unnamed.
 */
.wrsv-shell .wrsv-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}

/* The drawn stand-in for a room with no photograph. Low contrast on the card's own tint: it must
   read as a deliberate mark, never as the subject of the card. */
.wrsv-room-glyph {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0.55rem 0;
	fill: var( --wrsv-muted );
	opacity: 0.28;
}
.wrsv-room[aria-pressed="true"] .wrsv-room-glyph { fill: var( --wrsv-brand ); opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   THE 2.2 GUEST SURFACE — the ivory/green reference, built
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── The step index becomes the reference's connected stepper ──────── */

.wrsv-steps ol {
	justify-content: space-between;
	gap: 0;
	position: relative;
}
.wrsv-stepitem { flex: 1 1 0; min-width: 0; text-align: center; }
.wrsv-stepitem a {
	flex-direction: column;
	gap: 0.45rem;
	align-items: center;
	width: 100%;
	padding: 0.2rem 0.2rem 0;
	font-size: 0.82rem;
}
/*
 * THE CONNECTOR IS A PSEUDO-ELEMENT ON THE ITEM, NOT A LINE UNDER THE ROW, so it can never run
 * past the last step or start before the first: `:last-child` simply has none. It sits behind the
 * numerals and stops short of them on both sides.
 */
.wrsv-stepitem:not( :last-child )::after {
	content: "";
	position: absolute;
	top: 0.82rem;
	height: 1px;
	background: var( --wrsv-line );
	z-index: 0;
}
.wrsv-stepnum {
	position: relative;
	z-index: 1;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var( --wrsv-line );
	background: var( --wrsv-surface );
	color: var( --wrsv-muted );
	box-shadow: 0 0 0 4px var( --wrsv-ground );
}
.wrsv-stepitem.is-done .wrsv-stepnum,
.wrsv-stepitem:first-child .wrsv-stepnum {
	border-color: var( --wrsv-brand );
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
}
.wrsv-stepitem.is-done a,
.wrsv-stepitem:first-child a { color: var( --wrsv-brand ); font-weight: 700; }
/* Only a COMPLETED step trades its numeral for a tick. The first step is highlighted because it is
   where the guest starts, which is not the same claim as "this is finished". */
.wrsv-stepitem:first-child:not( .is-done ) .wrsv-stepnum::after { content: none; }
.wrsv-stepitem:first-child:not( .is-done ) .wrsv-stepnum { font-size: 0.8rem; }

/* ── Fields: label above value, in a bordered card with a leading icon ── */

.wrsv-row {
	position: relative;
	padding: 0.55rem 0.85rem 0.6rem 2.6rem;
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-field );
}
/*
 * ── LABELS: WRAP BETWEEN WORDS, NEVER INSIDE ONE ──────────────────────────────
 *
 * The same rule the quick-action tiles carry, and for the same reason: a word broken across two
 * lines ("Gäs" / "te") reads as a rendering fault, while a phrase wrapped between its words reads
 * as a phrase. Two lines are fine. Breaking a word is not, and neither is shortening the label to
 * make it fit — "Anzahl der Gäste" is the right words.
 *
 * Where even that will not fit, the label SCALES rather than breaks. `.wrsv-row` is its own inline
 * container, so `cqi` is the width of this field and not of the page: a narrow card takes a
 * slightly smaller label, a wide one takes the full size, and neither ever chops a word. The floor
 * is 0.68rem, which is still comfortably legible.
 */
.wrsv-row { container-type: inline-size; }
.wrsv-row label {
	margin-bottom: 0.1rem;
	font-size: clamp( 0.68rem, 5.6cqi, 0.76rem );
	font-weight: 500;
	line-height: 1.3;
	color: var( --wrsv-muted );
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}
/*
 * The control loses its own box entirely: the ROW is the box now. This is what turns a stack of
 * outlined inputs into the reference's card fields, and it is one rule rather than a rewrite of
 * the markup — every input, select and textarea already sits inside `.wrsv-row`.
 */
.wrsv-row input,
.wrsv-row select,
.wrsv-row textarea {
	min-height: 1.6rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 1rem;
	font-weight: 600;
	color: var( --wrsv-ink );
}
.wrsv-row textarea { min-height: 2.6rem; }
.wrsv-row input:hover,
.wrsv-row select:hover,
.wrsv-row textarea:hover { border-color: transparent; }
/* The focus ring moves to the CARD, because the card is what a person sees as the field. */
.wrsv-row input:focus-visible,
.wrsv-row select:focus-visible,
.wrsv-row textarea:focus-visible { outline: none; border-color: transparent; }
.wrsv-row:focus-within {
	border-color: var( --wrsv-brand );
	box-shadow: 0 0 0 3px var( --wrsv-brand-soft );
}

/*
 * THE LEADING ICON IS DRAWN IN CSS, NOT SHIPPED AS A FONT OR AN SVG PER FIELD.
 *
 * A masked background keeps it one rule per field type and lets it take `currentColor`, so it
 * follows the theme and the dark palette without a second asset. `mask` rather than a coloured
 * SVG for exactly that reason. Fields with no known type simply have no icon — an unrecognised
 * field must not get a wrong one.
 */
.wrsv-row::before {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 0.95rem;
	width: 1.05rem;
	height: 1.05rem;
	background: var( --wrsv-muted );
	opacity: 0.75;
	-webkit-mask: var( --wrsv-icon ) center / contain no-repeat;
	mask: var( --wrsv-icon ) center / contain no-repeat;
}
.wrsv-row:not( [style*="--wrsv-icon"] ):not( [data-wrsv-icon] )::before { content: none; }
.wrsv-row[data-wrsv-icon]::before { content: ""; }
.wrsv-row[data-wrsv-icon="user"]  { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="phone"] { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h4l2 5-3 2a13 13 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 4 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="mail"]  { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="date"]  { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="time"]  { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="party"] { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.4'/%3E%3Cpath d='M2.5 20c0-3.4 2.9-5.2 6.5-5.2s6.5 1.8 6.5 5.2'/%3E%3Cpath d='M17 6.2a3.4 3.4 0 0 1 0 6.4M18.5 20c0-2.3-.9-3.9-2.4-4.8'/%3E%3C/svg%3E" ); }
.wrsv-row[data-wrsv-icon="note"]  { --wrsv-icon: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M14 3v6h5'/%3E%3C/svg%3E" ); }

/* ── The party-size stepper ─────────────────────────────────────────── */

/*
 * ── THE PARTY CARD IS A GRID, NOT A CARD WITH SOMETHING FLOATING ON IT ────────
 *
 * MEASURED IN GERMAN, WHICH IS THE POINT. The stepper used to be absolutely positioned with
 * `padding-right: 5.6rem` reserving its lane, so the label got what was left. Turkish "Kişi sayısı"
 * survived on two lines; German "Anzahl der Gäste *" broke to FOUR, clipped mid-word to "Gäs", and
 * orphaned its asterisk onto a line of its own while the value fell underneath. A layout that only
 * holds in the shortest of three languages is not fixed, it is untested — and the product's default
 * locale is now the longest one.
 *
 * So the label gets the whole width on its own row and the value shares the row beneath it with
 * the stepper. Nothing competes for the same line, the card grows by one line rather than four,
 * and the same structure holds in every language because no lane is reserved for anything.
 */
.wrsv-row-party {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	grid-template-areas:
		"label label"
		"value ctl";
	align-items: center;
	column-gap: 0.6rem;
	row-gap: 0.15rem;
	padding-right: 0.85rem;
}
.wrsv-row-party > label { grid-area: label; }
.wrsv-row-party > input {
	grid-area: value;
	/*
	 * ── AND THE NUMBER BETWEEN THE TWO BUTTONS IS A TARGET TOO (2.8.6, F-6214) ────
	 *
	 * `.wrsv-row input` strips every field to `min-height:1.6rem; padding:0`, which is what turns
	 * the stack into the reference's card fields — and it left this one 179.63 × 25.59 at 390px.
	 *
	 * MEASURED (`round2/hittest-party.mjs`, nine points of the 44×44 box centred on the input, one
	 * real click per page load): the padded card around it is a `<p>`, not a `<label>`, so six of
	 * those nine points hit the card and put the caret NOWHERE. The row is not the target; the
	 * input is, so the floor goes on the input.
	 *
	 * It costs no layout: the `−`/`+` buttons share this grid row and already stand 44px tall, so
	 * the row was 44px inside regardless — the field simply fills the height it was already given.
	 */
	min-height: 44px;
}
.wrsv-party-ctl {
	grid-area: ctl;
	display: flex;
	gap: 0.35rem;
}
/*
 * ── 44×44 IS THE TARGET (2.8.6, F-6214) ───────────────────────────────────────
 *
 * Measured at 390px: 33.59 × 33.59 — the smallest interactive control on the booking form, and the
 * one a guest uses while holding the phone in the other hand. `min-*` in px rather than a bigger
 * `rem` width, because the floor is a physical finger and must survive a tenant that shrinks the
 * root font; the visible circle is the button itself, so the target cannot be padded away from it.
 * The stepper column is `auto`, so both viewports simply give it the width it now asks for.
 */
.wrsv-party-ctl button {
	width: 2.1rem;
	height: 2.1rem;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var( --wrsv-line );
	border-radius: 999px;
	background: var( --wrsv-surface );
	color: var( --wrsv-ink );
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.wrsv-party-ctl button:hover { background: var( --wrsv-brand-soft ); border-color: var( --wrsv-brand ); color: var( --wrsv-brand ); }
.wrsv-party-ctl button:focus-visible { outline: 2px solid var( --wrsv-brand ); outline-offset: 2px; }
/* The native spinner would be a second control for the same value sitting inside the first. */
.wrsv-row-party input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.wrsv-row-party input::-webkit-outer-spin-button,
.wrsv-row-party input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Section headings, in the reference's voice ─────────────────────── */

.wrsv-panel-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.35rem; }
.wrsv-panel-title { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.wrsv-panel-lead { margin: 0 0 1rem; color: var( --wrsv-muted ); font-size: 0.9rem; line-height: 1.5; }
/* The step numeral already sits in the stepper above; repeating it beside every heading was the
   zip's device and it fights the reference's cleaner section titles. */
.wrsv-panel-head .wrsv-step { display: none; }

/* The "Güvenli ve gizli" marker, aligned to the section title's baseline. */
.wrsv-panel-mark {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var( --wrsv-muted );
	font-size: 0.78rem;
	font-weight: 600;
}
.wrsv-panel-mark::before {
	content: "";
	width: 0.85rem;
	height: 0.85rem;
	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='2' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 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='2' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E" ) center / contain no-repeat;
}

/* ── Salon cards: photography first ─────────────────────────────────── */

.wrsv-room { padding: 0; overflow: hidden; border-radius: var( --wrsv-radius ); }
.wrsv-room-thumb { height: 6.5rem; margin-bottom: 0; border-radius: 0; }
.wrsv-room-name,
.wrsv-room-count { padding-inline: 0.7rem; }
.wrsv-room-name { padding-top: 0.6rem; }
.wrsv-room-count { padding-bottom: 0.7rem; }
.wrsv-room[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var( --wrsv-brand ); background: var( --wrsv-surface ); }
/* The chosen room carries a tick badge as well as a ring — two signals, so the choice never rests
   on colour alone. Drawn, never a glyph from whatever font the visitor happens to have. */
.wrsv-room { position: relative; }
.wrsv-room[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: var( --wrsv-brand ) url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E" ) center / 0.85rem no-repeat;
}

/* ── The notice strip (auto-assign) ─────────────────────────────────── */

.wrsv-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0.9rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-brand-soft );
	line-height: 1.45;
}
.wrsv-notice-mark {
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 999px;
	background: var( --wrsv-surface );
	position: relative;
}
.wrsv-notice-mark::after {
	content: "";
	position: absolute;
	inset: 0.42rem;
	background: var( --wrsv-brand );
	-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16M6 11V8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v3M5 11v6M19 11v6M8 17h8'/%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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16M6 11V8a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v3M5 11v6M19 11v6M8 17h8'/%3E%3C/svg%3E" ) center / contain no-repeat;
}
.wrsv-notice-body strong { display: block; font-size: 0.94rem; font-weight: 700; }
.wrsv-notice-body span { display: block; color: var( --wrsv-muted ); font-size: 0.85rem; }

/* ── The closing strip: full-width green primary and its trust line ── */

/*
 * ── THE STICKY BAR MUST BE OPAQUE, AND THIS RULE IS WHY IT WAS NOT ────────────
 *
 * MY OWN REGRESSION, and a source-order one — the same class as the media query that did nothing
 * earlier tonight. The 2.2 guest surface wants the closing strip to sit ON the ivory ground on a
 * WIDE screen, so it was given `background: transparent; border: 0`. But that rule sits ~350 lines
 * BELOW the `@container ( max-width: 42rem )` block that makes the same element a sticky bar with
 * an opaque background — and a container query adds no specificity, so the later flat rule won.
 *
 * On a phone the result was a consent sentence and its checkbox floating with no ground over the
 * table list, cutting straight through the M1 row. It read as a rendering fault rather than a
 * control, which for a consent checkbox is the worst thing it could read as.
 *
 * So the transparent treatment is scoped to the width that actually wants it. The narrow layout
 * keeps its opaque bar, unconditionally, and cannot be overridden by anything after it.
 */
@container wrsv ( min-width: 42rem ) {
	.wrsv-foot { background: transparent; border: 0; padding-inline: 0; }
}
.wrsv-foot { flex-direction: column; align-items: stretch; gap: 0.9rem; }
.wrsv-foot .wrsv-consent { flex: 1 1 auto; }
.wrsv-foot .wrsv-submit { flex: 1 1 auto; }
.wrsv-foot .wrsv-button { width: 100%; min-height: 3.4rem; font-size: 1.02rem; border-radius: var( --wrsv-radius-sm ); }
.wrsv-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0;
	color: var( --wrsv-muted );
	font-size: 0.82rem;
	line-height: 1.45;
	text-align: center;
}
.wrsv-trust::before {
	content: "";
	flex: 0 0 auto;
	width: 0.95rem;
	height: 0.95rem;
	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='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.4-3 8-7 9-4-1-7-4.6-7-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%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='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.4-3 8-7 9-4-1-7-4.6-7-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E" ) center / contain no-repeat;
}
/* The consent tick takes the brand colour, as the reference shows it. */
.wrsv-consent input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var( --wrsv-brand ); }

/* The whole shell sits on the warm ground, with the panels as the white cards on top of it. */
.wrsv-panel { background: var( --wrsv-surface ); border-color: var( --wrsv-line ); }

/* The note is the only field a guest writes prose into, so it gets prose room. `min-height` rather
   than rows alone, because a textarea's row count is a font-relative guess and this has to hold a
   sentence in German. */
.wrsv-row-note textarea { min-height: 6.5rem; }

/*
 * A PLACEHOLDER MUST NOT LOOK LIKE A VALUE. The field styling sets its content to 600-weight ink
 * so a real answer reads strongly, and the placeholder inherited both — so an empty note rendered
 * as though the guest had already written "Allergien, ein Kinderstuhl…". A hint that reads as an
 * answer is worse than no hint: it invites somebody to submit somebody else's words.
 */
.wrsv-row input::placeholder,
.wrsv-row textarea::placeholder {
	color: var( --wrsv-muted );
	font-weight: 400;
	opacity: 0.85;
}

.wrsv-done-next { margin: 0.9rem 0 0; color: var( --wrsv-muted ); font-size: var( --wdt-font-size-sm, 0.9rem ); line-height: 1.55; }

/*
 * The consent sentence is ONE flex child, not loose text plus an anchor.
 *
 * `.wrsv-consent label` is a flex row, so a bare text node and an `<a>` beside it became two
 * separate flex items — the link was pushed into its own column and the sentence wrapped to four
 * lines, growing the sticky bar to 215px in Turkish. Wrapping them in a span gives the label
 * exactly two children (the box, and the words) and lets the link flow inline where it belongs.
 */
.wrsv-consent-text { min-width: 0; flex: 1 1 auto; }
/* Visibly a link, and visibly not the whole sentence. It may wrap with the text — pinning it with
   `nowrap` was what forced the bad column in the first place. */
.wrsv-consent-doc { text-underline-offset: 2px; }

/* ── The "reserve directly with us" block — [wepro_rsv_switch] (2.7.0) ──────────────────────
 *
 * A restaurant leaving a booking portal puts this on its own page to tell its own guests where to
 * book instead. It is deliberately ONE section with ONE action: the whole failure mode of a
 * migration page is a guest who reads three paragraphs and never finds the button.
 *
 * EVERY COLOUR COMES FROM THE TOKENS THIS FILE ALREADY DEFINES, which is what makes the block sit
 * inside the tenant's own theme rather than on top of it — `--wdt-*` first, our fallback second,
 * dark mode inherited from the block above with no second declaration here.
 */

.wrsv-switch {
	margin: var( --wrsv-gap ) 0;
	padding: clamp( 1.6rem, 4vw, 3rem ) var( --wrsv-pad );
	border: 1px solid var( --wrsv-line );
	border-radius: var( --wrsv-radius );
	background: var( --wrsv-brand-soft );
	color: var( --wrsv-ink );
}
/* The measure is capped and centred rather than filling the column: a line of body text running
   the full width of a 2560px monitor is unreadable, and this block is most often dropped onto a
   full-width page template. */
.wrsv-switch-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
/* SELECTOR DOUBLED ON PURPOSE. A theme's own `h2` rule outranks a single class, and it did:
   measured on a real render, the heading came out at the theme's display size and dwarfed the
   button it exists to introduce. `.wrsv-switch .wrsv-switch-title` is 0-2-0 and wins without an
   forced-priority declaration, which this stylesheet does not use anywhere (see its header). */
.wrsv-switch .wrsv-switch-title {
	margin: 0 0 0.6rem;
	font-size: clamp( 1.35rem, 2.6vw, 2rem );
	line-height: 1.2;
	color: var( --wrsv-ink );
}
.wrsv-switch-body { margin: 0 0 1.4rem; color: var( --wrsv-muted ); line-height: 1.6; }
.wrsv-switch-act { margin: 0; }

.wrsv-switch-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* 48px, because this is the one control on the section and it is tapped with a thumb. */
	min-height: 48px;
	padding: 0.75rem 1.9rem;
	border-radius: var( --wrsv-radius-sm );
	background: var( --wrsv-brand );
	color: var( --wrsv-on-brand );
	font-weight: 700;
	text-decoration: none;
}
.wrsv-switch-cta:hover,
.wrsv-switch-cta:focus { color: var( --wrsv-on-brand ); text-decoration: none; opacity: 0.92; }

/* The WhatsApp affordance is deliberately QUIETER than the booking button. It says "ask", and a
   guest who takes it has not got a table — see wepro_rsv_whatsapp_link(). Making the two equal
   weight would invite the tap that ends with a party arriving to no reservation. */
.wrsv-switch-alt { margin: 0.9rem 0 0; }
.wrsv-switch-wa {
	color: var( --wrsv-muted );
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
