/*
 * Tastylane design system — storefront, checkout, order tracking, dashboard and onboarding.
 * Everything is scoped under .tl-app so themes are not affected (and vice versa as far as possible).
 */

@font-face {
	font-family: "TL Poppins";
	src: url("../fonts/poppins-regular-latin.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TL Poppins";
	src: url("../fonts/poppins-medium-latin.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TL Poppins";
	src: url("../fonts/poppins-bold-latin.woff") format("woff");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "TL Lora";
	src: url("../fonts/Lora-Variable.ttf") format("truetype");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

.tl-app {
	--tl-brand: #14532d;
	--tl-brand-ink: #fff;
	--tl-accent: #1d7a3e;
	--tl-accent-hover: #16652f;
	--tl-bg: #faf7f0;
	--tl-surface: #ffffff;
	--tl-surface-2: #f6f3ea;
	--tl-tint: #edf5ee;
	--tl-text: #18231c;
	--tl-muted: #5d6a61;
	--tl-line: #e7e2d6;
	--tl-line-strong: #d6cfbf;
	--tl-warn: #9a5b00;
	--tl-warn-bg: #fff6e5;
	--tl-danger: #b42318;
	--tl-danger-bg: #fdeeee;
	--tl-info-bg: #eef4fb;
	--tl-whatsapp: #128c3f;
	--tl-whatsapp-hover: #0e7333;
	--tl-radius: 16px;
	--tl-radius-sm: 10px;
	--tl-shadow: 0 1px 2px rgba(24, 35, 28, 0.06), 0 6px 20px rgba(24, 35, 28, 0.06);
	--tl-shadow-lg: 0 12px 40px rgba(24, 35, 28, 0.16);
	--tl-focus: 0 0 0 3px rgba(29, 122, 62, 0.35);
	--tl-font: "TL Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--tl-font-display: "TL Lora", Georgia, "Times New Roman", serif;
	font-family: var(--tl-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--tl-text);
	-webkit-font-smoothing: antialiased;
	text-align: left;
}

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

.tl-app h1,
.tl-app h2,
.tl-app h3,
.tl-app p,
.tl-app ul,
.tl-app ol,
.tl-app dl,
.tl-app dd,
.tl-app figure,
.tl-app fieldset {
	margin: 0;
	padding: 0;
}
.tl-app ul,
.tl-app ol {
	list-style: none;
}
.tl-app fieldset {
	border: 0;
	min-width: 0;
}
.tl-app img {
	max-width: 100%;
	height: auto;
	display: block;
}
.tl-app a {
	color: var(--tl-accent);
}
.tl-app button {
	font-family: inherit;
}

.tl-app [hidden],
.tl-modal [hidden] {
	display: none !important;
}
.tl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.tl-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
html.tl-no-scroll {
	overflow: hidden;
}

.tl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	line-height: 0;
}
.tl-icon svg {
	width: 1.15em;
	height: 1.15em;
}

.tl-muted {
	color: var(--tl-muted);
}
.tl-small {
	font-size: 13px;
}
.tl-strong {
	font-weight: 600;
}
.tl-h3 {
	font-size: 17px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.tl-row {
	display: flex;
	gap: 10px;
	align-items: center;
}
.tl-row--end {
	justify-content: flex-end;
}
.tl-row--wrap {
	flex-wrap: wrap;
}
.tl-row--between {
	justify-content: space-between;
}

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

.tl-app .tl-btn,
.tl-modal .tl-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	background: var(--tl-surface-2);
	color: var(--tl-text);
	font: 500 15px/1.2 var(--tl-font);
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
	box-shadow: none;
	white-space: nowrap;
}
.tl-app .tl-btn:active {
	transform: translateY(1px);
}
.tl-app .tl-btn:disabled,
.tl-app .tl-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}
.tl-app .tl-btn--primary {
	background: var(--tl-brand);
	color: var(--tl-brand-ink);
}
.tl-app .tl-btn--primary:hover:not(:disabled) {
	background: color-mix(in srgb, var(--tl-brand) 85%, #000);
	color: var(--tl-brand-ink);
}
.tl-app .tl-btn--add {
	background: var(--tl-accent);
	color: #fff;
	min-height: 38px;
	padding: 6px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
}
.tl-app .tl-btn--add:hover:not(:disabled) {
	background: var(--tl-accent-hover);
	color: #fff;
}
.tl-app .tl-btn--outline {
	background: transparent;
	border-color: var(--tl-brand);
	color: var(--tl-brand);
}
.tl-app .tl-btn--outline:hover:not(:disabled) {
	background: var(--tl-tint);
}
.tl-app .tl-btn--ghost {
	background: var(--tl-surface);
	border-color: var(--tl-line-strong);
	color: var(--tl-text);
}
.tl-app .tl-btn--ghost:hover:not(:disabled) {
	background: var(--tl-surface-2);
}
.tl-app .tl-btn--danger {
	background: var(--tl-danger);
	color: #fff;
}
.tl-app .tl-btn--whatsapp {
	background: var(--tl-whatsapp);
	color: #fff;
}
.tl-app .tl-btn--whatsapp:hover:not(:disabled) {
	background: var(--tl-whatsapp-hover);
	color: #fff;
}
.tl-app .tl-btn--block {
	width: 100%;
}
.tl-app .tl-btn--lg {
	min-height: 52px;
	font-size: 16px;
	font-weight: 600;
}
.tl-app .tl-btn--small {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 14px;
}
.tl-btn__price {
	margin-left: auto;
	font-weight: 600;
	padding-left: 12px;
}
.tl-btn--block .tl-btn__price {
	margin-left: auto;
}
.tl-btn__count {
	font-size: 12px;
	opacity: 0.85;
}
.tl-app .tl-btn.is-busy {
	position: relative;
	color: transparent !important;
}
.tl-app .tl-btn.is-busy::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	animation: tl-spin 0.8s linear infinite;
}
.tl-app .tl-btn--ghost.is-busy::after,
.tl-app .tl-btn--outline.is-busy::after {
	border-color: rgba(0, 0, 0, 0.15);
	border-top-color: var(--tl-brand);
}

.tl-app .tl-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 4px 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tl-accent);
	font: 500 14px/1.3 var(--tl-font);
	cursor: pointer;
	text-decoration: none;
}
.tl-app .tl-link:hover {
	text-decoration: underline;
}
.tl-app .tl-link--muted {
	color: var(--tl-muted);
}
.tl-app .tl-link--small {
	font-size: 13px;
}
.tl-app .tl-iconbtn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 0;
	background: transparent;
	color: var(--tl-muted);
	cursor: pointer;
}
.tl-app .tl-iconbtn:hover {
	background: var(--tl-surface-2);
	color: var(--tl-text);
}

