/**
 * Just Vege catering configurator.
 * Uses the theme's design tokens when present (--jv-*), with brand fallbacks so the
 * configurator keeps working with any theme.
 */

.jvc-app {
	--_black: var(--jv-black, #121519);
	--_green: var(--jv-green, #a6ca42);
	--_green-hover: var(--jv-green-hover, #95b935);
	--_green-ink: var(--jv-green-ink, #4f6b12);
	--_green-tint: var(--jv-green-tint, #f1f7e2);
	--_white: var(--jv-white, #fff);
	--_light: var(--jv-light, #f5f6f2);
	--_line: var(--jv-line, #dfe3d8);
	--_muted: var(--jv-muted, #5b6168);
	--_error: var(--jv-error, #b42318);
	--_error-bg: var(--jv-error-bg, #fef3f2);
	--_radius: var(--jv-radius, 14px);
	--_shadow: var(--jv-shadow, 0 1px 2px rgba(18, 21, 25, 0.06), 0 6px 20px rgba(18, 21, 25, 0.06));
	--_sticky-top: var(--jv-sticky-top, 96px);
	color: var(--_black);
	position: relative;
	padding-bottom: 88px;
}

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

.jvc-app__loading {
	padding: 48px 0;
	color: var(--_muted);
	text-align: center;
}

.jvc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Layout ---------- */

.jvc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

@media (min-width: 960px) {
	.jvc-app {
		padding-bottom: 0;
	}

	.jvc-layout {
		grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 400px);
		gap: 40px;
	}
}

.jvc-main {
	min-width: 0;
}

/* ---------- Progress ---------- */

.jvc-progress {
	margin: 0 0 24px;
}

.jvc-progress__mobile {
	margin: 0 0 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--_muted);
}

.jvc-progress__list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
	flex-wrap: wrap;
}

@media (min-width: 720px) {
	.jvc-progress__mobile {
		display: none;
	}

	.jvc-progress__list {
		display: flex;
	}
}

.jvc-progress__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--_line);
	border-radius: 999px;
	background: var(--_white);
	color: var(--_black);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: none;
}

button.jvc-progress__btn {
	cursor: pointer;
}

button.jvc-progress__btn:hover {
	border-color: var(--_black);
}

.jvc-progress__btn.is-locked {
	color: var(--_muted);
	background: var(--_light);
	border-color: transparent;
}

.jvc-progress__num {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--_light);
	font-size: 0.75rem;
	font-weight: 700;
}

.jvc-progress__item.is-done .jvc-progress__num {
	background: var(--_green);
	color: var(--_black);
}

.jvc-progress__item.is-current .jvc-progress__btn {
	background: var(--_black);
	border-color: var(--_black);
	color: var(--_white);
	font-weight: 600;
}

.jvc-progress__item.is-current .jvc-progress__num {
	background: var(--_green);
	color: var(--_black);
}

/* ---------- Step ---------- */

.jvc-step__title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	scroll-margin-top: var(--_sticky-top);
}

.jvc-step__title:focus {
	outline: none;
}

.jvc-step__title:focus-visible {
	outline: 3px solid var(--_green);
	outline-offset: 4px;
}

.jvc-step__lead {
	margin: 0 0 16px;
	color: var(--_muted);
	max-width: 62ch;
}

.jvc-step__note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--_green-tint);
	font-size: 0.9375rem;
}

.jvc-step__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--_line);
}

/* ---------- Buttons ---------- */

.jvc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.jvc-btn:focus-visible,
.jvc-link:focus-visible,
.jvc-stepper__btn:focus-visible,
.jvc-mini-stepper__btn:focus-visible,
.jvc-mobilebar__toggle:focus-visible,
button.jvc-progress__btn:focus-visible {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--_green);
}

.jvc-btn--primary {
	background: var(--_green);
	color: var(--_black);
}

.jvc-btn--primary:hover:not(:disabled) {
	background: var(--_green-hover);
}

.jvc-btn--primary:active:not(:disabled) {
	transform: translateY(1px);
}

