/*
 * Lovemetry Delivery – menu, plate pop-up and side cart.
 * Mobile first. Colours follow the theme: Flatsome's primary colour when present.
 * Override any --lmd-* variable in the theme's custom CSS to restyle.
 */

.lmd-menu,
.lmd-root,
.lmd-toast,
.lmd-product-options {
	--lmd-accent: var(--fs-color-primary, var(--primary-color, #b5432a));
	--lmd-accent-ink: #fff;
	--lmd-ink: #1d1d1f;
	--lmd-muted: #6b6b70;
	--lmd-line: rgba(0, 0, 0, 0.1);
	--lmd-surface: #fff;
	--lmd-soft: #f6f4f1;
	--lmd-good: #2e7d32;
	--lmd-bad: #c62828;
	--lmd-radius: 14px;
	--lmd-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
	--lmd-sticky-top: 0px;
	--lmd-bg: #fff;
	--lmd-spicy-bg: #fde7e3;
	--lmd-spicy-ink: #a2321b;
	--lmd-green-bg: #e5f3e6;
	--lmd-green-ink: #2e6b31;
	--lmd-error-bg: #fdecea;
	--lmd-title: var(--lmd-ink);
	--lmd-price: var(--lmd-ink);
	--lmd-link: var(--lmd-accent);
	--lmd-cart-item: transparent;
	color-scheme: light;
}

/*
 * Dark background (Settings › Store › Menu colours, or theme="dark" on the shortcode).
 * "Automatic" follows the visitor's device.
 */
.lmd-theme-dark,
.lmd-theme-dark .lmd-menu {
	--lmd-ink: #f2f2f3;
	--lmd-muted: #a4a4ab;
	--lmd-line: rgba(255, 255, 255, 0.12);
	--lmd-surface: #1d1d21;
	--lmd-soft: #2a2a2f;
	--lmd-bg: #131316;
	--lmd-good: #66bb6a;
	--lmd-bad: #ef6c66;
	--lmd-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
	--lmd-spicy-bg: #4a221b;
	--lmd-spicy-ink: #ffb4a3;
	--lmd-green-bg: #1d3a20;
	--lmd-green-ink: #9fd9a2;
	--lmd-error-bg: #4a1f1d;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	.lmd-theme-auto,
	.lmd-theme-auto .lmd-menu {
		--lmd-ink: #f2f2f3;
		--lmd-muted: #a4a4ab;
		--lmd-line: rgba(255, 255, 255, 0.12);
		--lmd-surface: #1d1d21;
		--lmd-soft: #2a2a2f;
		--lmd-bg: #131316;
		--lmd-good: #66bb6a;
		--lmd-bad: #ef6c66;
		--lmd-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
		--lmd-spicy-bg: #4a221b;
		--lmd-spicy-ink: #ffb4a3;
		--lmd-green-bg: #1d3a20;
		--lmd-green-ink: #9fd9a2;
		--lmd-error-bg: #4a1f1d;
		color-scheme: dark;
	}
}

/* The ordering area gets its own background so it reads well on any page. */
.lmd-menu {
	padding: 16px;
	border-radius: var(--lmd-radius);
	background: var(--lmd-bg);
	color: var(--lmd-ink);
}

.lmd-menu .lmd-section-title,
.lmd-menu h2,
.lmd-card-name,
.lmd-dialog-title,
.lmd-line-name,
#lmd-drawer-title {
	color: var(--lmd-title);
}

.lmd-card-price,
.lmd-opt-price,
.lmd-line-total,
.lmd-totals .is-total dd {
	color: var(--lmd-price);
}

.lmd-section a:not(.lmd-btn),
.lmd-status a,
.lmd-root a:not(.lmd-btn),
.lmd-product-options a:not(.lmd-btn) {
	color: var(--lmd-link);
}

.lmd-search input {
	color: var(--lmd-ink);
}

.lmd-search input::placeholder,
.lmd-group textarea::placeholder,
.lmd-note textarea::placeholder {
	color: var(--lmd-muted);
}

.lmd-group textarea,
.lmd-note textarea {
	background: var(--lmd-surface);
	color: var(--lmd-ink);
}

@media (max-width: 549px) {
	.lmd-menu {
		margin-right: -8px;
		margin-left: -8px;
		padding: 12px 8px;
	}
}

.lmd-menu *,
.lmd-root *,
.lmd-toast * {
	box-sizing: border-box;
}

html.lmd-locked {
	overflow: hidden;
}

/* ---------- status and offer ---------- */

.lmd-status,
.lmd-offer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 12px 16px;
	border-radius: var(--lmd-radius);
	background: var(--lmd-soft);
	color: var(--lmd-ink);
	font-size: 0.95em;
}