.tl-app :focus-visible,
.tl-modal :focus-visible {
	outline: 2px solid var(--tl-accent);
	outline-offset: 2px;
	box-shadow: var(--tl-focus);
}

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

.tl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}
.tl-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--tl-text);
}
.tl-req {
	color: var(--tl-danger);
}
.tl-optional {
	color: var(--tl-muted);
	font-weight: 400;
	font-size: 13px;
}
.tl-app .tl-input,
.tl-modal .tl-input {
	appearance: none;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--tl-line-strong);
	border-radius: 12px;
	background: var(--tl-surface);
	color: var(--tl-text);
	font: 400 15px/1.4 var(--tl-font);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin: 0;
}
.tl-app select.tl-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6a61' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.tl-app textarea.tl-input {
	min-height: 80px;
	resize: vertical;
}
.tl-app .tl-input:focus {
	outline: none;
	border-color: var(--tl-accent);
	box-shadow: var(--tl-focus);
}
.tl-app .tl-input:disabled {
	background: var(--tl-surface-2);
	color: var(--tl-muted);
}
.tl-help {
	color: var(--tl-muted);
	font-size: 13px;
}
.tl-error {
	color: var(--tl-danger);
	font-size: 13px;
	font-weight: 500;
}
.tl-error:empty {
	display: none;
}
.has-error .tl-input {
	border-color: var(--tl-danger);
}
.tl-input-group {
	display: flex;
	align-items: stretch;
}
.tl-input-group__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	border: 1.5px solid var(--tl-line-strong);
	border-right: 0;
	border-radius: 12px 0 0 12px;
	background: var(--tl-surface-2);
	color: var(--tl-muted);
	font-size: 14px;
}
.tl-input-group .tl-input {
	border-radius: 0 12px 12px 0;
}

.tl-check,
.tl-switch {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 14px;
}
.tl-check__label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tl-app .tl-check__input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--tl-accent);
	flex: none;
}
.tl-switch {
	position: relative;
	align-items: center;
}
.tl-app .tl-switch__input {
	position: absolute;
	opacity: 0;
	width: 44px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}
.tl-switch__track {
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: var(--tl-line-strong);
	position: relative;
	flex: none;
	transition: background 0.15s ease;
}
.tl-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.tl-switch__input:checked + .tl-switch__track {
	background: var(--tl-accent);
}
.tl-switch__input:checked + .tl-switch__track::after {
	transform: translateX(18px);
}
.tl-switch__input:focus-visible + .tl-switch__track {
	box-shadow: var(--tl-focus);
}

.tl-radios {
	display: grid;
	gap: 10px;
}
.tl-radio-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	border: 1.5px solid var(--tl-line);
	border-radius: 14px;
	background: var(--tl-surface);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.tl-radio-card:hover {
	border-color: var(--tl-line-strong);
}
.tl-radio-card:has(input:checked) {
	border-color: var(--tl-accent);
	background: var(--tl-tint);
}
.tl-radio-card.is-disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.tl-app .tl-radio-card input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--tl-accent);
	flex: none;
}
.tl-radio-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.tl-radio-card__body small {
	color: var(--tl-muted);
	font-size: 13px;
}
.tl-radio-card__body select {
	margin-top: 6px;
}

/* ------------------------------------------------------------------ Pills, chips, badges */

.tl-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	background: var(--tl-surface-2);
	color: var(--tl-text);
}
.tl-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.tl-pill--open {
	background: #e3f4e8;
	color: #11612f;
}
.tl-pill--closed {
	background: #fdeceb;
	color: #a1261b;
}
.tl-pill--glass {
	background: rgba(255, 255, 255, 0.16);
	color: inherit;
	backdrop-filter: blur(6px);
}

.tl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.tl-app .tl-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--tl-line-strong);
	background: var(--tl-surface);
	color: var(--tl-text);
	font: 500 14px/1 var(--tl-font);
	cursor: pointer;
	text-transform: none;
}
.tl-app .tl-chip:hover {
	border-color: var(--tl-accent);
}
.tl-app .tl-chip[aria-pressed="true"],
.tl-app .tl-chip[aria-checked="true"] {
	background: var(--tl-brand);
	border-color: var(--tl-brand);
	color: #fff;
}

.tl-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	border-radius: 7px;
	background: var(--tl-brand);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.tl-badge--deal {
	left: auto;
	right: 10px;
	background: #b7410e;
}
.tl-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--tl-surface-2);
	color: var(--tl-muted);
	font-size: 12px;
	font-weight: 500;
}
.tl-tag--spicy {
	background: #fdecea;
	color: #a1261b;
}
.tl-tag--vegan,
.tl-tag--veg {
	background: #e3f4e8;
	color: #11612f;
}
.tl-tag--non_veg {
	background: #f9ece4;
	color: #8a3a12;
}
.tl-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--tl-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	margin-left: 8px;
}

/* Indian veg / non-veg marks */
.tl-veg {
	display: inline-block;
	position: relative;
	width: 15px;
	height: 15px;
	border: 1.5px solid #11843a;
	border-radius: 3px;
	flex: none;
	margin-top: 3px;
}
.tl-veg::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #11843a;
}
.tl-veg--non {
	border-color: #8a3a12;
}
.tl-veg--non::after {
	inset: 2px 2px 3px;
	border-radius: 0;
	background: #8a3a12;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.tl-veg--egg {
	border-color: #c9820a;
}
.tl-veg--egg::after {
	background: #c9820a;
}

/* ------------------------------------------------------------------ Notices */

.tl-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--tl-info-bg);
	font-size: 14px;
	margin-bottom: 16px;
}
.tl-notice--warn {
	background: var(--tl-warn-bg);
	color: #6b3f00;
}
.tl-notice--error {
	background: var(--tl-danger-bg);
	color: #7f1d16;
}
.tl-notice--success {
	background: #e3f4e8;
	color: #11612f;
}
.tl-preview-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	padding: 10px 16px;
	background: #fff6e5;
	color: #6b3f00;
	font-size: 14px;
	font-weight: 500;
	border-radius: 12px;
	margin-bottom: 12px;
}

/* ------------------------------------------------------------------ Storefront */

.tl-store {
	background: var(--tl-bg);
	border-radius: 20px;
	padding: 16px;
	max-width: 1240px;
	margin: 0 auto;
}