.jvc-btn--selected {
	background: var(--_black);
	color: var(--_white);
}

.jvc-btn--ghost {
	background: transparent;
	border-color: var(--_line);
	color: var(--_black);
}

.jvc-btn--ghost:hover {
	border-color: var(--_black);
}

.jvc-btn--lg {
	min-height: 56px;
	padding: 14px 32px;
	font-size: 1.0625rem;
}

.jvc-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.jvc-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--_green-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Packages ---------- */

.jvc-packages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.jvc-package {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
	box-shadow: var(--_shadow);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.jvc-package:hover {
	border-color: var(--_black);
}

.jvc-package.is-selected {
	border-color: var(--_green);
	box-shadow: 0 0 0 3px var(--_green-tint), var(--_shadow);
}

.jvc-package--noimg {
	border-top: 6px solid var(--_green);
}

.jvc-package__media {
	aspect-ratio: 16 / 10;
	background: var(--_light);
}

.jvc-package__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jvc-package__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
}

.jvc-package__name {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.jvc-package__price {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}

.jvc-package__includes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.jvc-package__includes li {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--_green-tint);
	font-size: 0.8125rem;
	font-weight: 600;
}

.jvc-package__min,
.jvc-package__desc {
	margin: 0;
	color: var(--_muted);
	font-size: 0.9375rem;
}

.jvc-package .jvc-btn {
	margin-top: auto;
	align-self: stretch;
}

/* ---------- Placeholder art ---------- */

.jvc-ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 64px;
	color: var(--_green-ink);
	background:
		radial-gradient(circle at 30% 20%, rgba(166, 202, 66, 0.35), transparent 55%),
		radial-gradient(circle at 80% 90%, rgba(166, 202, 66, 0.2), transparent 50%),
		var(--_light);
}

/* ---------- Guests ---------- */

.jvc-guests {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 28px 20px;
	border-radius: var(--_radius);
	background: var(--_light);
	text-align: center;
}

.jvc-guests__package {
	max-width: 52ch;
}

.jvc-guests__name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}

.jvc-guests__price {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--_green);
	font-size: 0.9375rem;
}

.jvc-guests__includes,
.jvc-guests__note,
.jvc-guests__help {
	margin: 4px 0 0;
	color: var(--_muted);
	font-size: 0.9375rem;
}

.jvc-guests__includes span {
	font-weight: 600;
	color: var(--_black);
}

.jvc-guests__estimate {
	margin: 4px 0 0;
	font-size: 1.0625rem;
}

.jvc-guests__estimate strong {
	display: block;
	font-size: 1.75rem;
}

/* ---------- Steppers ---------- */

.jvc-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jvc-stepper__btn,
.jvc-mini-stepper__btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--_black);
	border-radius: 50%;
	background: var(--_white);
	color: var(--_black);
	font: inherit;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.jvc-stepper__btn:hover:not(:disabled),
.jvc-mini-stepper__btn:hover:not(:disabled) {
	background: var(--_green);
}

.jvc-stepper__btn:disabled,
.jvc-mini-stepper__btn:disabled {
	border-color: var(--_line);
	color: var(--_line);
	cursor: not-allowed;
}

.jvc-stepper__input {
	width: 56px;
	height: 40px;
	padding: 0 4px;
	border: 1.5px solid var(--_line);
	border-radius: 10px;
	background: var(--_white);
	color: var(--_black);
	font: inherit;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.jvc-stepper__input::-webkit-outer-spin-button,
.jvc-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jvc-stepper--xl {
	gap: clamp(8px, 3vw, 14px);
	margin: 8px 0 0;
}

/* Sizes shrink with the screen so the stepper fits inside the panel on 320 px phones. */
.jvc-stepper--xl .jvc-stepper__btn {
	width: clamp(48px, 15vw, 60px);
	height: clamp(48px, 15vw, 60px);
	font-size: 2rem;
}

.jvc-stepper--xl .jvc-stepper__input {
	width: clamp(88px, 30vw, 128px);
	height: 76px;
	border-width: 2px;
	font-size: 2.75rem;
	letter-spacing: -0.02em;
}

.jvc-stepper__input:focus,
.jvc-input:focus {
	outline: none;
	border-color: var(--_black);
	box-shadow: 0 0 0 3px rgba(166, 202, 66, 0.6);
}

/* ---------- Counter & hints ---------- */

.jvc-counter {
	position: sticky;
	top: var(--_sticky-top);
	z-index: 3;
	margin: 0 0 16px;
}

.jvc-counter__pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--_black);
	color: var(--_white);
	font-weight: 700;
	font-size: 0.9375rem;
	box-shadow: var(--_shadow);
}