.lmd-status p,
.lmd-offer p {
	flex: 1;
	max-width: none;
	margin: 0;
}

.lmd-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--lmd-good);
	box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.lmd-status.is-closed .lmd-dot {
	background: var(--lmd-bad);
	box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.15);
}

.lmd-sep {
	margin: 0 6px;
	color: var(--lmd-muted);
}

.lmd-offer {
	background: color-mix(in srgb, var(--lmd-accent) 10%, var(--lmd-surface));
	color: var(--lmd-ink);
	font-weight: 600;
}

.lmd-offer::before {
	content: "%";
	display: grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--lmd-accent);
	color: var(--lmd-accent-ink);
	font-size: 0.85em;
}

/* ---------- category bar and search ---------- */

.lmd-toolbar {
	position: sticky;
	top: var(--lmd-sticky-top);
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 -4px 8px;
	padding: 10px 4px;
	background: var(--lmd-bg);
	border-bottom: 1px solid var(--lmd-line);
}

/* Category slider: the bar scrolls (drag, swipe or arrows); the arrows sit beside it, never over the names. */
.lmd-cats-wrap {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.lmd-cats-arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lmd-line);
	border-radius: 50%;
	background: var(--lmd-surface);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	color: var(--lmd-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s;
}

.lmd-cats-arrow span {
	margin-top: -3px;
}

.lmd-cats-arrow:hover {
	background: var(--lmd-soft);
}

.lmd-cats-arrow:focus-visible {
	outline: 2px solid var(--lmd-accent);
	outline-offset: 2px;
}

.lmd-cats-arrow[hidden] {
	display: none;
}

/* A soft fade where more categories continue. */
.lmd-cats.has-prev {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px);
	mask-image: linear-gradient(to right, transparent 0, #000 24px);
}