.tl-hero {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: var(--tl-brand);
	color: #fff;
	min-height: 200px;
	display: flex;
	align-items: flex-end;
	isolation: isolate;
}
.tl-hero--cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tl-cover);
	background-size: cover;
	background-position: center;
	z-index: -2;
}
.tl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, color-mix(in srgb, var(--tl-brand) 96%, #000) 0%, color-mix(in srgb, var(--tl-brand) 80%, transparent) 45%, rgba(0, 0, 0, 0.12) 100%);
	z-index: -1;
}
.tl-hero:not(.tl-hero--cover)::after {
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0, transparent 40%),
		radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.08) 0, transparent 35%);
}
.tl-hero__inner {
	display: flex;
	gap: 18px;
	align-items: flex-end;
	padding: 28px;
	width: 100%;
}
.tl-hero__logo {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	border: 3px solid rgba(255, 255, 255, 0.9);
	flex: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.tl-hero__logo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tl-brand);
	font-weight: 700;
	font-size: 26px;
}
.tl-hero__text {
	min-width: 0;
}
.tl-app .tl-hero__name {
	font-family: var(--tl-font-display);
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}
.tl-hero__tagline {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
}
.tl-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.tl-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 10px;
}
.tl-app .tl-hero .tl-link {
	color: #fff;
	opacity: 0.92;
}

.tl-store__main {
	margin-top: 18px;
}
.tl-store__main--menu {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.tl-menu,
.tl-checkout__col,
.tl-success__main {
	min-width: 0;
}
.tl-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 8px;
}
.tl-search {
	position: relative;
}
.tl-search > .tl-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--tl-muted);
}
.tl-app .tl-search__input {
	padding-left: 42px;
	border-radius: 999px;
	background: var(--tl-surface);
}

.tl-catnav {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 10px 0;
	margin: 0 -4px 6px;
	background: var(--tl-bg);
}
.admin-bar .tl-catnav {
	top: 32px;
}
.tl-catnav::-webkit-scrollbar {
	display: none;
}
.tl-app .tl-catnav__link {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--tl-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.tl-app .tl-catnav__link:hover {
	background: var(--tl-surface);
}
.tl-app .tl-catnav__link.is-active {
	background: var(--tl-brand);
	color: #fff;
}
.tl-catnav__count {
	font-size: 12px;
	opacity: 0.7;
}

.tl-section {
	scroll-margin-top: 80px;
	margin-bottom: 28px;
}
.tl-app .tl-section__title {
	font-family: var(--tl-font-display);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--tl-text);
}
.tl-section__desc {
	color: var(--tl-muted);
	margin-bottom: 8px;
}
.tl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin-top: 12px;
}

.tl-card {
	display: flex;
	flex-direction: column;
	background: var(--tl-surface);
	border-radius: var(--tl-radius);
	box-shadow: var(--tl-shadow);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tl-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(24, 35, 28, 0.06), 0 14px 30px rgba(24, 35, 28, 0.1);
}
.tl-app .tl-card__media {
	appearance: none;
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	background: var(--tl-surface-2);
	cursor: pointer;
	overflow: hidden;
}
.tl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tl-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: color-mix(in srgb, var(--tl-brand) 45%, #fff);
	background: linear-gradient(135deg, var(--tl-tint), var(--tl-surface-2));
}
.tl-card__placeholder svg {
	width: 56px;
	height: 56px;
}
.tl-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	flex: 1;
}
.tl-app .tl-card__title {
	display: flex;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tl-text);
}
.tl-card__desc {
	color: var(--tl-muted);
	font-size: 13px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tl-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tl-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}
.tl-card__action {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.tl-card__custom {
	font-size: 11px;
	color: var(--tl-muted);
}
.tl-card.is-unavailable .tl-card__media img {
	filter: grayscale(1);
	opacity: 0.6;
}
.tl-price {
	font-size: 17px;
	font-weight: 600;
}
.tl-price__from {
	font-size: 12px;
	font-weight: 400;
	color: var(--tl-muted);
}
.tl-price__old {
	font-size: 13px;
	font-weight: 400;
	color: var(--tl-muted);
	margin-right: 6px;
}
.tl-soldout {
	font-size: 13px;
	font-weight: 500;
	color: var(--tl-danger);
	text-align: right;
}

.tl-stepper {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--tl-accent);
	border-radius: 10px;
	background: var(--tl-surface);
	overflow: hidden;
}
.tl-app .tl-stepper__btn {
	appearance: none;
	width: 38px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--tl-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.tl-app .tl-stepper__btn:hover:not(:disabled) {
	background: var(--tl-tint);
}
.tl-app .tl-stepper__btn:disabled {
	opacity: 0.4;
}
.tl-stepper__value {
	min-width: 28px;
	text-align: center;
	font-weight: 600;
	color: var(--tl-accent);
}

.tl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 48px 16px;
	color: var(--tl-muted);
	background: var(--tl-surface);
	border-radius: var(--tl-radius);
}
.tl-empty .tl-icon svg {
	width: 40px;
	height: 40px;
}

/* Cart panel */
.tl-cart,
.tl-summary {
	position: sticky;
	top: 16px;
	background: var(--tl-surface);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--tl-shadow);
}
.admin-bar .tl-cart,
.admin-bar .tl-summary {
	top: 48px;
}
.tl-cart__head,
.tl-summary__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.tl-app .tl-cart__title {
	display: flex;
	align-items: center;
	font-size: 20px;
	font-weight: 600;
	color: var(--tl-text);
}
.tl-cart__empty {
	text-align: center;
	padding: 24px 8px;
}
.tl-cart__empty-icon {
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tl-tint);
	color: var(--tl-brand);
	margin-bottom: 10px;
}
.tl-cart__empty-icon svg {
	width: 28px;
	height: 28px;
}
.tl-cart__assure {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
	margin-top: 10px;
	font-size: 12px;
	color: var(--tl-muted);
	text-align: center;
}

.tl-seg {
	display: flex;
	padding: 4px;
	gap: 4px;
	border-radius: 14px;
	background: var(--tl-surface-2);
	margin-bottom: 14px;
}
.tl-app .tl-seg__btn {
	appearance: none;
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 8px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--tl-muted);
	font: 500 14px/1.2 var(--tl-font);
	cursor: pointer;
}
.tl-app .tl-seg__btn.is-active {
	background: var(--tl-surface);
	color: var(--tl-brand);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	font-weight: 600;
}
.tl-ordertype-single {
	display: flex;
	gap: 6px;
	align-items: center;
	color: var(--tl-muted);
	font-size: 14px;
	margin-bottom: 12px;
}

.tl-lines {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 46vh;
	overflow-y: auto;
	margin: 0 -4px 14px;
	padding: 0 4px;
}
.tl-modal .tl-lines {
	max-height: none;
}
.tl-line {
	display: flex;
	gap: 12px;
}
.tl-line__img {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	flex: none;
}
.tl-line__img--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tl-tint);
	color: var(--tl-brand);
}
.tl-line__main {
	flex: 1;
	min-width: 0;
}
.tl-line__name {
	display: flex;
	gap: 6px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.35;
}
.tl-line__opts,
.tl-line__note {
	font-size: 12px;
	color: var(--tl-muted);
	margin-top: 2px;
}
.tl-line__error {
	font-size: 12px;
	color: var(--tl-danger);
	font-weight: 500;
	margin-top: 2px;
}
.tl-line__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
.tl-line__price {
	margin-left: auto;
	font-weight: 600;
	font-size: 14px;
}
.tl-line .tl-stepper__btn {
	width: 32px;
	height: 30px;
}
.tl-line.has-error {
	background: var(--tl-danger-bg);
	border-radius: 12px;
	padding: 6px;
}

