/*
 * OPT Foody UI polish
 * A calm, warm operational layer for plugin-owned interfaces. Merchant brand
 * colours remain the source of truth; this file owns rhythm, hierarchy and
 * restrained interaction states.
 */

:root {
	--opt-ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
	--opt-ui-ink: #1d1d1f;
	--opt-ui-muted: #6e6e73;
	--opt-ui-line: rgba(29, 29, 31, 0.12);
	--opt-ui-page: #f5f5f7;
	--opt-ui-surface: rgba(255, 255, 255, 0.96);
	--opt-ui-brand: #b33a2b;
	--opt-ui-brand-dark: #81261d;
	--opt-ui-warm-hover: #f7efe5;
	--opt-ui-radius-sm: 12px;
	--opt-ui-radius: 14px;
	--opt-ui-radius-lg: 18px;
	--opt-ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.06);
	--opt-ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.opt-foody-admin *,
	.opt-foody-ordering *,
	body.opt-foody-checkout-app *,
	body.opt-foody-account-app * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Merchant workspace ----------------------------------------------------- */

body[class*="toplevel_page_opt-foody"],
body[class*="online-orders_page_opt-foody"] {
	background: var(--opt-ui-page);
}

.opt-foody-admin {
	--foody-admin-ink: var(--opt-ui-ink);
	--foody-admin-muted: var(--opt-ui-muted);
	--foody-admin-line: #dedee3;
	--foody-admin-paper: var(--opt-ui-page);
	--foody-admin-white: #fff;
	--foody-admin-sand: #f0f0f3;
	color: var(--opt-ui-ink);
	font-family: var(--opt-ui-font);
}

/* The console sidebar and page layout are at the end of admin.css (phase 1a). */

.opt-foody-view-store {
	padding: 0 20px;
	font-weight: 700;
}

.opt-foody-view-store span {
	color: var(--opt-ui-brand);
}

.opt-foody-admin__title,
.opt-foody-status-line,
.opt-foody-metrics,
.opt-foody-overview-grid,
.opt-foody-form,
.opt-foody-order-filters,
.opt-foody-order-tools,
.opt-foody-panel--all-orders,
.opt-foody-create-page,
.opt-foody-install-tools,
.opt-foody-workspace-tabs,
.opt-foody-catalog-manager,
.opt-foody-catalog-columns,
.opt-foody-product-editor,
.opt-foody-menu-manager,
.opt-foody-menu-editor-card {
	width: min(1280px, calc(100% - 40px));
}

.opt-foody-admin__title {
	padding: 28px 0 22px;
}

