/**
 * QRSVP public widgets — "paper and ink" (event page redesign, 27 Sep 2026).
 *
 * No colour values in this file — only tokens from qrsvp-tokens.css — with
 * two deliberate exceptions: QR images sit on #FFFFFF, because a scanner
 * needs dark-on-light whatever the page colour is; and the dialog's
 * backdrop has an rgba() fallback, because ::backdrop did not inherit
 * custom properties in older browsers. Shadows are mixed from the text
 * token. Every text/background pairing used here is one of the audited
 * pairs in QRSVP_Presets (checked by tools/check-contrast.php).
 *
 * Layout: flex/grid with gap, never margins between siblings.
 *
 * Type: headings in --qrsvp-font-heading (Bricolage Grotesque by default),
 * body and UI in --qrsvp-font-body/-ui (Instrument Sans), labels and door
 * codes in --qrsvp-font-mono (DM Mono). Inputs are 16px so iOS never zooms.
 */

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

/*
 * The HTML `hidden` attribute must win. Any class that sets `display`
 * (buttons, fields, the countdown row) otherwise overrides the browser's own [hidden] rule, and
 * scripts that hide things with `el.hidden = true` silently stop working.
 */
.qrsvp[hidden],
.qrsvp [hidden] {
	display: none !important;
}

.qrsvp {
	--qrsvp-shadow: color-mix(in srgb, var(--qrsvp-text) 45%, transparent);
	--qrsvp-shadow-soft: color-mix(in srgb, var(--qrsvp-text) 12%, transparent);
	-webkit-font-smoothing: antialiased;
	color: var(--qrsvp-text);
	font-family: var(--qrsvp-font-body), system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.qrsvp :where(p, ul, ol, dl, dd, figure, h1, h2, h3) {
	margin: 0;
}

/*
 * Links inside QRSVP pin their colour, like the buttons below: the starter
 * kit's ink register band sets every link in it to cream (so shortcode
 * links in the footer stay readable), and that rule (0,3,1) would put cream
 * links on the form's white card. Text colour + underline is always one of
 * the measured pairs, on whichever surface the link sits.
 */
.qrsvp a:not(.qrsvp-btn),
.qrsvp a:not(.qrsvp-btn):is(:hover, :focus, :visited, :active) {
	color: var(--qrsvp-text) !important;
}

.qrsvp a:not(.qrsvp-btn) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.qrsvp a:not(.qrsvp-btn):hover {
	text-decoration-thickness: 2px;
}

.qrsvp :focus-visible {
	outline: 3px solid var(--qrsvp-primary);
	outline-offset: 2px;
}

.qrsvp .qrsvp-icon {
	display: block;
	flex: none;
	height: 20px;
	width: 20px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------------------------------------------------------------- */
/* Shared pieces                                                    */
/* ---------------------------------------------------------------- */

.qrsvp-label,
.qrsvp-eyebrow {
	color: var(--qrsvp-muted);
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.qrsvp-title {
	color: var(--qrsvp-text);
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.qrsvp-lead {
	font-size: 1.05rem;
}

.qrsvp-hint {
	color: var(--qrsvp-muted);
	font-size: 15px;
}

.qrsvp-center {
	text-align: center;
}

.qrsvp-struck {
	text-decoration: line-through;
}

.qrsvp-optional {
	color: var(--qrsvp-muted);
	font-weight: 400;
}

/*
 * Buttons are scoped under .qrsvp and pin their colours in EVERY state.
 * Themes style bare `[type=button]`, `button:hover`, `button:focus` and
 * `a:hover` — Hello Elementor paints them #CC3366 with white text, 3px
 * corners and nowrap — and any state we leave unset inherits theirs: that
 * is how "+ Add another guest" once turned white on its light hover and the
 * submit button turned pink inside our blue border. Elementor then adds
 * `.elementor-7 .elementor-element.elementor-element-x a:hover` (0,4,1) for
 * each section's link colour, which outranks any sane class chain, so the
 * state colours are !important. Widget colour controls still work: they set
 * the --qrsvp-* tokens, not these properties.
 *
 * Hover swaps to another MEASURED pair — accent → ink (on-band on band),
 * outline → filled ink — as the design does, never to an unmeasured tint.
 */
.qrsvp .qrsvp-btn {
	align-items: center;
	border: 1.5px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--qrsvp-font-ui), system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: var(--qrsvp-hit);
	padding: 0 22px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	white-space: normal;
}

.qrsvp .qrsvp-btn .qrsvp-icon {
	height: 18px;
	stroke-width: 2.2;
	width: 18px;
}

/* Primary: the organizer's accent; hover goes to ink. */
.qrsvp .qrsvp-btn--primary,
.qrsvp .qrsvp-btn--primary:is(:focus, :visited) {
	background: var(--qrsvp-primary) !important;
	border-color: var(--qrsvp-primary) !important;
	color: var(--qrsvp-on-primary) !important;
}

.qrsvp .qrsvp-btn--primary:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-band) !important;
	border-color: var(--qrsvp-band) !important;
	color: var(--qrsvp-on-band) !important;
}

/* Ink: "Show the map"; hover goes to the accent. */
.qrsvp .qrsvp-btn--ink,
.qrsvp .qrsvp-btn--ink:is(:focus, :visited) {
	background: var(--qrsvp-band) !important;
	border-color: var(--qrsvp-band) !important;
	color: var(--qrsvp-on-band) !important;
}

.qrsvp .qrsvp-btn--ink:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-primary) !important;
	border-color: var(--qrsvp-primary) !important;
	color: var(--qrsvp-on-primary) !important;
}

/* Outline: "Get directions", "Add to calendar"; hover fills with ink. */
.qrsvp .qrsvp-btn--outline,
.qrsvp .qrsvp-btn--outline:is(:focus, :visited),
.qrsvp .qrsvp-btn--ghost,
.qrsvp .qrsvp-btn--ghost:is(:focus, :visited) {
	background: transparent !important;
	border-color: var(--qrsvp-text) !important;
	color: var(--qrsvp-text) !important;
}

.qrsvp .qrsvp-btn--outline:is(:hover, :focus-visible, :active),
.qrsvp .qrsvp-btn--ghost:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-band) !important;
	border-color: var(--qrsvp-band) !important;
	color: var(--qrsvp-on-band) !important;
}

/* Quiet: "Cancel place" — danger only on hover (danger on field: 6.5:1). */
.qrsvp .qrsvp-btn--quiet,
.qrsvp .qrsvp-btn--quiet:is(:focus, :visited) {
	background: var(--qrsvp-field) !important;
	border-color: var(--qrsvp-border) !important;
	color: var(--qrsvp-text) !important;
}

.qrsvp .qrsvp-btn--quiet:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-field) !important;
	border-color: var(--qrsvp-danger) !important;
	color: var(--qrsvp-danger) !important;
}

.qrsvp .qrsvp-btn--danger,
.qrsvp .qrsvp-btn--danger:is(:focus, :visited) {
	background: var(--qrsvp-danger) !important;
	border-color: var(--qrsvp-danger) !important;
	color: var(--qrsvp-field) !important;
}