.jvc-counter__pill.is-complete {
	background: var(--_green);
	color: var(--_black);
}

.jvc-hint {
	margin: 16px 0 0;
	font-weight: 600;
	color: var(--_muted);
}

/* ---------- Shared dish limit: counter and category tabs ---------- */

/*
 * Counter and tabs stay under the header while the customer scrolls the dishes. The band is
 * 8px wider than the dish list so card edges never show beside it, and the white shadow
 * fills the gap up to the header while it is stuck (otherwise it sits on the lead's margin).
 */
.jvc-dishbar {
	position: sticky;
	top: var(--_sticky-top);
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 -8px 16px;
	padding: 8px;
	border-bottom: 1px solid var(--_line);
	background: var(--_white);
	box-shadow: 0 -16px 0 var(--_white);
}

.jvc-dishbar .jvc-counter {
	position: static;
	margin: 0;
}

.jvc-dishbar .jvc-counter__pill {
	box-shadow: none;
}

.jvc-tabs {
	/* Contains the tabs' screen-reader texts, so they scroll with the tabs instead of widening the page on phones. */
	position: relative;
	display: flex;
	flex: 1 1 260px;
	gap: 6px;
	min-width: 0;
	/* Room for the focus ring inside the scroll area. */
	margin: -5px;
	padding: 5px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.jvc-tab {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1.5px solid var(--_line);
	border-radius: 999px;
	background: var(--_white);
	color: var(--_black);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.jvc-tab:hover {
	border-color: var(--_black);
}

.jvc-tab.is-active {
	border-color: var(--_black);
	background: var(--_black);
	color: var(--_white);
}

.jvc-tab:focus-visible {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

.jvc-tab__badge:empty {
	display: none;
}

.jvc-tab__count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--_green);
	color: var(--_black);
	font-size: 0.8125rem;
	font-weight: 700;
}

/* A category with its own maximum shows "chosen/maximum": outlined at 0, dark green when full. */
.jvc-tab__count.is-empty {
	background: var(--_light);
	box-shadow: inset 0 0 0 1px var(--_line);
}

.jvc-tab__count.is-full {
	background: var(--_green-ink);
	color: var(--_white);
}

.jvc-tabpanel__lead {
	margin: 0 0 12px;
	color: var(--_muted);
	max-width: 62ch;
}

.jvc-tabpanel__limit {
	margin: 0 0 12px;
	font-weight: 600;
	max-width: 62ch;
}

.jvc-tabpanel__limit.is-full {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--_green-tint);
}

.jvc-tabpanel[hidden] {
	display: none;
}

/*
 * Dish rows in the shared step reuse the tray rows. At the limit the unchosen ones lock:
 * shown with a dashed border and grey background (text keeps its contrast; + is disabled).
 */
.jvc-pick.is-disabled {
	border-style: dashed;
	background: var(--_light);
}

.jvc-pick.is-disabled .jvc-tray__name {
	color: var(--_muted);
}