.lmd-cats.has-next {
	-webkit-mask-image: linear-gradient(to left, transparent 0, #000 24px);
	mask-image: linear-gradient(to left, transparent 0, #000 24px);
}

.lmd-cats.has-prev.has-next {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.lmd-cats {
	flex: 1 1 100%;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

@media (hover: hover) and (pointer: fine) {
	.lmd-cats {
		cursor: grab;
	}
}

.lmd-cats.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.lmd-cats.is-dragging a {
	pointer-events: none;
}

.lmd-cats::-webkit-scrollbar {
	display: none;
}

.lmd-cats ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.lmd-cats li {
	margin: 0;
}

.lmd-cats a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--lmd-ink);
	font-weight: 600;
	font-size: 0.92em;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.lmd-cats a:hover {
	background: var(--lmd-soft);
}

.lmd-cats a.is-active {
	background: var(--lmd-ink);
	color: var(--lmd-surface);
}

.lmd-search {
	flex: 1 1 100%;
}

.lmd-search input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 14px 0 38px;
	border: 1px solid var(--lmd-line);
	border-radius: 999px;
	background: var(--lmd-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b6b70' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m17 17-4.5-4.5'/%3E%3C/svg%3E") 13px center no-repeat;
	box-shadow: none;
	font-size: 16px;
}

@media (min-width: 900px) {
	.lmd-cats-wrap {
		flex: 1 1 auto;
	}

	.lmd-search {
		flex: 0 0 260px;
	}
}

/* ---------- sections and cards ---------- */

.lmd-section {
	scroll-margin-top: calc(var(--lmd-sticky-top) + 80px);
	margin: 0 0 28px;
}

.lmd-section-title {
	margin: 20px 0 4px;
	font-size: 1.35em;
}

.lmd-section-desc {
	margin: 0 0 12px;
	color: var(--lmd-muted);
}

.lmd-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 12px;
}

@media (min-width: 768px) {
	.lmd-cols-2 .lmd-grid,
	.lmd-cols-3 .lmd-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.lmd-cols-3 .lmd-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.lmd-card {
	position: relative;
	display: flex;
	border: 1px solid var(--lmd-line);
	border-radius: var(--lmd-radius);
	background: var(--lmd-surface);
	transition: box-shadow 0.15s, transform 0.15s;
}

.lmd-card:hover {
	box-shadow: var(--lmd-shadow);
}

.lmd-card-open {
	display: flex;
	flex: 1;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 14px;
	border: 0;
	border-radius: var(--lmd-radius);
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	line-height: 1.4;
	cursor: pointer;
}

.lmd-card-open:focus-visible {
	outline: 2px solid var(--lmd-accent);
	outline-offset: 2px;
}

.lmd-card-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.lmd-card-name {
	font-weight: 700;
	font-size: 1.02em;
}

.lmd-card-desc {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--lmd-muted);
	font-size: 0.9em;
}

.lmd-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
}

.lmd-card-price {
	margin-right: 4px;
	font-weight: 700;
}

.lmd-card-img {
	flex: none;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--lmd-soft);
}

.lmd-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.lmd-card-add {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lmd-accent);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	color: var(--lmd-accent-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s;
}

.lmd-card-add:hover {
	transform: scale(1.08);
}

.lmd-card-add.is-added {
	background: var(--lmd-good);
}

.lmd-card:has(.lmd-card-img) .lmd-card-add {
	right: 18px;
	bottom: 18px;
}

.lmd-card.is-unavailable .lmd-card-open {
	opacity: 0.55;
}

.lmd-label {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--lmd-soft);
	color: var(--lmd-ink);
	font-size: 0.75em;
	font-weight: 600;
}

.lmd-label-spicy {
	background: var(--lmd-spicy-bg);
	color: var(--lmd-spicy-ink);
}

.lmd-label-vegan,
.lmd-label-vegetarian,
.lmd-label-gluten_free {
	background: var(--lmd-green-bg);
	color: var(--lmd-green-ink);
}

.lmd-label-new,
.lmd-label-popular {
	background: color-mix(in srgb, var(--lmd-accent) 14%, var(--lmd-surface));
	color: var(--lmd-accent);
}

.lmd-label-off {
	background: var(--lmd-soft);
	color: var(--lmd-muted);
}

.lmd-empty,
.lmd-no-results {
	padding: 32px 0;
	color: var(--lmd-muted);
	text-align: center;
}

/* ---------- shared controls ---------- */

.lmd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

.lmd-btn-primary {
	background: var(--lmd-accent);
	color: var(--lmd-accent-ink);
}

.lmd-btn-primary:hover {
	color: var(--lmd-accent-ink);
	filter: brightness(1.06);
}

.lmd-btn[disabled],
.lmd-btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.lmd-btn.is-busy {
	opacity: 0.7;
}

.lmd-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--lmd-line);
	border-radius: 999px;
	background: var(--lmd-surface);
}

.lmd-step {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--lmd-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.lmd-step:hover {
	background: var(--lmd-soft);
}

.lmd-step[disabled] {
	opacity: 0.35;
	cursor: default;
}

.lmd-step-count {
	min-width: 22px;
	font-weight: 700;
	text-align: center;
}

.lmd-stepper-lg .lmd-step {
	width: 44px;
	height: 44px;
}

.lmd-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lmd-surface);
	box-shadow: var(--lmd-shadow);
	color: var(--lmd-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.lmd-form-error {
	margin: 0 0 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--lmd-error-bg);
	color: var(--lmd-bad);
	font-size: 0.92em;
}