.opt-foody-admin__title p,
.opt-foody-kicker,
.opt-foody-panel__heading > div > span {
	color: var(--foody-admin-green, #b33a2b);
	font-size: 11px;
	letter-spacing: 0.1em;
}

.opt-foody-admin__title h1,
.opt-foody-panel__heading h2,
.opt-foody-admin h1,
.opt-foody-admin h2,
.opt-foody-admin h3 {
	font-family: var(--opt-ui-font);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.opt-foody-admin__title h1 {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.2;
}

.opt-foody-admin :is(h1, h2, h3, strong) {
	font-family: var(--opt-ui-font);
}

.opt-foody-metrics {
	gap: 1px;
	background: var(--foody-admin-line);
	border: 1px solid var(--foody-admin-line);
	border-radius: var(--opt-ui-radius);
	overflow: hidden;
}

.opt-foody-metrics > div {
	min-height: 110px;
	gap: 12px;
	padding: 20px 24px;
	background: #fff;
	border: 0;
}

.opt-foody-metrics > div > span {
	color: var(--opt-ui-muted);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
}

.opt-foody-metrics strong {
	color: var(--opt-ui-ink);
	font-size: 32px;
	font-weight: 650;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.opt-foody-metrics strong span {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

.opt-foody-status-line,
.opt-foody-order-tools,
.opt-foody-panel,
.opt-foody-menu-editor-card,
.opt-foody-product-editor,
.opt-foody-catalog-manager,
.opt-foody-create-page,
.opt-foody-install-tools,
.opt-foody-campaign-editor,
.opt-foody-template-editor {
	background: var(--opt-ui-surface);
	border: 1px solid var(--opt-ui-line);
	border-radius: var(--opt-ui-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.opt-foody-order-filters,
.opt-foody-workspace-tabs,
.opt-foody-segmented {
	gap: 6px;
	padding: 5px;
	background: rgba(118, 118, 128, 0.12);
	border: 0;
	border-radius: var(--opt-ui-radius-sm);
}

.opt-foody-order-filters a,
.opt-foody-workspace-tabs a,
.opt-foody-segmented label,
.opt-foody-segmented a {
	min-height: 34px;
	padding: 8px 12px;
	color: var(--opt-ui-muted);
	border: 0;
	border-radius: 9px;
	font-weight: 650;
	background: transparent;
	transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.opt-foody-order-filters a:hover,
.opt-foody-workspace-tabs a:hover,
.opt-foody-segmented label:hover,
.opt-foody-order-filters a.is-active,
.opt-foody-workspace-tabs a.is-active,
.opt-foody-segmented input:checked + span {
	color: var(--opt-ui-ink);
	background: var(--opt-ui-warm-hover);
	box-shadow: none;
}

.opt-foody-admin input:not([type="checkbox"]):not([type="radio"]),
.opt-foody-admin select,
.opt-foody-admin textarea {
	min-height: 40px;
	border-color: rgba(60, 60, 67, 0.24);
	border-radius: 10px;
	box-shadow: none;
	font-family: var(--opt-ui-font);
}

.opt-foody-admin input:focus,
.opt-foody-admin select:focus,
.opt-foody-admin textarea:focus {
	border-color: var(--opt-ui-brand);
	box-shadow: none;
}

.opt-foody-admin .button,
.opt-foody-admin button:not([data-settings-tab]),
.opt-foody-admin input[type="submit"] {
	min-height: 40px;
	border-radius: 9px;
	font-family: var(--opt-ui-font);
	font-weight: 650;
	transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.opt-foody-admin .button-primary,
.opt-foody-admin input[type="submit"].button-primary {
	color: #fffdf7 !important;
	background: var(--opt-ui-brand) !important;
	border-color: var(--opt-ui-brand) !important;
	box-shadow: none;
}

.opt-foody-admin .button-primary:hover,
.opt-foody-admin .button-primary:active,
.opt-foody-admin input[type="submit"].button-primary:hover,
.opt-foody-admin input[type="submit"].button-primary:active {
	color: #fffdf7 !important;
	background: var(--opt-ui-brand-dark) !important;
	border-color: var(--opt-ui-brand-dark) !important;
	box-shadow: none !important;
	transform: none !important;
}

.opt-foody-admin .button:not(.button-primary),
.opt-foody-admin input[type="submit"]:not(.button-primary) {
	color: var(--opt-ui-ink);
	background: #f4eee5;
	border-color: #d8cabc;
	box-shadow: none;
}

.opt-foody-admin .button:not(.button-primary):hover,
.opt-foody-admin .button:not(.button-primary):active,
.opt-foody-admin input[type="submit"]:not(.button-primary):hover,
.opt-foody-admin input[type="submit"]:not(.button-primary):active {
	color: var(--opt-ui-ink);
	background: #ebe1d6;
	border-color: #c9b7a6;
	box-shadow: none !important;
	transform: none !important;
}

.opt-foody-order-table-wrap,
.opt-foody-catalog-table-wrap {
	overflow-x: auto;
	background: var(--opt-ui-surface);
	border: 1px solid var(--opt-ui-line);
	border-radius: var(--opt-ui-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.opt-foody-order-table,
.opt-foody-catalog-table {
	border: 0;
}

.opt-foody-order-table thead th,
.opt-foody-catalog-table thead th {
	color: var(--opt-ui-muted);
	background: rgba(118, 118, 128, 0.07);
	font-size: 10px;
	letter-spacing: 0.07em;
}

.opt-foody-order-table tbody tr,
.opt-foody-catalog-table tbody tr {
	transition: background-color 150ms ease;
}

.opt-foody-order-table tbody tr:hover,
.opt-foody-catalog-table tbody tr:hover {
	background: rgba(179, 58, 43, 0.035);
}

.opt-foody-order-status,
.opt-foody-payment-state,
.opt-foody-cancel-request-badge,
.opt-foody-campaign-status {
	border-radius: 999px;
}

.opt-foody-admin .opt-foody-savebar {
	gap: 16px;
	background: #fff;
	border-top: 1px solid var(--opt-ui-line);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.opt-foody-savebar p {
	color: var(--opt-ui-muted);
}

.opt-foody-admin .opt-foody-order-table .button,
.opt-foody-admin .opt-foody-catalog-table .button {
	display: inline-flex;
	min-height: 40px;
	padding: 0 14px;
	align-items: center;
	font-size: 13px;
}

.opt-foody-admin .opt-foody-campaign-toolbar,
.opt-foody-admin .opt-foody-campaign-list {
	width: min(1280px, calc(100% - 40px));
	margin: 0 auto;
	padding-right: 0;
	padding-left: 0;
}

/* Customer ordering ------------------------------------------------------ */

.opt-foody-ordering,
.opt-foody-pickup-picker,
.opt-foody-order-summary,
body.opt-foody-app-shell,
body.opt-foody-checkout-app,
body.opt-foody-account-app {
	/* Legacy appearance settings also emit these tokens inline. */
	--foody-font-body: var(--opt-ui-font) !important;
	--foody-font-heading: var(--opt-ui-font) !important;
	--foody-radius-card: var(--opt-ui-radius) !important;
	--foody-radius-control: var(--opt-ui-radius-sm) !important;
	--foody-radius-button: var(--opt-ui-radius-sm) !important;
}

.opt-foody-ordering {
	max-width: 1280px !important;
	margin-top: 20px !important;
	margin-bottom: 76px !important;
	background: transparent;
}

.opt-foody-storefront-hero {
	padding: 0 40px 40px;
	border-top: 0;
	border-radius: var(--opt-ui-radius-lg);
	box-shadow: var(--opt-ui-shadow);
	overflow: hidden;
}

.opt-foody-storefront-hero__main {
	padding-top: 42px;
}

.opt-foody-storefront-hero__main h1 {
	font-family: var(--opt-ui-font);
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 720;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.opt-foody-menu-switcher {
	margin-top: 20px;
	padding: 7px 7px 7px 18px;
	border-radius: var(--opt-ui-radius-sm);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
}

.opt-foody-menu-switcher a {
	border-radius: 9px;
}

/* Storefront applies a purple outline to every clicked link. Keep it for keyboard users only. */
.opt-foody-menu-switcher a:focus {
	outline: none;
}

.opt-foody-menu-switcher a:focus-visible {
	outline: 3px solid var(--foody-accent);
	outline-offset: 3px;
}

.opt-foody-menu-tools,
.opt-foody-menu-workspace {
	display: contents;
}

.opt-foody-mobile-search {
	display: none;
}

.opt-foody-category-nav {
	border: 1px solid var(--opt-ui-line);
	border-radius: var(--opt-ui-radius);
	box-shadow: var(--opt-ui-shadow);
}

.opt-foody-category-nav__bar,
.opt-foody-category-nav__panel {
	border-radius: var(--opt-ui-radius);
	box-shadow: none;
}

.opt-foody-category-nav__bar {
	min-height: 68px;
	background: var(--opt-ui-surface);
}

.opt-foody-category-nav__eyebrow {
	padding: 0 18px;
	color: var(--opt-ui-muted);
	background: transparent;
}

.opt-foody-category-nav__current,
.opt-foody-category-nav__toggle {
	border-color: var(--opt-ui-line);
}

.opt-foody-category-nav__toggle {
	min-width: 196px;
	color: var(--opt-ui-ink);
	background: transparent;
}

.opt-foody-category-nav__toggle > b {
	color: var(--foody-on-brand);
	background: var(--foody-brand);
}

.opt-foody-category-nav__toggle:hover,
.opt-foody-category-nav__toggle:focus-visible,
.opt-foody-category-nav__directory[open] .opt-foody-category-nav__toggle {
	color: var(--opt-ui-ink);
	background: rgba(118, 118, 128, 0.1);
}

.opt-foody-category-nav__panel {
	border-color: var(--opt-ui-line);
	background: var(--opt-ui-surface);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.opt-foody-category-nav__rail {
	display: none;
}

.opt-foody-menu-section {
	margin-top: 0;
	padding-top: 28px;
}

.opt-foody-menu-section > header {
	grid-template-columns: 1fr;
	border-bottom: 1px solid var(--foody-line);
}

.opt-foody-menu-section > header > p {
	display: none;
}

.opt-foody-menu-section > header h2,
.opt-foody-menu-section h2 {
	font-family: var(--opt-ui-font);
	font-weight: 720;
	letter-spacing: -0.045em;
	font-size: 28px;
}

.opt-foody-product {
	grid-template-columns: 128px minmax(0, 1fr) 128px;
	background: var(--foody-surface);
	border-radius: var(--opt-ui-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.opt-foody-product:hover {
	box-shadow: var(--opt-ui-shadow);
}

.opt-foody-product__image,
.opt-foody-product__image img {
	border-radius: 0;
}

.opt-foody-product__title,
.opt-foody-product__price,
.opt-foody-product__content h3 {
	font-family: var(--opt-ui-font);
}

.opt-foody-product__price--inline {
	display: none;
}

.opt-foody-product__title,
.opt-foody-product__content h3 {
	font-weight: 700;
	letter-spacing: -0.025em;
}

.opt-foody-product__content {
	padding-left: 18px;
}

.opt-foody-product__action {
	padding: 24px 8px 14px;
}

.opt-foody-product__action > button,
.opt-foody-product__action > a,
.opt-foody-product-control:not(.is-active) [data-product-increase],
.opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] {
	min-width: 84px;
	min-height: 44px;
	border-radius: 10px;
	box-shadow: none;
}

.opt-foody-product-control.is-active {
	width: 104px;
}

.opt-foody-product__content > p {
	font-size: 13px;
	line-height: 1.5;
}

.opt-foody-cart-item {
	border-radius: 0;
	box-shadow: none;
}

.opt-foody-cart-drawer :is(h2, strong) {
	font-weight: 650;
}

.opt-foody-cart-drawer > header {
	border-bottom-color: var(--foody-line);
}

.opt-foody-product-preview {
	border-color: var(--foody-line);
}

.opt-foody-product-preview__body h2 {
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 650;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.opt-foody-product-preview__price strong,
.opt-foody-product-preview__price strong span {
	color: var(--foody-ink);
	font-size: 20px;
	font-weight: 650;
	letter-spacing: normal;
}

.opt-foody-product-preview__close {
	border-color: var(--foody-line);
	border-radius: 50%;
}

.opt-foody-cart-item button:not(.opt-foody-cart-item__remove) {
	min-width: 44px;
	min-height: 44px;
}

/* Shared stepper: 30px visual controls inside non-overlapping 44px hit areas. */
.opt-foody-ordering .opt-foody-product-control > .opt-foody-product-control__pill {
	display: none;
}

.opt-foody-ordering .opt-foody-product-control.is-active,
.opt-foody-cart-drawer .opt-foody-quantity {
	display: inline-grid;
	grid-template-columns: 44px 16px 44px;
	width: 104px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.opt-foody-ordering .opt-foody-product-control button,
.opt-foody-cart-drawer .opt-foody-quantity button,
.opt-foody-cart-drawer > header button,
.opt-foody-ordering .opt-foody-product-preview__close,
.opt-foody-al-dialog__close {
	position: relative;
	isolation: isolate;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--foody-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
}

.opt-foody-ordering .opt-foody-product-control button::before,
.opt-foody-cart-drawer .opt-foody-quantity button::before,
.opt-foody-cart-drawer > header button::before,
.opt-foody-ordering .opt-foody-product-preview__close::before,
.opt-foody-al-dialog__close::before {
	content: "";
	position: absolute;
	inset: 7px;
	z-index: -1;
	border-radius: 50%;
	background: var(--foody-control-fill, color-mix(in srgb, var(--foody-ink) 7%, var(--foody-surface)));
}

.opt-foody-ordering .opt-foody-product-control [data-product-increase],
.opt-foody-cart-drawer .opt-foody-quantity button:last-child,
.opt-foody-ordering .opt-foody-product-control [data-fixed-bundle-add] {
	--foody-control-fill: var(--foody-brand);
	color: var(--foody-on-brand);
}

.opt-foody-ordering .opt-foody-product-control button:hover,
.opt-foody-cart-drawer .opt-foody-quantity button:hover {
	--foody-control-fill: color-mix(in srgb, var(--foody-brand) 13%, var(--foody-surface));
	color: var(--foody-brand-strong);
	background: transparent;
}

.opt-foody-ordering .opt-foody-product-control [data-product-increase]:hover,
.opt-foody-cart-drawer .opt-foody-quantity button:last-child:hover,
.opt-foody-ordering .opt-foody-product-control [data-fixed-bundle-add]:hover {
	--foody-control-fill: var(--foody-brand-strong);
	color: var(--foody-on-brand);
}

.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-product-increase],
.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] {
	width: auto;
	min-width: 76px;
	padding: 0 12px;
	border: 0;
	font-size: 13px;
}

.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-product-increase]::before,
.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add]::before {
	inset: 6px 2px;
	border-radius: 999px;
}

.opt-foody-ordering .opt-foody-product-control .opt-foody-product__add-icon {
	display: block;
	font-size: 18px;
	line-height: 1;
	/* Optical correction for the system font's plus glyph. */
	transform: translateY(-0.5px);
}

.opt-foody-ordering .opt-foody-product-control > [data-product-quantity],
.opt-foody-cart-drawer .opt-foody-quantity > span {
	width: 16px;
	min-width: 0;
	font-size: 13px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.opt-foody-ordering .opt-foody-product-control button:focus-visible,
.opt-foody-cart-drawer .opt-foody-quantity button:focus-visible,
.opt-foody-cart-drawer > header button:focus-visible,
.opt-foody-ordering .opt-foody-product-preview__close:focus-visible,
.opt-foody-al-dialog__close:focus-visible {
	outline: 2px solid var(--foody-brand);
	outline-offset: -2px;
}

.opt-foody-ordering .opt-foody-product-preview__close {
	position: absolute;
}

.opt-foody-ordering .opt-foody-product-preview__close::before {
	background: color-mix(in srgb, var(--foody-surface) 90%, transparent);
}

.opt-foody-cart-drawer > header button:hover,
.opt-foody-ordering .opt-foody-product-preview__close:hover,
.opt-foody-al-dialog__close:hover {
	--foody-control-fill: color-mix(in srgb, var(--foody-brand) 12%, var(--foody-surface));
	color: var(--foody-ink);
	background: transparent;
}

/* One close icon for the item details, the cart drawer and the allergen key (AllergenKey::CLOSE_ICON). */
.opt-foody-cart-drawer > header button svg,
.opt-foody-ordering .opt-foody-product-preview__close svg,
.opt-foody-al-dialog__close svg {
	display: block;
	width: 20px;
	height: 20px;
	margin: auto;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-width: 2.2;
}

.opt-foody-cart-drawer .opt-foody-cart-item__remove {
	min-height: 44px;
	color: var(--foody-muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
}

.opt-foody-cart-drawer .opt-foody-cart-item__remove:hover {
	color: var(--foody-brand-strong);
	text-decoration: underline;
}

.opt-foody-cart-drawer {
	--foody-cart-header-height: 88px;
	--foody-cart-footer-height: calc(66px + env(safe-area-inset-bottom, 0px));
	top: auto;
	bottom: 0;
	height: auto;
	max-height: min(82dvh, calc(100dvh - 64px - env(safe-area-inset-top, 0px)));
	grid-template-rows: var(--foody-cart-header-height) minmax(0, 1fr) var(--foody-cart-footer-height);
	border-radius: var(--opt-ui-radius-lg) 0 0 var(--opt-ui-radius-lg);
	box-shadow: -12px 0 36px rgba(0, 0, 0, 0.14);
}

/* Scroll content underneath the glass, with clear space at either end. */
.opt-foody-cart-drawer__scroll {
	grid-area: 1 / 1 / -1 / 2;
	padding-block: var(--foody-cart-header-height) var(--foody-cart-footer-height);
	scroll-padding-block: var(--foody-cart-header-height) var(--foody-cart-footer-height);
}

.opt-foody-cart-drawer > header {
	grid-area: 1 / 1;
	z-index: 2;
}

.opt-foody-cart-drawer > .opt-foody-action-dock {
	grid-area: 3 / 1;
	z-index: 2;
}

.opt-foody-cart-drawer .opt-foody-cart-empty {
	padding: 28px 0;
	border: 0;
}

.opt-foody-cart-empty,
.opt-foody-product-preview__body,
.opt-foody-combo-builder {
	border-radius: var(--opt-ui-radius);
}

.opt-foody-floating-cart.opt-foody-action-dock {
	border-radius: 16px;
	border-color: var(--foody-line);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
}

.opt-foody-floating-cart.opt-foody-action-dock > .opt-foody-action-dock__action,
.opt-foody-cart-drawer > .opt-foody-action-dock .opt-foody-action-dock__action {
	border-radius: 999px !important;
}

@media (max-width: 960px) {
	/* The mobile order dock is an edge-to-edge app bar, not a floating card. */
	.opt-foody-floating-cart.opt-foody-action-dock {
		right: 0;
		bottom: 0;
		left: 0;
		border-radius: 0;
	}
}

/* Checkout, account, and order state ------------------------------------ */

body.opt-foody-checkout-app,
body.opt-foody-account-app {
	background: var(--foody-bg);
	font-family: var(--opt-ui-font);
}

.opt-foody-checkout-appbar,
.opt-foody-account-appbar {
	min-height: 62px;
	border-top: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--foody-on-header) 14%, transparent);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

body.opt-foody-checkout-app .opt-foody-pickup-picker--checkout,
body.opt-foody-checkout-app .opt-foody-redemption,
body.opt-foody-checkout-app .wc-block-components-checkout-step,
body.opt-foody-checkout-app .wc-block-checkout__order-notes,
body.opt-foody-checkout-app .wp-block-woocommerce-checkout-order-summary-block,
body.opt-foody-account-app .woocommerce-MyAccount-navigation ul,
.opt-foody-customer-state {
	border-radius: var(--opt-ui-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px rgba(0, 0, 0, 0.035);
}

body.opt-foody-checkout-app .wc-block-components-totals-wrapper {
	border-radius: 0;
	box-shadow: none;
}

body.opt-foody-checkout-app .wc-block-components-text-input input,
body.opt-foody-checkout-app .wc-block-components-combobox .wc-block-components-combobox-control input,
body.opt-foody-checkout-app .wc-block-components-select .wc-block-components-select__select,
body.opt-foody-account-app input:not([type="checkbox"]):not([type="radio"]),
body.opt-foody-account-app select,
body.opt-foody-account-app textarea {
	min-height: 48px;
	border-radius: 12px;
}

body.opt-foody-checkout-app .wc-block-components-button,
body.opt-foody-account-app .woocommerce a.button,
body.opt-foody-account-app .woocommerce button,
body.opt-foody-account-app .woocommerce input[type="submit"] {
	min-height: 46px;
	border-radius: 12px;
	font-family: var(--opt-ui-font);
	font-weight: 700;
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation ul {
	padding: 5px;
	border: 0;
	background: rgba(118, 118, 128, 0.12);
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation li {
	border-bottom: 0;
	background: transparent;
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation li.is-active {
	background: transparent;
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation li::before,
body.opt-foody-account-app .woocommerce-MyAccount-navigation a::before {
	display: none;
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation a {
	border-radius: 10px;
}

body.opt-foody-account-app .woocommerce-MyAccount-navigation li.is-active a,
body.opt-foody-account-app .woocommerce-MyAccount-navigation a:hover,
body.opt-foody-account-app .woocommerce-MyAccount-navigation a:focus {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

body.opt-foody-account-app .opt-foody-app-title {
	padding-bottom: 24px;
}

body.opt-foody-account-app .woocommerce-info {
	color: var(--foody-ink);
	background: var(--foody-surface);
	border: 1px solid var(--foody-line);
	border-radius: var(--opt-ui-radius);
	box-shadow: none;
}

body.opt-foody-account-app .woocommerce-info::before {
	color: var(--foody-muted);
}

body.opt-foody-account-app .opt-foody-account-orders__intro {
	padding: 0 0 20px;
	background: transparent;
	border: 0;
	border-radius: 0;
}

body.opt-foody-account-app .opt-foody-account-orders__intro h2 {
	color: var(--foody-ink);
	font-size: 24px;
	font-weight: 650;
	letter-spacing: -0.025em;
}

body.opt-foody-account-app .opt-foody-account-orders__intro span {
	color: var(--foody-muted);
	font-size: 14px;
}

body.opt-foody-account-app .opt-foody-account-orders__intro p {
	display: none;
}

body.opt-foody-account-app .opt-foody-loyalty {
	background: var(--foody-surface);
	border-left-width: 1px;
}

body.opt-foody-account-app .opt-foody-account-order-list {
	border-radius: var(--opt-ui-radius);
	overflow: hidden;
}

.opt-foody-customer-state {
	border-top-width: 1px;
}

.opt-foody-customer-state__order-number strong,
.opt-foody-customer-state__copy h2 {
	font-family: var(--opt-ui-font);
	font-weight: 720;
}

.opt-foody-cart-drawer > .opt-foody-action-dock {
	border-radius: 0;
}

/* Keep each checkout section a single surface; totals are rows, not cards. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.opt-foody-checkout-phone, .opt-foody-pickup-picker--checkout, .opt-foody-redemption, .wp-block-woocommerce-checkout) {
	width: min(1080px, calc(100% - 40px)) !important;
	max-width: 1080px !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.opt-foody-checkout-phone, .opt-foody-pickup-picker--checkout, .opt-foody-redemption) {
	margin: 16px auto !important;
	padding: 18px 20px !important;
	border: 1px solid var(--foody-line);
	border-radius: var(--opt-ui-radius);
	background: var(--foody-surface);
	box-shadow: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-sidebar-layout {
	grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
	gap: 24px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--foody-line);
	border-radius: var(--opt-ui-radius);
	box-shadow: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-checkout-order-summary__title {
	background: var(--foody-surface);
	font-size: 18px !important;
	font-weight: 650;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.wc-block-components-checkout-step, .wc-block-checkout__order-notes, .wc-block-checkout__terms, .wp-block-woocommerce-checkout-actions-block) {
	border-radius: var(--opt-ui-radius);
	box-shadow: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods label > span {
	min-height: 68px;
	padding: 12px;
	border-radius: 10px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods small,
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro small,
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-redemption__copy > small {
	font-size: 12px;
	line-height: 1.5;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro h2 {
	font-family: var(--opt-ui-font);
	font-size: 22px;
	font-weight: 650;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__terms {
	font-size: 12px;
	line-height: 1.5;
}

/* An unconfigured host assistant must not obscure ordering or save controls. */
body.opt-foody-app-shell #wp-ai-studio-container.sg-ai-floating-chat.no-api-key,
body:has(.opt-foody-admin) #wp-ai-studio-container.sg-ai-floating-chat.no-api-key {
	display: none !important;
}

@media (max-width: 1100px) {
	.opt-foody-admin__masthead {
		grid-template-columns: 1fr auto;
	}

	.opt-foody-admin__masthead nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: flex-start;
	}

	.opt-foody-admin__nav-group {
		display: none;
	}
}

/* Small screens keep controls thumb-friendly without a second mobile UI. */
@media (max-width: 960px) {
	.opt-foody-admin__masthead {
		grid-template-columns: 1fr;
		width: min(100% - 28px, 680px);
	}

	.opt-foody-admin__brand,
	.opt-foody-view-store {
		border: 0;
	}

	.opt-foody-admin__masthead nav {
		justify-content: flex-start;
		overflow-x: auto;
		padding: 0 10px 8px;
	}

	.opt-foody-admin__masthead nav a,
	.opt-foody-admin__masthead nav button[data-settings-tab] {
		flex: 0 0 auto;
		min-height: 44px;
		margin-top: 0;
		margin-bottom: 0;
	}

	.opt-foody-view-store {
		display: none;
	}

	.opt-foody-admin__title,
	.opt-foody-status-line,
	.opt-foody-metrics,
	.opt-foody-overview-grid,
	.opt-foody-form,
	.opt-foody-order-filters,
	.opt-foody-order-tools,
	.opt-foody-panel--all-orders,
	.opt-foody-create-page,
	.opt-foody-install-tools,
	.opt-foody-workspace-tabs,
	.opt-foody-catalog-manager,
	.opt-foody-catalog-columns,
	.opt-foody-product-editor,
	.opt-foody-menu-manager,
	.opt-foody-menu-editor-card {
		width: min(100% - 28px, 680px);
	}

	.opt-foody-admin__title {
		padding: 24px 0 18px;
	}

	.opt-foody-admin__title h1 {
		font-size: 28px;
	}

	.opt-foody-admin__title > p {
		display: none;
	}

	.opt-foody-admin .opt-foody-order-sorting {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: end;
	}

	.opt-foody-admin .opt-foody-order-date-filter,
	.opt-foody-admin .opt-foody-order-date-custom {
		display: grid;
		grid-template-columns: 1fr;
	}

	.opt-foody-admin .opt-foody-order-date-custom[hidden] {
		display: none;
	}

	.opt-foody-order-date-filter select,
	.opt-foody-order-date-filter input,
	.opt-foody-order-date-filter .button,
	.opt-foody-order-date-filter .button-link {
		width: 100%;
		min-height: 44px;
	}

	.opt-foody-order-date-filter .button-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.opt-foody-admin .opt-foody-order-search {
		grid-template-columns: 1fr;
	}

	.opt-foody-order-search .button,
	.opt-foody-order-search .button-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
		text-align: center;
	}

	.opt-foody-order-sorting select {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.opt-foody-admin .opt-foody-savebar p {
		display: none;
	}

	.opt-foody-admin .opt-foody-savebar .button {
		width: 100%;
		min-height: 44px;
	}

	.opt-foody-admin .opt-foody-campaign-toolbar,
	.opt-foody-admin .opt-foody-campaign-list {
		width: calc(100% - 28px);
	}
}

@media (max-width: 700px) {
	.opt-foody-ordering {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	/* Mobile ordering ends at its app dock, not the desktop website footer. */
	.opt-foody-ordering > .opt-foody-storefront-footer {
		display: none;
	}

	html:has(body.opt-foody-app-ordering),
	body.opt-foody-app-ordering {
		background: var(--foody-surface);
	}

	.opt-foody-storefront-hero {
		padding: 0 20px 28px;
		border-radius: 0 0 var(--opt-ui-radius-lg) var(--opt-ui-radius-lg);
		box-shadow: none;
	}

	.opt-foody-storefront-hero__main {
		padding-top: 28px;
	}

	.opt-foody-storefront-hero__main h1 {
		font-size: clamp(28px, 8vw, 34px);
	}

	.opt-foody-menu-switcher {
		margin: 14px 16px 0;
	}

	.opt-foody-category-nav__bar {
		min-height: 58px;
		border-radius: 0;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	}

	.opt-foody-category-nav__toggle {
		min-width: 144px;
	}

	.opt-foody-menu-section {
		margin-top: 0;
		padding-top: 24px;
	}

	.opt-foody-product-grid {
		gap: 12px;
		border-top: 0;
	}

	.opt-foody-product {
		grid-template-columns: 80px minmax(0, 1fr);
		border: 1px solid var(--foody-line);
		background: var(--foody-surface);
		border-radius: 14px;
	}

	.opt-foody-product__image {
		grid-row: 1 / 3;
	}

	.opt-foody-product__action {
		grid-column: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 0 12px 12px;
		border: 0;
	}

	.opt-foody-product__price {
		align-self: center;
		font-size: 13px;
	}

	.opt-foody-product-control:not(.is-active) .opt-foody-product__add-label {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
		clip-path: none;
	}

	.opt-foody-cart-drawer {
		--foody-cart-header-height: 78px;
		border-radius: var(--opt-ui-radius-lg) var(--opt-ui-radius-lg) 0 0;
	}

	body.opt-foody-account-app main .alignfull,
	body.opt-foody-account-app main .entry-content,
	body.opt-foody-account-app main .woocommerce {
		width: min(100% - 20px, 620px) !important;
	}

	body.opt-foody-account-app .woocommerce {
		gap: 16px;
	}

	body.opt-foody-account-app .woocommerce-MyAccount-navigation ul {
		display: flex;
		overflow-x: auto;
	}

	body.opt-foody-account-app .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}
}

@media (max-width: 760px) {
	body.opt-foody-app-shell #wpadminbar {
		position: fixed;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-checkout-appbar {
		position: sticky;
		min-height: 54px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wp-site-blocks {
		padding-top: 0 !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.opt-foody-checkout-phone, .opt-foody-pickup-picker--checkout, .opt-foody-redemption, .wp-block-woocommerce-checkout) {
		width: calc(100% - 24px) !important;
		margin: 12px auto !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.opt-foody-checkout-phone, .opt-foody-pickup-picker--checkout, .opt-foody-redemption) {
		padding: 14px !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker--checkout .opt-foody-pickup-picker__intro small {
		font-size: 12px;
		line-height: 1.5;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-redemption__copy {
		grid-template-columns: 1fr;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-redemption__copy > strong {
		text-align: left;
		white-space: normal;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-redemption__action input,
	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-redemption__action button {
		height: 44px !important;
		min-height: 44px !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.wc-block-components-checkout-step, .wc-block-checkout__order-notes) {
		margin-bottom: 12px !important;
		border: 1px solid var(--foody-line) !important;
	}

	body.opt-foody-account-app .woocommerce-MyAccount-navigation ul {
		flex-wrap: wrap;
		gap: 4px;
	}

	body.opt-foody-account-app .woocommerce-MyAccount-navigation li {
		flex: 1 1 calc(50% - 4px);
	}

	body.opt-foody-account-app .woocommerce-MyAccount-navigation a {
		padding: 12px;
		white-space: nowrap;
	}

	.opt-foody-admin .opt-foody-metrics {
		grid-template-columns: 1fr;
	}

	.opt-foody-admin .opt-foody-metrics > div {
		min-height: 76px;
		flex-direction: row;
		align-items: center;
		padding: 16px;
	}
}

/* Materials belong to navigation/overlays; reading and payment surfaces stay solid. */
.opt-foody-ordering,
body.opt-foody-checkout-app,
body.opt-foody-account-app {
	--foody-glass: var(--foody-surface);
	--foody-glass-filter: none;
}

.opt-foody-category-nav,
.opt-foody-cart-drawer > header,
.opt-foody-floating-cart.opt-foody-action-dock,
.opt-foody-floating-cart.opt-foody-action-dock:hover,
.opt-foody-cart-drawer > .opt-foody-action-dock {
	background: var(--foody-glass, var(--foody-surface));
	-webkit-backdrop-filter: var(--foody-glass-filter, none);
	backdrop-filter: var(--foody-glass-filter, none);
}

.opt-foody-cart-drawer > header {
	border-bottom-width: 1px;
}

body.opt-foody-account-app .opt-foody-account-appbar {
	background: var(--foody-surface);
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
	.opt-foody-ordering,
	body.opt-foody-checkout-app,
	body.opt-foody-account-app {
		--foody-glass: color-mix(in srgb, var(--foody-surface) 82%, transparent);
		--foody-glass-filter: blur(20px) saturate(135%);
	}

	.opt-foody-category-nav,
	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-checkout-appbar,
	body.opt-foody-account-app .opt-foody-account-appbar {
		background: var(--foody-glass);
		-webkit-backdrop-filter: var(--foody-glass-filter);
		backdrop-filter: var(--foody-glass-filter);
	}

	.opt-foody-category-nav__bar {
		background: transparent;
	}

	.opt-foody-admin .opt-foody-savebar {
		background: rgba(255, 255, 255, 0.88);
		-webkit-backdrop-filter: blur(20px) saturate(140%);
		backdrop-filter: blur(20px) saturate(140%);
	}

	.opt-foody-cart-backdrop,
	.opt-foody-cart-backdrop:hover,
	.opt-foody-cart-backdrop:focus-visible,
	.opt-foody-product-preview__backdrop,
	.opt-foody-product-preview__backdrop:hover,
	.opt-foody-product-preview__backdrop:focus-visible {
		background: color-mix(in srgb, var(--foody-ink) 38%, transparent);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
}

body.opt-foody-account-app .opt-foody-account-appbar,
body.opt-foody-account-app .opt-foody-account-appbar :is(a, strong, span) {
	color: var(--foody-ink);
}

.opt-foody-app-chrome {
	display: contents;
}

/* Mobile ordering keeps the document as the scroll container so browser chrome can collapse naturally. */
@media (max-width: 700px) {
	.opt-foody-ordering[data-mobile-menu] {
		--foody-mobile-admin-height: 0px;
		--foody-mobile-tools-height: 112px;
		--foody-mobile-top: var(--foody-mobile-chrome-height, 180px);
		--foody-mobile-dock-height: calc(65px + env(safe-area-inset-bottom, 0px));
		position: relative;
		width: 100%;
		max-width: none;
		min-height: 100dvh;
		padding-bottom: 0;
		background: var(--foody-surface);
	}

	/* Only the dark bar with the store name and account stays pinned; the address, search and language row scroll away. */
	[data-mobile-menu] .opt-foody-app-chrome {
		display: block;
		position: relative;
		min-width: 0;
		z-index: 80;
	}

	[data-mobile-menu] .opt-foody-mobile-bar {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 81;
		box-sizing: content-box;
		height: 48px;
		align-items: center;
		padding: env(safe-area-inset-top, 0px) 4px 0 16px;
		color: var(--foody-on-header);
		background: var(--foody-header);
	}

	[data-mobile-menu] .opt-foody-mobile-bar strong {
		flex: 1;
		min-width: 0;
		overflow: hidden;
		font-size: 15px;
		font-weight: 800;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	[data-mobile-menu] .opt-foody-mobile-bar a {
		display: inline-flex;
		flex: none;
		min-height: 44px;
		align-items: center;
		gap: 5px;
		padding: 0 8px;
		border-radius: 8px;
		color: var(--foody-on-header);
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}

	[data-mobile-menu] .opt-foody-mobile-bar a:focus-visible {
		outline: 3px solid var(--foody-on-header);
		outline-offset: -3px;
	}

	[data-mobile-menu] .opt-foody-mobile-bar svg {
		width: 18px;
		height: 18px;
	}

	/* The language row: "ⓘ Allergens", 44 px tall (the language switch is in the bar above). */
	[data-mobile-menu] .opt-foody-language-row {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 0 12px 0 16px;
	}

	[data-mobile-menu] .opt-foody-al-button--row {
		display: inline-flex;
		padding: 0 8px 0 0;
	}

	body.admin-bar .opt-foody-ordering[data-mobile-menu] {
		--foody-mobile-admin-height: 46px;
	}

	[data-mobile-menu] .opt-foody-storefront-hero {
		padding: 8px 12px;
		border-radius: 0;
	}

	[data-mobile-menu] .opt-foody-storefront-hero__topline {
		display: none; /* The pinned bar above shows the store name and account. */
	}

	[data-mobile-menu] .opt-foody-storefront-hero__main {
		padding-top: 0;
	}

	[data-mobile-menu] .opt-foody-storefront-hero__main h1,
	[data-mobile-menu] .opt-foody-storefront-hero__main > div > p {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	[data-mobile-menu] .opt-foody-storefront-hero__location {
		margin-top: 4px;
		font-size: 11px;
	}

	[data-mobile-menu] .opt-foody-menu-tools {
		display: flex;
		position: relative;
		top: auto;
		z-index: 80;
		flex-direction: column;
		background: var(--foody-glass);
		-webkit-backdrop-filter: var(--foody-glass-filter);
		backdrop-filter: var(--foody-glass-filter);
		border-bottom: 1px solid var(--foody-line);
		box-shadow: 0 1px 0 color-mix(in srgb, var(--foody-surface) 40%, transparent) inset;
	}

	[data-mobile-menu] .opt-foody-mobile-search {
		display: flex;
		order: -1;
		gap: 4px;
		padding: 10px 12px 4px;
	}

	[data-mobile-menu] .opt-foody-mobile-search label {
		display: flex;
		flex: 1;
		min-width: 0;
		align-items: center;
		gap: 8px;
		padding-left: 12px;
		border-radius: 12px;
		background: color-mix(in srgb, var(--foody-ink) 6%, var(--foody-surface));
	}

	[data-mobile-menu] .opt-foody-mobile-search svg {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
		color: var(--foody-muted);
	}

	[data-mobile-menu] .opt-foody-mobile-search input {
		width: 100%;
		min-width: 0;
		height: 44px;
		padding: 8px;
		border: 0;
		border-radius: 12px;
		background: transparent;
		box-shadow: none;
		font-size: 16px;
		color: var(--foody-ink);
	}

	[data-mobile-menu] .opt-foody-mobile-search button {
		min-width: 44px;
		min-height: 44px;
		padding: 8px;
		border: 0;
		background: transparent;
		color: var(--foody-brand-strong);
		font-size: 12px;
	}

	[data-mobile-menu] .opt-foody-menu-switcher {
		margin: 0;
		padding: 0 16px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	[data-mobile-menu] .opt-foody-menu-switcher > span {
		display: none;
	}

	[data-mobile-menu] .opt-foody-menu-switcher > div {
		gap: 24px;
	}

	[data-mobile-menu] .opt-foody-menu-switcher a {
		min-height: 48px;
		padding: 14px 2px;
		border: 0;
		border-radius: 0;
		color: var(--foody-muted);
		background: transparent;
		font-size: 14px;
	}

	[data-mobile-menu] .opt-foody-menu-switcher a[aria-current="page"] {
		color: var(--foody-brand-strong);
		box-shadow: inset 0 -3px var(--foody-brand);
	}

	[data-mobile-menu] .opt-foody-menu-workspace {
		display: grid;
		grid-template-columns: clamp(68px, 19vw, 88px) minmax(0, 1fr);
		align-items: start;
		background: color-mix(in srgb, var(--foody-ink) 5%, var(--foody-surface));
	}

	.opt-foody-ordering[data-mobile-menu] .opt-foody-category-nav {
		position: sticky;
		top: var(--foody-mobile-chrome-height, 0px);
		align-self: start;
		height: calc(100dvh - var(--foody-mobile-chrome-height, 0px) - var(--foody-mobile-dock-height));
		max-height: none;
		min-width: 0;
		margin: 0;
		overflow-y: auto;
		overscroll-behavior-y: contain;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		z-index: 12;
	}

	/* Pointer taps must not inherit the theme's persistent link focus frame. */
	[data-mobile-menu] .opt-foody-category-nav .opt-foody-category-nav__link:focus {
		outline: none;
		box-shadow: none;
	}


	[data-mobile-menu] .opt-foody-category-nav .opt-foody-category-nav__link:focus-visible {
		outline: none;
		box-shadow: none;
	}

	/* Keep touch scrolling, without exposing a desktop-style scrollbar in the app rail. */
	[data-mobile-menu] .opt-foody-category-nav,
	.opt-foody-cart-drawer__scroll {
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	[data-mobile-menu] .opt-foody-category-nav::-webkit-scrollbar,
	.opt-foody-cart-drawer__scroll::-webkit-scrollbar {
		display: none;
	}

	[data-mobile-menu] .opt-foody-category-nav__bar,
	[data-mobile-menu] .opt-foody-category-nav__grid {
		display: block;
		min-height: 0;
		box-shadow: none;
		background: transparent;
	}

	[data-mobile-menu] :is(.opt-foody-category-nav__eyebrow, .opt-foody-category-nav__current, .opt-foody-category-nav__toggle, .opt-foody-category-nav__panel-head, .opt-foody-category-nav__index),
	[data-mobile-menu] .opt-foody-category-nav__link > b {
		display: none;
	}

	[data-mobile-menu] .opt-foody-category-nav__panel {
		position: static;
		width: auto;
		max-height: none;
		padding: 0 0 12px;
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	[data-mobile-menu] .opt-foody-category-nav .opt-foody-category-nav__link {
		position: relative;
		display: flex;
		min-height: 68px;
		align-items: center;
		margin: 0;
		padding: 14px 8px;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--foody-muted);
	}

	[data-mobile-menu] .opt-foody-category-nav .opt-foody-category-nav__link.is-current {
		z-index: 1;
		background: var(--foody-surface);
		color: var(--foody-ink);
	}

	/* Concave corners join the selected rail item to the menu surface. */
	[data-mobile-menu] .opt-foody-category-nav__link:not([hidden]) ~ .opt-foody-category-nav__link.is-current::before,
	[data-mobile-menu] .opt-foody-category-nav__link.is-current::after {
		content: "";
		position: absolute;
		right: 0;
		width: 12px;
		height: 12px;
		pointer-events: none;
	}

	/* Only a preceding visible category needs an upper transition. */
	[data-mobile-menu] .opt-foody-category-nav__link:not([hidden]) ~ .opt-foody-category-nav__link.is-current::before {
		bottom: 100%;
		background: radial-gradient(circle at 0 0, transparent 11.5px, var(--foody-surface) 12px);
	}

	[data-mobile-menu] .opt-foody-category-nav__link.is-current::after {
		top: 100%;
		background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--foody-surface) 12px);
	}

	[data-mobile-menu] .opt-foody-category-nav__item-copy strong {
		font-size: 12px;
		font-weight: 600;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}

	[data-mobile-menu] .opt-foody-category-nav__item-copy small {
		color: var(--foody-muted);
		font-size: 10px;
	}

	[data-mobile-menu] .opt-foody-menu {
		min-width: 0;
		padding: 0 0 var(--foody-mobile-dock-height);
		overflow: visible;
		background: var(--foody-surface);
	}

	[data-mobile-menu] .opt-foody-menu-section {
		margin: 0;
		padding: 0;
		scroll-margin-top: 0;
	}

	[data-mobile-menu] .opt-foody-menu-section > header {
		position: sticky;
		top: var(--foody-mobile-chrome-height, 0px);
		z-index: 4;
		display: block;
		margin: 0;
		padding: 16px 10px 8px;
		border: 0;
		background: var(--foody-surface);
	}

	[data-mobile-menu] .opt-foody-menu-section:first-child > header {
		padding-top: 10px;
	}

	[data-mobile-menu] .opt-foody-menu-section > header h2 {
		font-size: 16px;
		line-height: 1.3;
		letter-spacing: -0.025em;
	}

	[data-mobile-menu] .opt-foody-product-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
		border: 0;
	}

	[data-mobile-menu] .opt-foody-product {
		grid-template-columns: clamp(96px, 27vw, 112px) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr) auto;
		gap: 8px 10px;
		min-height: 0;
		padding: 0 10px 7px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	[data-mobile-menu] .opt-foody-product__image {
		grid-row: 1 / 3;
		align-self: end;
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 1;
		border: 0;
		border-radius: 8px;
	}

	[data-mobile-menu] .opt-foody-product__image img {
		aspect-ratio: 1;
	}

	[data-mobile-menu] .opt-foody-product__content {
		justify-content: start;
		gap: 4px;
		padding: 0;
	}

	[data-mobile-menu] .opt-foody-product__title h3 {
		font-size: 15px;
		line-height: 1.2;
		-webkit-line-clamp: 3;
	}

	[data-mobile-menu] .opt-foody-product__content > p {
		display: -webkit-box;
		margin: 0;
		font-size: 12px;
		line-height: 1.4;
		-webkit-line-clamp: 2;
	}

	[data-mobile-menu] .opt-foody-product__action {
		grid-column: 2;
		align-self: end;
		flex-wrap: wrap;
		gap: 4px;
		padding: 0;
	}

	[data-mobile-menu] .opt-foody-product__price {
		font-size: 16px;
		color: var(--foody-brand-strong);
		line-height: 1.3;
	}

	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control {
		flex-shrink: 0;
		width: auto;
		/* Align the 30px circles to the image while keeping 44px touch targets. */
		margin: -7px -7px -7px auto;
		border: 0;
		border-radius: 0;
	}

	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase],
	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] {
		width: 44px;
		min-width: 44px;
		padding: 0;
	}

	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase]::before,
	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add]::before {
		inset: 7px;
		border-radius: 50%;
	}

	[data-mobile-menu] .opt-foody-menu .opt-foody-product__add-label {
		display: none;
	}

	/* Compact, app-style browsing rail: English on mobile, every language at phone width (set by storefront.js). */
	.opt-foody-ordering[data-compact-rail] .opt-foody-menu-workspace {
		display: block;
		background: var(--foody-surface);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav {
		display: flex;
		height: 52px;
		margin: 0;
		overflow: visible;
		background: var(--foody-glass);
		-webkit-backdrop-filter: var(--foody-glass-filter);
		backdrop-filter: var(--foody-glass-filter);
		border-bottom: 1px solid var(--foody-line);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__bar {
		display: block;
		width: 52px;
		min-width: 52px;
		flex: 0 0 52px;
	}

	/* The rail's ⓘ, shown (storefront: allergen-key.js) once the language row has scrolled under the pinned bar. */
	.opt-foody-ordering[data-compact-rail] .opt-foody-al-button--strip:not([hidden]) {
		display: inline-flex;
		flex: none;
		width: 44px;
		align-self: center;
		justify-content: center;
		margin-right: 2px;
		padding: 0;
	}

	.opt-foody-al-button--strip .opt-foody-al-ic {
		width: 20px;
		height: 20px;
	}

	/* The vertical category list (Chinese, 481-700 px): the same ⓘ stays at the list's foot. */
	.opt-foody-ordering[data-mobile-menu]:not([data-compact-rail]) .opt-foody-al-button--strip:not([hidden]) {
		display: flex;
		position: sticky;
		bottom: 0;
		width: 100%;
		justify-content: center;
		background: var(--foody-surface);
	}

	.opt-foody-ordering[data-compact-rail] :is(.opt-foody-category-nav__eyebrow, .opt-foody-category-nav__current) {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__directory {
		display: block;
		height: 52px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__toggle {
		display: grid;
		width: 52px;
		min-width: 52px;
		height: 52px;
		grid-template-columns: 1fr;
		justify-items: center;
		align-items: center;
		place-items: center;
		padding: 0;
		background: transparent;
		border: 0;
		color: var(--foody-ink);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__toggle > :is(span, b) {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__toggle > i {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__morphicon {
		display: block;
		width: 22px;
		height: 22px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail {
		display: flex;
		height: 52px;
		min-width: 0;
		flex: 1;
		gap: 24px;
		align-items: stretch;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail::-webkit-scrollbar {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		padding: 0 2px;
		color: var(--foody-muted);
		font-size: 15px;
		font-weight: 700;
		letter-spacing: -0.025em;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
		scroll-snap-align: start;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link:first-child {
		padding-left: 0;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link.is-current {
		color: var(--foody-ink);
		box-shadow: inset 0 -3px var(--foody-brand);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link:focus,
	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link:focus-visible {
		outline: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__panel {
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		width: 100%;
		height: calc(100dvh - var(--foody-mobile-chrome-height, 0px) - 53px - var(--foody-mobile-dock-height));
		max-height: none;
		padding: 12px;
		overflow-y: auto;
		border: 1px solid var(--foody-line);
		border-radius: 0 0 18px 18px;
		background: var(--foody-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: 0 18px 30px rgba(45, 29, 24, 0.14);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__panel-head {
		display: flex;
		margin: 0 4px 8px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		background: transparent;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav .opt-foody-category-nav__link {
		display: grid;
		min-height: 56px;
		grid-template-columns: minmax(0, 1fr);
		padding: 9px 10px;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: var(--foody-ink);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__item-copy strong {
		font-size: 13px;
		font-weight: 650;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu {
		padding: 0 16px var(--foody-mobile-dock-height);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu-section > header {
		position: static;
		padding: 18px 0 12px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu-section:first-child > header {
		padding-top: 18px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu-section > header h2 {
		font-size: 23px;
		line-height: 1.1;
		letter-spacing: -0.04em;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product-grid {
		gap: 0;
		border-top: 1px solid color-mix(in srgb, var(--foody-ink) 9%, transparent);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product {
		grid-template-columns: minmax(0, 1fr) 116px;
		grid-template-rows: 140px;
		gap: 0 14px;
		min-height: 0;
		padding: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--foody-ink) 9%, transparent);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product + .opt-foody-product {
		padding-top: 22px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__image {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		width: 116px;
		height: 116px;
		margin: 0;
		border-radius: 12px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__content {
		grid-column: 1;
		grid-row: 1;
		justify-content: center;
		padding: 0;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__title h3 {
		font-size: 19px;
		line-height: 1.23;
		-webkit-line-clamp: 2;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__content > p {
		display: -webkit-box;
		font-size: 13px;
		line-height: 1.38;
		-webkit-line-clamp: 2;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__action {
		display: contents;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__action > .opt-foody-product__price {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__price--inline {
		display: block;
		align-self: flex-start;
		margin: 10px 0 0;
		color: var(--foody-brand-strong);
		font-size: 18px;
		line-height: 1.1;
		text-align: left;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-product__price del {
		display: inline;
		margin-left: 7px;
		font-size: 13px;
		font-weight: 500;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		justify-self: end;
		margin: -7px 6px 12px 0;
		z-index: 1;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active {
		position: relative;
		isolation: isolate;
		grid-template-columns: 44px 16px 44px;
		width: 104px;
		min-width: 104px;
		overflow: visible;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control__pill {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active .opt-foody-product-control__pill {
		display: block;
		position: absolute;
		top: 7px;
		right: 0;
		z-index: -1;
		width: 104px;
		height: 30px;
		border: 1px solid var(--foody-line);
		border-radius: 999px;
		background: var(--foody-surface);
		box-shadow: 0 3px 9px rgba(45, 29, 24, 0.13);
		transform-origin: right center;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active button,
	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active [data-product-quantity] {
		color: var(--foody-ink);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active button::before {
		display: none;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control.is-active > [data-product-quantity] {
		width: 16px;
		min-width: 16px;
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase]::before,
	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add]::before {
		background: var(--foody-surface);
		border: 1px solid var(--foody-line);
		box-shadow: 0 3px 9px rgba(45, 29, 24, 0.13);
	}

	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase] .opt-foody-product__add-icon,
	.opt-foody-ordering[data-compact-rail] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] .opt-foody-product__add-icon {
		color: var(--foody-ink);
	}

	[data-mobile-menu] .opt-foody-menu-search-empty {
		padding: 28px 16px;
		font-size: 14px;
		color: var(--foody-muted);
	}

	[data-mobile-menu] .opt-foody-floating-cart.opt-foody-action-dock,
	[data-mobile-menu] .opt-foody-floating-cart.opt-foody-action-dock:hover {
		position: fixed;
		inset: auto 0 0;
		z-index: 90;
		grid-template-columns: minmax(80px, 1fr) minmax(156px, 1fr);
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--foody-glass);
		border-top: 1px solid var(--foody-line);
		border-radius: 0;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
	}

	[data-mobile-menu] .opt-foody-floating-cart .opt-foody-action-dock__total {
		color: var(--foody-ink) !important;
	}

	[data-mobile-menu] .opt-foody-floating-cart .opt-foody-action-dock__total strong {
		font-size: 22px !important;
	}

	[data-mobile-menu] .opt-foody-floating-cart .opt-foody-action-dock__action {
		color: var(--foody-on-brand) !important;
		background: var(--foody-brand) !important;
		border-color: var(--foody-brand) !important;
		border-radius: 24px !important;
	}

	[data-mobile-menu] [hidden] {
		display: none !important;
	}
}

/* The ordering app shows no focus treatment after pointer taps; keyboard focus gets the two-colour ring below. */
.opt-foody-ordering :focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

/* A tapped rail link may retain focus, but its current-category marker must remain visible (with the ring too on keyboard focus). */
.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link.is-current:is(:focus, :focus-visible) {
	box-shadow: inset 0 -3px var(--foody-brand) !important;
}

.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail-link.is-current:focus-visible:focus-visible {
	box-shadow: inset 0 -3px var(--foody-brand), 0 0 0 2px #fffdf7, 0 0 0 5px #2d1d18 !important;
}

/* One app-style product stepper for Chinese, English, desktop, and mobile. */
.opt-foody-ordering .opt-foody-product-control {
	position: relative;
	flex: 0 0 auto;
	isolation: isolate;
	align-self: end;
}

.opt-foody-ordering .opt-foody-product-control.is-active {
	display: grid;
	grid-template-columns: 44px 16px 44px;
	width: 104px;
	min-width: 104px;
	height: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.opt-foody-ordering .opt-foody-product-control.is-active .opt-foody-product-control__pill {
	display: block;
	position: absolute;
	top: 7px;
	right: 0;
	z-index: -1;
	width: 104px;
	height: 30px;
	border: 1px solid var(--foody-line);
	border-radius: 999px;
	background: var(--foody-surface);
	box-shadow: 0 3px 9px rgba(45, 29, 24, 0.13);
	transform-origin: right center;
}

.opt-foody-ordering .opt-foody-product-control.is-active :is(button, [data-product-quantity]) {
	color: var(--foody-ink);
}

.opt-foody-ordering .opt-foody-product-control.is-active button::before {
	display: none;
}

.opt-foody-ordering .opt-foody-product-control:not(.is-active) {
	display: flex;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
}

.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-product-increase],
.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] {
	display: grid;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	place-items: center;
	color: var(--foody-ink);
	border: 0;
	border-radius: 50%;
}

.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-product-increase]::before,
.opt-foody-ordering .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add]::before {
	inset: 7px;
	background: var(--foody-surface);
	border: 1px solid var(--foody-line);
	box-shadow: 0 3px 9px rgba(45, 29, 24, 0.13);
}

.opt-foody-ordering .opt-foody-product-control .opt-foody-product__add-label {
	display: none;
}

/* Keep the add button on the same right edge before and after the pill expands. */
@media (max-width: 700px) {
	.opt-foody-ordering--lang-zh[data-mobile-menu] .opt-foody-menu .opt-foody-product-control {
		margin-right: 0;
	}

	/* The inactive circle shares the pill's visible right edge, not its hit-area inset. */
	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase],
	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add] {
		padding-left: 14px;
	}

	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-product-increase]::before,
	[data-mobile-menu] .opt-foody-menu .opt-foody-product-control:not(.is-active) [data-fixed-bundle-add]::before {
		inset: 7px 0 7px 14px;
	}
}

@media (min-width: 701px) {
	.opt-foody-ordering .opt-foody-product__action:has(> .opt-foody-product-control) {
		display: grid;
		grid-template-rows: auto auto;
		align-content: center;
		align-items: center;
		justify-items: center;
		gap: 10px;
		padding: 0 8px;
	}

	.opt-foody-ordering .opt-foody-product__action:has(> .opt-foody-product-control) > .opt-foody-product__price {
		grid-column: 1;
		grid-row: 1;
		align-self: auto;
		text-align: center;
	}

	.opt-foody-ordering .opt-foody-product__action:has(> .opt-foody-product-control) > .opt-foody-product-control {
		grid-column: 1;
		grid-row: 2;
		align-self: auto;
		transform: none;
	}

	.opt-foody-ordering .opt-foody-product__action:has(> .opt-foody-product-control) > .opt-foody-product-control:not(.is-active) {
		margin-right: 0;
	}
}

.opt-foody-ordering .opt-foody-product-control button:focus {
	outline: 0;
	box-shadow: none;
}

/* Cart quantities and its mobile dock use the same controls as the menu list. */
.opt-foody-cart-drawer .opt-foody-quantity {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 40px 24px 40px;
	width: 104px;
	min-width: 104px;
	height: 44px;
	min-height: 44px;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.opt-foody-cart-drawer .opt-foody-quantity::before {
	content: "";
	position: absolute;
	top: 7px;
	right: 0;
	z-index: -1;
	width: 104px;
	height: 30px;
	border: 1px solid var(--foody-line);
	border-radius: 999px;
	background: var(--foody-surface);
	box-shadow: 0 3px 9px rgba(45, 29, 24, 0.13);
}

.opt-foody-cart-drawer .opt-foody-quantity :is(button, span),
.opt-foody-cart-drawer .opt-foody-quantity button:last-child {
	color: var(--foody-ink);
}

.opt-foody-cart-drawer .opt-foody-quantity button {
	width: 40px;
	min-width: 40px;
}

.opt-foody-cart-drawer .opt-foody-quantity > span {
	width: 24px;
	min-width: 24px;
	font-size: 12px;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.opt-foody-cart-drawer .opt-foody-cart-item__remove svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.opt-foody-cart-drawer .opt-foody-quantity button::before {
	display: none;
}

.opt-foody-cart-drawer .opt-foody-checkout-button > span {
	display: inline !important;
}

.opt-foody-cart-drawer .opt-foody-cart-item {
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	min-height: 96px;
	padding: 12px 0;
	align-items: stretch;
}

.opt-foody-cart-drawer .opt-foody-cart-item__image {
	width: 92px;
	height: 92px;
	border-radius: 12px;
}

.opt-foody-cart-drawer .opt-foody-cart-item__main {
	display: flex;
	position: relative;
	min-height: 92px; /* Grows with a long allergen row. */
	flex-direction: column;
}

.opt-foody-cart-drawer .opt-foody-cart-item.no-image .opt-foody-cart-item__main {
	grid-column: 1 / -1;
}

.opt-foody-cart-drawer .opt-foody-cart-item__title-row {
	position: relative;
	display: flex;
	padding-right: 104px;
	gap: 8px;
	align-items: flex-start;
	justify-content: space-between;
}

.opt-foody-cart-drawer .opt-foody-cart-item__name {
	font-size: 17px;
	font-weight: 650;
	line-height: 1.25;
}

.opt-foody-cart-drawer .opt-foody-cart-item__selections {
	display: -webkit-box;
	margin: 5px 0 0;
	padding-right: 112px; /* Clear of the price and stepper (104 px, absolute at the line's bottom right), like the allergen row. */
	overflow: hidden;
	color: var(--foody-muted);
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.opt-foody-cart-drawer .opt-foody-cart-item__unit-price {
	display: block;
	max-width: calc(100% - 112px);
	margin-top: 4px;
	color: var(--foody-muted);
	font-size: 12px;
	line-height: 1.35;
}

.opt-foody-cart-drawer .opt-foody-cart-item__controls {
	position: absolute;
	right: 0;
	bottom: -6px;
	width: 104px;
}

.opt-foody-cart-drawer .opt-foody-cart-item__action {
	display: grid;
	grid-template-rows: 18px 44px;
	gap: 0;
	width: 104px;
	height: 64px;
	justify-items: end;
}

.opt-foody-cart-drawer .opt-foody-cart-item__controls .opt-foody-cart-item__total {
	grid-column: auto;
	grid-row: 1;
	justify-self: end;
	align-self: end;
	margin: 0;
	color: var(--foody-brand-strong);
	font-size: 16px;
	font-weight: 650;
	line-height: 1.1;
	white-space: nowrap;
}

.opt-foody-cart-drawer .opt-foody-cart-item__remove {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 24px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--foody-muted);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.opt-foody-cart-drawer .opt-foody-cart-item {
		grid-template-columns: 82px minmax(0, 1fr);
		min-height: 86px;
	}

	.opt-foody-cart-drawer .opt-foody-cart-item__image {
		width: 82px;
		height: 82px;
	}

	.opt-foody-cart-drawer .opt-foody-cart-item__main {
		width: auto;
		min-height: 82px;
	}

	.opt-foody-cart-drawer .opt-foody-cart-item__name {
		font-size: 16px;
	}
}

@media (max-width: 700px) {
	[data-mobile-menu] .opt-foody-cart-drawer > .opt-foody-action-dock,
	[data-mobile-menu] .opt-foody-cart-drawer > .opt-foody-action-dock:hover {
		grid-template-columns: minmax(80px, 1fr) minmax(156px, 1fr);
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--foody-line);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
	}

	[data-mobile-menu] .opt-foody-cart-drawer .opt-foody-action-dock__total strong {
		font-size: 22px !important;
	}
}

/* GSAP owns overlay visibility; never delay display:none after cleanup. */
.opt-foody-cart-layer,
.opt-foody-product-preview-layer,
.opt-foody-cart-drawer,
.opt-foody-product-preview {
	animation: none;
	transition: none;
}

.opt-foody-motion-ready [data-foody-motion-press] {
	transition-property: color, background-color, border-color, box-shadow;
}

.opt-foody-admin .opt-foody-savebar.has-unsaved-changes {
	border-color: var(--foody-brand, #b33a2b);
}

/* Merchant console: no ring on pointer focus; keyboard focus (:focus-visible) keeps the console ring (admin.css). */
.opt-foody-admin :is(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}

/*
 * Storefront and checkout keyboard focus: one two-colour ring on :focus-visible only. A 2px cream inner and a 5px ink outer shadow, so at
 * least one of them meets 3:1 against any brand colour or page background; the transparent 3px outline takes the system focus colour in
 * forced-colours mode, where shadows are dropped. Pointer focus shows nothing (text fields still show it on click, as browsers do).
 */
:where(
	.opt-foody-ordering,
	.opt-foody-pickup-picker,
	.opt-foody-cart-drawer,
	.opt-foody-hosted-payment,
	.opt-foody-action-dock,
	.opt-foody-order-status,
	body.opt-foody-app-shell,
	body.opt-foody-account-app,
	body.opt-foody-checkout-app,
	body.opt-foody-order-received-app
) :is(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
}

:is(
	.opt-foody-ordering,
	.opt-foody-pickup-picker,
	.opt-foody-cart-drawer,
	.opt-foody-hosted-payment,
	.opt-foody-action-dock,
	.opt-foody-order-status,
	body.opt-foody-app-shell,
	body.opt-foody-account-app,
	body.opt-foody-checkout-app,
	body.opt-foody-order-received-app
) :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex='-1'])):focus-visible:focus-visible {
	outline: 3px solid transparent !important;
	outline-offset: 0 !important;
	box-shadow: 0 0 0 2px #fffdf7, 0 0 0 5px #2d1d18 !important;
}

/* A script-focused container (a dialog or panel with tabindex -1) is not a control: it gets no ring. */
:is(.opt-foody-ordering, .opt-foody-pickup-picker, .opt-foody-cart-drawer, body.opt-foody-checkout-app, body.opt-foody-account-app) [tabindex='-1']:not(:is(a, button, input, select, textarea, summary)):focus-visible {
	outline: none;
}

/* The dish photo fills its card edge to edge inside overflow:hidden, so its ring is drawn inside the photo instead of outside it. */
.opt-foody-ordering button.opt-foody-product__image:focus-visible:focus-visible:focus-visible {
	box-shadow: none !important;
}

.opt-foody-ordering button.opt-foody-product__image {
	position: relative;
}

.opt-foody-ordering button.opt-foody-product__image:focus-visible::after {
	display: block;
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px #fffdf7, inset 0 0 0 5px #2d1d18;
	content: "";
	pointer-events: none;
}

/* A dish title sits in a clamped (overflow:hidden) heading, so the heading wears the ring while its button has focus. */
.opt-foody-ordering .opt-foody-product__title h3 button:focus-visible:focus-visible:focus-visible {
	box-shadow: none !important;
}

.opt-foody-ordering .opt-foody-product__title h3:has(> button:focus-visible) {
	border-radius: 4px;
	outline: 3px solid transparent;
	box-shadow: 0 0 0 2px #fffdf7, 0 0 0 5px #2d1d18;
}

/* The compact category rail scrolls sideways (overflow), so it keeps 6px of room around its links for the ring without moving them. */
@media (max-width: 700px) {
	.opt-foody-ordering[data-compact-rail] .opt-foody-category-nav__rail {
		box-sizing: content-box;
		margin: -6px;
		padding: 6px;
		scroll-padding-inline: 6px;
	}

	/* The phone dish card has no border, radius or padding, so its edge must not clip the title ring (the photo clips itself). */
	.opt-foody-ordering[data-compact-rail] .opt-foody-product,
	[data-mobile-menu] .opt-foody-product {
		overflow: visible;
	}
}

/* Checkout choices are visually hidden radios: their visible label box wears the ring (the fulfillment tabs keep their selected marker). */
body.opt-foody-checkout-app :is(.opt-foody-pickup-methods, .opt-foody-delivery-tip__choices) input:focus-visible + span {
	outline: 3px solid transparent !important;
	box-shadow: 0 0 0 2px #fffdf7, 0 0 0 5px #2d1d18 !important;
}

/* The Delivery/Pickup tabs fill an overflow:hidden strip edge to edge, so their ring is drawn inside the tab: dark at the edge, cream inside it, and the brand active bar kept just above the ring. */
body.opt-foody-checkout-app .opt-foody-fulfillment-methods input:focus-visible + span {
	outline: 3px solid transparent !important;
	box-shadow: inset 0 0 0 2px #2d1d18, inset 0 0 0 4px #fffdf7, inset 0 -7px 0 var(--foody-brand) !important;
}

/* Dark areas (the header) swap the two colours. */
:is(.opt-foody-storefront-hero, .opt-foody-checkout-appbar, .opt-foody-account-appbar) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible:focus-visible:focus-visible:focus-visible {
	box-shadow: 0 0 0 2px #2d1d18, 0 0 0 5px #fffdf7 !important;
}

/* Keep WordPress lifecycle and URLs intact while the merchant workspace changes without a visual jump. */
@view-transition {
	navigation: auto;
}

.opt-foody-console-nav {
	view-transition-name: opt-foody-admin-navigation;
}

::view-transition-old(opt-foody-admin-navigation),
::view-transition-new(opt-foody-admin-navigation) {
	animation: none;
}

::view-transition-group(root) {
	animation-duration: 180ms;
	animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.opt-foody-unsaved-label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 650;
	color: var(--foody-brand-strong, #8f2d24);
}

@media (max-width: 700px) {
	.opt-foody-admin .opt-foody-savebar.has-unsaved-changes {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(root),
	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none !important;
	}

	.opt-foody-cart-layer,
	.opt-foody-product-preview-layer,
	.opt-foody-cart-drawer,
	.opt-foody-product-preview,
	.opt-foody-category-nav__panel {
		animation: none !important;
		transition: none !important;
	}
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
	.opt-foody-ordering,
	body.opt-foody-checkout-app,
	body.opt-foody-account-app {
		--foody-glass: var(--foody-surface);
		--foody-glass-filter: none;
	}

	.opt-foody-category-nav,
	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-checkout-appbar,
	body.opt-foody-account-app .opt-foody-account-appbar,
	.opt-foody-admin .opt-foody-savebar {
		background: var(--foody-surface, #fff);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.opt-foody-floating-cart.opt-foody-action-dock,
	.opt-foody-cart-drawer > .opt-foody-action-dock {
		background: var(--foody-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.opt-foody-cart-backdrop,
	.opt-foody-cart-backdrop:hover,
	.opt-foody-cart-backdrop:focus-visible,
	.opt-foody-product-preview__backdrop,
	.opt-foody-product-preview__backdrop:hover,
	.opt-foody-product-preview__backdrop:focus-visible {
		background: rgba(0, 0, 0, 0.65);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Compact checkout: segmented fulfillment, concise timing, and paired address fields. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker--checkout {
	display: flex !important;
	flex-direction: column;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods {
	order: -2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 14px;
	padding: 4px;
	background: color-mix(in srgb, var(--foody-ink) 7%, var(--foody-surface));
	border-radius: 14px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods label > span {
	min-height: 50px;
	align-items: center;
	padding: 9px 12px;
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 10px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods small {
	display: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input:checked + span {
	color: var(--foody-ink);
	background: var(--foody-surface);
	box-shadow: inset 0 -3px 0 var(--foody-brand);
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input:focus-visible + span {
	outline: 0;
	box-shadow: inset 0 -3px 0 var(--foody-brand);
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro {
	order: -1;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro > div {
	display: grid;
	width: 100%;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px 14px;
	align-items: baseline;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro p {
	display: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro small {
	margin: 0;
	text-align: right;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods {
	gap: 8px;
	margin-top: 12px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods label > span {
	min-height: 52px;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods small {
	margin: 0 0 0 auto;
	text-align: right;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods input:checked + span,
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods input:focus-visible + span {
	color: var(--foody-ink);
	background: var(--foody-wash);
	border-color: var(--foody-brand);
	box-shadow: none;
	outline: 0;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-form > * {
	min-width: 0;
	margin: 0 !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-form > :is(.wc-block-components-address-form__country, .wc-block-components-address-form__address_1, .wc-block-components-address-form__address_2, .wc-block-components-address-form__address_2-toggle, .wc-block-components-address-form__address_2-hidden-input) {
	grid-column: 1 / -1;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select) {
	min-height: 46px !important;
	box-shadow: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select):focus {
	border-color: var(--foody-brand) !important;
	outline: 0;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-card {
	padding: 12px 14px !important;
	border-color: var(--foody-line) !important;
	border-radius: 12px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-card__edit:focus-visible {
	outline: 0;
	box-shadow: none;
}

/* Woo Blocks registers wallet UI after native gateways; retain the checkout payment policy visually. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) #payment-method .wc-block-components-radio-control {
	display: flex;
	flex-direction: column;
}

/* CSS ordering makes Wallet visually first even though Woo still marks it as the last DOM option. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) #payment-method .wc-block-components-radio-control::after {
	border: 1px solid var(--foody-line) !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) #payment-method .wc-block-components-radio-control-accordion-option:has(input[value="opt_foody_wallet"]) {
	order: 1;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) #payment-method .wc-block-components-radio-control-accordion-option:has(input[value="stripe"]) {
	order: 2;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) #payment-method .wc-block-components-radio-control-accordion-option:has(input[value="cod"]) {
	order: 3;
}

@media (max-width: 760px) {
	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__main > :is(.opt-foody-checkout-phone, .opt-foody-pickup-picker--checkout) {
		width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-checkout-phone {
		min-height: 56px;
		padding: 10px 12px !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker--checkout {
		padding: 12px !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro > div {
		gap: 4px 10px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro h2 {
		font-size: 17px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker__intro small {
		font-size: 10px;
		line-height: 1.3;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods {
		grid-template-columns: 1fr;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods label > span {
		min-height: 48px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-methods small {
		max-width: 68%;
		font-size: 10px;
		line-height: 1.3;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-address-form {
		gap: 8px;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) :is(.wc-block-components-checkout-step, .wc-block-checkout__order-notes) {
		padding: 12px 14px !important;
	}
}

/* Pickup and Delivery are tabs of one connected checkout panel. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-pickup-picker--checkout {
	gap: 0;
	margin-bottom: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	background: var(--foody-surface) !important;
	border: 0 !important;
	border-radius: 32px 32px 0 0;
	box-shadow: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: color-mix(in srgb, var(--foody-ink) 7%, var(--foody-surface));
	border-radius: 0;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods label {
	z-index: 1;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods label > span {
	position: relative;
	z-index: 1;
	min-height: 58px;
	overflow: visible;
	background: transparent !important;
	border-radius: 0 !important;
	transition: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input:checked + span {
	z-index: 2;
	background: var(--foody-surface) !important;
	box-shadow: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input:focus-visible + span {
	box-shadow: none;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input[value="delivery"]:checked + span {
	border-radius: 0 32px 0 0 !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input[value="delivery"]:checked + span::after {
	position: absolute;
	right: -32px;
	bottom: 0;
	width: 32px;
	height: 32px;
	pointer-events: none;
	content: "";
	border-bottom-left-radius: 32px;
	box-shadow: -16px 16px 0 16px var(--foody-surface);
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input[value="pickup"]:checked + span {
	border-radius: 32px 0 0 !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods input[value="pickup"]:checked + span::before {
	position: absolute;
	bottom: 0;
	left: -32px;
	width: 32px;
	height: 32px;
	pointer-events: none;
	content: "";
	border-bottom-right-radius: 32px;
	box-shadow: 16px 16px 0 16px var(--foody-surface);
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-details {
	display: flex;
	flex-direction: column;
	padding: 14px;
	background: var(--foody-surface);
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-details .opt-foody-pickup-picker__intro {
	order: initial;
}

body.opt-foody-checkout-app[data-opt-foody-fulfillment="pickup"] :is(#shipping-fields, #shipping-option, .wp-block-woocommerce-checkout-shipping-method-block, .wp-block-woocommerce-checkout-pickup-options-block) {
	display: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	flex-direction: column;
	gap: 0;
	margin: 0 !important;
	padding: 0 14px 14px;
	overflow: hidden;
	background: var(--foody-surface);
	border-radius: 0 0 32px 32px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form > * {
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form > :is(.wc-block-components-checkout-step, .wc-block-checkout__terms) {
	padding: 16px 6px !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__order-notes {
	order: 80;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__terms {
	order: 81;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__payment-method {
	order: 90;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__actions {
	order: 100;
}

/* The fulfillment choice owns the whole checkout page below it. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__main {
	display: flex !important;
	flex-direction: column;
	gap: 0 !important;
	overflow: hidden;
	background: var(--foody-surface);
	border-radius: 32px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__main > .opt-foody-pickup-picker--checkout {
	display: contents !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-methods {
	order: 0;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__main > .opt-foody-checkout-phone {
	order: 1;
	width: 100% !important;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 16px 20px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .opt-foody-fulfillment-details {
	order: 2;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form {
	order: 3;
}

@media (max-width: 760px) {
	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) {
		background: var(--foody-bg);
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-components-sidebar-layout {
		background: var(--foody-bg) !important;
	}

	body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__main {
		width: 100% !important;
		margin: 0 0 18px !important;
		background: var(--foody-surface) !important;
		border-radius: 28px;
	}
}

/* 0.74.19: the fulfillment tabs, time, phone and rewards cards sit inside the checkout form (DOM order = visual order), as flat rows of its single surface. */
body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form {
	border-radius: 32px;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form > :is(.opt-foody-pickup-picker--details, .opt-foody-checkout-phone, .opt-foody-redemption) {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
	padding: 16px 6px !important;
	border-top: 1px solid var(--foody-line) !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form > .opt-foody-pickup-picker--tabs {
	width: calc(100% + 28px) !important;
	max-width: none !important;
	margin: 0 -14px 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 32px 32px 0 0 !important;
}

body.opt-foody-checkout-app:not(.opt-foody-order-received-app) .wc-block-checkout__form > .opt-foody-pickup-picker--tabs + .opt-foody-pickup-picker--details {
	border-top: 0 !important;
}

/* Pickup has no delivery row in the summary, even while the cart still reports it needs shipping. Presentation only. */
body.opt-foody-checkout-app[data-opt-foody-fulfillment="pickup"] .wp-block-woocommerce-checkout-order-summary-shipping-block {
	display: none !important;
}

/* Choosing delivery: the time block waits where the address form will mount, so nothing jumps (storefront.js holdAddressPlace). */
body.opt-foody-checkout-app.opt-foody-address-pending .wc-block-checkout__form > .opt-foody-pickup-picker--details {
	padding-top: calc(var(--opt-foody-address-place, 432px) + 16px) !important;
}

/* From choosing delivery until the first quote answer, the hint keeps its line (role=status stays on the element): the answer fills it. */
body.opt-foody-checkout-app.opt-foody-hint-pending .opt-foody-pickup-status[hidden] {
	display: flex !important;
	visibility: hidden;
}

/* u3a (approved mockup p12): one console gutter, order cards at phone widths, KPI tiles that never clip, 44 px targets and readable Chinese. Last in the cascade on purpose; append further fixes below. */
.opt-foody-admin {
	--console-gutter: 16px;
}

/* Desktop keeps the order table: the "More" menu's actions stay in the row and its toggle is hidden. */
@media (min-width: 783px) {
	.opt-foody-order-more-toggle {
		display: none !important;
	}

	.opt-foody-order-more {
		display: contents;
	}

	.opt-foody-order-table .opt-foody-order-more > small {
		display: block;
		max-width: 220px;
		margin-top: 3px;
		overflow: hidden;
		color: var(--foody-admin-muted);
		font-size: 11px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (min-width: 600px) and (max-width: 782px) {
	.opt-foody-admin {
		--console-gutter: 24px;
	}
}

@media (max-width: 782px) {
	/* One gutter and one width for every block, so left edges line up (they were 12–50 px apart at 390 and 768). */
	.opt-foody-admin > :not(.opt-foody-console-nav):not(.opt-foody-console-bar):not(.opt-foody-console-scrim):not(.opt-foody-toast-region):not(dialog) {
		box-sizing: border-box;
		width: auto;
		max-width: none;
		margin-right: var(--console-gutter);
		margin-left: var(--console-gutter);
	}

	.opt-foody-toast-region:not(.is-floating) {
		margin-inline: var(--console-gutter);
	}

	/* 44 px touch targets. */
	.opt-foody-admin .button,
	.opt-foody-admin button:not([data-settings-tab]),
	.opt-foody-admin input[type="submit"],
	.opt-foody-admin select,
	.opt-foody-admin input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
	.opt-foody-admin .opt-foody-order-table .button,
	.opt-foody-admin .opt-foody-catalog-table .button {
		min-height: 44px;
	}

	.opt-foody-order-filters a,
	.opt-foody-workspace-tabs a,
	.opt-foody-console-subnav a,
	.opt-foody-admin-language button {
		display: inline-flex;
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
	}

	/* The filter strip scrolls sideways: a fade at the end says there is more. */
	.opt-foody-order-filters {
		padding-right: 40px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
	}

	.opt-foody-order-filters a {
		flex: none;
		font-size: 13px;
	}

	/* Order cards: the queue and the dashboard's Next orders, one card per order, no sideways scroll. */
	.opt-foody-admin .opt-foody-panel:is(.opt-foody-panel--all-orders, .opt-foody-panel--orders) {
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.opt-foody-admin .opt-foody-panel--orders .opt-foody-panel__heading {
		padding-right: 0;
		padding-left: 0;
	}

	[data-foody-order-queue] .opt-foody-order-table-wrap {
		overflow: visible;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	[data-foody-order-queue] .opt-foody-order-table,
	[data-foody-order-queue] .opt-foody-order-table tbody {
		display: block;
	}

	[data-foody-order-queue] .opt-foody-order-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	[data-foody-order-queue] .opt-foody-order-table tbody tr:not(.opt-foody-order-stop-row) {
		display: grid;
		grid-template-areas:
			"fulfil total"
			"status status"
			"order order"
			"customer customer"
			"placed placed"
			"actions actions";
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		margin-top: 10px;
		padding: 12px 14px;
		background: #fffdf7;
		border: 1px solid #dfd0c2;
		border-radius: 14px;
	}

	[data-foody-order-queue] .opt-foody-order-table tbody tr.needs-attention {
		box-shadow: inset 4px 0 0 var(--foody-admin-coral);
	}

	[data-foody-order-queue] .opt-foody-order-table td {
		display: block;
		min-width: 0;
		padding: 0;
		border: 0;
	}

	[data-foody-order-queue] .opt-foody-order-table td > small {
		max-width: none;
		white-space: normal;
	}

	.opt-foody-order-cell--fulfil {
		grid-area: fulfil;
		font-size: 15px;
	}

	.opt-foody-order-cell--total {
		grid-area: total;
		font-size: 17px;
		font-weight: 800;
		font-variant-numeric: tabular-nums;
		text-align: right;
		white-space: nowrap;
	}

	.opt-foody-order-cell--status {
		grid-area: status;
	}

	.opt-foody-order-cell--order {
		grid-area: order;
	}

	.opt-foody-order-cell--customer {
		grid-area: customer;
	}

	.opt-foody-order-cell--placed {
		grid-area: placed;
	}

	[data-foody-order-queue] .opt-foody-order-cell--order > a {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
		font-size: 15px;
	}

	[data-foody-order-queue] td.opt-foody-order-cell--actions {
		display: flex;
		grid-area: actions;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
	}

	/* The one next step (Accept, Ready for pickup or delivery, Picked up) takes the row; the rest are under ⋯ More. */
	.opt-foody-order-cell--actions > .opt-foody-order-action {
		flex: 1 1 auto;
		margin: 0;
	}

	.opt-foody-order-cell--actions > .opt-foody-order-action .button {
		width: 100%;
		color: #fff;
		background: #b33a2b;
		border-color: #b33a2b;
	}

	.opt-foody-order-cell--actions > .opt-foody-order-action .opt-foody-order-action--confirmed {
		background: #1f5a3d;
		border-color: #1f5a3d;
	}

	.opt-foody-order-more-toggle {
		display: inline-grid !important;
		width: 44px;
		padding: 0 !important;
		place-items: center;
	}

	.opt-foody-order-more-toggle svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
	}

	[data-order-more][aria-expanded="false"] + .opt-foody-order-more {
		display: none;
	}

	.opt-foody-order-more {
		display: flex;
		flex: 1 0 100%;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 10px;
		border-top: 1px solid #eadfd4;
	}

	.opt-foody-order-more .opt-foody-order-action {
		margin: 0;
	}

	.opt-foody-order-more > small {
		flex-basis: 100%;
		color: var(--foody-admin-muted);
		font-size: 12px;
	}

	/* Cancel and Reject open inside the card: the reason form joins the card above it. */
	[data-foody-order-queue] .opt-foody-order-table tbody tr:has(+ .opt-foody-order-stop-row:not([hidden])) {
		border-color: #a3271a;
		border-bottom: 0;
		border-radius: 14px 14px 0 0;
	}

	[data-foody-order-queue] .opt-foody-order-table tr.opt-foody-order-stop-row:not([hidden]) {
		display: block;
		padding: 0 14px 14px;
		background: #fffdf7;
		border: 1px solid #a3271a;
		border-top: 1px solid #eadfd4;
		border-radius: 0 0 14px 14px;
	}

	[data-foody-order-queue] .opt-foody-order-stop-row td {
		display: block;
		padding: 12px 0 0;
		border: 0;
	}

	[data-foody-order-queue] .opt-foody-order-stop-form {
		flex-direction: column;
		align-items: stretch;
	}

	[data-foody-order-queue] .opt-foody-order-stop-form select,
	[data-foody-order-queue] .opt-foody-order-stop-form textarea {
		width: 100%;
	}

	/* KPI tiles on phones: two per row, the headline total across the row, the note under the figure. */
	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr)); /* Two columns at every phone and tablet width: auto-fit gave four at 768 and the spans left grey gaps. */
	}

	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics > div {
		min-height: 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 4px;
		padding: 14px 16px;
	}

	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics:not(.opt-foody-sales__kpis) > div:last-child,
	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics:not(.opt-foody-sales__kpis) > div:nth-last-child(2):nth-child(odd) {
		grid-column: 1 / -1; /* The headline total spans the row, and so does a tile that would be left alone beside it. */
	}

	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics strong {
		font-size: 26px;
	}
}

/* KPI tiles on desktop: as many 180 px tiles as fit, figures that shrink and wrap instead of clipping (phones: above). */
@media (min-width: 783px) {
	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	/* The sales summary's six cards: two rows of three, so the drawer card never sits alone beside an empty gap. */
	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics.opt-foody-sales__kpis {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics strong {
		font-size: clamp(22px, 2.2vw, 32px);
	}
}

.opt-foody-admin .opt-foody-metrics.opt-foody-dashboard-metrics strong {
	white-space: normal;
	overflow-wrap: anywhere;
}

/* "Open sales summary": the console link colour, visited too, with a 44 px target. */
.opt-foody-dashboard-metrics__link a,
.opt-foody-dashboard-metrics__link a:visited {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	color: #81261d;
	font-weight: 700;
}

/* Chinese: no letter-spacing or forced capitals on CJK, and no text under 12 px. */
:lang(zh) .opt-foody-admin :is(.opt-foody-queue-live, .opt-foody-queue-live small, .opt-foody-order-table th, .opt-foody-admin__title p, .opt-foody-panel__heading > div > span, .opt-foody-console-nav__group, .opt-foody-sales__group th, .opt-foody-metrics > div > span, .opt-foody-eyebrow, .opt-foody-kicker, .opt-foody-order-table td > small) {
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
}

:lang(zh) .opt-foody-admin .opt-foody-order-filters a {
	font-size: 13px;
}

/* u3a: at 783–1000 px the 260 px section list left the section about 250 px wide, so headings broke one character per line. In that band Store setup and Devices & integrations behave like the phone layout: the list, then one section at a time with a back link (admin-setup-sections.js sets .is-section-open at any width). */
@media (min-width: 783px) and (max-width: 1000px) {
	.opt-foody-setup {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The family tabs (Store setup, Customer accounts, Notifications, Setup checklist) wrap instead of running off the page. */
	.opt-foody-console-subnav {
		flex-wrap: wrap;
	}

	.opt-foody-setup__list {
		position: static;
	}

	.opt-foody-setup:not(.is-section-open) .opt-foody-settings-workspace__content,
	.opt-foody-setup.is-section-open .opt-foody-setup__list {
		display: none;
	}

	.opt-foody-setup.is-section-open .opt-foody-setup__bar {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 12px;
	}

	.opt-foody-setup__bar button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		gap: 4px;
		color: #2d1d18;
		font-weight: 700;
	}

	.opt-foody-setup__bar svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.opt-foody-setup:not(.is-section-open) .opt-foody-setup__list button.is-active {
		color: #3f2f28;
		background: transparent;
	}
}

/* u3a, remaining p12 items: filter chip counts, the compact Pause and the one-row order tools. */
.opt-foody-order-filters a b {
	display: inline-grid;
	min-width: 22px;
	height: 22px;
	margin-left: 6px;
	padding: 0 6px;
	place-items: center;
	color: #5c3806;
	background: #fffdf7;
	border-radius: 11px;
	font-size: 12px;
}

@media (min-width: 783px) {
	.opt-foody-pause-control__toggle {
		display: none !important;
	}

	.opt-foody-pause-control__fields {
		display: contents;
	}
}

@media (max-width: 782px) {
	/* Pause: one compact button; its choices open under it. */
	.opt-foody-pause-control__toggle {
		margin-left: auto;
	}

	[data-pause-toggle][aria-expanded="false"] + .opt-foody-pause-control__fields {
		display: none;
	}

	.opt-foody-pause-control__fields {
		display: flex;
		flex: 1 0 100%;
		flex-direction: column;
		gap: 8px;
	}

	/* Order tools: search and its button on one row, Date filter and Advanced sorting side by side; an open one takes the row. */
	.opt-foody-order-tools {
		display: flex;
		flex-wrap: wrap;
	}

	.opt-foody-order-tools .opt-foody-order-search {
		display: grid;
		flex: 1 0 100%;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 12px;
	}

	.opt-foody-order-search label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.opt-foody-order-search .button-link {
		grid-column: 1 / -1;
	}

	.opt-foody-order-tools :is(.opt-foody-order-date-details, .opt-foody-order-sort-details) {
		flex: 1 1 50%;
		min-width: 0;
	}

	.opt-foody-order-tools .opt-foody-order-sort-details {
		border-left: 1px solid var(--foody-admin-line);
	}

	.opt-foody-order-tools :is(.opt-foody-order-date-details, .opt-foody-order-sort-details)[open] {
		flex-basis: 100%;
		border-left: 0;
	}
}

/* u3a, Design recheck: shorter cards. The placed time is a muted line in the fulfilment cell on phones (the desktop table keeps its Placed column), and card cells are transparent. */
.opt-foody-order-table .opt-foody-order-cell__placed {
	display: none;
}

@media (max-width: 782px) {
	[data-foody-order-queue] .opt-foody-order-table td {
		background: transparent;
	}

	[data-foody-order-queue] .opt-foody-order-table td.opt-foody-order-cell--placed {
		display: none;
	}

	[data-foody-order-queue] .opt-foody-order-table .opt-foody-order-cell__placed {
		display: block;
	}
}

/* Cancel in a queue row is an outlined danger button, not the filled primary used by the next step; its text stays visible. */
.opt-foody-admin .button.opt-foody-order-stop-toggle.is-danger {
	min-height: 44px;
	border: 2px solid #a3271a;
	color: #a3271a;
	background: #fff;
	font-weight: 700;
}

.opt-foody-admin .button.opt-foody-order-stop-toggle.is-danger:hover,
.opt-foody-admin .button.opt-foody-order-stop-toggle.is-danger:focus-visible {
	color: #fff;
	background: #a3271a;
}

/* Panel headings: the description drops under the title when the panel is narrow, instead of squeezing the title to a character per line. */
.opt-foody-panel__heading {
	flex-wrap: wrap;
	gap: 4px 16px;
}

.opt-foody-panel__heading > div,
.opt-foody-panel__heading > p {
	min-width: 0;
}

/* The 260 px basis is a width only in the row layout; the phone layout stacks the heading (admin.css) and it would become a height. */
@media (min-width: 783px) {
	.opt-foody-panel__heading > div,
	.opt-foody-panel__heading > p {
		flex: 1 1 260px;
	}
}
/* Storefront header language switch (approved 2026-11-25): EN｜繁｜简 inline on wide screens, a globe button with the current
   language and a menu on phones. More specific than the header link rules it sits among (hero topline, phone bar). */
.opt-foody-lang {
	position: relative;
	display: inline-flex;
	align-items: center;
	letter-spacing: 0.04em;
	text-transform: none;
}

.opt-foody-lang .opt-foody-lang__inline {
	display: flex;
	align-items: center;
}

.opt-foody-lang .opt-foody-lang__inline a {
	display: grid;
	place-items: center;
	max-width: none;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	opacity: 0.74;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
}

.opt-foody-lang .opt-foody-lang__inline a[aria-current="page"] {
	opacity: 1;
	font-weight: 900; /* Weight and the underline mark the current language, not colour alone. */
	border-bottom-color: currentColor;
}

.opt-foody-lang a:focus-visible,
.opt-foody-lang summary:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--foody-accent) 60%, transparent);
	outline-offset: 1px;
}

.opt-foody-lang .opt-foody-lang__menu {
	display: none;
}

.opt-foody-lang .opt-foody-lang__menu > summary {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	color: inherit;
	font-size: 12.5px;
	font-weight: 800;
	list-style: none;
	cursor: pointer;
	border: 1px solid transparent;
}

.opt-foody-lang .opt-foody-lang__menu > summary::-webkit-details-marker {
	display: none;
}

.opt-foody-lang .opt-foody-lang__menu > summary svg {
	flex: none;
	width: 18px;
	height: 18px;
}

.opt-foody-lang .opt-foody-lang__menu > summary .opt-foody-lang__chevron {
	width: 14px;
	height: 14px;
}

.opt-foody-lang .opt-foody-lang__menu[open] > summary {
	border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.opt-foody-lang .opt-foody-lang__list {
	position: absolute;
	z-index: 95;
	top: calc(100% + 4px);
	right: 0;
	display: grid;
	min-width: 176px;
	padding: 4px 0;
	background: var(--foody-surface, #fff);
	border: 1px solid var(--foody-line, #ddd);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.opt-foody-lang .opt-foody-lang__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: none;
	min-height: 48px;
	padding: 0 14px;
	color: var(--foody-ink, #222);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
	border: 0;
	border-radius: 0;
}

.opt-foody-lang .opt-foody-lang__list a[aria-current="page"] {
	font-weight: 900;
	background: var(--foody-wash, #f3f3f3);
}

.opt-foody-lang .opt-foody-lang__list a svg {
	width: 18px;
	height: 18px;
	color: var(--foody-brand);
}

.opt-foody-lang .opt-foody-lang__list small {
	color: var(--foody-muted, #666);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

@media (max-width: 720px) {
	.opt-foody-lang .opt-foody-lang__inline {
		display: none;
	}

	.opt-foody-lang .opt-foody-lang__menu {
		display: block;
	}
}