/* Rows without a photo: the text uses the full width, with − / + beside it from 375 px. */
.jvc-pick.jvc-tray--noimg {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 375px) {
	.jvc-pick.jvc-tray--noimg {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.jvc-pick.jvc-tray--noimg .jvc-stepper {
		grid-column: auto;
		justify-self: end;
	}
}

/* ---------- Dish cards ----------
 * 1.7.0: the photo is the main element of the card, full card width (two cards per row from
 * 360 px wide screens, 4:3 photos on phones and 3:2 from 600 px). Before, phones showed a 76 px
 * thumbnail and wider screens fitted 4–5 cards of about 220 px in a row. */

.jvc-dishes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

@media (min-width: 360px) {
	.jvc-dishes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (min-width: 600px) {
	.jvc-dishes {
		gap: 20px;
	}
}

.jvc-dish {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.jvc-dish:hover {
	border-color: var(--_black);
}

.jvc-dish__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.jvc-dish:has(.jvc-dish__input:focus-visible) {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

/* Dishes without a photo: compact text cards (the round tick stays clear of the text). */
.jvc-dish--noimg {
	min-height: 72px;
}

.jvc-dish--noimg .jvc-dish__body {
	padding-right: 52px;
}

/* Tray rows without a photo: the text uses the full width (more specific than .jvc-tray below). */
.jvc-tray.jvc-tray--noimg:not(.jvc-pick) {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.jvc-tray.jvc-tray--noimg:not(.jvc-pick) {
		grid-template-columns: minmax(0, 1fr) auto;
		padding-left: 20px;
	}
}

.jvc-dish.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
	box-shadow: 0 0 0 1px var(--_green);
}

.jvc-dish.is-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.jvc-dish.is-disabled:hover {
	border-color: var(--_line);
}

.jvc-dish__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--_light);
}

@media (min-width: 600px) {
	.jvc-dish__media {
		aspect-ratio: 3 / 2;
	}
}

/* The photo fills the frame exactly, whatever the size of the uploaded image. */
.jvc-dish__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jvc-dish__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 12px 12px 14px;
}

@media (min-width: 600px) {
	.jvc-dish__body {
		gap: 8px;
		padding: 18px 20px 20px;
	}
}

.jvc-dish__name {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

.jvc-dish__desc {
	color: var(--_muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.jvc-dish__price {
	margin-top: auto;
	padding-top: 2px;
	font-size: 1rem;
	font-weight: 700;
}

@media (min-width: 600px) {
	.jvc-dish__name {
		font-size: 1.25rem;
	}

	.jvc-dish__desc {
		font-size: 1rem;
	}

	.jvc-dish__price {
		font-size: 1.0625rem;
	}
}

.jvc-dish__check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 2px solid var(--_line);
	border-radius: 50%;
	background: var(--_white);
	box-shadow: 0 2px 8px rgba(18, 21, 25, 0.18);
}

.jvc-dish.is-selected .jvc-dish__check {
	border-color: var(--_black);
	background: var(--_green);
}

.jvc-dish.is-selected .jvc-dish__check::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 5px;
	width: 8px;
	height: 15px;
	border: solid var(--_black);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

/* ---------- Badges ---------- */

.jvc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.jvc-badge {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--_black);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	cursor: help;
}

/* ---------- Trays ---------- */

.jvc-traygroup {
	margin: 0 0 36px;
}

.jvc-traygroup__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--_black);
}

.jvc-traygroup__title {
	margin: 0;
	font-size: 1.5rem;
}

.jvc-traygroup__price {
	font-size: 1.125rem;
	font-weight: 700;
	white-space: nowrap;
}

/*
 * 1.7.0: one dish per row with a large photo. Phones: the photo across the card (3:2), the name,
 * description and price under it, and a full-width − / + row. From 600 px: the photo on the
 * left (4:3, up to 320 px wide, about a third of the row), the text in the middle and − / + on
 * the right. Before, the photo was a fixed 72 × 72 px box (60 px on phones) in a 72 px column,
 * so widening only the column gave a low strip.
 */