/* ---------- option groups ---------- */

.lmd-options {
	margin-top: 8px;
}

.lmd-group {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.lmd-group legend,
.lmd-note > .lmd-group-name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 8px;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	font-size: 1em;
}

.lmd-group-name {
	font-weight: 700;
}

.lmd-badge {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--lmd-soft);
	color: var(--lmd-muted);
	font-size: 0.75em;
	font-weight: 600;
}

.lmd-badge.is-required {
	background: color-mix(in srgb, var(--lmd-accent) 12%, var(--lmd-surface));
	color: var(--lmd-accent);
}

.lmd-group-hint {
	flex-basis: 100%;
	color: var(--lmd-muted);
	font-size: 0.85em;
}

.lmd-group.has-error legend .lmd-group-name {
	color: var(--lmd-bad);
}

.lmd-group.has-error .lmd-choices {
	border-color: var(--lmd-bad);
}

.lmd-choices {
	overflow: hidden;
	border: 1px solid var(--lmd-line);
	border-radius: 12px;
}

.lmd-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	background: var(--lmd-surface);
	font-weight: 400;
	cursor: pointer;
}

.lmd-choice + .lmd-choice {
	border-top: 1px solid var(--lmd-line);
}

.lmd-choice:hover {
	background: var(--lmd-soft);
}

.lmd-choice input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lmd-accent);
}

.lmd-choice.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lmd-opt-name {
	flex: 1;
}

.lmd-opt-price {
	color: var(--lmd-muted);
	font-size: 0.92em;
	white-space: nowrap;
}

.lmd-choice-qty {
	cursor: default;
}

.lmd-choice-qty.is-on .lmd-opt-name {
	font-weight: 700;
}

.lmd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	overflow: visible;
	border: 0;
}

.lmd-pill {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.lmd-pill input {
	position: absolute;
	opacity: 0;
}

.lmd-pill span {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--lmd-line);
	border-radius: 999px;
	font-weight: 600;
}

.lmd-pill input:checked + span {
	border-color: var(--lmd-ink);
	background: var(--lmd-ink);
	color: var(--lmd-surface);
}

.lmd-pill input:focus-visible + span {
	outline: 2px solid var(--lmd-accent);
	outline-offset: 2px;
}

.lmd-group textarea,
.lmd-note textarea {
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--lmd-line);
	border-radius: 12px;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
}

.lmd-live-total {
	margin: 4px 0 12px;
	font-size: 1.1em;
	font-weight: 700;
}

/* ---------- plate pop-up ---------- */

.lmd-dialog {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--lmd-surface);
	color: var(--lmd-ink);
}

.lmd-dialog::backdrop {
	background: rgba(15, 15, 20, 0.55);
}

@media (min-width: 640px) {
	.lmd-dialog {
		width: 560px;
		height: auto;
		max-height: min(860px, 92vh);
		margin: auto;
		border-radius: 20px;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	}
}

.lmd-dialog[open] {
	animation: lmd-rise 0.22s ease-out;
}

@keyframes lmd-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.lmd-dialog-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: inherit;
	margin: 0;
}

.lmd-dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.lmd-dialog-scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lmd-dialog-media img {
	display: block;
	width: 100%;
	max-height: 280px;
	margin: 0;
	object-fit: cover;
}

.lmd-dialog-body {
	padding: 20px 20px 8px;
}

.lmd-dialog-title {
	margin: 0 48px 8px 0;
	font-size: 1.4em;
	line-height: 1.25;
}

.lmd-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.lmd-dialog-desc {
	color: var(--lmd-muted);
}

.lmd-dialog-desc p {
	margin: 0 0 8px;
}