.tl-coupon {
	margin: 10px 0 14px;
}
.tl-coupon__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border: 1.5px dashed var(--tl-line-strong);
	border-radius: 14px;
	color: var(--tl-muted);
}
.tl-app .tl-coupon__row .tl-input {
	border: 0;
	min-height: 38px;
	padding: 6px 4px;
	text-transform: uppercase;
	box-shadow: none;
}
.tl-app .tl-coupon__row .tl-btn {
	min-height: 38px;
	padding: 6px 14px;
}
.tl-coupon__applied {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 6px 10px 12px;
	border-radius: 14px;
	background: var(--tl-tint);
	color: var(--tl-brand);
}
.tl-coupon__applied > div {
	flex: 1;
}
.tl-coupon__applied p {
	color: #11612f;
}
.tl-coupon__msg {
	font-size: 13px;
	margin-top: 6px;
}
.tl-coupon__msg.is-error {
	color: var(--tl-danger);
}

.tl-bill {
	border-top: 1px solid var(--tl-line);
	padding-top: 12px;
	margin-bottom: 14px;
	transition: opacity 0.2s ease;
}
.tl-bill.is-loading {
	opacity: 0.55;
}
.tl-bill__rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tl-bill__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--tl-muted);
}
.tl-bill__row dd {
	color: var(--tl-text);
	font-variant-numeric: tabular-nums;
}
.tl-bill__row--discount dd,
.tl-bill__row--discount dt {
	color: #11843a;
}
.tl-bill__row--base dt {
	color: var(--tl-text);
}
.tl-bill__row--info dd {
	color: var(--tl-muted);
}
.tl-bill__note {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 12px;
	color: var(--tl-accent);
	margin-top: 8px;
}
.tl-bill__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--tl-line-strong);
	font-size: 17px;
	font-weight: 600;
}
.tl-bill__total strong {
	font-size: 22px;
}
.tl-blockers {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tl-blockers li {
	display: flex;
	gap: 6px;
	font-size: 13px;
	color: var(--tl-warn);
	background: var(--tl-warn-bg);
	padding: 8px 10px;
	border-radius: 10px;
}

.tl-cart__zone .tl-label {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Mobile cart bar */
.tl-cartbar {
	display: none;
}

/* Item dialog */
.tl-item__desc {
	color: var(--tl-muted);
	margin-bottom: 10px;
}
.tl-item > .tl-card__tags {
	margin-bottom: 4px;
}
.tl-optgroup {
	margin: 18px 0 6px;
}
.tl-optgroup__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 8px;
}
.tl-optgroup__rule {
	font-size: 12px;
	font-weight: 500;
	color: var(--tl-muted);
	background: var(--tl-surface-2);
	padding: 2px 8px;
	border-radius: 6px;
}
.tl-optgroup__rule.is-required {
	color: #6b3f00;
	background: var(--tl-warn-bg);
}
.tl-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 4px;
	border-bottom: 1px solid var(--tl-line);
	cursor: pointer;
}
.tl-app .tl-opt input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--tl-accent);
	flex: none;
}
.tl-opt__name {
	flex: 1;
}
.tl-opt__price {
	color: var(--tl-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.tl-opt__price del {
	font-size: 12px;
}
.tl-opt:has(input:disabled) {
	opacity: 0.5;
	cursor: not-allowed;
}
.tl-item__footer {
	display: flex;
	gap: 12px;
	align-items: center;
	width: 100%;
}
.tl-item__footer .tl-btn {
	flex: 1;
}

/* Info dialog */
.tl-info__desc {
	margin-bottom: 12px;
}
.tl-info__line {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 8px;
}
.tl-hours {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
	font-size: 14px;
}
.tl-hours th,
.tl-hours td {
	padding: 6px 0;
	text-align: left;
	border-bottom: 1px solid var(--tl-line);
	font-weight: 400;
}
.tl-hours td {
	text-align: right;
}
.tl-hours .is-today th,
.tl-hours .is-today td {
	font-weight: 600;
	color: var(--tl-brand);
}

/* Checkout */
.tl-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 24px;
	align-items: start;
}
.tl-app .tl-back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: none;
	padding: 6px 0;
	color: var(--tl-muted);
	font: 500 14px var(--tl-font);
	cursor: pointer;
}
.tl-app .tl-checkout__title {
	font-family: var(--tl-font-display);
	font-size: 30px;
	font-weight: 700;
	margin: 4px 0 16px;
	color: var(--tl-text);
}
.tl-checkout__section {
	background: var(--tl-surface);
	border-radius: 18px;
	padding: 20px;
	box-shadow: var(--tl-shadow);
	margin-bottom: 16px;
}
.tl-app .tl-checkout__h {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 14px;
	color: var(--tl-text);
}
.tl-checkout__section .tl-field:last-child {
	margin-bottom: 0;
}
.tl-summary__lines {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}
.tl-summary__line {
	display: flex;
	gap: 10px;
	font-size: 14px;
	align-items: flex-start;
}
.tl-summary__qty {
	min-width: 28px;
	font-weight: 600;
	color: var(--tl-brand);
}
.tl-summary__name {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.tl-summary__name small {
	color: var(--tl-muted);
	font-size: 12px;
}
.tl-summary__amt {
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.tl-tip {
	margin: 6px 0 14px;
}
.tl-tip__title {
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 8px;
}
.tl-app .tl-tip__custom {
	width: 96px;
	min-height: 36px;
	border-radius: 999px;
	padding: 6px 12px;
}

/* Order success / tracking */
.tl-success {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 24px;
	align-items: start;
}
.tl-card-box {
	background: var(--tl-surface);
	border-radius: 20px;
	padding: 24px;
	box-shadow: var(--tl-shadow);
}
.tl-success__head {
	text-align: center;
	margin-bottom: 20px;
}
.tl-success__icon {
	display: inline-flex;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: var(--tl-brand);
	color: #fff;
	margin-bottom: 12px;
	box-shadow: 0 0 0 10px var(--tl-tint);
	animation: tl-pop 0.4s ease-out;
}
.tl-success__icon svg {
	width: 36px;
	height: 36px;
	stroke-width: 3;
}
.tl-success__icon.is-cancelled {
	background: var(--tl-danger);
	box-shadow: 0 0 0 10px var(--tl-danger-bg);
}
.tl-app .tl-success__title {
	font-family: var(--tl-font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--tl-text);
	outline: none;
}
.tl-success__number {
	font-size: 20px;
	font-weight: 600;
	color: var(--tl-brand);
	margin: 4px 0;
}
.tl-success__eta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--tl-tint);
	color: var(--tl-brand);
	border-radius: 14px;
	padding: 12px;
	font-weight: 500;
	margin: 16px 0;
}
.tl-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
	margin: 8px 0 4px;
	counter-reset: step;
}
.tl-steps::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 9px;
	height: 3px;
	background: var(--tl-line);
	z-index: 0;
}
.tl-steps__item {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--tl-muted);
	text-align: center;
}
.tl-steps__dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tl-surface);
	border: 3px solid var(--tl-line-strong);
}
.tl-steps__item.is-done .tl-steps__dot {
	background: var(--tl-accent);
	border-color: var(--tl-accent);
}
.tl-steps__item.is-current {
	color: var(--tl-brand);
	font-weight: 600;
}
.tl-steps__item.is-current .tl-steps__dot {
	box-shadow: 0 0 0 5px var(--tl-tint);
}
.tl-receipt {
	border: 1.5px solid var(--tl-line);
	border-radius: 18px;
	padding: 18px;
	margin: 18px 0;
}
.tl-receipt__status {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 14px;
}
.tl-receipt__status li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tl-muted);
}
.tl-receipt__status li.is-ok {
	color: #11612f;
	font-weight: 500;
}
.tl-receipt__share {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}
.tl-receipt__help {
	font-size: 13px;
	color: var(--tl-muted);
}
.tl-kv {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}
.tl-kv__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.tl-kv__row dt {
	color: var(--tl-muted);
	flex: none;
}
.tl-kv__row dd {
	text-align: right;
	overflow-wrap: anywhere;
}