.jvc-traylist {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jvc-tray {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-tray .jvc-stepper {
	grid-column: 1 / -1;
	justify-self: stretch;
	justify-content: space-between;
}

@media (min-width: 600px) {
	.jvc-tray {
		grid-template-columns: clamp(200px, 34%, 320px) minmax(0, 1fr) auto;
		gap: 24px;
		padding: 14px 20px 14px 14px;
	}

	.jvc-tray .jvc-stepper {
		grid-column: auto;
		justify-self: end;
	}
}

.jvc-tray.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

.jvc-tray__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 10px;
	background: var(--_light);
}

@media (min-width: 600px) {
	.jvc-tray__media {
		aspect-ratio: 4 / 3;
	}
}

/* The photo fills the frame exactly, whatever the size of the uploaded image. */
.jvc-tray__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jvc-tray__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.jvc-tray__name {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
}

.jvc-tray__desc {
	color: var(--_muted);
	font-size: 1rem;
	line-height: 1.45;
}

.jvc-tray__unit {
	font-size: 1.0625rem;
	font-weight: 700;
}

@media (min-width: 600px) {
	.jvc-tray__name {
		font-size: 1.375rem;
	}
}

/* ---------- Forms ---------- */

.jvc-form {
	display: grid;
	gap: 8px;
}

.jvc-fieldset {
	margin: 0 0 16px;
	padding: 20px;
	border: 1px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-fieldset__legend {
	padding: 0 6px;
	font-weight: 700;
	font-size: 1.0625rem;
}

.jvc-grid-2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 16px;
}

@media (min-width: 600px) {
	.jvc-grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.jvc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.jvc-field__label {
	font-weight: 600;
	font-size: 0.9375rem;
}

.jvc-req {
	color: var(--_error);
}

.jvc-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid #c9cfc0;
	border-radius: 10px;
	background: var(--_white);
	color: var(--_black);
	font: inherit;
}

.jvc-textarea {
	min-height: 96px;
	resize: vertical;
}

.jvc-input[aria-invalid="true"] {
	border-color: var(--_error);
}

.jvc-field__help {
	margin: 0;
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-field__error {
	margin: 0;
	color: var(--_error);
	font-size: 0.875rem;
	font-weight: 600;
}

.jvc-choices {
	display: grid;
	gap: 10px;
}

@media (min-width: 600px) {
	.jvc-choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.jvc-choice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	cursor: pointer;
}

.jvc-choice:has(input:focus-visible) {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

.jvc-choice.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

.jvc-choice input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--_black);
}

.jvc-choice__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jvc-choice__label {
	font-weight: 700;
}

.jvc-choice__help {
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-address {
	margin-top: 16px;
}

/* ---------- Review ---------- */

.jvc-review {
	display: grid;
	gap: 12px;
}

.jvc-review__section {
	padding: 16px 18px;
	border: 1px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-review__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.jvc-review__title {
	margin: 0;
	font-size: 1.0625rem;
}

.jvc-review__body p {
	margin: 0;
}

.jvc-review__list {
	margin: 0;
	padding-left: 18px;
}

.jvc-review__group {
	margin: 8px 0 2px !important;
}

.jvc-review__note {
	margin: 0;
	color: var(--_muted);
}

.jvc-price {
	padding: 18px;
	border-radius: var(--_radius);
	background: var(--_black);
	color: var(--_white);
}

.jvc-price__line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
	font-size: 0.9375rem;
}

.jvc-price__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 1.125rem;
}

.jvc-price__total strong {
	color: var(--_green);
	font-size: 1.625rem;
}

.jvc-price__fine,
.jvc-price__pay {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
}

/* ---------- Extras (last step, priced per guest) ---------- */

.jvc-extras {
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-extras__title {
	float: left;
	width: 100%;
	padding: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.jvc-extras__title + * {
	clear: both;
}

.jvc-extras__lead {
	margin: 2px 0 12px;
	color: var(--_muted);
	font-size: 0.9375rem;
}

.jvc-extras__list {
	display: grid;
	gap: 10px;
}

.jvc-extra {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	cursor: pointer;
}

.jvc-extra:has(input:focus-visible) {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

.jvc-extra.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

.jvc-extra__input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--_black);
}

.jvc-extra__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.jvc-extra__name {
	font-weight: 700;
}

.jvc-extra__price {
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-extra__amount {
	font-weight: 700;
	white-space: nowrap;
}

.jvc-extras__guests {
	margin-top: 14px;
}

/* Since 1.5.0: each extra is a card. Per-guest extras: all guests or only some (with a count);
   per-piece extras: a quantity stepper. */
.jvc-extra-card {
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-extra-card.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

.jvc-extra-card .jvc-extra,
.jvc-extra-card .jvc-extra.is-selected {
	border: 0;
	background: none;
}

.jvc-extra--piece {
	cursor: default;
}

.jvc-extra__help {
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-extra__opts {
	display: grid;
	gap: 12px;
	padding: 0 14px 14px 48px;
}

.jvc-extra-card--piece .jvc-extra__opts {
	padding-left: 14px;
}

.jvc-extra__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.jvc-extra__mode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 2px solid var(--_line);
	border-radius: 999px;
	background: var(--_white);
	font-weight: 600;
	cursor: pointer;
}

.jvc-extra__mode.is-selected {
	border-color: var(--_black);
}

.jvc-extra__mode input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--_black);
}

.jvc-extra__mode:has(input:focus-visible) {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

.jvc-extra__qty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.jvc-extra__qlabel {
	flex-basis: 100%;
	font-size: 0.9375rem;
	font-weight: 600;
}

.jvc-stepper {
	display: inline-flex;
	align-items: center;
	border: 2px solid var(--_line);
	border-radius: 999px;
	background: var(--_white);
}

.jvc-stepper__btn {
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--_black);
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
}

.jvc-stepper__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.jvc-stepper__input {
	width: 4.5rem;
	height: 52px;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.jvc-stepper__input::-webkit-inner-spin-button,
.jvc-stepper__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.jvc-extra__quick {
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--_line);
	border-radius: 999px;
	background: var(--_white);
	font-weight: 700;
	cursor: pointer;
}

.jvc-extra__of {
	color: var(--_muted);
	font-size: 0.9375rem;
}

@media (max-width: 480px) {
	.jvc-extra__opts {
		padding-left: 14px;
	}
}

.jvc-input--short {
	max-width: 10rem;
}

/* ---------- Finish: pay online, pay at the restaurant, request a quote ---------- */

.jvc-finish {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--_line);
}

.jvc-finish__title {
	margin: 0 0 14px;
	font-size: 1.25rem;
}

.jvc-finish__options {
	display: grid;
	gap: 12px;
}

@media (min-width: 720px) {
	.jvc-finish__options--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jvc-finish__options--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.jvc-finish__opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
	min-height: 104px;
	padding: 16px 18px;
	border: 2px solid var(--_black);
	border-radius: var(--_radius);
	background: var(--_white);
	color: var(--_black);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.jvc-finish__opt--online {
	border-color: var(--_green);
	background: var(--_green);
}

.jvc-finish__opt:hover:not(:disabled) {
	background: var(--_green-tint);
}

.jvc-finish__opt--online:hover:not(:disabled) {
	border-color: var(--_green-hover);
	background: var(--_green-hover);
}

.jvc-finish__opt:active:not(:disabled) {
	transform: translateY(1px);
}

.jvc-finish__opt:focus-visible {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--_green);
}

.jvc-finish__opt:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.jvc-finish__label {
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.25;
}

.jvc-finish__label::after {
	content: " \2192";
}

.jvc-finish__help {
	color: var(--_muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.jvc-finish__opt--online .jvc-finish__help {
	color: var(--_black);
}

.jvc-finish__note {
	margin: 12px 0 0;
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-step__actions--back {
	justify-content: flex-start;
}

/* ---------- Notices & errors ---------- */

.jvc-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--_light);
}

.jvc-notice--info {
	background: var(--_green-tint);
}

.jvc-notice--warning {
	border: 1px solid #f5c26b;
	background: #fff8e6;
}

.jvc-errors {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid #fecdca;
	border-radius: 10px;
	background: var(--_error-bg);
	color: var(--_error);
}

.jvc-errors:focus {
	outline: 3px solid var(--_error);
	outline-offset: 2px;
}

.jvc-errors__title {
	margin: 0 0 6px;
	font-weight: 700;
}

.jvc-errors ul {
	margin: 0;
	padding-left: 18px;
}

.jvc-errors .jvc-link {
	color: var(--_error);
}

/* ---------- Summary ---------- */

.jvc-summary {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1001;
	max-height: min(78vh, 640px);
	overflow-y: auto;
	padding: 20px 20px 92px;
	border-radius: 18px 18px 0 0;
	background: var(--_white);
	box-shadow: 0 -12px 40px rgba(18, 21, 25, 0.25);
	transform: translateY(105%);
	visibility: hidden;
	transition: transform 0.25s ease, visibility 0.25s;
}

.jvc-summary.is-open {
	transform: none;
	visibility: visible;
}

@media (min-width: 960px) {
	.jvc-summary {
		position: sticky;
		top: var(--_sticky-top);
		z-index: auto;
		max-height: none;
		overflow: visible;
		padding: 0;
		border-radius: var(--_radius);
		background: transparent;
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}
}

.jvc-summary__inner {
	padding: 26px;
	border-radius: var(--_radius);
	background: var(--_light);
	font-size: 1.0625rem;
}

@media (min-width: 960px) {
	.jvc-summary__inner {
		padding: 30px 30px 28px;
	}
}

@media (min-width: 960px) {
	.jvc-summary__inner {
		border: 1px solid var(--_line);
	}
}

.jvc-summary__title {
	margin: 0 0 18px;
	font-size: 1.5rem;
}

.jvc-summary__empty {
	margin: 0;
	color: var(--_muted);
}

.jvc-summary__facts {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
}

.jvc-summary__facts div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.jvc-summary__facts dt {
	color: var(--_muted);
}

.jvc-summary__facts dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.jvc-mini-stepper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.jvc-mini-stepper__btn {
	width: 38px;
	height: 38px;
	font-size: 1.25rem;
	border-width: 1.5px;
}

.jvc-mini-stepper__val {
	min-width: 2.5ch;
	text-align: center;
}

.jvc-summary__groups {
	display: grid;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--_line);
}

.jvc-summary__groups:empty {
	display: none;
}

.jvc-summary__gtitle {
	display: flex;
	justify-content: space-between;
	margin: 0 0 6px;
	font-size: 1.125rem;
	font-weight: 700;
}

.jvc-summary__count {
	color: var(--_muted);
	font-weight: 600;
}

/* Category names inside the shared "Dishes" group. */
.jvc-summary__gsub {
	margin: 8px 0 2px;
	color: var(--_muted);
	font-size: 0.9375rem;
	font-weight: 700;
}

.jvc-summary__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.0625rem;
}