.qrsvp .qrsvp-btn--danger:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-allergy) !important;
	border-color: var(--qrsvp-allergy) !important;
	color: var(--qrsvp-field) !important;
}

.qrsvp .qrsvp-btn--danger-outline,
.qrsvp .qrsvp-btn--danger-outline:is(:focus, :visited) {
	background: transparent !important;
	border-color: var(--qrsvp-danger) !important;
	color: var(--qrsvp-danger) !important;
}

.qrsvp .qrsvp-btn--danger-outline:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-allergy-bg) !important;
	border-color: var(--qrsvp-danger) !important;
	color: var(--qrsvp-danger) !important;
}

.qrsvp .qrsvp-btn:active:not([disabled]) {
	transform: translateY(1px);
}

.qrsvp .qrsvp-btn--sm {
	font-size: 15px;
	min-height: 44px;
	padding: 0 18px;
}

.qrsvp .qrsvp-btn--lg {
	font-size: 17px;
	min-height: 58px;
	padding: 0 28px;
}

.qrsvp .qrsvp-btn--xl {
	font-size: 18px;
	gap: 12px;
	min-height: 60px;
	padding: 0 24px;
}

.qrsvp .qrsvp-btn--lg.qrsvp-btn--primary,
.qrsvp .qrsvp-btn--xl.qrsvp-btn--primary {
	box-shadow: 0 14px 26px -14px var(--qrsvp-primary);
}

.qrsvp .qrsvp-btn--block {
	width: 100%;
}

.qrsvp .qrsvp-btn--small {
	font-size: 15px;
	min-height: 44px;
	padding: 0 18px;
}

.qrsvp .qrsvp-btn[disabled] {
	cursor: progress;
}

.qrsvp .qrsvp-textlink {
	align-items: center;
	display: inline-flex;
	font-size: 16px;
	font-weight: 600;
	min-height: 44px;
	text-underline-offset: 4px;
}

.qrsvp .qrsvp-textlink--sm {
	font-size: 14px;
	min-height: 32px;
}

/* Chips and the status chip: a state is always a WORD, never colour alone. */
.qrsvp-chip,
.qrsvp-status {
	align-items: center;
	background: var(--qrsvp-surface-2);
	border-radius: 999px;
	color: var(--qrsvp-text);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 7px;
	line-height: 1.2;
	min-height: 26px;
	padding: 3px 11px;
	white-space: nowrap;
}

.qrsvp-chip--ok,
.qrsvp-chip.is-free,
.qrsvp-status--open {
	background: var(--qrsvp-success-bg);
	color: var(--qrsvp-success);
}

.qrsvp-chip--warn,
.qrsvp-status--few {
	background: var(--qrsvp-warning-bg);
	color: var(--qrsvp-warning);
}

.qrsvp-status {
	font-size: 14px;
	min-height: 32px;
	padding: 4px 14px 4px 12px;
	gap: 8px;
}

.qrsvp-status__dot {
	background: currentColor;
	border-radius: 50%;
	flex: none;
	height: 8px;
	width: 8px;
}

/* Closed or full stands out in the site's own reds (allergy on allergy-bg,
   7.8:1): the owner asked for it to be noticeable, like "open" in green.
   Ended stays quiet — nothing can be done about it. */
.qrsvp-status--closed {
	background: var(--qrsvp-allergy-bg);
	color: var(--qrsvp-allergy);
}

.qrsvp-status--closed .qrsvp-status__dot {
	background: var(--qrsvp-danger);
}

.qrsvp-status--ended .qrsvp-status__dot {
	background: var(--qrsvp-muted);
}

/* Notices: the icon and a bold first sentence carry the meaning. */
.qrsvp-notice {
	align-items: flex-start;
	border-radius: 14px;
	display: flex;
	font-size: 16px;
	gap: 12px;
	line-height: 1.45;
	padding: 16px 18px;
}

.qrsvp-notice .qrsvp-icon {
	height: 22px;
	margin-top: 1px;
	stroke-width: 2.4;
	width: 22px;
}

.qrsvp-notice strong,
.qrsvp-notice__title {
	font-weight: 600;
}

.qrsvp-notice--ok {
	background: var(--qrsvp-success-bg);
	color: var(--qrsvp-success);
}

.qrsvp-notice--info {
	background: var(--qrsvp-surface-2);
	color: var(--qrsvp-text);
	flex-direction: column;
	gap: 6px;
}

.qrsvp-notice--info:has(> .qrsvp-icon) {
	flex-direction: row;
	gap: 12px;
}

.qrsvp-notice--error {
	background: var(--qrsvp-allergy-bg);
	color: var(--qrsvp-allergy);
}

.qrsvp-placeholder {
	background: var(--qrsvp-surface-alt);
	border: 2px dashed var(--qrsvp-border);
	border-radius: var(--qrsvp-r-card);
	display: grid;
	gap: 6px;
	padding: 20px;
	text-align: center;
}

.qrsvp-placeholder__title {
	font-weight: 700;
}

.qrsvp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/* ---------------------------------------------------------------- */
/* The ticket stub: two halves with notches, on a drop shadow        */
/* ---------------------------------------------------------------- */

/*
 * The notches are radial-gradient backgrounds on the two halves, and the
 * shadow is a drop-shadow FILTER (a box-shadow would outline the notches'
 * missing corners), so the stub works at any content height.
 */
.qrsvp-stub {
	--stub-fill: var(--qrsvp-surface);
	filter: drop-shadow(0 1px 1px var(--qrsvp-shadow-soft)) drop-shadow(0 16px 24px var(--qrsvp-shadow-soft));
	max-width: 640px;
}

.qrsvp-stub--white {
	--stub-fill: var(--qrsvp-field);
	max-width: none;
}

.qrsvp-stub__top {
	background:
		radial-gradient(circle at 0 100%, transparent 13px, var(--stub-fill) 13.5px) 0 0 / 51% 100% no-repeat,
		radial-gradient(circle at 100% 100%, transparent 13px, var(--stub-fill) 13.5px) 100% 0 / 51% 100% no-repeat;
	border-radius: 18px 18px 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px) 22px;
}

.qrsvp-stub__bottom {
	background:
		radial-gradient(circle at 0 0, transparent 13px, var(--stub-fill) 13.5px) 0 0 / 51% 100% no-repeat,
		radial-gradient(circle at 100% 0, transparent 13px, var(--stub-fill) 13.5px) 100% 0 / 51% 100% no-repeat;
	border-radius: 0 0 18px 18px;
	padding: 0 clamp(20px, 2.6vw, 28px) clamp(18px, 2.4vw, 24px);
}

.qrsvp-stub__bottom::before {
	border-top: 2px dashed var(--qrsvp-line);
	content: "";
	display: block;
	margin: 0 0 18px;
}