.tl-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px;
	color: var(--tl-muted);
}
.tl-spinner {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 3px solid var(--tl-line);
	border-top-color: var(--tl-brand);
	animation: tl-spin 0.8s linear infinite;
}

/* ------------------------------------------------------------------ Modal */

.tl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.tl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 18, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
}
.tl-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: var(--tl-surface);
	border-radius: 22px;
	box-shadow: var(--tl-shadow-lg);
	overflow: hidden;
	transform: translateY(12px) scale(0.98);
	opacity: 0;
	transition: transform 0.18s ease, opacity 0.18s ease;
}
.tl-modal.is-open .tl-modal__backdrop {
	opacity: 1;
}
.tl-modal.is-open .tl-modal__dialog {
	transform: none;
	opacity: 1;
}
.tl-modal.is-closing .tl-modal__dialog,
.tl-modal.is-closing .tl-modal__backdrop {
	opacity: 0;
}
.tl-modal--sm {
	max-width: 420px;
}
.tl-modal--md {
	max-width: 560px;
}
.tl-modal--lg {
	max-width: 820px;
}
.tl-modal__hero {
	aspect-ratio: 16 / 9;
	max-height: 260px;
	overflow: hidden;
	flex: none;
	background: var(--tl-surface-2);
}
.tl-modal__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tl-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 8px;
}
.tl-app .tl-modal__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--tl-text);
	line-height: 1.3;
}
.tl-app .tl-modal__close {
	appearance: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: var(--tl-surface-2);
	color: var(--tl-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
	padding: 0;
}
.tl-modal__head--hero .tl-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.92);
}
.tl-modal__body {
	padding: 8px 20px 20px;
	overflow-y: auto;
	flex: 1;
	overscroll-behavior: contain;
}
.tl-modal__footer {
	padding: 14px 20px;
	border-top: 1px solid var(--tl-line);
	background: var(--tl-surface);
}
.tl-modal__footer:empty {
	display: none;
}

/* ------------------------------------------------------------------ Toasts */

.tl-toasts {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	pointer-events: none;
	width: max-content;
	max-width: calc(100vw - 32px);
	font-family: "TL Poppins", system-ui, sans-serif;
}
.tl-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #18231c;
	color: #fff;
	font-size: 14px;
	box-shadow: var(--tl-shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.2));
	animation: tl-toast-in 0.2s ease-out;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.tl-toast--success .tl-icon {
	color: #7be3a1;
}
.tl-toast--error {
	background: #7f1d16;
}
.tl-toast.is-leaving {
	opacity: 0;
	transform: translateY(8px);
}

