/* Pickup or delivery: header button, menu strip, checkout row, dialog and message.
   Uses the theme's colour tokens when they exist (Just Vege theme), with the same values as fallbacks. */

.jvc-ful,
.jvc-ful-strip,
.jvc-ful-row,
.jvc-fuld {
	--jvc-f-ink: var(--jv-black, #17191b);
	--jvc-f-lime: var(--jv-green, #84dc31);
	--jvc-f-lime-hover: var(--jv-green-hover, #74c825);
	--jvc-f-lime-ink: var(--jv-green-ink, #3d6a0c);
	--jvc-f-tint: var(--jv-green-tint, #eef9e3);
	--jvc-f-line: var(--jv-line, #e2e3e5);
	--jvc-f-line-strong: var(--jv-line-strong, #c7c9cc);
	--jvc-f-muted: var(--jv-muted, #50565c);
	--jvc-f-mist: var(--jv-mist, #f2f3f4);
	--jvc-f-err: var(--jv-error, #b42318);
	--jvc-f-err-bg: var(--jv-error-bg, #fef3f2);
	--jvc-f-radius: var(--jv-radius, 14px);
	--jvc-f-radius-sm: var(--jv-radius-sm, 10px);
	--jvc-f-ease: var(--jv-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.jvc-ful__ic {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--jvc-f-lime);
	color: var(--jvc-f-ink);
}

.jvc-ful__svg {
	display: block;
}

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

.jvc-ful {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	max-width: 340px;
	padding: 5px 16px 5px 6px;
	border: 1.5px solid var(--jvc-f-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--jvc-f-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms var(--jvc-f-ease);
}

.jvc-ful:hover {
	border-color: var(--jvc-f-ink);
}

.jvc-ful:active {
	transform: scale(0.98);
}

.jvc-ful:focus-visible,
.jvc-ful-strip__btn:focus-visible,
.jvc-ful-row__btn:focus-visible,
.jvc-fuld button:focus-visible,
.jvc-fuld input:focus-visible,
.jvc-fuld select:focus-visible {
	outline: 3px solid var(--jvc-f-ink);
	outline-offset: 2px;
}

.jvc-ful__text {
	display: grid;
	min-width: 0;
	line-height: 1.2;
}

.jvc-ful__text b {
	font-size: 1.0625rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jvc-ful__text small {
	color: var(--jvc-f-muted);
	font-size: 0.875rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jvc-ful--none {
	border-color: var(--jvc-f-ink);
}

.jvc-ful__chev {
	flex: none;
	margin-left: 2px;
}

.jvc-ful--mobile {
	display: flex;
	width: 100%;
	max-width: none;
	border-radius: var(--jvc-f-radius);
	padding: 6px 16px 6px 6px;
}

.jvc-ful--mobile .jvc-ful__text {
	flex: 1;
}

.jvc-ful__chg {
	flex: none;
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Menu page strip -------------------------------------------------------------- */

.jvc-ful-strip {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin: 24px 0 0;
	padding: 18px 20px;
	font-size: 1.0625rem;
	border: 1.5px solid #cfeeb0;
	border-radius: var(--jvc-f-radius);
	background: var(--jvc-f-tint);
	color: var(--jvc-f-ink);
}

.jvc-ful-strip--none {
	border-color: #f3d19e;
	background: #fff8ec;
}

.jvc-ful-strip .jvc-ful__ic {
	width: 54px;
	height: 54px;
}

.jvc-ful-strip .jvc-ful__ic .jvc-ful__svg {
	width: 26px;
	height: 26px;
}

.jvc-ful-strip__text {
	flex: 1 1 260px;
	margin: 0;
	line-height: 1.4;
}

.jvc-ful-strip__btn,
.jvc-ful-row__btn {
	min-height: 52px;
	padding: 10px 26px;
	border: 1.5px solid var(--jvc-f-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--jvc-f-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms var(--jvc-f-ease);
}

.jvc-ful-strip--none .jvc-ful-strip__btn {
	background: var(--jvc-f-ink);
	color: #fff;
}

.jvc-ful-strip__btn:hover,
.jvc-ful-row__btn:hover {
	background: var(--jvc-f-mist);
}

.jvc-ful-strip--none .jvc-ful-strip__btn:hover {
	background: #000;
}

.jvc-ful-strip__btn:active,
.jvc-ful-row__btn:active {
	transform: scale(0.97);
}

/* Cart and checkout row -------------------------------------------------------- */

.jvc-ful-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1.5px solid var(--jvc-f-ink);
	border-radius: var(--jvc-f-radius);
	background: #fff;
	color: var(--jvc-f-ink);
}

.jvc-ful-row--none {
	border-color: #f3d19e;
	background: #fff8ec;
}

.jvc-ful-row .jvc-ful__ic {
	width: 44px;
	height: 44px;
}

.jvc-ful-row__text {
	flex: 1;
	display: grid;
	gap: 2px;
	min-width: 0;
	line-height: 1.35;
}

.jvc-ful-row__eyebrow {
	color: var(--jvc-f-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jvc-ful-row__text > span:last-child:not(.jvc-ful-row__eyebrow) {
	color: var(--jvc-f-muted);
	overflow-wrap: anywhere;
}

/* Dialog -------------------------------------------------------------------------- */

html.jvc-fuld-open {
	overflow: hidden;
}

/* 1.7.0: a large window – about 78 % of the screen on desktop (at most 1040 px), nearly the full
   width on tablets and phones. */
.jvc-fuld {
	width: min(1040px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100% - 24px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--jvc-f-ink);
	box-shadow: 0 24px 60px rgba(23, 25, 27, 0.25);
	overscroll-behavior: contain;
}

.jvc-fuld[open] {
	animation: jvc-fuld-in 220ms var(--jvc-f-ease);
}

.jvc-fuld::backdrop {
	background: rgba(23, 25, 27, 0.55);
}

@media (min-width: 1100px) {
	.jvc-fuld {
		width: min(1040px, 78vw);
	}
}

@keyframes jvc-fuld-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jvc-fuld[open] {
		animation: none;
	}

	.jvc-ful,
	.jvc-ful-strip__btn,
	.jvc-ful-row__btn,
	.jvc-fuld__btn,
	.jvc-fuld__pick {
		transition: none;
	}
}

.jvc-fuld__box {
	position: relative;
	padding: clamp(28px, 4vw, 52px) clamp(20px, 4.5vw, 60px) clamp(30px, 4vw, 56px);
}

.jvc-fuld__x {
	position: absolute;
	top: clamp(12px, 2vw, 22px);
	right: clamp(12px, 2vw, 22px);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: var(--jvc-f-mist);
	color: var(--jvc-f-ink);
	cursor: pointer;
}

.jvc-fuld__x:hover {
	background: var(--jvc-f-line);
}

.jvc-fuld__x .jvc-ful__svg {
	width: 26px;
	height: 26px;
}

.jvc-fuld__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin: -8px 0 0 -8px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--jvc-f-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.jvc-fuld__eyebrow {
	margin: 0;
	padding-right: 64px;
	color: var(--jvc-f-lime-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jvc-fuld__title {
	margin: 8px 0 0;
	padding-right: 64px;
	font-family: var(--jv-font-display, inherit);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
	line-height: 1.05;
}

.jvc-fuld__lead {
	margin: 10px 0 0;
	color: var(--jvc-f-muted);
	font-size: 1.125rem;
}

.jvc-fuld__picks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 2vw, 28px);
	margin-top: clamp(22px, 3vw, 40px);
}

.jvc-fuld__pick {
	display: grid;
	justify-items: start;
	align-content: start;
	gap: 12px;
	min-height: 150px;
	padding: clamp(18px, 2.4vw, 34px);
	border: 1.5px solid var(--jvc-f-line-strong);
	border-radius: var(--jvc-f-radius);
	background: #fff;
	color: var(--jvc-f-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--jvc-f-ease);
}

.jvc-fuld__pick .jvc-ful__ic {
	width: clamp(56px, 6vw, 80px);
	height: clamp(56px, 6vw, 80px);
	margin-bottom: 4px;
}

.jvc-fuld__pick .jvc-ful__ic .jvc-ful__svg {
	width: 55%;
	height: 55%;
}

.jvc-fuld__pick b {
	font-family: var(--jv-font-display, inherit);
	font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
	line-height: 1.15;
}

.jvc-fuld__pick > span:last-child {
	color: var(--jvc-f-muted);
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	line-height: 1.45;
}

@media (min-width: 720px) {
	.jvc-fuld__pick {
		min-height: 250px;
	}
}

.jvc-fuld__pick:hover {
	border-color: var(--jvc-f-ink);
	box-shadow: 0 10px 24px rgba(23, 25, 27, 0.08);
}

.jvc-fuld__pick:active {
	transform: scale(0.98);
}

.jvc-fuld__pick.is-on {
	border-color: var(--jvc-f-lime-ink);
	box-shadow: inset 0 0 0 1px var(--jvc-f-lime-ink);
}

.jvc-fuld__note {
	margin: 22px 0 0;
	color: var(--jvc-f-muted);
	font-size: 1.0625rem;
}

/* The address and pickup steps: comfortable field widths inside the large window. */
.jvc-fuld__form {
	display: grid;
	gap: 18px;
	max-width: 760px;
	margin-top: 26px;
	font-size: 1.0625rem;
}

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

.jvc-fuld__field {
	display: grid;
	gap: 6px;
}

.jvc-fuld__field label,
.jvc-fuld__label {
	font-weight: 700;
}

.jvc-fuld__field input,
.jvc-fuld__field select {
	width: 100%;
	min-height: 56px;
	padding: 12px 16px;
	border: 1.5px solid var(--jvc-f-line-strong);
	border-radius: var(--jvc-f-radius-sm);
	background: #fff;
	color: var(--jvc-f-ink);
	font: inherit;
	font-size: max(16px, 1.0625rem);
}

.jvc-fuld__field input[aria-invalid="true"] {
	border-color: var(--jvc-f-err);
	box-shadow: inset 0 0 0 1px var(--jvc-f-err);
}

.jvc-fuld__hint {
	color: var(--jvc-f-muted);
	font-size: 0.875rem;
}

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

.jvc-fuld__place {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1.5px solid var(--jvc-f-lime-ink);
	border-radius: var(--jvc-f-radius);
}

.jvc-fuld__place > span:last-child {
	display: grid;
	gap: 2px;
	line-height: 1.35;
}

.jvc-fuld__place > span:last-child > span {
	color: var(--jvc-f-muted);
	font-size: 0.9375rem;
}

.jvc-fuld__msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--jvc-f-radius-sm);
	line-height: 1.45;
}

.jvc-fuld__msg .jvc-ful__svg {
	flex: none;
	margin-top: 1px;
}

.jvc-fuld__msg.is-ok {
	background: var(--jvc-f-tint);
	color: var(--jvc-f-lime-ink);
}

.jvc-fuld__msg.is-ok span {
	color: var(--jvc-f-ink);
}

.jvc-fuld__msg.is-err {
	background: var(--jvc-f-err-bg);
	color: var(--jvc-f-err);
}

.jvc-fuld__msg.is-warn {
	background: #fff8ec;
	color: #7a4b00;
}

.jvc-fuld__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jvc-fuld__btn {
	min-height: 58px;
	padding: 12px 28px;
	font-size: 1.0625rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms var(--jvc-f-ease);
}

.jvc-fuld__btn:active {
	transform: scale(0.97);
}

.jvc-fuld__btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.jvc-fuld__btn--primary {
	background: var(--jvc-f-lime);
	color: var(--jvc-f-ink);
}

.jvc-fuld__btn--primary:hover {
	background: var(--jvc-f-lime-hover);
}

.jvc-fuld__btn--dark {
	background: var(--jvc-f-ink);
	color: #fff;
}

.jvc-fuld__btn--dark:hover {
	background: #000;
}

.jvc-fuld__btn--line {
	border-color: var(--jvc-f-ink);
	background: #fff;
	color: var(--jvc-f-ink);
}

.jvc-fuld__btn--line:hover {
	background: var(--jvc-f-mist);
}

@media (max-width: 480px) {
	.jvc-fuld {
		width: calc(100% - 16px);
		max-height: calc(100% - 16px);
	}

	.jvc-fuld__pair {
		grid-template-columns: 1fr;
	}

	.jvc-fuld__pick {
		min-height: 0;
	}

	.jvc-fuld__btn {
		flex: 1 1 100%;
	}
}

/* Message after saving ---------------------------------------------------------- */

.jvc-ful-toast {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 100000;
	max-width: min(560px, calc(100% - 32px));
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--jv-black, #17191b);
	color: #fff;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 8px);
	transition: opacity 200ms ease, transform 200ms var(--jv-ease-out, ease-out);
}

.jvc-ful-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