.jvc-summary__group li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
}

.jvc-summary__group li::before {
	content: "";
	flex: 0 0 7px;
	height: 7px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: var(--_green);
}

.jvc-summary__group li span:first-child {
	flex: 1;
}

.jvc-summary__remaining {
	margin: 6px 0 12px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--_white);
	font-size: 1rem;
}

.jvc-summary__remaining p {
	margin: 0 0 4px;
	font-weight: 700;
}

.jvc-summary__remaining ul {
	margin: 0;
	padding-left: 18px;
}

.jvc-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 10px;
	padding-top: 16px;
	border-top: 2px solid var(--_black);
	font-size: 1.1875rem;
	font-weight: 600;
}

.jvc-summary__total strong {
	font-size: 2rem;
	line-height: 1.1;
}

.jvc-summary__fine {
	margin: 10px 0 0;
	color: var(--_muted);
	font-size: 0.9375rem;
}

/* ---------- Mobile bar ---------- */

.jvc-mobilebar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1002;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--_black);
	box-shadow: 0 -4px 16px rgba(18, 21, 25, 0.2);
}

@media (min-width: 960px) {
	.jvc-mobilebar {
		display: none;
	}
}

.jvc-mobilebar__toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label total"
		"more total";
	align-items: center;
	gap: 0 12px;
	width: 100%;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--_white);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.jvc-mobilebar__label {
	grid-area: label;
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.jvc-mobilebar__more {
	grid-area: more;
	color: var(--_green);
	font-size: 0.875rem;
	text-decoration: underline;
}

.jvc-mobilebar__total {
	grid-area: total;
	color: var(--_green);
	font-size: 1.375rem;
}

@media (max-width: 959px) {
	html.jvc-sheet-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jvc-app *,
	.jvc-app *::before,
	.jvc-app *::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Since 1.8.0: desserts (ways of selling) ---------- */

.jvc-desserts {
	margin-top: 16px;
}

.jvc-desserts__list {
	display: grid;
	gap: 12px;
}

.jvc-dessert {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	padding: 14px;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jvc-dessert.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

@media (min-width: 600px) {
	.jvc-dessert {
		grid-template-columns: 112px minmax(0, 1fr);
		align-items: start;
	}
}

.jvc-dessert__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--_radius) - 4px);
	object-fit: cover;
	background: var(--_light);
}