@keyframes tl-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes tl-pop {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	70% {
		transform: scale(1.06);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes tl-toast-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* ------------------------------------------------------------------ Directory */

.tl-directory {
	max-width: 1240px;
	margin: 0 auto;
	padding: 8px;
}
.tl-directory__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 18px;
}
.tl-directory__bar .tl-search {
	flex: 1 1 280px;
}
.tl-rgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}
.tl-app .tl-rcard {
	display: flex;
	flex-direction: column;
	background: var(--tl-surface);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--tl-shadow);
	text-decoration: none;
	color: var(--tl-text);
	transition: transform 0.15s ease;
}
.tl-app .tl-rcard:hover {
	transform: translateY(-2px);
}
.tl-rcard__cover {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--tl-brand), color-mix(in srgb, var(--tl-brand) 60%, #fff));
}
.tl-rcard__cover img:not(.tl-rcard__logo) {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tl-app .tl-rcard__logo {
	position: absolute;
	z-index: 1;
	max-width: none;
	left: 14px;
	bottom: -22px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 3px solid #fff;
	background: #fff;
	object-fit: cover;
}
.tl-rcard__body {
	padding: 30px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tl-rcard__name {
	font-size: 17px;
	font-weight: 600;
}
.tl-rcard__meta {
	font-size: 13px;
	color: var(--tl-muted);
}

/* Shortcode: selected menu */
.tl-menu-embed .tl-grid {
	margin-top: 0;
}

/* ------------------------------------------------------------------ Responsive: storefront */

@media (max-width: 1080px) {
	.tl-store__main--menu {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
	.tl-checkout,
	.tl-success {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

@media (max-width: 860px) {
	.tl-store {
		padding: 10px;
		border-radius: 0;
	}
	.tl-store__main--menu {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-store__main--menu > .tl-cart {
		display: none;
	}
	.tl-checkout,
	.tl-success {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-summary,
	.tl-cart {
		position: static;
	}
	.tl-hero__inner {
		padding: 20px;
		flex-direction: column;
		align-items: flex-start;
	}
	.tl-hero__logo {
		width: 60px;
		height: 60px;
	}
	.tl-cartbar {
		display: block;
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		z-index: 9999;
	}
	.tl-cartbar[hidden] {
		display: none;
	}
	.tl-app .tl-cartbar__btn {
		appearance: none;
		width: 100%;
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 58px;
		padding: 10px 16px;
		border: 0;
		border-radius: 16px;
		background: var(--tl-brand);
		color: #fff;
		font: 500 15px/1.2 var(--tl-font);
		box-shadow: 0 10px 30px rgba(20, 83, 45, 0.35);
		cursor: pointer;
	}
	.tl-cartbar__count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 28px;
		height: 28px;
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.2);
		font-weight: 600;
	}
	.tl-cartbar__total {
		font-weight: 600;
	}
	.tl-cartbar__cta {
		margin-left: auto;
		display: inline-flex;
		align-items: center;
		gap: 4px;
		font-weight: 600;
	}
	.tl-store__main {
		padding-bottom: 80px;
	}
	.tl-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	/* Compact horizontal cards on phones */
	.tl-card {
		flex-direction: row-reverse;
		align-items: stretch;
	}
	.tl-app .tl-card__media {
		width: 116px;
		min-width: 116px;
		aspect-ratio: auto;
		height: auto;
		min-height: 116px;
		margin: 12px 12px 12px 0;
		border-radius: 14px;
	}
	.tl-badge {
		top: 6px;
		left: 6px;
		font-size: 10px;
		padding: 2px 6px;
	}
	.tl-badge--deal {
		left: auto;
		right: 6px;
	}
	.tl-modal {
		padding: 0;
		align-items: flex-end;
	}
	.tl-modal--sheet,
	.tl-modal__dialog {
		max-width: none;
		border-radius: 22px 22px 0 0;
		max-height: 92vh;
		max-height: 92dvh;
	}
	.tl-modal__footer {
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
	}
	.tl-steps__item span:last-child {
		font-size: 11px;
	}
	.tl-card-box {
		padding: 18px;
	}
	.tl-checkout__section {
		padding: 16px;
	}
}

@media (max-width: 860px) {
	.tl-toasts {
		top: calc(12px + env(safe-area-inset-top));
		bottom: auto;
	}
	.tl-store.is-compact .tl-hero__meta,
	.tl-store.is-compact .tl-hero__links,
	.tl-store.is-compact .tl-hero__tagline {
		display: none;
	}
	.tl-store.is-compact .tl-hero {
		min-height: 0;
	}
	.tl-store.is-compact .tl-hero__inner {
		flex-direction: row;
		align-items: center;
		padding: 14px 16px;
	}
	.tl-store.is-compact .tl-hero__logo {
		width: 44px;
		height: 44px;
	}
	.tl-store.is-compact .tl-hero__name {
		font-size: 22px;
	}
	.tl-receipt .tl-row > .tl-btn {
		flex: 1;
	}
}

@media (max-width: 520px) {
	.tl-steps {
		flex-direction: column;
		gap: 10px;
		padding-left: 4px;
	}
	.tl-steps::before {
		left: 13px;
		right: auto;
		top: 6px;
		bottom: 6px;
		width: 3px;
		height: auto;
	}
	.tl-steps__item {
		flex-direction: row;
		gap: 12px;
		font-size: 14px;
		text-align: left;
	}
	.tl-steps__item span:last-child {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.tl-app {
		font-size: 14px;
	}
	.tl-seg__btn .tl-icon {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tl-app *,
	.tl-modal *,
	.tl-toast {
		animation: none !important;
		transition: none !important;
	}
}

/* ================================================================== Dashboard */

.tl-dash {
	--tl-side: #0f3f23;
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	min-height: 80vh;
	background: var(--tl-bg);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--tl-shadow);
	max-width: 1440px;
	margin: 0 auto;
}
.tl-dash__side {
	background: var(--tl-side);
	color: #e6efe8;
	padding: 20px 14px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tl-dash__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 8px;
}
.tl-dash__brand img,
.tl-dash__brand .tl-dash__initials {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	flex: none;
}
.tl-dash__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tl-side);
	font-weight: 700;
}
.tl-dash__brand strong {
	display: block;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}
.tl-dash__brand small {
	color: #a9c4b1;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.tl-app .tl-dash__switch {
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border-color: transparent;
	color: #fff;
	min-height: 40px;
	font-size: 14px;
}
.tl-app .tl-dash__switch option {
	color: #18231c;
}
.tl-dash__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tl-app .tl-dash__navlink {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #d3e2d7;
	font: 500 15px/1.2 var(--tl-font);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}
.tl-app .tl-dash__navlink:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.tl-app .tl-dash__navlink.is-active {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.tl-dash__badge {
	margin-left: auto;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e5484d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.tl-dash__sidefoot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
}
.tl-app .tl-dash__sidefoot a {
	color: #a9c4b1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	text-decoration: none;
}
.tl-app .tl-dash__sidefoot a:hover {
	color: #fff;
}
.tl-dash__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.tl-dash__top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px;
	background: var(--tl-surface);
	border-bottom: 1px solid var(--tl-line);
}
.tl-app .tl-dash__title {
	font-size: 22px;
	font-weight: 600;
	color: var(--tl-text);
	margin-right: auto;
}
.tl-dash__content {
	padding: 24px;
	flex: 1;
	min-width: 0;
}
.tl-dash__content-wrap {
	min-width: 0;
}
.tl-dash__openswitch {
	margin: 0;
}
.tl-dash__openswitch .tl-check__label {
	font-weight: 500;
	white-space: nowrap;
}

.tl-panel {
	background: var(--tl-surface);
	border-radius: 18px;
	padding: 20px;
	box-shadow: var(--tl-shadow);
	margin-bottom: 20px;
}
.tl-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.tl-app .tl-panel__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--tl-text);
}
.tl-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.tl-kpi {
	background: var(--tl-surface);
	border-radius: 18px;
	padding: 18px;
	box-shadow: var(--tl-shadow);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tl-kpi__icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tl-tint);
	color: var(--tl-brand);
	margin-bottom: 6px;
}
.tl-kpi__value {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.tl-kpi__label {
	color: var(--tl-muted);
	font-size: 13px;
}
.tl-kpi__delta {
	font-size: 12px;
	font-weight: 600;
	color: #11843a;
}
.tl-kpi__delta.is-down {
	color: var(--tl-danger);
}
.tl-kpi--alert .tl-kpi__icon {
	background: #fff1e6;
	color: #b7410e;
}
.tl-cols {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
}
.tl-chart-wrap {
	width: 100%;
	min-height: 230px;
	overflow: hidden;
}
.tl-chart {
	display: block;
}
.tl-kv + .tl-od__actions {
	margin-top: 12px;
}
.tl-chart text {
	font-family: var(--tl-font);
	font-size: 11px;
	fill: var(--tl-muted);
}

.tl-table-wrap {
	overflow-x: auto;
	margin: 0 -20px;
	padding: 0 20px;
}
.tl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 640px;
}
.tl-table th {
	text-align: left;
	font-weight: 500;
	color: var(--tl-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 10px 12px;
	background: var(--tl-surface-2);
	border: 0;
}
.tl-table th:first-child {
	border-radius: 10px 0 0 10px;
}
.tl-table th:last-child {
	border-radius: 0 10px 10px 0;
}
.tl-table td {
	padding: 12px;
	border-bottom: 1px solid var(--tl-line);
	vertical-align: middle;
}
.tl-table tr.is-clickable {
	cursor: pointer;
}
.tl-table tr.is-clickable:hover td {
	background: #fbfaf6;
}
.tl-table .tl-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.tl-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.tl-status--new {
	background: #e8f0fe;
	color: #1849a9;
}
.tl-status--accepted {
	background: #eef4ff;
	color: #3538cd;
}
.tl-status--preparing {
	background: #fff4e5;
	color: #a15c00;
}
.tl-status--ready {
	background: #e3f4e8;
	color: #11612f;
}
.tl-status--out_for_delivery {
	background: #e6f6fb;
	color: #0b6584;
}
.tl-status--completed {
	background: #eef0ee;
	color: #3d4a41;
}
.tl-status--cancelled {
	background: #fdeceb;
	color: #a1261b;
}
.tl-pay {
	font-size: 12px;
	color: var(--tl-muted);
}
.tl-pay.is-paid {
	color: #11843a;
	font-weight: 600;
}

.tl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
	align-items: flex-end;
}
.tl-filters .tl-field {
	margin: 0;
	min-width: 140px;
}
.tl-filters .tl-field--grow {
	flex: 1 1 220px;
}

.tl-ocards {
	display: none;
}
.tl-ocard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--tl-line);
	background: var(--tl-surface);
	cursor: pointer;
	text-align: left;
	width: 100%;
	font: inherit;
	color: inherit;
}