.lmd-allergens {
	margin: 0 0 16px;
	font-size: 0.88em;
	color: var(--lmd-muted);
}

.lmd-dialog-foot {
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--lmd-line);
	background: var(--lmd-surface);
}

.lmd-dialog-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.lmd-add-btn {
	flex: 1;
	justify-content: space-between;
}

.lmd-add-price {
	font-variant-numeric: tabular-nums;
}

.lmd-dialog,
.lmd-dialog * {
	caret-color: transparent;
}

.lmd-dialog input,
.lmd-dialog textarea,
.lmd-dialog select {
	caret-color: auto;
}

.lmd-dialog:focus,
.lmd-dialog:focus-visible {
	outline: none;
}

.lmd-skel {
	border-radius: 8px;
	background: linear-gradient(90deg, var(--lmd-line) 25%, var(--lmd-chip, rgba(127, 127, 127, 0.12)) 50%, var(--lmd-line) 75%);
	background-size: 200% 100%;
	animation: lmd-shimmer 1.1s linear infinite;
}

.lmd-skel-line {
	height: 14px;
	margin: 10px 0;
}

.lmd-skel-short {
	width: 60%;
}

.lmd-skel-block {
	height: 56px;
	margin: 18px 0;
}

.lmd-skel-stepper {
	display: inline-block;
	width: 120px;
	height: 44px;
	border-radius: 999px;
}

@keyframes lmd-shimmer {
	to {
		background-position: -200% 0;
	}
}

.lmd-dialog-loading {
	padding: 60px 20px;
	color: var(--lmd-muted);
	text-align: center;
}

/* ---------- side cart ---------- */

.lmd-fab {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	left: 16px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	margin: 0;
	padding: 0 18px 0 8px;
	border: 0;
	border-radius: 999px;
	background: var(--lmd-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	color: var(--lmd-accent-ink);
	font: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.lmd-fab[hidden],
.lmd-fab-hint[hidden] {
	display: none;
}

.lmd-fab-hint {
	position: fixed;
	right: 16px;
	bottom: calc(80px + env(safe-area-inset-bottom));
	left: 16px;
	z-index: 90;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid color-mix(in srgb, var(--lmd-accent) 30%, transparent);
	border-radius: 14px;
	background: var(--lmd-surface);
	box-shadow: var(--lmd-shadow);
	color: var(--lmd-ink);
	font: inherit;
	font-size: 0.9em;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	animation: lmd-rise 0.25s ease-out;
}

@media (min-width: 768px) {
	.lmd-fab-hint {
		left: auto;
		width: 300px;
	}
}

.lmd-fab-count {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
}

.lmd-fab-label {
	flex: 1;
	text-align: left;
}

@media (min-width: 768px) {
	.lmd-fab {
		left: auto;
		min-width: 300px;
	}
}

.lmd-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.lmd-drawer[hidden] {
	display: none;
}

.lmd-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 20, 0.5);
	opacity: 0;
	transition: opacity 0.25s;
}

.lmd-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: var(--lmd-surface);
	color: var(--lmd-ink);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	transition: transform 0.25s ease-out;
	outline: none;
}

.lmd-drawer.is-open .lmd-drawer-backdrop {
	opacity: 1;
}

.lmd-drawer.is-open .lmd-drawer-panel {
	transform: none;
}

.lmd-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--lmd-line);
}

.lmd-drawer-head h2 {
	margin: 0;
	font-size: 1.2em;
}

.lmd-drawer-head .lmd-close {
	box-shadow: none;
}

.lmd-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	transition: opacity 0.15s;
}

.lmd-drawer-body.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.lmd-drawer-empty {
	padding: 40px 0;
	color: var(--lmd-muted);
	text-align: center;
}

.lmd-progress {
	margin-bottom: 12px;
}

.lmd-progress-bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--lmd-soft);
}

.lmd-progress-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--lmd-accent);
	transition: width 0.3s;
}