.jvc-dessert__img--none {
	display: none;
}

@media (min-width: 600px) {
	.jvc-dessert__img {
		aspect-ratio: 1;
	}

	.jvc-dessert__img--none {
		display: block;
	}
}

.jvc-dessert__body {
	min-width: 0;
}

.jvc-dessert__name {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.jvc-dessert__desc {
	margin: 4px 0 0;
	color: var(--_muted);
	font-size: 0.9375rem;
}

.jvc-dessert__tiers {
	display: inline-block;
	margin: 8px 0 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--_black);
	color: var(--_white);
	font-size: 0.8125rem;
	font-weight: 600;
}

.jvc-dessert__rows {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.jvc-dessert__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 12px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--_light);
}

.jvc-dessert.is-selected .jvc-dessert__row {
	background: var(--_white);
}

.jvc-dessert__method {
	display: flex;
	flex-direction: column;
	min-width: 0;
	cursor: pointer;
}

.jvc-dessert__mname {
	font-weight: 700;
}

.jvc-dessert__mprice {
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-dessert__amount {
	grid-column: 1 / -1;
	font-size: 0.875rem;
	font-weight: 700;
	text-align: right;
}

.jvc-dessert__amount[hidden] {
	display: none;
}

/* ---------- Since 1.8.0: delivery and payment card ---------- */

.jvc-paycard {
	display: grid;
	gap: 14px;
	margin-top: 16px;
	padding: 20px;
	border: 2px solid var(--_black);
	border-radius: var(--_radius);
	background: var(--_white);
}

.jvc-summary--review .jvc-paycard {
	margin-top: 16px;
}

.jvc-paycard__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.jvc-paycard__ful {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--_light);
	font-size: 0.9375rem;
}