/* Drawer */
.tl-drawer .tl-modal__dialog {
	max-width: 620px;
	margin-left: auto;
	height: 100%;
	max-height: none;
	border-radius: 22px 0 0 22px;
}
.tl-drawer.tl-modal {
	padding: 0;
	justify-content: flex-end;
	align-items: stretch;
}
.tl-od__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.tl-od__section {
	border-top: 1px solid var(--tl-line);
	padding: 14px 0;
}
.tl-od__section:first-of-type {
	border-top: 0;
}
.tl-od__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--tl-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 10px;
}
.tl-od__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tl-timeline {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13px;
}
.tl-timeline li {
	display: flex;
	gap: 10px;
}
.tl-timeline__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tl-accent);
	margin-top: 5px;
	flex: none;
}
.tl-timeline small {
	display: block;
	color: var(--tl-muted);
}

/* Menu manager */
.tl-menu-admin {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.tl-catlist {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tl-catlist__item {
	display: flex;
	align-items: center;
	gap: 4px;
	border-radius: 12px;
	padding: 2px 2px 2px 0;
}
.tl-app .tl-catlist__btn {
	appearance: none;
	flex: 1;
	text-align: left;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: 10px;
	font: 500 14px var(--tl-font);
	color: var(--tl-text);
	cursor: pointer;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tl-app .tl-catlist__btn.is-active {
	background: var(--tl-tint);
	color: var(--tl-brand);
}
.tl-catlist__item.is-inactive .tl-catlist__btn {
	color: var(--tl-muted);
	text-decoration: line-through;
}
.tl-catlist .tl-iconbtn {
	width: 32px;
	height: 32px;
}
.tl-mitems {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tl-mitem {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: 14px;
	border: 1px solid var(--tl-line);
	background: var(--tl-surface);
}
.tl-mitem__img {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	object-fit: cover;
	flex: none;
	background: var(--tl-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tl-brand);
}
.tl-mitem__main {
	flex: 1;
	min-width: 0;
}
.tl-mitem__name {
	font-weight: 600;
	display: flex;
	gap: 6px;
	align-items: center;
}
.tl-mitem__meta {
	font-size: 13px;
	color: var(--tl-muted);
}
.tl-mitem__toggles {
	display: flex;
	gap: 14px;
	align-items: center;
}
.tl-mitem__toggles .tl-switch {
	margin: 0;
	font-size: 13px;
}
.tl-mitem.is-off {
	opacity: 0.65;
}
.tl-repeat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}
.tl-repeat__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 130px 40px;
	gap: 8px;
	align-items: start;
}
.tl-repeat__row .tl-field {
	margin: 0;
}
.tl-group-box {
	border: 1.5px solid var(--tl-line);
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 12px;
	background: var(--tl-surface-2);
}
.tl-group-box__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 90px 90px 40px;
	gap: 8px;
	align-items: end;
	margin-bottom: 10px;
}
.tl-group-box__head .tl-field {
	margin: 0;
}
.tl-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
.tl-form-grid .tl-field--wide {
	grid-column: 1 / -1;
}
.tl-form-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tl-subhead {
	font-size: 15px;
	font-weight: 600;
	margin: 18px 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.tl-checkgrid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-bottom: 12px;
}
.tl-checkgrid .tl-check {
	margin: 0;
}
.tl-upload {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}
.tl-upload__preview {
	width: 84px;
	height: 84px;
	border-radius: 14px;
	object-fit: cover;
	background: var(--tl-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tl-muted);
	flex: none;
	overflow: hidden;
}
.tl-upload__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tl-upload__preview--wide {
	width: 160px;
}
.tl-app input[type="file"].tl-file {
	font: 14px var(--tl-font);
}

/* Tabs */
.tl-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--tl-line);
	margin-bottom: 18px;
	scrollbar-width: none;
}
.tl-app .tl-tab {
	appearance: none;
	border: 0;
	background: none;
	padding: 10px 14px;
	font: 500 14px var(--tl-font);
	color: var(--tl-muted);
	cursor: pointer;
	border-bottom: 2.5px solid transparent;
	white-space: nowrap;
	margin-bottom: -1px;
}
.tl-app .tl-tab[aria-selected="true"] {
	color: var(--tl-brand);
	border-bottom-color: var(--tl-brand);
}