.lmd-progress.is-done .lmd-progress-bar span {
	background: var(--lmd-good);
}

.lmd-progress p,
.lmd-hint {
	margin: 6px 0 0;
	font-size: 0.88em;
}

.lmd-hint {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--lmd-accent) 10%, var(--lmd-surface));
	font-weight: 600;
}

.lmd-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lmd-line {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--lmd-line);
}

/* Lines as cards when the side cart has an item colour. */
.lmd-drawer-panel .lmd-line {
	margin: 0 0 8px;
	padding: 12px;
	border: 0;
	border-radius: 14px;
	background: var(--lmd-cart-item);
}

.lmd-line-img {
	flex: none;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
}

.lmd-line-main {
	flex: 1;
	min-width: 0;
}

.lmd-line-name {
	margin: 0 0 2px;
	font-weight: 700;
}

.lmd-line-opts {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	color: var(--lmd-muted);
	font-size: 0.85em;
}

.lmd-line-opts li {
	margin: 0;
}

.lmd-line-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lmd-line-total {
	font-weight: 700;
}

.lmd-drawer-foot {
	padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--lmd-line);
}

.lmd-drawer-foot .lmd-btn {
	width: 100%;
}

.lmd-totals {
	margin: 0 0 12px;
}

.lmd-totals > div {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}

.lmd-totals dt,
.lmd-totals dd {
	margin: 0;
	font-weight: 400;
}

.lmd-totals .is-discount dd {
	color: var(--lmd-good);
	font-weight: 600;
}

.lmd-totals .is-total {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--lmd-line);
	font-size: 1.1em;
}

.lmd-totals .is-total dt,
.lmd-totals .is-total dd {
	font-weight: 700;
}

/* ---------- toast ---------- */

.lmd-toast {
	position: fixed;
	bottom: calc(84px + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100% - 32px);
	padding: 12px 16px;
	border-radius: 12px;
	background: #1d1d1f;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
	font-weight: 600;
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s, transform 0.2s;
	pointer-events: none;
}

.lmd-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.lmd-toast button {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	letter-spacing: normal;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.lmd-menu *,
	.lmd-root *,
	.lmd-toast,
	.lmd-dialog[open] {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Delivery or takeaway, and where ---------- */

.lmd-where {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 14px;
}

.lmd-where[hidden] {
	display: none;
}

.lmd-where-types {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--lmd-line);
	border-radius: 999px;
	background: var(--lmd-surface);
}

.lmd-where-type {
	min-height: 38px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--lmd-ink);
	font: inherit;
	font-size: 0.92em;
	font-weight: 700;
	cursor: pointer;
}

.lmd-where-type.is-on {
	background: var(--lmd-accent);
	color: var(--lmd-accent-ink);
}

.lmd-where-address {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px dashed var(--lmd-line);
	border-radius: 999px;
	background: var(--lmd-surface);
	color: var(--lmd-ink);
	font: inherit;
	font-size: 0.92em;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.lmd-where-address.is-ok {
	border-style: solid;
	border-color: color-mix(in srgb, #2e9d4f 55%, transparent);
}

.lmd-where-address.is-far {
	border-style: solid;
	border-color: color-mix(in srgb, #d14343 60%, transparent);
	color: #e35d5d;
}

.lmd-where-address.is-pickup {
	border-style: solid;
	cursor: default;
}

.lmd-where-change {
	color: var(--lmd-link);
	font-weight: 700;
	text-decoration: underline;
}

.lmd-where-change:empty {
	display: none;
}

.lmd-dialog.lmd-where-dialog {
	top: auto;
	bottom: 0;
	height: fit-content;
	max-height: 92vh;
	overflow: auto;
	border-radius: 20px 20px 0 0;
}

.lmd-where-dialog .lmd-where-inner {
	position: relative;
	display: block;
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
}

@media (min-width: 640px) {
	.lmd-dialog.lmd-where-dialog {
		top: 0;
		bottom: 0;
		width: 480px;
		margin: auto;
		border-radius: 20px;
	}
}



.lmd-where-body {
	padding: 28px 24px 24px;
}

.lmd-where-icon {
	font-size: 2.2em;
	line-height: 1;
}

.lmd-where-body .lmd-dialog-title {
	margin: 10px 0 6px;
}

.lmd-where-intro {
	margin: 0 0 18px;
	color: var(--lmd-muted);
}

.lmd-where-label {
	display: block;
	margin: 0 0 6px;
	color: var(--lmd-ink);
	font-size: 0.9em;
	font-weight: 700;
}

.lmd-where-field {
	position: relative;
}

.lmd-where-input {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--lmd-line);
	border-radius: 12px;
	background: var(--lmd-bg);
	color: var(--lmd-ink);
	font: inherit;
	font-size: 16px;
}

.lmd-where-input:focus {
	border-color: var(--lmd-accent);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--lmd-accent) 20%, transparent);
}