.qrsvp-stub__grid {
	display: grid;
	gap: 20px 28px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.qrsvp-stub__split,
.qrsvp-stub__row {
	align-items: flex-end;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
}

.qrsvp-stub__cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.qrsvp-stub__cell--wide {
	grid-column: 1 / -1;
}

.qrsvp-stub .qrsvp-label {
	margin-bottom: 4px;
}

.qrsvp-stub__value {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: clamp(19px, 1.55vw, 22px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.qrsvp-stub__sub {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.45;
}

.qrsvp-stub__big {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 32px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.qrsvp-stub__ended {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 16px;
	gap: 12px;
}

.qrsvp-stub__ended strong {
	font-weight: 600;
}

.qrsvp-stub .qrsvp-stub__link {
	font-weight: 600;
}

/* The countdown inside the stub: days, hrs, min. */
.qrsvp-cd__units {
	align-items: baseline;
	display: flex;
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 24px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	gap: 14px;
	line-height: 1;
}

.qrsvp-cd__units b {
	font-weight: 700;
}

.qrsvp-cd__units small {
	color: var(--qrsvp-muted);
	font-family: var(--qrsvp-font-body), system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	margin-left: 2px;
}

/* ---------------------------------------------------------------- */
/* Header                                                           */
/* ---------------------------------------------------------------- */

.qrsvp-header {
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--qrsvp-surface-alt) 90%, transparent);
	border-bottom: 1px solid var(--qrsvp-line);
}

/* Only ever focused by script ("Back to top" hands focus here), never tabbed to. */
.qrsvp-header:focus {
	outline: none;
}

/*
 * Back to top. position: fixed, so its markup sits beside the header, not in
 * it (see event_header()). Hidden — and out of the tab order, which
 * visibility does and opacity alone would not — until the visitor is a
 * screen or more down the page; the script toggles .is-visible.
 *
 * Accent with the white arrow (the measured primary / on-primary pair),
 * hovering to ink like every primary button. The 2px surface ring keeps it
 * distinct where it passes over the ink register band and footer. Colours
 * are !important for the reason the buttons' are: themes style every
 * button state (Hello Elementor's button:hover is pink).
 */
.qrsvp .qrsvp-to-top {
	align-items: center;
	border: 0;
	border-radius: 999px;
	bottom: max(20px, env(safe-area-inset-bottom));
	box-shadow: 0 0 0 2px var(--qrsvp-surface), 0 12px 24px -10px var(--qrsvp-shadow);
	cursor: pointer;
	display: flex;
	height: 48px;
	justify-content: center;
	margin: 0;
	min-height: 0;
	opacity: 0;
	padding: 0;
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, background-color 0.15s ease, color 0.15s ease;
	visibility: hidden;
	width: 48px;
	z-index: 40;
}

.qrsvp .qrsvp-to-top.is-visible {
	opacity: 1;
	transform: none;
	transition-delay: 0s;
	visibility: visible;
}

.qrsvp .qrsvp-to-top,
.qrsvp .qrsvp-to-top:focus {
	background: var(--qrsvp-primary) !important;
	color: var(--qrsvp-on-primary) !important;
}

.qrsvp .qrsvp-to-top:is(:hover, :focus-visible, :active) {
	background: var(--qrsvp-band) !important;
	color: var(--qrsvp-on-band) !important;
}

.qrsvp .qrsvp-to-top .qrsvp-icon {
	height: 22px;
	stroke-width: 2.2;
	width: 22px;
}

.qrsvp-header__inner {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1336px;
	min-height: 64px;
	padding: 0 var(--qrsvp-gutter);
}

/* a.… : the pinned-link rule (.qrsvp a:not(.qrsvp-btn), 0,2,1) underlines
   every link; the header's own links opt out with the same weight, later. */
.qrsvp a.qrsvp-header__name {
	color: var(--qrsvp-text) !important;
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	min-width: 0;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.qrsvp-header__end {
	align-items: center;
	display: flex;
	flex: none;
	gap: 28px;
}

.qrsvp-header__nav {
	align-items: center;
	display: flex;
	gap: 26px;
}

.qrsvp .qrsvp-header__nav a {
	font-size: 15px;
	font-weight: 500;
	text-decoration-color: transparent;
}

.qrsvp .qrsvp-header__nav a:hover {
	text-decoration-color: currentColor;
}

.qrsvp a.qrsvp-header__link {
	align-items: center;
	display: inline-flex;
	flex: none;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	min-height: 44px;
	text-decoration-color: transparent;
}

.qrsvp .qrsvp-header__link .qrsvp-icon {
	height: 16px;
	stroke-width: 2.2;
	width: 16px;
}

/* Tablet and down: the links go, the one button stays. */
@media (max-width: 899px) {
	.qrsvp-header__nav {
		display: none;
	}
}

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */

.qrsvp-hero {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(32px, 4.4vw, 64px);
}

.qrsvp-hero__main {
	display: flex;
	flex: 1 1 540px;
	flex-direction: column;
	gap: clamp(20px, 2.2vw, 28px);
	min-width: 0;
}

.qrsvp-hero__status {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qrsvp .qrsvp-hero__title {
	color: var(--qrsvp-text);
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(46px, 7vw, 100px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.92;
	text-wrap: balance;
}

.qrsvp-hero__tagline {
	color: var(--qrsvp-muted);
	font-size: clamp(18px, 1.55vw, 22px);
	line-height: 1.45;
	max-width: 32ch;
	text-wrap: pretty;
}

.qrsvp-hero__cta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
}

.qrsvp-hero__cta-note {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.4;
}

/*
 * The date poster. ONE width — 480px wherever it fits — so the photo inside
 * is always 408×306 (4:3) on desktop and tablet, and scales down with the
 * poster on a phone: the same picture at every size, never cropped
 * differently (the owner's request, 27 Sep 2026). Everything inside is
 * sized in container units (cqi) of the poster, not of the window.
 */
.qrsvp-hero__cover {
	background: var(--qrsvp-surface-2);
	border-radius: var(--qrsvp-r-media);
	container-type: inline-size;
	display: flex;
	flex: 0 1 480px;
	min-height: 420px;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.qrsvp-cover {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

/* Scoped under .qrsvp: Elementor's `.elementor img { height: auto }`
   (0,1,1) beat a bare class and left the photo short of its frame. */
.qrsvp .qrsvp-cover__img {
	border-radius: 0;
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

.qrsvp-poster {
	background-color: var(--qrsvp-primary);
	background-image: radial-gradient(color-mix(in srgb, var(--qrsvp-on-primary) 16%, transparent) 1.2px, transparent 1.7px);
	background-size: 14px 14px;
	color: var(--qrsvp-on-primary);
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: clamp(14px, 4.6cqi, 22px);
	overflow: hidden;
	padding: clamp(24px, 7.5cqi, 36px);
	position: relative;
}

.qrsvp-poster::before {
	border: 1.5px solid color-mix(in srgb, var(--qrsvp-on-primary) 50%, transparent);
	border-radius: 16px;
	content: "";
	inset: 12px;
	pointer-events: none;
	position: absolute;
}

.qrsvp-poster__top,
.qrsvp-poster__foot {
	display: flex;
	flex-wrap: wrap;
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 13px;
	font-weight: 500;
	gap: 6px 16px;
	justify-content: space-between;
	letter-spacing: 0.13em;
	position: relative;
	text-transform: uppercase;
}

/* The date sits at the foot of the poster, however tall the hero is. */
.qrsvp-poster__main {
	margin-top: auto;
	position: relative;
}

/* With a photo the poster hugs its content — the date straight under the
   photo — and sits at the top beside the text. Stretched to the hero's
   height (right for the date-only poster, whose big date fills the space)
   it left an empty band between the photo and the date. */
.qrsvp-hero__cover:has(.qrsvp-poster--photo) {
	align-self: flex-start;
	min-height: 0;
}

.qrsvp-poster--photo .qrsvp-poster__main {
	margin-top: 0;
}

/* The photo: a fixed 4:3 frame the full width of the poster's content box.
   A 4:3 image fills it exactly; any other shape is cropped from the centre. */
.qrsvp-poster__photo {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--qrsvp-on-primary) 45%, transparent);
	flex: none;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.qrsvp-poster__photo .qrsvp-cover__img {
	inset: 0;
	position: absolute;
}

.qrsvp-poster__day {
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(110px, 38cqi, 180px);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.8;
	margin-left: -0.05em;
}

.qrsvp-poster--photo .qrsvp-poster__day {
	font-size: clamp(88px, 30cqi, 144px);
}

.qrsvp-poster__month {
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(28px, 8.5cqi, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	margin-top: clamp(8px, 2.5cqi, 14px);
}

.qrsvp-poster--photo .qrsvp-poster__month {
	font-size: clamp(24px, 7cqi, 34px);
}

.qrsvp-poster__rule {
	background: color-mix(in srgb, var(--qrsvp-on-primary) 55%, transparent);
	height: 1.5px;
	margin: clamp(14px, 4cqi, 22px) 0 12px;
}

.qrsvp-cover__stamp {
	background: color-mix(in srgb, var(--qrsvp-band) 30%, transparent);
	border: 3px solid var(--qrsvp-surface);
	border-radius: 12px;
	color: var(--qrsvp-surface);
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(34px, 11cqi, 56px);
	font-weight: 800;
	left: 50%;
	letter-spacing: 0.06em;
	line-height: 1.1;
	padding: 8px 22px;
	pointer-events: none;
	position: absolute;
	text-transform: uppercase;
	top: 30%;
	transform: translate(-50%, -50%) rotate(-9deg);
	z-index: 1;
}

/* ---------------------------------------------------------------- */
/* The register band (ink) and the closed notice                    */
/* ---------------------------------------------------------------- */

.qrsvp-band {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 36px clamp(32px, 5vw, 80px);
}

.qrsvp-band__aside {
	color: var(--qrsvp-text);
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 26px;
	max-width: 400px;
	padding: 0 8px;
}

/* Desktop: the prices stay in view beside a long form. */
@media (min-width: 1040px) {
	.qrsvp-band__aside {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px);
	}
}

.qrsvp-band__main {
	flex: 999 1 540px;
	max-width: 760px;
	min-width: 0;
}

.qrsvp-band__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.qrsvp .qrsvp-band__title,
.qrsvp .qrsvp-closed__title {
	color: var(--qrsvp-text);
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(34px, 3.8vw, 54px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

.qrsvp-band__lead,
.qrsvp-closed__lead {
	color: var(--qrsvp-muted);
	font-size: 18px;
	line-height: 1.5;
}

.qrsvp-prices .qrsvp-label {
	margin-bottom: 6px;
}

.qrsvp-prices__list > div {
	border-bottom: 1px solid color-mix(in srgb, var(--qrsvp-on-band) 16%, transparent);
	display: flex;
	font-size: 16px;
	gap: 16px;
	justify-content: space-between;
	padding: 12px 0;
}

.qrsvp-prices__list :is(dt, dd) {
	margin: 0;
}

.qrsvp-prices__list dd {
	font-variant-numeric: tabular-nums;
}

.qrsvp-prices__note,
.qrsvp-contact {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* Unscoped: the footer's [qrsvp_contact] sits outside any .qrsvp root. A
   number broken across two lines reads as two numbers. */
.qrsvp-tel {
	white-space: nowrap;
}

.qrsvp-prices .qrsvp-prices__note {
	margin-top: 12px;
}

.qrsvp-closed {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 auto;
	max-width: 820px;
	text-align: center;
}

.qrsvp-closed__icon {
	align-items: center;
	border: 1.5px solid color-mix(in srgb, var(--qrsvp-on-band) 28%, transparent);
	border-radius: 50%;
	display: flex;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.qrsvp-closed__icon .qrsvp-icon {
	height: 24px;
	stroke-width: 2;
	width: 24px;
}

.qrsvp-closed__lead {
	max-width: 46ch;
}

/* ---------------------------------------------------------------- */
/* Registration form                                                */
/* ---------------------------------------------------------------- */

.qrsvp-register {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}

.qrsvp-form {
	background: var(--qrsvp-surface);
	border-radius: var(--qrsvp-radius);
	box-shadow: 0 1px 0 var(--qrsvp-shadow-soft), 0 28px 56px -28px var(--qrsvp-shadow);
	color: var(--qrsvp-text);
	display: flex;
	flex-direction: column;
	gap: clamp(26px, 3.4vw, 36px);
	margin: 0;
	padding: clamp(20px, 4.4vw, 44px);
	position: relative;
}

.qrsvp-step {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.qrsvp-step + .qrsvp-step,
.qrsvp-finish {
	border-top: 1px solid var(--qrsvp-line);
	padding-top: clamp(26px, 3.4vw, 36px);
}

/*
 * Floated, a legend stops straddling its fieldset's border and becomes an
 * ordinary heading — while staying the fieldset's accessible name.
 */
.qrsvp-step__legend {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	float: left;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.qrsvp-step__legend + * {
	clear: both;
}

.qrsvp-step__n {
	align-items: center;
	background: var(--qrsvp-band);
	border-radius: 50%;
	color: var(--qrsvp-on-band);
	display: flex;
	flex: none;
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 14px;
	font-weight: 500;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.qrsvp-step__title {
	flex: 1;
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.15;
}

.qrsvp-step__title .qrsvp-optional {
	font-family: var(--qrsvp-font-body), system-ui, sans-serif;
	font-size: 16px;
	letter-spacing: 0;
}

.qrsvp-step__hint {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.45;
	margin: -14px 0 0 46px;
}

.qrsvp-grid {
	display: grid;
	gap: 18px 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.qrsvp-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.qrsvp-group__label,
.qrsvp-field__label {
	color: var(--qrsvp-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.qrsvp-group .qrsvp-grid {
	gap: 12px 16px;
}

.qrsvp-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.qrsvp .qrsvp-field__label--sub {
	color: var(--qrsvp-muted);
	font-size: 14px;
	font-weight: 500;
}

.qrsvp .qrsvp-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	background: var(--qrsvp-field);
	border: 1.5px solid var(--qrsvp-border);
	border-radius: var(--qrsvp-r-field);
	box-shadow: none;
	box-sizing: border-box;
	color: var(--qrsvp-text);
	display: block;
	font-family: var(--qrsvp-font-body), system-ui, sans-serif;
	font-size: 16px;
	height: auto;
	line-height: 1.4;
	margin: 0;
	min-height: 50px;
	padding: 12px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

.qrsvp .qrsvp-field textarea {
	line-height: 1.5;
	min-height: 104px;
	resize: vertical;
}

.qrsvp .qrsvp-field :is(input, select, textarea)::placeholder {
	color: var(--qrsvp-muted);
	opacity: 1;
}

.qrsvp .qrsvp-field :is(input, select, textarea):focus {
	border-color: var(--qrsvp-primary);
	box-shadow: 0 0 0 4px var(--qrsvp-halo);
	outline: none;
}

.qrsvp .qrsvp-field [aria-invalid="true"] {
	border-color: var(--qrsvp-danger);
	outline: 2px solid var(--qrsvp-danger);
	outline-offset: -2px;
}

.qrsvp-field__error {
	align-items: flex-start;
	color: var(--qrsvp-danger);
	display: flex;
	font-size: 14px;
	font-weight: 500;
	gap: 6px;
	line-height: 1.4;
}

.qrsvp-field__error .qrsvp-icon {
	height: 16px;
	margin-top: 2px;
	stroke-width: 2.4;
	width: 16px;
}

/* Guests */

.qrsvp-guests {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.qrsvp-guest {
	background: var(--qrsvp-field);
	border: 1.5px solid var(--qrsvp-line);
	border-radius: var(--qrsvp-r-card);
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: clamp(16px, 2.6vw, 22px);
	transition: box-shadow 0.15s ease;
}

.qrsvp-guest.is-invalid {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--qrsvp-danger) 22%, transparent);
}

.qrsvp-guest__head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	min-height: 28px;
}

.qrsvp-guest__n {
	color: var(--qrsvp-muted);
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Pinned in every state for the same reason as .qrsvp-btn above. */
.qrsvp .qrsvp-guest__remove {
	align-items: center;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--qrsvp-font-ui), system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	gap: 6px;
	line-height: 1;
	margin: -8px -10px -8px auto;
	min-height: 44px;
	padding: 0 12px;
}

.qrsvp .qrsvp-guest__remove .qrsvp-icon {
	height: 16px;
	stroke-width: 2.2;
	width: 16px;
}

.qrsvp .qrsvp-guest__remove,
.qrsvp .qrsvp-guest__remove:is(:focus, :active) {
	background: transparent !important;
	color: var(--qrsvp-muted) !important;
}

.qrsvp .qrsvp-guest__remove:is(:hover, :focus-visible) {
	background: var(--qrsvp-surface-alt) !important;
	color: var(--qrsvp-text) !important;
}

.qrsvp-guest__row {
	align-items: flex-start;
	display: flex;
	gap: 12px 14px;
}

.qrsvp-guest__row > .qrsvp-field {
	flex: 1 1 auto;
}

.qrsvp-guest__row > .qrsvp-field--age {
	flex: 0 0 clamp(84px, 24%, 120px);
}

.qrsvp .qrsvp-field--age input {
	font-variant-numeric: tabular-nums;
}

/* Ticket choice: radio cards. The real radio covers the card, invisible,
   so the whole card is the target and the keyboard still works. */
.qrsvp-options {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.qrsvp-option {
	align-items: center;
	background: var(--qrsvp-field);
	border: 1.5px solid var(--qrsvp-border);
	border-radius: var(--qrsvp-r-option);
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 54px;
	padding: 0 16px;
	position: relative;
}

.qrsvp .qrsvp-option input {
	cursor: pointer;
	height: 100%;
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
}

.qrsvp-option__dot {
	align-items: center;
	background: var(--qrsvp-field);
	border: 1.5px solid var(--qrsvp-border);
	border-radius: 50%;
	display: flex;
	flex: none;
	height: 20px;
	justify-content: center;
	pointer-events: none;
	width: 20px;
}

.qrsvp-option__dot::after {
	background: var(--qrsvp-primary);
	border-radius: 50%;
	content: "";
	height: 10px;
	transform: scale(0);
	transition: transform 0.12s ease;
	width: 10px;
}

.qrsvp-option input:checked + .qrsvp-option__dot::after {
	transform: scale(1);
}

.qrsvp-option__label {
	font-size: 16px;
	font-weight: 600;
	pointer-events: none;
}

.qrsvp-option__price {
	color: var(--qrsvp-muted);
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 14px;
	margin-left: auto;
	pointer-events: none;
}

.qrsvp-option:has(input:checked) {
	background: var(--qrsvp-soft);
	outline: 2px solid var(--qrsvp-primary);
	outline-offset: -2px;
}

.qrsvp-option:has(input:focus-visible) {
	box-shadow: 0 0 0 4px var(--qrsvp-halo);
}

[data-qrsvp-choice].is-invalid .qrsvp-option {
	outline: 2px solid var(--qrsvp-danger);
	outline-offset: -2px;
}

.qrsvp-check {
	align-items: flex-start;
	color: var(--qrsvp-text);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	gap: 12px;
	line-height: 1.4;
}

.qrsvp .qrsvp-check input {
	accent-color: var(--qrsvp-primary);
	cursor: pointer;
	flex: none;
	height: 20px;
	margin: 0;
	width: 20px;
}

/* Undo, add, and "that's everyone" */

.qrsvp-toast {
	align-items: center;
	background: var(--qrsvp-band);
	border-radius: 999px;
	color: var(--qrsvp-on-band);
	display: flex;
	font-size: 15px;
	gap: 12px;
	justify-content: space-between;
	line-height: 1.3;
	padding: 6px 6px 6px 18px;
}

.qrsvp-toast__text {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.qrsvp-toast .qrsvp-icon {
	height: 18px;
	stroke-width: 2.2;
	width: 18px;
}

.qrsvp .qrsvp-toast__undo {
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	flex: none;
	font-family: var(--qrsvp-font-ui), system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	min-height: 38px;
	padding: 0 18px;
}

.qrsvp .qrsvp-toast__undo,
.qrsvp .qrsvp-toast__undo:is(:hover, :focus, :active) {
	background: var(--qrsvp-surface) !important;
	color: var(--qrsvp-text) !important;
}

.qrsvp .qrsvp-add {
	align-items: center;
	border: 1.5px dashed var(--qrsvp-border);
	border-radius: var(--qrsvp-r-card);
	cursor: pointer;
	display: flex;
	font-family: var(--qrsvp-font-ui), system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	min-height: 56px;
	padding: 0 16px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	width: 100%;
}

.qrsvp .qrsvp-add,
.qrsvp .qrsvp-add:is(:focus, :active) {
	background: transparent !important;
	color: var(--qrsvp-text) !important;
}

.qrsvp .qrsvp-add:is(:hover, :focus-visible) {
	background: var(--qrsvp-surface-alt) !important;
	border-color: var(--qrsvp-text);
	color: var(--qrsvp-text) !important;
}

.qrsvp-add .qrsvp-icon {
	stroke-width: 2.2;
}

.qrsvp-cap {
	align-items: center;
	background: var(--qrsvp-warning-bg);
	border-radius: 14px;
	color: var(--qrsvp-warning);
	display: flex;
	font-size: 15px;
	gap: 12px;
	line-height: 1.4;
	padding: 14px 16px;
}

/* Consent, totals, send */

.qrsvp-finish {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.qrsvp-consent {
	align-items: flex-start;
	background: var(--qrsvp-field);
	border: 1.5px solid var(--qrsvp-line);
	border-radius: 14px;
	color: var(--qrsvp-text);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	gap: 14px;
	line-height: 1.5;
	padding: 16px 18px;
}

.qrsvp .qrsvp-consent input {
	accent-color: var(--qrsvp-primary);
	cursor: pointer;
	flex: none;
	height: 22px;
	margin: 0;
	width: 22px;
}

.qrsvp-consent.is-invalid {
	outline: 2px solid var(--qrsvp-danger);
	outline-offset: -2px;
}

.qrsvp-totals {
	background: var(--qrsvp-surface-alt);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
}

.qrsvp-totals__head,
.qrsvp-totals__line,
.qrsvp-totals__total {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.qrsvp-totals__head {
	margin-bottom: 2px;
}

.qrsvp-totals__head > span:last-child,
.qrsvp-totals__empty {
	color: var(--qrsvp-muted);
	font-size: 14px;
}

.qrsvp-totals__line {
	font-size: 15px;
}

.qrsvp-totals__line span:last-child {
	font-variant-numeric: tabular-nums;
}

.qrsvp-totals__total {
	border-top: 1.5px dashed var(--qrsvp-line);
	font-size: 16px;
	font-weight: 600;
	margin-top: 6px;
	padding-top: 12px;
}

.qrsvp-totals__total strong {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 26px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.qrsvp-finish__note {
	color: var(--qrsvp-muted);
	font-size: 15px;
}

.qrsvp-spinner {
	animation: qrsvp-spin 0.7s linear infinite;
	border: 2.5px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 50%;
	border-top-color: currentColor;
	display: inline-block;
	flex: none;
	height: 18px;
	width: 18px;
}

@keyframes qrsvp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* While sending: the fields stay in the form (a disabled field would not
   be submitted) but can't be changed. */
.qrsvp-form.is-sending .qrsvp-step,
.qrsvp-form.is-sending .qrsvp-consent {
	opacity: 0.55;
	pointer-events: none;
}

/* The error summary: every problem at once, each a link to its field. */
.qrsvp-errors {
	align-items: flex-start;
	background: var(--qrsvp-allergy-bg);
	border: 1.5px solid color-mix(in srgb, var(--qrsvp-danger) 28%, var(--qrsvp-allergy-bg));
	border-radius: 14px;
	color: var(--qrsvp-allergy);
	display: flex;
	gap: 14px;
	padding: 18px 20px;
}

.qrsvp-errors > .qrsvp-icon {
	height: 22px;
	margin-top: 1px;
	stroke-width: 2.2;
	width: 22px;
}

.qrsvp-errors__body {
	min-width: 0;
}

.qrsvp-errors__title {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.qrsvp-errors ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 0;
	padding: 0 0 0 18px;
}

.qrsvp-errors li {
	font-size: 15px;
	line-height: 1.4;
}

.qrsvp .qrsvp-errors a,
.qrsvp .qrsvp-errors a:is(:hover, :focus, :visited, :active) {
	color: var(--qrsvp-allergy) !important;
}

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

/* ---------------------------------------------------------------- */
/* Success, booking, dialog                                         */
/* ---------------------------------------------------------------- */

.qrsvp-success {
	background: var(--qrsvp-surface);
	border-radius: var(--qrsvp-radius);
	box-shadow: 0 1px 0 var(--qrsvp-shadow-soft), 0 28px 56px -28px var(--qrsvp-shadow);
	display: flex;
	flex-direction: column;
	gap: 26px;
	outline: none;
	padding: clamp(24px, 4.8vw, 48px);
}

.qrsvp-success__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.qrsvp-success__icon,
.qrsvp-dialog__icon {
	align-items: center;
	border-radius: 50%;
	display: flex;
	flex: none;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.qrsvp-success__icon {
	background: var(--qrsvp-success-bg);
	color: var(--qrsvp-success);
}

.qrsvp-success__icon .qrsvp-icon {
	height: 28px;
	stroke-width: 2.4;
	width: 28px;
}

.qrsvp .qrsvp-success__title {
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(30px, 4.4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.qrsvp-success__lead {
	font-size: 17px;
	line-height: 1.5;
	max-width: 52ch;
}

.qrsvp-success__lead strong {
	font-weight: 600;
}

.qrsvp-party {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qrsvp-party__guest {
	align-items: baseline;
	border-bottom: 1px solid var(--qrsvp-line);
	display: grid;
	gap: 2px 16px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0;
	padding: 11px 0;
}

.qrsvp-party__name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.qrsvp-party__code,
.qrsvp-booking__code {
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.qrsvp-party__type {
	color: var(--qrsvp-muted);
	font-size: 14px;
}

.qrsvp-party__total {
	align-items: baseline;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	padding-top: 14px;
}

.qrsvp-party__total strong {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
}

.qrsvp-success__note {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.5;
	margin-top: -6px;
}

.qrsvp-success__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.qrsvp-success__help {
	color: var(--qrsvp-muted);
	font-size: 14px;
	margin-top: -8px;
}

/* The booking (manage page). */
.qrsvp-booking {
	position: relative;
}

.qrsvp-booking:not(.qrsvp-booking--page) {
	background: var(--qrsvp-surface-alt);
	border-radius: var(--qrsvp-radius);
	padding: clamp(20px, 4vw, 36px);
}

.qrsvp-booking__main {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 3.4vw, 32px);
}

.qrsvp-booking--page .qrsvp-booking__main {
	margin: 0 auto;
	max-width: 928px;
	padding: clamp(32px, 6vw, 72px) clamp(14px, 4vw, 48px) clamp(56px, 8vw, 104px);
}

.qrsvp-booking__head,
.qrsvp-booking__after {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 6px;
}

.qrsvp-booking__after {
	align-items: flex-start;
	gap: 16px;
}

.qrsvp .qrsvp-booking__title {
	font-family: var(--qrsvp-font-heading), system-ui, sans-serif;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.95;
}

.qrsvp-booking__meta {
	color: var(--qrsvp-muted);
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.5;
}

.qrsvp-booking .qrsvp-stub {
	max-width: none;
}

.qrsvp-booking__count {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding-bottom: 8px;
}

.qrsvp-booking__count > span:last-child {
	color: var(--qrsvp-muted);
	font-size: 14px;
}

.qrsvp-booking__guests {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qrsvp-booking__guest {
	align-items: center;
	border-top: 1px solid var(--qrsvp-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	justify-content: space-between;
	margin: 0;
	padding: 16px 0;
}

.qrsvp-booking__who {
	flex: 1 1 200px;
	min-width: 0;
}

.qrsvp-booking__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.qrsvp-booking__type {
	color: var(--qrsvp-muted);
	font-size: 14px;
	margin-top: 2px;
}

.qrsvp-booking__end {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.qrsvp-booking__guest.is-cancelled :is(.qrsvp-booking__name, .qrsvp-booking__code) {
	color: var(--qrsvp-muted);
	text-decoration: line-through;
}

.qrsvp-booking__help {
	color: var(--qrsvp-muted);
	font-size: 15px;
	line-height: 1.5;
	max-width: 60ch;
}

.qrsvp-booking__ref {
	color: var(--qrsvp-muted);
	font-size: 14px;
}

.qrsvp-inline-form {
	display: inline;
	margin: 0;
}

.qrsvp-header--static {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.qrsvp-dialog {
	background: var(--qrsvp-surface);
	border: 0;
	border-radius: var(--qrsvp-radius);
	box-shadow: 0 30px 60px -20px var(--qrsvp-shadow);
	color: var(--qrsvp-text);
	max-width: 460px;
	padding: clamp(22px, 5vw, 32px);
	width: calc(100% - 32px);
}

.qrsvp-dialog[open] {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Literal fallback first: ::backdrop did not inherit custom properties in
   older browsers. A scrim carries no text. */
.qrsvp-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
	background: color-mix(in srgb, var(--qrsvp-band, #000) 55%, transparent);
}

.qrsvp-dialog__icon {
	background: var(--qrsvp-allergy-bg);
	color: var(--qrsvp-danger);
	height: 48px;
	width: 48px;
}

.qrsvp-dialog__icon .qrsvp-icon {
	height: 24px;
	stroke-width: 2.2;
	width: 24px;
}

.qrsvp .qrsvp-dialog__title {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.qrsvp-dialog__body {
	font-size: 16px;
	line-height: 1.5;
}

.qrsvp-dialog__actions {
	display: flex;
	flex-wrap: wrap-reverse;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 8px;
}

.qrsvp-dialog__actions .qrsvp-btn {
	flex: 1 1 150px;
}

/* ---------------------------------------------------------------- */
/* Venue, map, questions                                            */
/* ---------------------------------------------------------------- */

.qrsvp-venue {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.qrsvp-venue__name {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.qrsvp-venue__address {
	font-size: 17px;
	line-height: 1.5;
	margin-top: 4px;
}

.qrsvp-map {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.qrsvp-map__frame,
.qrsvp-map__gate {
	border: 0;
	border-radius: 22px;
	height: var(--qrsvp-map-h, 360px);
	width: 100%;
}

/* A drawn street grid stands in for the map until the visitor asks for it. */
.qrsvp-map__gate {
	align-items: center;
	background-color: var(--qrsvp-surface-2);
	background-image:
		linear-gradient(var(--qrsvp-line) 1.5px, transparent 1.5px),
		linear-gradient(90deg, var(--qrsvp-line) 1.5px, transparent 1.5px),
		linear-gradient(32deg, transparent 47%, var(--qrsvp-line) 47%, var(--qrsvp-line) 53%, transparent 53%);
	background-size: 64px 64px, 64px 64px, 100% 100%;
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: 20px;
}

.qrsvp-map__card {
	align-items: center;
	background: var(--qrsvp-surface);
	border-radius: 18px;
	box-shadow: 0 18px 36px -18px var(--qrsvp-shadow);
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 360px;
	padding: 24px;
	text-align: center;
}

.qrsvp-map__card p {
	font-size: 15px;
	line-height: 1.5;
}

.qrsvp-map__pin {
	align-items: center;
	background: var(--qrsvp-primary);
	border-radius: 50%;
	color: var(--qrsvp-on-primary);
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.qrsvp-map__pin .qrsvp-icon {
	height: 22px;
	stroke-width: 2;
	width: 22px;
}

.qrsvp-faq {
	--qrsvp-rule: color-mix(in srgb, var(--qrsvp-border) 42%, var(--qrsvp-surface-2));
	border-top: 1.5px solid var(--qrsvp-rule);
}

.qrsvp-faq__item {
	border-bottom: 1.5px solid var(--qrsvp-rule);
}

.qrsvp-faq__q {
	align-items: center;
	color: var(--qrsvp-text);
	cursor: pointer;
	display: flex;
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 700;
	gap: 20px;
	justify-content: space-between;
	letter-spacing: -0.01em;
	line-height: 1.3;
	list-style: none;
	min-height: 44px;
	padding: 22px 0;
}

.qrsvp-faq__q::-webkit-details-marker {
	display: none;
}

.qrsvp-faq__icon {
	align-items: center;
	border: 1.5px solid var(--qrsvp-text);
	border-radius: 50%;
	display: flex;
	flex: none;
	height: 36px;
	justify-content: center;
	transition: transform 0.2s ease;
	width: 36px;
}

.qrsvp-faq__icon .qrsvp-icon {
	height: 16px;
	stroke-width: 2.4;
	width: 16px;
}

.qrsvp-faq__item[open] .qrsvp-faq__icon {
	transform: rotate(45deg);
}

.qrsvp-faq__a {
	display: flex;
	flex-direction: column;
	font-size: 17px;
	gap: 0.8em;
	line-height: 1.6;
	max-width: 62ch;
	padding: 0 56px 24px 0;
}

/* ---------------------------------------------------------------- */
/* Event details (row / list), countdown and spots widgets           */
/* ---------------------------------------------------------------- */

.qrsvp-details {
	display: grid;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.qrsvp-details--row {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.qrsvp-details__item {
	align-items: flex-start;
	display: flex;
	gap: 12px;
}

.qrsvp-details__icon {
	color: var(--qrsvp-accent);
	padding-top: 2px;
}

.qrsvp-details__text {
	display: grid;
	gap: 2px;
}

.qrsvp-details__value {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-weight: 700;
}

.qrsvp-details__sub {
	color: var(--qrsvp-muted);
	font-size: 15px;
}

.qrsvp-countdown {
	display: grid;
	gap: 12px;
	justify-items: center;
	text-align: center;
}

.qrsvp-countdown__title {
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.qrsvp-countdown__units {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.qrsvp-countdown__unit {
	background: var(--qrsvp-surface);
	border-radius: var(--qrsvp-r-card);
	display: grid;
	min-width: 76px;
	padding: 12px 8px;
}

.qrsvp-countdown__n,
.qrsvp-spots__n {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 2rem;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.1;
}

.qrsvp-countdown__l {
	color: var(--qrsvp-muted);
	font-size: 13px;
}

.qrsvp-spots {
	align-items: baseline;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 8px;
}

.qrsvp-spots.is-low .qrsvp-spots__n {
	color: var(--qrsvp-accent);
}

.qrsvp-spots__l {
	font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Tickets (the ticket page and its cards)                          */
/* ---------------------------------------------------------------- */

.qrsvp-ticket-page {
	display: grid;
	gap: 24px;
}

.qrsvp-facts {
	background: var(--qrsvp-surface);
	border-radius: var(--qrsvp-radius);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	overflow: hidden;
}

.qrsvp-facts__item {
	display: grid;
	gap: 4px;
	padding: 16px;
	text-align: center;
}

.qrsvp-facts dt {
	color: var(--qrsvp-muted);
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.qrsvp-facts dd {
	display: grid;
	gap: 2px;
	margin: 0;
}

.qrsvp-facts dd span {
	color: var(--qrsvp-muted);
	font-size: 15px;
}

.qrsvp-tickets {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	list-style: none;
	padding: 0;
}

.qrsvp-ticket {
	align-items: center;
	background: var(--qrsvp-surface);
	border-radius: var(--qrsvp-radius);
	box-shadow: 0 1px 0 var(--qrsvp-shadow-soft), 0 20px 40px -24px var(--qrsvp-shadow);
	break-inside: avoid;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 22px;
}

.qrsvp-ticket-page .qrsvp-ticket {
	flex-direction: column;
	text-align: center;
}

/* QR codes always sit on white with their own quiet zone: a scanner reads a
   dark-on-light code, whatever colour the page around it is. */
.qrsvp-ticket__qr {
	background: #FFFFFF;
	display: block;
	flex: none;
	image-rendering: pixelated;
	max-width: 100%;
}

.qrsvp-ticket__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.qrsvp-ticket__name {
	font-family: var(--qrsvp-font-title), system-ui, sans-serif;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.qrsvp-ticket__type {
	color: var(--qrsvp-muted);
	font-size: 15px;
	margin-bottom: 8px;
}

.qrsvp-code {
	color: var(--qrsvp-text);
	font-family: var(--qrsvp-font-mono), ui-monospace, monospace;
	font-size: 2rem;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.1;
}

.qrsvp-ticket__pay {
	font-weight: 600;
	margin-top: 6px;
}

.qrsvp-ticket__pay.is-free {
	color: var(--qrsvp-success);
}

.qrsvp-ticket__link {
	font-size: 15px;
	margin-top: 8px;
}

/* ---------------------------------------------------------------- */
/* Footer links (inherit the section's measured text colour)        */
/* ---------------------------------------------------------------- */

.qrsvp-legal-links,
.qrsvp-powered-by {
	font-size: 15px;
	text-align: center;
}

.qrsvp-legal-links a,
.qrsvp-powered-by a {
	color: inherit;
	text-decoration: underline;
}

/* A page title never breaks in the middle ("Cancellation & | Refund Policy"). */
.qrsvp-legal-links a {
	white-space: nowrap;
}

/* Editor-only: dashed so it reads as a note to the owner, not page content.
   The drafts get a line of their own. */
.qrsvp-legal-links--editor {
	border: 1px dashed currentColor;
	border-radius: 8px;
	margin: 12px 0 0;
	padding: 10px 14px;
}

.qrsvp-legal-links__drafts {
	display: block;
	margin-top: 4px;
}

/* ---------------------------------------------------------------- */
/* The starter kit's own sections (Elementor elements, .qrsvp-kit)   */
/* ---------------------------------------------------------------- */

.qrsvp-kit[id],
.qrsvp-success,
.qrsvp-booking,
.qrsvp-register {
	/* Clear of the sticky header when a link or a redirect jumps here. */
	scroll-margin-top: 88px;
}

/* Sticky without Elementor Pro: the section itself sticks. Under the
   WordPress admin bar only where that bar is fixed (601px and up): on a
   phone it scrolls away, and a 46px offset left a strip of page showing
   above the header. */
.elementor-section.qrsvp-kit-sticky,
.e-con.qrsvp-kit-sticky {
	position: sticky;
	top: 0;
	z-index: 30;
}

@media (min-width: 601px) {
	.admin-bar .elementor-section.qrsvp-kit-sticky,
	.admin-bar .e-con.qrsvp-kit-sticky {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.qrsvp-kit-rule {
	border-top: 1px solid var(--qrsvp-line);
}

/* Sizes come from QRSVP's Global Fonts (qrsvp_heading, qrsvp_body…), which
   Elementor prints on the widget itself; only measure and spacing here. */
.qrsvp-kit .qrsvp-kit-h2 .elementor-heading-title {
	margin: 0;
	max-width: 440px;
}

.qrsvp-kit .qrsvp-kit-prose {
	max-width: 700px;
	text-wrap: pretty;
}

.qrsvp-kit .qrsvp-kit-prose p {
	margin: 0 0 1em;
}

.qrsvp-kit .qrsvp-kit-prose p:last-child {
	margin-bottom: 0;
}

.qrsvp-kit .qrsvp-kit-small p {
	margin: 0;
}

/* ---------- An event's legal pages: its header, the text, its footer ---------- */

.qrsvp-kit-legal .qrsvp-kit-h2 .elementor-heading-title {
	margin-bottom: 28px;
	max-width: none;
}

.qrsvp-kit .qrsvp-kit-legal-text h2 {
	font-family: var(--e-global-typography-qrsvp_title-font-family, inherit);
	font-size: 22px;
	font-weight: var(--e-global-typography-qrsvp_title-font-weight, 700);
	line-height: 1.25;
	margin: 1.8em 0 0.6em;
}

.qrsvp-kit .qrsvp-kit-legal-text ul {
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.qrsvp-kit .qrsvp-kit-legal-text li {
	margin-bottom: 0.4em;
}

/* The "TEMPLATE — NOT LEGAL ADVICE" line: impossible to miss, in the
   measured warning pair. */
.qrsvp-kit .qrsvp-legal-warning {
	background: var(--e-global-color-qrsvp_warning_bg, #F6E7C1);
	border-radius: 12px;
	color: var(--e-global-color-qrsvp_warning, #6B4700);
	padding: 16px 18px;
}

/* Two-column kit sections: the gap between the columns, then stacking. */
.qrsvp-kit.elementor-section > .elementor-container > .elementor-column:first-child:not(:last-child) > .elementor-widget-wrap {
	padding-right: clamp(32px, 6vw, 96px);
}

.qrsvp-kit-footer.elementor-section > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap {
	justify-content: flex-end;
	text-align: right;
}

.qrsvp-kit-footer .qrsvp-legal-links,
.qrsvp-kit-footer .qrsvp-powered-by {
	text-align: inherit;
}

@media (max-width: 767px) {
	.qrsvp-kit.elementor-section > .elementor-container > .elementor-column:first-child:not(:last-child) > .elementor-widget-wrap {
		padding-bottom: 24px;
		padding-right: 0;
	}

	.qrsvp-kit-footer.elementor-section > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap {
		justify-content: flex-start;
		text-align: left;
	}
}

/* After the event, a widget marks its section to go (never in the editor). */
.elementor-section:has(.qrsvp-hide-section),
.e-con:has(.qrsvp-hide-section) {
	display: none !important;
}

/* ---------------------------------------------------------------- */
/* Standalone fallback page (ticket with no ticket page)            */
/* ---------------------------------------------------------------- */

.qrsvp-standalone__main {
	margin: 0 auto;
	max-width: 720px;
	padding: 32px 16px;
}

/* ---------------------------------------------------------------- */
/* Print: tickets and confirmation                                  */
/* ---------------------------------------------------------------- */

@media print {
	.qrsvp-no-print,
	.qrsvp-actions,
	.qrsvp-form,
	.qrsvp-header,
	.qrsvp-to-top-root,
	.qrsvp-inline-form,
	.qrsvp-success__actions {
		display: none !important;
	}

	/* Browsers drop background colours when printing; nothing may depend on them. */
	.qrsvp-ticket,
	.qrsvp-stub__top,
	.qrsvp-stub__bottom {
		border: 1px solid;
		box-shadow: none;
		break-inside: avoid;
	}

	.qrsvp-stub {
		filter: none;
	}

	/* 3 CSS px per module on paper is ~0.79 mm, above the ~0.5 mm a phone
	   camera needs. Never let print scaling shrink the code below that. */
	.qrsvp-ticket__qr {
		min-width: 112px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qrsvp *,
	.qrsvp *::after {
		animation: none !important;
		transition: none !important;
	}
}