/* Hours editor */
.tl-hours-edit {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tl-hours-day {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 10px 0;
	border-bottom: 1px solid var(--tl-line);
}
.tl-hours-day .tl-switch {
	margin: 8px 0 0;
}
.tl-hours-ivs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tl-hours-iv {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.tl-app .tl-hours-iv .tl-input {
	width: 130px;
	min-height: 40px;
}

/* Coupons */
.tl-coupons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.tl-ccard {
	border: 1.5px dashed var(--tl-line-strong);
	border-radius: 16px;
	padding: 16px;
	background: var(--tl-surface);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tl-ccard.is-off {
	opacity: 0.6;
}
.tl-ccard__code {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tl-brand);
}
.tl-ccard__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

/* Onboarding checklist */
.tl-onboard {
	background: linear-gradient(135deg, var(--tl-tint), #fff);
	border: 1px solid #d5e8da;
}
.tl-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin: 12px 0 16px;
}
.tl-app .tl-checklist__item {
	appearance: none;
	text-decoration: none;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--tl-line);
	font: 500 14px var(--tl-font);
	color: var(--tl-text);
	text-align: left;
	cursor: pointer;
}
.tl-checklist__mark {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--tl-line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: #fff;
}
.tl-checklist__item.is-done .tl-checklist__mark {
	background: var(--tl-accent);
	border-color: var(--tl-accent);
}

.tl-bars {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tl-bars__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 10px;
	font-size: 14px;
}
.tl-bars__track {
	grid-column: 1 / -1;
	height: 8px;
	border-radius: 999px;
	background: var(--tl-surface-2);
	overflow: hidden;
}
.tl-bars__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--tl-accent);
}

.tl-auth {
	max-width: 520px;
	margin: 24px auto;
	background: var(--tl-surface);
	border-radius: 22px;
	padding: 28px;
	box-shadow: var(--tl-shadow);
}
.tl-app .tl-auth h2 {
	font-family: var(--tl-font-display);
	font-size: 26px;
	margin-bottom: 8px;
	color: var(--tl-text);
}
.tl-auth #loginform p {
	margin-bottom: 14px;
}
.tl-auth #loginform label {
	display: block;
	font-weight: 500;
	margin-bottom: 6px;
}
.tl-auth #loginform input[type="text"],
.tl-auth #loginform input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--tl-line-strong);
	border-radius: 12px;
	font: 15px var(--tl-font);
}
.tl-auth #loginform input[type="submit"] {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--tl-brand);
	color: #fff;
	font: 600 15px var(--tl-font);
	cursor: pointer;
}

/* Registration wizard */
.tl-register {
	max-width: 760px;
	margin: 0 auto;
}
.tl-wizard__steps {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
	counter-reset: wiz;
}
.tl-wizard__step {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--tl-muted);
	font-weight: 500;
}
.tl-wizard__step::before {
	counter-increment: wiz;
	content: counter(wiz);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tl-surface-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	font-weight: 600;
}
.tl-wizard__step.is-active {
	color: var(--tl-brand);
}
.tl-wizard__step.is-active::before,
.tl-wizard__step.is-done::before {
	background: var(--tl-brand);
	color: #fff;
}

/* ------------------------------------------------------------------ Responsive: dashboard */

@media (max-width: 1100px) {
	.tl-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tl-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.tl-dash {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 0;
	}
	.tl-dash__side {
		padding: 12px;
		gap: 10px;
	}
	.tl-dash__nav {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
		gap: 4px;
	}
	.tl-app .tl-dash__navlink {
		flex: none;
		width: auto;
		padding: 9px 12px;
		font-size: 14px;
	}
	.tl-dash__sidefoot {
		display: none;
	}
	.tl-dash__top {
		padding: 12px 16px;
		flex-wrap: wrap;
	}
	.tl-dash__content {
		padding: 16px;
	}
	.tl-menu-admin {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-form-grid,
	.tl-form-grid--3 {
		grid-template-columns: 1fr;
	}
	.tl-drawer .tl-modal__dialog {
		border-radius: 22px 22px 0 0;
		height: 94vh;
		height: 94dvh;
		margin-top: auto;
		max-width: none;
	}
	.tl-drawer.tl-modal {
		align-items: flex-end;
	}
}

@media (max-width: 640px) {
	.tl-kpis {
		gap: 10px;
	}
	.tl-kpi {
		padding: 14px;
	}
	.tl-kpi__value {
		font-size: 21px;
	}
	.tl-orders-table {
		display: none;
	}
	.tl-ocards {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.tl-catlist {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
		gap: 6px;
	}
	.tl-catlist__item {
		flex: none;
		border: 1px solid var(--tl-line);
		border-radius: 999px;
		padding: 0 4px 0 0;
	}
	.tl-catlist__item .tl-iconbtn:not(:last-child) {
		display: none;
	}
	.tl-mitem {
		flex-wrap: wrap;
	}
	.tl-mitem__toggles {
		width: 100%;
		justify-content: space-between;
	}
	.tl-hours-day {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.tl-repeat__row {
		grid-template-columns: minmax(0, 1fr) 100px 40px;
	}
	.tl-group-box__head {
		grid-template-columns: 1fr 1fr;
	}
	.tl-panel {
		padding: 16px;
	}
	.tl-table-wrap {
		margin: 0 -16px;
		padding: 0 16px;
	}
	.tl-wizard__step span {
		display: none;
	}
}

/* ================================================================== Full-screen canvas */

html:has(body.tl-canvas) {
	background: #faf7f0;
}
body.tl-canvas {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: #faf7f0;
}
.tl-canvas__main {
	display: block;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
}
.tl-canvas__main > p:empty {
	display: none;
}

/* Storefront: full-bleed background, content centred. */
.tl-canvas .tl-store {
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	border-radius: 0;
	padding: 20px max(20px, calc((100vw - 1280px) / 2));
}
.tl-canvas .tl-store .tl-hero {
	min-height: 240px;
}

/* Dashboard: edge-to-edge app with a full-height sidebar. */
.tl-canvas .tl-dash {
	overflow: visible;
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}
.tl-canvas .tl-dash__side {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
}
.tl-canvas.admin-bar .tl-dash__side {
	top: 32px;
	height: calc(100vh - 32px);
}
.tl-canvas .tl-dash__top {
	position: sticky;
	top: 0;
	z-index: 20;
}
.tl-canvas.admin-bar .tl-dash__top {
	top: 32px;
}
.tl-canvas .tl-dash__content {
	padding: 28px 32px;
}

/* Login / messages: centred on the screen. */
.tl-canvas .tl-canvas__main > .tl-app:not(.tl-store):not([data-tastylane="dashboard"]) {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

@media (max-width: 860px) {
	.tl-canvas .tl-store {
		padding: 10px;
	}
	.tl-canvas .tl-store .tl-hero {
		min-height: 0;
	}
}
@media (max-width: 900px) {
	.tl-canvas .tl-dash__side {
		position: static;
		height: auto;
	}
	.tl-canvas.admin-bar .tl-dash__side {
		top: 0;
		height: auto;
	}
	.tl-canvas .tl-dash__top {
		position: static;
	}
	.tl-canvas .tl-dash__content {
		padding: 16px;
	}
}
@media (max-width: 782px) {
	.tl-canvas.admin-bar .tl-dash__side {
		top: 0;
	}
}