.jvc-paycard__ful p {
	margin: 0;
}

.jvc-paycard__ful p + p {
	margin-top: 4px;
}

.jvc-paycard__fulname {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	justify-content: space-between;
}

.jvc-paycard__fee {
	color: var(--_muted);
}

.jvc-paycard__prefs {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.jvc-paycard__legend {
	float: left;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
	font-weight: 700;
}

.jvc-paycard__legend + * {
	clear: both;
}

.jvc-pref {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 2px solid var(--_line);
	border-radius: var(--_radius);
	background: var(--_white);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jvc-pref:has(input:focus-visible) {
	outline: 3px solid var(--_black);
	outline-offset: 2px;
}

.jvc-pref.is-selected {
	border-color: var(--_green);
	background: var(--_green-tint);
}

.jvc-pref input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--_black);
}

.jvc-pref__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.jvc-pref__label {
	font-weight: 700;
}

.jvc-pref__help {
	color: var(--_muted);
	font-size: 0.875rem;
}

.jvc-paycard__note {
	margin: 0;
	padding: 10px 12px;
	border-left: 4px solid var(--_green);
	background: var(--_green-tint);
	font-size: 0.9375rem;
}

.jvc-paycard__submit {
	width: 100%;
}

.jvc-paycard .jvc-finish__note {
	margin: 0;
	color: var(--_muted);
	font-size: 0.875rem;
}

/* With the pay card in the summary column, the column scrolls with the page so the button
   can always be reached. */
@media (min-width: 960px) {
	.jvc-summary--review {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jvc-dessert,
	.jvc-pref {
		transition: none;
	}
}