.lmd-where-suggest {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 5;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--lmd-line);
	border-radius: 12px;
	background: var(--lmd-surface);
	box-shadow: var(--lmd-shadow);
	list-style: none;
}

.lmd-where-suggest[hidden] {
	display: none;
}

.lmd-where-suggest li {
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--lmd-ink);
	cursor: pointer;
}

.lmd-where-suggest li:hover {
	background: var(--lmd-soft);
}

.lmd-where-suggest li span {
	display: block;
	color: var(--lmd-muted);
	font-size: 0.85em;
}

.lmd-where-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.lmd-where-actions .lmd-btn {
	flex: 1 1 100%;
}

@media (min-width: 481px) {
	.lmd-where-actions .lmd-btn {
		flex: 1 1 160px;
	}
}

.lmd-btn-ghost {
	border: 1.5px solid var(--lmd-line);
	background: transparent;
	color: var(--lmd-ink);
}

.lmd-where-inner.is-busy {
	cursor: progress;
}

.lmd-where-result:empty {
	display: none;
}

.lmd-where-result {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--lmd-soft);
	color: var(--lmd-ink);
}

.lmd-where-result p {
	margin: 0 0 6px;
}

.lmd-where-result .lmd-btn {
	width: 100%;
	margin-top: 8px;
}

.lmd-where-result.is-ok {
	background: color-mix(in srgb, #2e9d4f 14%, var(--lmd-surface));
}

.lmd-where-result.is-far,
.lmd-where-result.is-error {
	background: color-mix(in srgb, #d14343 14%, var(--lmd-surface));
}

.lmd-where-verdict {
	font-weight: 800;
}

.lmd-where-km {
	color: var(--lmd-muted);
	font-size: 0.9em;
}

.lmd-where-type.is-fixed {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--lmd-line);
	cursor: default;
}

.lmd-where-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.lmd-where-choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 20px 12px;
	border: 2px solid var(--lmd-line);
	border-radius: 16px;
	background: var(--lmd-bg);
	color: var(--lmd-ink);
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.08s;
}

.lmd-where-choice:hover,
.lmd-where-choice:focus-visible {
	border-color: var(--lmd-accent);
	outline: none;
}

.lmd-where-choice:active {
	transform: translateY(1px);
}

.lmd-where-choice-icon {
	font-size: 2.2em;
	line-height: 1;
}

.lmd-where-choice strong {
	color: var(--lmd-title);
	font-size: 1.1em;
}

.lmd-where-choice span:last-child {
	color: var(--lmd-muted);
	font-size: 0.85em;
}

@media (max-width: 360px) {
	.lmd-where-choices {
		grid-template-columns: 1fr;
	}
}

/* Theme price colours (e.g. Flatsome's dark .amount) give way to the picked colours. */
.lmd-menu .amount,
.lmd-root .amount,
.lmd-menu .amount bdi,
.lmd-root .amount bdi {
	color: inherit;
}
