/* 
 * WizResto Zomato-Style Premium UI
 * Prefix: .wr-app
 */

:root {
	--wr-primary: #e23744;       /* Zomato Red */
	--wr-primary-hover: #cb202d;
	/*
	 * The brand colour as an "r, g, b" triple, so the tints below can be built from
	 * it with rgba(). A store can change its whole menu by replacing these three
	 * values: the templates print them from ThemePalette::css(), and every tint,
	 * ring and shadow in this file follows without a single rule being rewritten.
	 *
	 * Kept as three numbers rather than as more colour values because tints have to
	 * be built from one colour at several opacities, and color-mix() cannot be used
	 * here: this menu runs on whatever phone a diner walked in with.
	 */
	--wr-primary-rgb: 226, 55, 68;
	--wr-success: #10B981;
	/*
	 * The page is white, and so are the blocks sitting on it.
	 *
	 * A grey page under white cards was doing the separating, and it made every
	 * screen read as slightly dim: on a phone held at an angle in restaurant
	 * lighting, a grey wash is the first thing the eye finds and the food is the
	 * second. White on white with a soft shadow is the same separation without
	 * the grey, and it leaves the photographs as the only thing with contrast.
	 */
	--wr-bg: #ffffff;
	--wr-surface: #ffffff;
	--wr-text-main: #1c1c1c;
	--wr-text-sub: #696969;
	--wr-border: #e8e8e8;
	--wr-radius: 14px;
	/* Card shadows are theirs: see .wr-product-card. These two are the app's panels. */
	--wr-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .06);
	--wr-shadow-md: 0 10px 28px rgba(16, 24, 40, .12);
}

.wr-app {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background-color: var(--wr-bg);
	color: var(--wr-text-main);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

.wr-app * { box-sizing: border-box; }
.wr-app h1, .wr-app h2, .wr-app h3, .wr-app h4 { margin: 0; font-weight: 700; color: var(--wr-text-main); }
.wr-app p { margin: 0; }
.wr-app .text-muted { color: var(--wr-text-sub) !important; }

/* Container & Layout */
.wr-container {
	max-width: 480px; /* strict mobile constraint */
	margin: 0 auto;
	background: var(--wr-surface);
	min-height: 100vh;
	position: relative;
	/*
	 * Room for the pinned tab bar, and for the cart bar only while the cart bar is
	 * actually there.
	 *
	 * The tab bar is always at the bottom and the cart bar sits above it, but the
	 * cart bar is hidden until something is in the tray. Reserving its height with
	 * an empty tray left a hundred pixels of blank page under the last dish, which
	 * reads as a menu that never finished loading. The script adds .has-cart when
	 * something is in the tray, which is the only thing that changes this.
	 */
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.wr-container.has-cart {
	padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
}

/* Hero Banner */
.wr-hero {
	/* A compact shopfront that grows naturally when the store has more details. */
	min-height: 220px;
	display: flex;
	align-items: flex-end;
	/* A store can drop its own photo behind the store name by setting
	   --wr-hero-image on this element. With nothing set, the default below stands
	   in, so a store that never touches it still gets a finished looking header.
	   A variable rather than an inline background so the template never has to
	   know or repeat the fallback.

	   The fallback is a file in this plugin, not a photograph fetched from an
	   image host. A restaurant's menu was making a request to somebody else's
	   server to draw a header it could not control, which is both a privacy
	   question and a reliability one: an image host that is slow, blocked or
	   filtering makes a menu look broken. It is a generic dining room in daylight,
	   deliberately unremarkable, because it is only ever seen for a moment on a
	   store that has not photographed its own shopfront. */
	background-image: var(--wr-hero-image, url('../img/hero-default.jpg'));
	background-position: center;
	background-size: cover;
	position: relative;
}
.wr-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	/*
	 * Darkest along the bottom edge, which is where the store's name is written: the
	 * store supplies the photograph and it can be any photograph at all, including the
	 * default one whose upper half is a row of white pendant lamps.
	 */
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}
/*
 * What a day the calendar named does when a customer opens the menu.
 *
 * Two layers, and a day gets one of them:
 *
 *   A motif, on the days that name one: petals, clouds with a flash of lightning, a
 *   batsman, a row of lamps, a flag. The shape is built in
 *   templates/partials/theme-flourish.php and what it DOES is here.
 *
 *   The plain band of light, on a day that has a colour but no shape, which is what
 *   summer and Gandhi Jayanti get.
 *
 * Everything below is the same promise, whichever layer runs: one pass, started
 * once, over in a couple of seconds, drawn on the header, animating transform and
 * opacity only so it never reflows and never leaves the main thread. Nothing here is
 * on top of anything a customer taps, and nothing here can delay the menu: it is all
 * CSS, so by the time the first paint happens the shapes are already where they go.
 *
 * There is still no JavaScript in the theme. The server knows what day it is, and
 * writes the colour and the shape into the page as it is served.
 */
@keyframes wr-occasion-sweep {
	from { background-position: 200% 0; }
	to   { background-position: -100% 0; }
}

/* The plain band, only on a day with no motif of its own. */
.wr-app[data-occasion]:not([data-motif]) .wr-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: linear-gradient(105deg,
		rgba(var(--wr-primary-rgb), 0) 45%,
		rgba(var(--wr-primary-rgb), 0.5) 50%,
		rgba(var(--wr-primary-rgb), 0) 55%);
	background-size: 260% 100%;
	background-repeat: no-repeat;
	/* Both, so the band finishes off the left edge and stays there rather than
	   snapping back into view when the animation ends. */
	animation: wr-occasion-sweep 1150ms ease-out 1 both;
}

/* The layer the shapes live in. Clipped by the header, and deaf to taps. */
.wr-flourish {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}
.wr-flourish i {
	position: absolute;
	display: block;
	opacity: 0;
}

/*
 * A soft dark edge on every small shape.
 *
 * Not decoration, and it was not in the first version. The hero is a photograph the
 * store chose, and the default one has white pendant lamps across its upper half,
 * which is exactly where petals and lamps and clouds are drawn: a plain white petal
 * over a white ceiling lamp is invisible, and the flourish looks broken rather than
 * subtle. Two pixels of shadow is enough to hold an edge against a bright window and
 * against a dark shopfront alike, and it is a paint on eight small elements rather
 * than anything on the main thread.
 */
.wr-flourish-petals i,
.wr-flourish-lamp i,
.wr-flourish-clouds i,
.wr-flag-pole,
.wr-flag-cloth {
	box-shadow: 0 0 2px rgba(16, 24, 32, 0.45);
}

/* ------------------------------------------------------------------ petals ---
 * Flowers for the Onam season, Vishu, Pongal and Kerala Piravi.
 *
 * Petals fall and drift, each one a few tenths of a second apart so they arrive as
 * a shower rather than as a row. The colour is the flower's, not the store's: eight
 * petals in the brand colour look like a rendering fault, where marigold, white and
 * magenta look like a pookkalam.
 */
.wr-flourish-petals i {
	top: -16px;
	left: var(--x, 10%);
	width: 13px;
	height: 13px;
	border-radius: 50% 0 50% 50%;
	background: var(--c, #f0a627);
	animation: wr-petal-fall 4.6s ease-in 1 both;
	animation-delay: var(--d, 0s);
}
@keyframes wr-petal-fall {
	0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
	8%   { opacity: 0.95; }
	90%  { opacity: 0.85; }
	100% { opacity: 0; transform: translate3d(34px, 250px, 0) rotate(400deg); }
}

/* ------------------------------------------------------------------ clouds ---
 * A passing shower for the two monsoons: small clouds crossing the header with two
 * flashes of lightning between them, and then it clears up.
 */
.wr-flourish-clouds i {
	top: var(--t, 20%);
	left: 100%;
	width: 76px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	animation: wr-cloud-pass 6.5s linear 1 both;
	animation-delay: var(--d, 0s);
}
/* Two bumps, so it reads as a cloud rather than as a pill. */
.wr-flourish-clouds i::before,
.wr-flourish-clouds i::after {
	content: '';
	position: absolute;
	bottom: 60%;
	border-radius: 50%;
	background: inherit;
}
.wr-flourish-clouds i::before { left: 11px; width: 30px; height: 30px; }
.wr-flourish-clouds i::after { left: 38px; width: 21px; height: 21px; }
@keyframes wr-cloud-pass {
	0%   { opacity: 0; transform: translateX(0) scale(var(--s, 1)); }
	12%  { opacity: 1; }
	88%  { opacity: 1; }
	/* vw rather than %, so the cloud leaves whatever width the frame is. */
	100% { opacity: 0; transform: translateX(calc(-100vw - 100px)) scale(var(--s, 1)); }
}

/* The flash. Hard stops on purpose: lightning that eases in and out is a glow.
   Kept well under half opacity because it goes over a photograph and UNDER the
   store name, which is white: a brighter flash than this washes out the one piece
   of text on the header, twice, while somebody is reading it. */
.wr-flourish-clouds::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #ffffff;
	opacity: 0;
	animation: wr-lightning 6.5s linear 1 both;
}
@keyframes wr-lightning {
	0%, 30%   { opacity: 0; }
	31%, 32%  { opacity: 0.34; }
	33%, 52%  { opacity: 0; }
	53%, 54%  { opacity: 0.22; }
	55%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------------- lamps ---
 * The festive season and Christmas: a row of small lamps along the top of the
 * header, lit left to right, then out.
 *
 * The glow is a radial gradient rather than a blurred element. A blur on five
 * elements is exactly the kind of thing that makes an older phone stutter, and at
 * this size nobody can tell the difference.
 */
.wr-flourish-lamp i {
	top: 14px;
	left: var(--x, 50%);
	width: 13px;
	height: 18px;
	border-radius: 50% 50% 45% 45%;
	background: linear-gradient(180deg, #ffd36b, #ff9d2e);
	animation: wr-lamp-light 3.4s ease-in-out 1 both;
	animation-delay: var(--d, 0s);
}
.wr-flourish-lamp i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 196, 92, 0.55), rgba(255, 196, 92, 0) 70%);
}
@keyframes wr-lamp-light {
	0%   { opacity: 0; transform: translateY(4px) scale(0.9); }
	22%  { opacity: 1; transform: translateY(0) scale(1); }
	78%  { opacity: 1; }
	100% { opacity: 0; transform: translateY(0) scale(1); }
}

/* -------------------------------------------------------------------- flag ---
 * Republic Day and Independence Day. The pole stands still and the cloth unfurls
 * and sways from it.
 */
.wr-flag-pole {
	position: absolute;
	top: 16px;
	right: 26px;
	width: 3px;
	height: 54px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.75);
}
.wr-flag-cloth {
	position: absolute;
	top: 18px;
	right: 29px;
	display: block;
	transform-origin: right center;
	animation: wr-flag-wave 2.6s ease-in-out 1 both;
}
.wr-flag-cloth i {
	position: static;
	display: block;
	width: 34px;
	height: 7px;
}
.wr-flag-cloth i:nth-child(1) { background: #ff9933; border-radius: 2px 0 0 0; }
.wr-flag-cloth i:nth-child(2) { background: #ffffff; }
.wr-flag-cloth i:nth-child(3) { background: #138808; border-radius: 0 0 0 2px; }
@keyframes wr-flag-wave {
	0%   { opacity: 0; transform: skewY(4deg) scaleX(0.25); }
	18%  { opacity: 1; }
	50%  { opacity: 1; transform: skewY(-4deg) scaleX(1); }
	100% { opacity: 0; transform: skewY(3deg) scaleX(1); }
}

/* --------------------------------------------------------------- batsman ---
 * The IPL season: a small figure at the bottom right, one swing, and the ball
 * leaves the top of the frame. Clipped by the header, which is the joke.
 *
 * transform-box: view-box is what makes the rotation happen about the shoulder
 * rather than about the corner of the SVG's own coordinate system.
 */
.wr-bat-svg {
	position: absolute;
	right: 14px;
	bottom: 8px;
	width: 72px;
	height: 56px;
	animation: wr-bat-fade 2s ease-out 1 both;
}
.wr-bat-swing {
	transform-box: view-box;
	transform-origin: 18px 24px;
	animation: wr-bat-swing 2s cubic-bezier(0.3, 0.9, 0.2, 1) 1 both;
}
.wr-bat-ball {
	transform-box: view-box;
	transform-origin: 30px 14px;
	animation: wr-ball-six 2s cubic-bezier(0.2, 0.8, 0.3, 1) 1 both;
}
@keyframes wr-bat-swing {
	0%, 12% { transform: rotate(-38deg); }
	30%     { transform: rotate(6deg); }
	46%     { transform: rotate(24deg); }
	100%    { transform: rotate(24deg); }
}
@keyframes wr-ball-six {
	0%, 26%  { opacity: 0; transform: translate(0, 0) scale(0.7); }
	30%      { opacity: 1; transform: translate(2px, -4px) scale(1); }
	70%      { opacity: 1; transform: translate(26px, -30px) scale(1); }
	100%     { opacity: 0; transform: translate(52px, -56px) scale(0.9); }
}
@keyframes wr-bat-fade {
	0%   { opacity: 0; }
	10%  { opacity: 1; }
	80%  { opacity: 1; }
	100% { opacity: 0; }
}

/* A visitor who has asked their phone for less motion gets a still menu. */
@media (prefers-reduced-motion: reduce) {
	.wr-app[data-occasion]:not([data-motif]) .wr-hero::before {
		animation: none;
		background-image: none;
	}
	.wr-flourish {
		display: none;
	}
}

/*
 * The block of store facts, sitting on the bottom edge of the hero.
 *
 * A flex item rather than an absolutely positioned box, so the hero's height follows
 * from this and not the other way round. z-index still applies: it is honoured on flex
 * items, which is what keeps the text above the hero's own gradient overlay.
 */
.wr-restaurant-info {
	position: relative;
	width: 100%;
	padding: 16px;
	z-index: 2;
	color: white;
}

.wr-store-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.wr-store-action {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.wr-store-action:hover,
.wr-store-action:focus {
	background: rgba(0, 0, 0, 0.44);
	color: #fff;
}

.wr-store-action:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wr-store-action svg {
	flex: 0 0 auto;
}

/*
 * The store's own name, and the lines under it.
 *
 * Read at arm's length on a phone by somebody holding the screen away from their
 * face, which is most of a restaurant's customers and not a small minority of them.
 * The address, phone and hours lines arrive from the template carrying Bootstrap's
 * .small, which is 14px, so they are set here rather than removed from the markup:
 * .small is a statement about hierarchy and 14px is a statement about eyesight, and
 * this store would rather keep the first and fix the second.
 */
.wr-restaurant-info h1 {
	color: white;
	font-size: 2rem;
	margin-bottom: 6px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wr-restaurant-info p,
.wr-restaurant-info p.small,
.wr-restaurant-info p.small.mb-0 {
	font-size: 1rem;
	line-height: 1.4;
}

#order-source-label {
	font-size: 1.05rem;
}

/* Sticky Search & Categories */
.wr-sticky-nav {
	position: sticky;
	/*
	 * Under the search row, which is pinned above it. The script measures that row and
	 * writes its height here, because the row is shorter for a menu with no search in
	 * it; the number below is what it measures to with one.
	 */
	top: var(--wr-head-h, 60px);
	background: var(--wr-surface);
	z-index: 50;
	padding: 10px 16px 8px;
	box-shadow: 0 1px 0 var(--wr-border), 0 4px 16px rgba(16, 24, 40, .06);
}

/*
 * Search and the veg switch, at the head of the page.
 *
 * The first thing on the screen, above the shop's own photograph, because a customer
 * opening a menu off a table sticker is standing up, in a hurry, and looking for one
 * dish. It is pinned, so it is still there four screens into a long menu, and it is
 * opaque: it is the top bar of the page rather than a card lying on the header, and a
 * bar with the menu scrolling under it has to be.
 */
.wr-menu-head {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 8px;
	background: var(--wr-surface);
	box-shadow: 0 1px 0 var(--wr-border), 0 4px 16px rgba(16, 24, 40, 0.06);
}
/* No row at all for a store with nothing to put in it: see syncHead(). */
.wr-menu-head[hidden] { display: none; }

/*
 * Veg only.
 *
 * An Indian menu is asked this more than anything else and it has one answer, so the
 * control is a switch and not a panel of filters. It is deliberately the quietest thing
 * in the row: the brand colour means "tap me" everywhere else on this page, and this is
 * a filter rather than something to order.
 *
 * The green on the switch is the mark every menu in the country already uses for a
 * vegetarian dish, and this is the only place in the stylesheet that colour is used.
 */
.wr-veg-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	/* So a row with no search in it keeps the switch at the far edge. */
	margin-left: auto;
	padding: 0 2px;
	/*
	 * A finger, not the text. Measured as text alone this control is 19px tall, which is
	 * a third of what a fingertip covers: the box is as tall as the search field beside
	 * it even though nothing is drawn in the extra height.
	 */
	min-height: 40px;
	border: 0;
	background: none;
	color: var(--wr-text-sub);
	font-family: inherit;
	font-size: 0.79rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s;
}
.wr-veg-switch[hidden] { display: none; }

/* The track. Grey until the switch is on, and the knob is the part that moves. */
.wr-veg-track {
	position: relative;
	flex: 0 0 auto;
	width: 30px;
	height: 18px;
	border-radius: 9px;
	background: #cfd4da;
	transition: background 0.15s;
}
.wr-veg-track::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.3);
	transition: transform 0.15s;
}

.wr-veg-switch[aria-checked="true"] { color: #0f7b3a; }
.wr-veg-switch[aria-checked="true"] .wr-veg-track { background: #0f7b3a; }
.wr-veg-switch[aria-checked="true"] .wr-veg-track::after { transform: translateX(12px); }
.wr-veg-switch:focus-visible {
	outline: 2px solid var(--wr-primary);
	outline-offset: 3px;
	border-radius: 6px;
}

/*
 * Search.
 *
 * A rail of pills only helps somebody who already knows what a dish is called.
 * One store here has thirty dishes and a real kitchen can carry two hundred,
 * which is a list nobody scrolls to the end of, so the menu carries its own
 * search. The script hides this row for a menu short enough not to need it.
 */
.wr-search {
	position: relative;
	display: flex;
	align-items: center;
	/* The rest of the head row, so the veg switch beside it keeps its own width. */
	flex: 1 1 auto;
	min-width: 0;
}
.wr-search[hidden] { display: none; }

.wr-search-icon {
	position: absolute;
	left: 11px;
	display: flex;
	color: var(--wr-text-sub);
	pointer-events: none;
}

.wr-search input {
	width: 100%;
	height: 42px;
	padding: 0 36px;
	border: 1px solid var(--wr-border);
	border-radius: 10px;
	background: var(--wr-surface);
	color: var(--wr-text-main);
	font-family: inherit;
	font-size: 1rem;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.wr-search input:focus {
	border-color: var(--wr-primary);
	box-shadow: 0 0 0 3px rgba(var(--wr-primary-rgb), 0.12);
}
/* The browser's own clear button is a different shape on every phone, and there
   is one drawn under it. */
.wr-search input::-webkit-search-cancel-button,
.wr-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.wr-search-clear {
	position: absolute;
	right: 5px;
	width: 26px;
	height: 26px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wr-text-sub);
	cursor: pointer;
}
.wr-search.has-value .wr-search-clear { display: flex; }

/*
 * What a search found, over the page rather than under it.
 *
 * The field used to answer only by filtering the grid, which made the answer to "do you
 * have biryani" a page that MOVED: the customer read a count under the field and then
 * scrolled to find the dish inside it. This puts the answer where they are already
 * looking, and it can show the two things a card has no room for at this size, the
 * description and a picture of the dish itself.
 *
 * IT IS HUNG OFF THE HEAD ROW, and the row is what keeps it above the store's
 * photograph. The head is `position: sticky` with a z-index of its own, so it is a
 * stacking context and paints above everything the page flows after it, while the hero
 * carries no z-index at all and its own two layers sit at 1 and 2. Anchored to anything
 * lower the panel would be drawn behind the banner and the customer would be typing
 * into a list they cannot see.
 *
 * It is a shortcut and not the answer: the grid behind it still holds every match, which
 * is what lets it stay eight rows tall.
 */
.wr-search-panel {
	position: absolute;
	left: 12px;
	right: 12px;
	/*
	 * The bottom edge of the head row's own padding box, so the panel sits flush against
	 * it whatever the row measures. The row is shorter for a store with no veg switch in
	 * it, and a fixed offset would either leave a gap or overlap the field.
	 */
	top: 100%;
	/* Within this row's own stacking context. The row's z-index is what beats the hero. */
	z-index: 5;
	/*
	 * A ceiling rather than a height, so a short menu draws a short panel. `contain` stops
	 * a flick that reaches the end of the list from being handed to the page behind it,
	 * which on a phone reads as the whole screen sliding under a gesture meant for the list.
	 */
	max-height: min(58vh, 430px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px;
	background: var(--wr-surface);
	border: 1px solid var(--wr-border);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.20);
}
.wr-search-panel[hidden] { display: none; }

.wr-search-list { margin: 0; padding: 0; list-style: none; }

/*
 * The three food classes, at the top of the results.
 *
 * Veg, Egg and Non Veg are the three things `wizresto_products.food_type` can say, and a
 * customer filtering a menu is asking one of exactly those three questions. Egg is the one
 * that needs the control: it appears in no dish name a veg customer would type, and in
 * India it is a class of its own rather than a flavour of non-veg, because a tea shop
 * sells egg puffs beside its vegetarian snacks and a menu that cannot separate them makes
 * the customer ask a waiter.
 */
.wr-search-foods {
	display: flex;
	align-items: stretch;
	gap: 6px;
	margin-bottom: 4px;
	padding: 4px 4px 8px;
	border-bottom: 1px solid var(--wr-border);
}

.wr-food-chip {
	/* An equal third each, so the three never wrap and the row never changes height. */
	flex: 1 1 0;
	min-width: 0;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0 6px;
	border: 1px solid var(--wr-border);
	border-radius: 9px;
	background: var(--wr-surface);
	color: var(--wr-text-sub);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wr-food-chip .wr-food-n {
	font-size: 0.72rem;
	font-weight: 700;
	opacity: 0.7;
}
/* The count says there is nothing here before a thumb finds out the hard way. */
.wr-food-chip:disabled { opacity: 0.38; cursor: default; }

/*
 * The lit chip wears the colour of its own class.
 *
 * Green for vegetarian and red for non-vegetarian are the marks every menu in the country
 * already uses, and the dish rows in this very panel carry the same two. Egg gets amber
 * because it is neither of them, which is the whole reason it has its own class.
 */
.wr-food-chip[data-food="VEG"][aria-pressed="true"] {
	background: rgba(46, 158, 68, 0.13);
	border-color: #2e9e44;
	color: #24793a;
}
.wr-food-chip[data-food="EGG"][aria-pressed="true"] {
	background: rgba(200, 144, 26, 0.15);
	border-color: #c8901a;
	color: #8a6410;
}
.wr-food-chip[data-food="NON_VEG"][aria-pressed="true"] {
	background: rgba(198, 40, 40, 0.11);
	border-color: #c62828;
	color: #a01f1f;
}

/*
 * The chip filtered every match away.
 *
 * Centred, because it is the only thing in the panel at that moment, and it names the chip
 * the customer just tapped: "nothing matched" on its own reads as a broken search, and the
 * search worked perfectly.
 */
.wr-search-none {
	padding: 14px 10px 18px;
	text-align: center;
	font-size: 0.82rem;
	color: var(--wr-text-sub);
}

/*
 * One dish.
 *
 * The words on the left and the picture on the right, which is the shape the store asked
 * for. `min-width: 0` on the text column is what makes it work: without it a long dish
 * name refuses to shrink and pushes the thumbnail off the edge of the panel.
 */
.wr-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 9px;
	cursor: pointer;
}
.wr-search-item.is-active,
.wr-search-item:hover { background: rgba(var(--wr-primary-rgb), 0.07); }

.wr-search-text { flex: 1 1 auto; min-width: 0; }

.wr-search-name {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}
/* The menu's own veg mark, sat on the name line instead of above it. */
.wr-search-name .wr-veg-indicator {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-bottom: 0;
	border-radius: 3px;
}
.wr-search-name .wr-veg-indicator::after {
	width: 6px;
	height: 6px;
	top: 3px;
	left: 3px;
}
.wr-search-name-t {
	font-size: 0.97rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wr-text-main);
	/*
	 * One line, ellipsised. A name allowed to wrap to two lines makes every row a
	 * different height, and the eye has to find the description again on each one.
	 */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wr-search-desc {
	margin-top: 2px;
	font-size: 0.79rem;
	line-height: 1.35;
	color: var(--wr-text-sub);
	/*
	 * Two lines at most, and the same two lines on every row. The description is here to
	 * tell two similar dishes apart, and one line does not always do that.
	 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wr-search-line {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.wr-search-price {
	font-size: 0.93rem;
	font-weight: 700;
	color: var(--wr-text-main);
}
/*
 * The picture.
 *
 * A fixed square rather than a flexible one: rows sized by their own image would make
 * the list change shape as the customer typed through dishes of different proportions.
 * `object-fit: cover` fills the square from a photograph of any shape.
 */
.wr-search-thumb {
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	border-radius: 9px;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f3f5, #e6e9ed);
}
.wr-search-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The shared plate tile, at this size: the one it draws by default is made for a card. */
.wr-search-thumb .wr-search-ph { width: 100%; height: 100%; border: 0; }
.wr-search-thumb .wr-search-ph::before { width: 22px; height: 22px; }
.wr-search-thumb .wr-search-ph::after { width: 8px; height: 8px; }

/* How many matches are still in the list below, when the panel is showing its limit. */
.wr-search-more {
	padding: 7px 10px 5px;
	font-size: 0.75rem;
	color: var(--wr-text-sub);
	border-top: 1px solid var(--wr-border);
}

.wr-cat-rail { position: relative; }

.wr-categories {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* So a pill the script scrolls to does not land underneath an arrow. */
	scroll-padding-inline: 46px;
	/*
	 * This rail is the only thing on either page that scrolls sideways, and it
	 * keeps its own scrolling. Without this, a swipe that reaches the end of the
	 * rail hands the leftover movement to the page, which is the one way a
	 * customer sees the whole screen slide after a gesture that was meant for the
	 * categories. Measured at 320 through 1920: the document reports zero
	 * horizontal overflow on the menu, the demo page, the marketing pages and all
	 * four staff boards, so there is nothing for the gesture to move, and this
	 * keeps it that way as the rail grows.
	 */
	overscroll-behavior-x: contain;
}
.wr-categories::-webkit-scrollbar { display: none; }
/* A little air after the last pill, for the arrow that sits over that end. */
.wr-categories::after { content: ''; flex: 0 0 6px; }

/*
 * The two arrows.
 *
 * The scrollbar is hidden -- on a phone it overlaps the pills and reads as a
 * defect -- which left a mouse with no way at all to move a horizontal list. A
 * desktop could see three categories and reach no others. Each arrow appears
 * only when something is hidden in its direction, so at the start of the rail
 * there is one arrow rather than a dead one.
 */
.wr-cat-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wr-border);
	border-radius: 50%;
	background: var(--wr-surface);
	color: var(--wr-text-main);
	box-shadow: var(--wr-shadow-sm);
	cursor: pointer;
	z-index: 3;
}
.wr-cat-nav[hidden] { display: none; }
.wr-cat-nav.is-prev { left: -8px; }
.wr-cat-nav.is-next { right: -8px; }
@media (max-width: 600px) {
	/* Touch users can swipe; keep the desktop arrows off the category tap targets. */
	.wr-cat-nav { display: none; }
	.wr-categories { scroll-padding-inline: 0; }
}

/*
 * No halo any more.
 *
 * The halo existed so that a pale pill sliding under an arrow did not look sliced
 * off. It sat above the rail and under the arrow, and over a photograph it read as a
 * white smudge rather than as depth. The arrow is a solid white circle with a border
 * and a shadow, which is legible over a photo and over a plain tile alike.
 */

/*
 * The category rail, as tiles.
 *
 * A picture with the name written on it. The rail is how a customer changes section
 * four screens into a menu, so it has to be readable without stopping: a picture is
 * recognised faster than a word, and the name rides on the picture instead of sitting
 * under it, which would double the height of the row for no extra information.
 *
 * A category with no photo of its own gets the same tile in a plain colour, so the
 * rail keeps one shape and the name keeps one size whichever kind it is.
 */
.wr-cat-pill {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 132px;
	height: 104px;
	padding: 0;
	background: #f1f3f5;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--wr-shadow-sm);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.18s, box-shadow 0.18s;
}
.wr-cat-pill::after {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: var(--wr-primary);
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: scale(0.75);
	transition: opacity 0.18s, transform 0.18s;
	pointer-events: none;
}
.wr-cat-pill.active::after {
	content: '✓';
	opacity: 1;
	transform: scale(1);
}
.wr-cat-pic {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/*
 * Four dishes on one tile, for "All dishes".
 *
 * The 2px of background showing between them is what makes it read as four photographs
 * rather than as one strange image, and the plain tile colour is what shows through.
 */
.wr-cat-pics {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
	background: #f1f3f5;
}
.wr-cat-pics .wr-cat-pic {
	position: static;
	inset: auto;
	min-width: 0;
	min-height: 0;
}
/* The gradient under the name is what keeps white text readable on a bright photo. */
.wr-cat-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 9px 8px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.74));
	color: #fff;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	/* Two lines at most: a long category name must not run out of the tile. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wr-cat-pill.is-plain {
	background: linear-gradient(135deg, #2f2f2f, #4c4c4c);
}
.wr-cat-pill.is-plain .wr-cat-label {
	inset: 0;
	display: flex;
	align-items: center;
	padding: 10px;
	background: none;
	text-shadow: none;
}
.wr-cat-pill:focus-visible {
	outline: 2px solid var(--wr-primary);
	outline-offset: 2px;
}
/* A check and lift make the selected category unmistakable without an error-like outline. */
.wr-cat-pill.active {
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(0, 0, 0, 0.28);
}
/* While a search is running, the pills are not what is filtering the list. */
.wr-cat-rail.is-muted .wr-categories {
	opacity: 0.45;
	pointer-events: none;
}

/*
 * Filters, under the categories.
 *
 * The one row on this page that is about the ORDER rather than the food: what it may
 * cost, what this kitchen actually sells, and what it has just added. Three at most,
 * because a fourth would be a menu of filters and the customer came here for the menu.
 *
 * The row scrolls sideways like the rail above it and for the same reason: a header
 * pinning two wrapped lines of chips eats the menu underneath it on a phone.
 */
.wr-filter-rail {
	margin-top: 8px;
}
.wr-filter-rail[hidden] { display: none; }

.wr-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.wr-filters::-webkit-scrollbar { display: none; }

.wr-filter-chip {
	flex: 0 0 auto;
	height: 32px;
	padding: 0 13px;
	border: 1px solid var(--wr-border);
	border-radius: 999px;
	background: var(--wr-surface);
	color: var(--wr-text-main);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}
/*
 * A chip that is filtering the list is drawn in the brand colour, which on this page
 * means "this one is on". Tapping it again takes it off, which is why it is a brighter
 * version of the same chip rather than a switch of its own: there is no separate "off"
 * control to find, and nothing to explain.
 */
.wr-filter-chip.active {
	border-color: var(--wr-primary);
	background: rgba(var(--wr-primary-rgb), 0.09);
	color: var(--wr-primary);
}
.wr-filter-chip:focus-visible {
	outline: 2px solid var(--wr-primary);
	outline-offset: 2px;
}

/* Product List */
.wr-menu-section {
	background: var(--wr-surface);
	padding: 4px 12px 14px;
	margin: 12px 12px 0;
	border-radius: var(--wr-radius);
	box-shadow: var(--wr-shadow-sm);
}

/*
 * The line above the menu while a search is running.
 *
 * It says how many dishes matched and offers the way out. Without it, a
 * mistyped word gives an empty screen and no clue that the field is why.
 */
.wr-menu-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 18px 0;
	font-size: 0.86rem;
	color: var(--wr-text-sub);
}
.wr-menu-note[hidden] { display: none; }
.wr-menu-note b { color: var(--wr-text-main); font-weight: 600; }
/* Sits directly on top of the menu block, so it should not add its own gap. */
.wr-menu-note:not([hidden]) + .wr-menu-section { margin-top: 8px; }
.wr-menu-note button {
	border: 0;
	background: transparent;
	padding: 0;
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--wr-primary);
	cursor: pointer;
	white-space: nowrap;
}

/*
 * The category a dish belongs to, shown only in search results, where a list of
 * dishes from everywhere needs to say where each one came from.
 */
.wr-product-cat {
	display: block;
	margin-bottom: 5px;
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wr-text-sub);
}

/*
 * One dish: the photo across the top, the reading underneath.
 *
 * The photo is full width and 4:3, because the picture is what a customer identifies
 * a dish by. Name, price and the ADD bar then get the whole card to be read in.
 * overflow:hidden is what lets the photo fill the card corner to corner while still
 * being clipped by the card's radius.
 */
.wr-product-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	margin-bottom: 18px;
	background: var(--wr-surface);
	border: 0;
	border-radius: 18px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 3px 10px rgba(16, 24, 40, .05);
	overflow: hidden;
}
.wr-product-card:last-child {
	margin-bottom: 0;
}
.wr-product-details {
	padding: 14px;
	min-width: 0;
	/*
	 * A column that takes the card's free height.
	 *
	 * With the spacer below this is what lines the ADD bar of every card up along the
	 * bottom. Two cards side by side in a shelf are as tall as the taller of the two,
	 * and without this the shorter one's button floats in the middle of its card with
	 * a gap underneath, which reads as a mistake rather than as a layout.
	 */
	display: flex;
	flex-direction: column;
	flex: 1;
}
.wr-veg-indicator {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 1px solid #2e9e44;
	border-radius: 4px;
	position: relative;
	margin-bottom: 7px;
}
.wr-veg-indicator::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	background: #2e9e44;
	border-radius: 50%;
	top: 3px; left: 3px;
}
.wr-veg-indicator.non-veg { border-color: #c62828; }
.wr-veg-indicator.non-veg::after { background: #c62828; }
/*
 * The third class.
 *
 * `is_veg` is a boolean and cannot say egg, so an egg dish used to wear the same red square as a
 * chicken one. Egg is neither vegetarian nor a meat, which is the whole reason it has a class of
 * its own, and the customer this mark is for is the one who eats egg and not meat. Amber because
 * green and red are already spoken for, and it is the colour the search chips already use for it.
 */
.wr-veg-indicator.egg { border-color: #c8901a; }
.wr-veg-indicator.egg::after { background: #c8901a; }

.wr-product-title {
	font-size: 1.22rem;
	line-height: 1.28;
	margin-bottom: 4px;
}
/*
 * The name, one step heavier than the app's base heading weight.
 *
 * .wr-app h1..h4 sets 700 for every heading, and it outranks the class above, so a
 * bold name needs the extra class. A dish name is the one string a customer reads on
 * every card, and 700 next to a 700 price reads as one grey block at arm's length.
 */
.wr-product-card .wr-product-title {
	font-weight: 800;
}
.wr-product-price {
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 6px;
}
.wr-product-desc {
	font-size: 0.92rem;
	color: var(--wr-text-sub);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ------------------------------------------------------------------- labels ---
 * The small claims a card can make about a dish: POPULAR, NEW, BEST BUY, and the
 * store's own offer badge.
 *
 * On the photo, top left, because a customer scanning a shelf reads the picture
 * first and the label has to arrive with it. Two at most, because three chips on one
 * card is a card that says nothing.
 *
 * Every one of them is something this product can prove, and none is decoration:
 *
 *   POPULAR   the dish is in the store's own best sellers, ranked by units sold
 *   NEW       it is one of the newest dishes, added in the last three weeks
 *   BEST BUY  it is the cheapest dish in its own category, on a menu where that
 *             category has enough in it for "cheapest" to mean something
 *   the offer only when the store has a live offer that names a category and carries
 *             a badge. There is no per-dish discount anywhere in this product, so
 *             that badge is the only discount a card can honestly show.
 *
 * Dark chip with white text rather than a coloured one: it goes over a photograph
 * nobody has seen, and a translucent chip disappears into a pale window. The offer
 * keeps the store's colour, so at most one chip on a card is ever the brand colour.
 */
.wr-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	max-width: calc(100% - 16px);
	pointer-events: none;
}

.wr-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 7px;
	background: rgba(16, 24, 32, 0.74);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.wr-badge.is-offer {
	background: var(--wr-primary);
}

/*
 * The chips that state a fact about the whole shop, under the store's name.
 *
 * Only one today -- the order that earns free delivery -- and it is here rather than
 * on a dish card on purpose: free delivery is earned by the order, not by a plate, so
 * a chip on a 40 rupee cola would be a promise that cola cannot keep. A chip is
 * legible on the photograph because it carries its own background.
 */
.wr-store-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.wr-store-chip {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(16, 24, 32, 0.62);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.35;
}

/* Product Image & Add Button */
/*
 * THE PHOTO IS INSET NOW, and this reverses the corner-to-corner framing.
 *
 * The owner's report: "product image top touches its own card top". It did, by design, because the card
 * was `padding: 0` and the photo was meant to fill it edge to edge with the card's own radius doing the
 * clipping. Measured before this change: card padding 0 and the photo's top edge 1px inside the card's
 * top, which is the border.
 *
 * The photo now sits in a frame. 14px is not a taste decision: it is the value `.wr-product-details`
 * already uses, so the picture's left edge lines up with the dish name under it rather than sitting 4px
 * out. THE MEDIA CLIPS THE PHOTO, so the image itself keeps square corners: a radius on the image is what
 * used to show as a pale inset line along the top of every card.
 */
.wr-product-media {
	flex-shrink: 0;
	/* The badges sit on the photo, so the photo is their position. */
	position: relative;
	margin: 14px 14px 0;
	border-radius: 12px;
	overflow: hidden;
}
.wr-product-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	/* Square corners: the card clips the photo, so a radius here would show up as an
	   inset white line along the top of every card. */
	border-radius: 0;
	/*
	 * A LONG PRESS ON A DISH PHOTO OPENS IT, so the browser has to give up its own hold
	 * gesture on these and only these: iOS covers the picture with a share sheet and
	 * Android offers "open image in new tab", and both land on top of the thing the
	 * customer was trying to look at. See setupDishPhoto() in customer-app.js, which
	 * prevents the Android one and arms the timer both platforms answer to.
	 */
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-drag: none;
}
/* Items without a photo get a neutral plate tile instead of a broken image. */
.wr-product-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f1f3f5, #e6e9ed);
	border: 1px solid var(--wr-border);
}
.wr-product-placeholder::before {
	content: '';
	width: 42px;
	height: 42px;
	border: 2px solid #c5cbd3;
	border-radius: 50%;
}
.wr-product-placeholder::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	background: #c5cbd3;
	border-radius: 50%;
}
.wr-product-img.wr-img-failed {
	display: none;
}

/*
 * The dish photo, opened at the size of the screen.
 *
 * A Bootstrap modal, for the reasons the checkout sheet is one: the backdrop, the focus handling,
 * the scroll lock and Escape all come with it, and this file is not the place to write a fourth
 * opinion about how an overlay behaves. What is overridden is the SHEET: no card, no white panel,
 * because the photograph is the content -- a picture of a biryani framed in a white box is a
 * smaller picture of a biryani.
 */
.wr-zoom .modal-content {
	background: transparent;
	border: 0;
	box-shadow: none;
	text-align: center;
}

/*
 * The frame around the picture is what the close button is placed against, and it is an inline-block
 * so that it is exactly as wide as the photograph: anchored to the panel instead, the button would
 * float in the dark beside a tall portrait shot, nowhere near the corner it looks like it belongs to.
 */
.wr-zoom-frame {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.wr-zoom-img {
	display: block;
	max-width: 100%;
	max-height: 74vh;
	width: auto;
	height: auto;
	border-radius: 14px;
	background: #0d0d0d;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* The name under the picture, so a customer looking at a photo of a dish still knows which one. */
.wr-zoom-name {
	margin-top: 14px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.wr-zoom-name[hidden] {
	display: none;
}

/*
 * Above the picture, in reach of a thumb, and never over the close target twice: this button is the
 * only way out that is visible, because a customer who has zoomed into a photo should not have to
 * guess that tapping the dark area dismisses it (the backdrop does that as well, which costs
 * nothing).
 */
.wr-zoom-close {
	position: absolute;
	top: -6px;
	right: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.wr-zoom-close:hover,
.wr-zoom-close:focus-visible {
	background: rgba(0, 0, 0, 0.78);
}

/* The dialog is the picture plus its name, and it is centred because the modal-dialog is. */
.wr-zoom-dialog {
	width: auto;
	max-width: min(92vw, 720px);
	margin: 0 auto;
}
/*
 * The gap that holds the ADD bar down at the foot of the card.
 *
 * .wr-product-details is a column that fills the card, and this grows to push the
 * button to the bottom of it. It exists as an element rather than as
 * `margin-top: auto` on the button because an auto margin collapses to nothing when
 * there is no free space, which is every card in the plain list: the button would sit
 * flush against the description with no gap at all. min-height keeps the ordinary
 * spacing and flex:1 does the pushing.
 */
.wr-card-spacer {
	flex: 1;
	min-height: 12px;
}
/*
 * The ADD bar sits at the foot of the card, under the name and the price, rather than
 * floating over the photo. With the photo across the top there is nothing left to float
 * over, and a full-width bar is the easiest thing on the card to hit with a thumb. It is
 * outlined rather than filled so that the price stays the loudest thing on the card.
 */
.wr-add-btn-wrapper {
	position: static;
	transform: none;
	width: 100%;
	margin-top: 0;
	background: #fff;
	border: 1px solid var(--wr-primary);
	border-radius: 12px;
	box-shadow: none;
	display: flex;
	justify-content: center;
	align-items: center;
	/* Add to cart is the one thing every customer does, so it gets a real
	   thumb-sized target rather than the 36px it used to be. */
	height: 44px;
	overflow: hidden;
}
.wr-btn-add {
	width: 100%;
	height: 100%;
	background: #fff;
	color: var(--wr-primary);
	font-weight: 800;
	border: none;
	text-transform: uppercase;
	font-size: 0.95rem;
}
.wr-stepper {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: space-between;
	align-items: center;
}
.wr-stepper button {
	width: 30%;
	height: 100%;
	background: #fff;
	border: none;
	color: var(--wr-primary);
	font-size: 1.2rem;
	font-weight: bold;
}
.wr-stepper span {
	width: 40%;
	text-align: center;
	font-weight: 800;
	font-size: 1rem;
}
/*
 * The quantity control inside the tray, which is NOT the ADD bar from a menu card.
 *
 * It reuses .wr-add-btn-wrapper, and that class is width: 100% because on a card it is a
 * bar across the foot of the card. In a tray row that width is the entire row, and the
 * tray row also carries flex-shrink: 0, so the bar could not give any of it back.
 *
 * Measured on the demo store at 488px wide, one Coca-Cola in the tray: the wrapper was
 * 440px wide inside a row of the same 440px, so the dish name was squeezed into a 50px
 * column and wrapped to three lines, the quantity "1" floated alone in the middle of a
 * full-width box, and the + button sat at x=422..553 in a sheet that ends at x=464. The
 * only way to add a second portion was 89px past the right edge, clipped by the sheet's
 * overflow-x: hidden, and therefore unreachable -- the minus worked and the plus did not.
 *
 * An inline `transform: none; left: auto` was there before this rule, which fixed where
 * the box sat and left its width alone. Sizes are set here instead, and they add up to
 * the wrapper exactly: 44 + 34 + 44.
 */
.wr-tray-qty {
	width: 122px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 10px;
}
.wr-tray-qty .wr-stepper {
	width: 100%;
}
.wr-tray-qty .wr-stepper button {
	width: 44px;
	padding: 0;
}
.wr-tray-qty .wr-stepper span {
	width: 34px;
}

/* ------------------------------------------------------------------ *
 * A dish's sizes and extras, on the customer's menu.
 *
 * THE CHOOSER IS THE ONLY PLACE A CUSTOMER SEES A PRICE CHANGE, so the
 * running total sits on the Add button itself rather than in a corner:
 * the number they are agreeing to is the number under their thumb.
 * ------------------------------------------------------------------ */
.wr-tray-option {
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.25;
	margin-bottom: 2px;
}

.wr-option-sheet {
	position: fixed;
	inset: 0;
	z-index: 1080;
	background: rgba(17, 24, 39, 0.5);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

@media (min-width: 576px) {
	.wr-option-sheet {
		align-items: center;
		padding: 1rem;
	}
}

.wr-option-card {
	width: min(28rem, 100%);
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
}

@media (min-width: 576px) {
	.wr-option-card {
		border-radius: 16px;
	}
}

.wr-option-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1rem 0.5rem;
	border-bottom: 1px solid #eef0f3;
}

.wr-option-sub {
	font-size: 0.82rem;
	color: #6b7280;
}

.wr-option-close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 0 0.25rem;
}

.wr-option-body {
	overflow-y: auto;
	padding: 0.25rem 1rem 0.5rem;
}

.wr-option-group + .wr-option-group {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed #eef0f3;
}

.wr-option-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.15rem;
	min-height: 44px;
	cursor: pointer;
	margin-bottom: 0;
}

.wr-option-row input {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
}

.wr-option-plus {
	color: #6b7280;
	font-size: 0.9rem;
}

.wr-option-foot {
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid #eef0f3;
}

.wr-option-add {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--wr-primary, #111827);
	color: #fff;
	font-weight: 700;
}

.wr-option-add:disabled {
	opacity: 0.55;
}

/*
 * ADD, or the +/- stepper once the dish is in the tray, on a row of the search panel.
 *
 * The same control a menu card carries, at the size a list row needs: it reuses
 * `.wr-add-btn-wrapper` and `.wr-stepper` and overrides their sizes here, rather than
 * introducing a second stepper that only looks like the first one. Adding a dish from a
 * search and adding it from a card both go through the same `updateCart`, so the tray,
 * the badge and the card's own stepper agree afterwards.
 *
 * WHERE THIS RULE SITS IN THE FILE IS THE WHOLE RULE. `.wr-add-btn-wrapper` is declared
 * further down the sheet and is `width: 100%; height: 44px`, because on a card it is the
 * bar across the foot of the card. Both selectors are one class, so the LATER one wins:
 * written next to the panel's own styles above, this rule lost on source order and the
 * control came out stretched across the whole row, with the minus at one end and the
 * count stranded in the middle. It lives here, beside `.wr-tray-qty`, which overrides
 * the same bar for the same reason and is in this position for the same reason.
 */
.wr-search-cart {
	width: 104px;
	height: 36px;
	flex: 0 0 auto;
	margin-left: auto;
	border-radius: 9px;
}
.wr-search-cart .wr-btn-add {
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}
.wr-search-cart .wr-stepper button {
	width: 34px;
	padding: 0;
	font-size: 1.05rem;
}
.wr-search-cart .wr-stepper span {
	width: 36px;
	font-size: 0.92rem;
}

/* Bottom FAB Cart */
.wr-fab-cart {
	position: fixed;
	/* Sits above the tab bar, and above the home indicator on a modern iPhone. */
	bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 30px);
	max-width: 450px;
	background-color: var(--wr-primary);
	color: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 10px 25px rgba(var(--wr-primary-rgb), 0.4);
	cursor: pointer;
	z-index: 1000;
	border: 0;
	font: inherit;
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.wr-fab-cart.hidden {
	transform: translate(-50%, 150%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.wr-fab-cart:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.wr-fab-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wr-fab-items {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	opacity: 0.9;
}
.wr-fab-total {
	font-size: 1.1rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---------------------------------------------------------------------------
   Store branding
   The logo is applied across all four app views so a client's own brand, not
   ours, is what their staff and customers see. Sized to fit (never cropped),
   so a wide wordmark survives.
   --------------------------------------------------------------------------- */
.brand-logo {
max-width: 150px;
max-height: 40px;
width: auto;
height: auto;
object-fit: contain;
display: block;
}

.brand-logo-lg {
max-width: 190px;
max-height: 56px;
}

/* ---------------------------------------------------------------------------
   Offer banner
   The promotion a store shows its customers. Colour comes from the theme the
   owner picked; nothing here assumes any particular wording, so "Combo Offer",
   "20% off" and "Happy Hour" all work.
   --------------------------------------------------------------------------- */
.wr-offer {
	margin: 14px 16px 0;
	padding: 14px 16px;
	border-radius: 14px;
	color: #fff;
	position: relative;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.wr-offer::after {
	/* A soft highlight, purely decorative. */
	content: '';
	position: absolute;
	right: -40px;
	top: -60px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
}
.wr-offer-primary { background: linear-gradient(135deg, #e23744, #b3121f); }
.wr-offer-saffron { background: linear-gradient(135deg, #f59e0b, #d97706); }
.wr-offer-mint    { background: linear-gradient(135deg, #10b981, #047857); }
.wr-offer-indigo  { background: linear-gradient(135deg, #6366f1, #4338ca); }

.wr-offer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
.wr-offer-hello {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	opacity: 0.92;
}
.wr-offer-badge {
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	padding: 4px 11px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.wr-offer-title {
	font-size: 1.5rem;
	line-height: 1.25;
	color: #fff;
	margin-bottom: 4px;
}
.wr-offer-msg {
	font-size: 1rem;
	line-height: 1.45;
	opacity: 0.95;
}
.wr-offer-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}
.wr-offer-timer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	padding: 4px 9px;
}
.wr-offer-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}
.wr-offer[data-category] {
	cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Bottom tab bar
   Fixed to the bottom of the phone, matching the width of the app column.
   --------------------------------------------------------------------------- */
.wr-tabs {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 480px;
	display: flex;
	background: var(--wr-surface);
	border-top: 1px solid var(--wr-border);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	z-index: 1030;
}
.wr-tab {
	flex: 1;
	min-height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 7px 4px;
	background: none;
	border: none;
	color: var(--wr-text-sub);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	position: relative;
	cursor: pointer;
}
.wr-tab.is-active {
	color: var(--wr-primary);
}
.wr-tab[hidden] {
	display: none;
}
.wr-tab-badge {
	position: absolute;
	top: 4px;
	left: 50%;
	margin-left: 4px;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--wr-primary);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 21px;
	text-align: center;
}
.wr-tab-badge[hidden] {
	display: none;
}

/* Respect a visitor who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
	.wr-fab-cart {
		transition: none;
	}
}

/* ------------------------------------------------------------------ sheets ---
 * The checkout, account and register panels.
 *
 * The menu is a 480px column centred in the page, but a Bootstrap modal is
 * fixed to the VIEWPORT, not to that column -- so it cannot simply inherit the
 * layout. It needed three things fixed rather than one:
 *
 *   1. m-0 pinned the dialog to the left edge. With no auto margins there is
 *      nothing to centre it, so on a desktop it rendered flush against the far
 *      left, nowhere near the app it belongs to. Measured: x=0 while the menu
 *      column sat at x=710.
 *   2. h-100 made it a full viewport tall whatever it contained, so a two item
 *      basket produced a screen-high panel with the button at the bottom.
 *   3. .wr-app carries min-height: 100vh for the PAGE. On a dialog that means
 *      a minimum of a whole screen of height, which no amount of sizing on the
 *      dialog itself can undo -- it has to be cancelled here.
 *
 * Phones keep the full screen behaviour: modal-fullscreen-sm-down already does
 * that below Bootstrap's own 576px breakpoint, and everything below is scoped
 * above it so the two never fight.
 */
.wr-sheet .modal-content {
	/* Cancels .wr-app's 100vh page minimum. Without this the panel is a full
	   screen tall no matter how little it holds. */
	min-height: 0;
	/*
	 * The whole panel scrolls, not just .modal-body.
	 *
	 * Bootstrap gives .modal-footer flex-shrink: 0, and this footer is not a thin
	 * action bar -- it holds the entire checkout: fulfilment, the distance bands,
	 * the address, payment and the totals. On a 768px desktop window the panel is
	 * capped at 672px, so with Delivery chosen the form overflowed and
	 * `overflow: hidden` simply CLIPPED it. Measured: Place Order sat at
	 * y=935-997 inside a panel that ended at y=670 -- 227px past the edge, off
	 * screen, and unreachable, because the only scroll area was the item list.
	 * Pickup fitted, which is why delivery looked like the broken one.
	 */
	overflow-y: auto;
	overflow-x: hidden;
}

.wr-sheet .modal-body {
	/* Deliberately no longer its own scroll area. A second scroller inside the
	   first leaves the customer unsure which part to scroll, and it was squeezing
	   the basket to a 34px sliver while the form took everything else. */
	flex: 0 0 auto;
	overflow-y: visible;
}

.wr-sheet .modal-header {
	/* Stays put while the form scrolls, so the title and the close button do not
	   vanish just because the checkout is long. */
	position: sticky;
	top: 0;
	z-index: 2;
	background-color: var(--wr-bg);
}

@media (min-width: 576px) {
	.wr-sheet {
		max-width: 460px;
		margin: 3rem auto;
	}

	.wr-sheet .modal-content {
		/* Only as tall as its contents, capped so a long basket scrolls inside
		   the panel instead of running off the bottom of the screen. */
		max-height: calc(100vh - 6rem);
		border-radius: 18px;
		box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	}
}

.wr-order-success .modal-content {
	background: var(--wr-surface, #fff);
	border: 1px solid var(--wr-border, #e8e8e8);
	border-radius: 18px;
	box-shadow: var(--wr-shadow-md, 0 10px 28px rgba(16, 24, 40, .12));
	color: var(--wr-text-main, #1c1c1c);
}

.wr-order-success__icon {
	color: var(--wr-primary);
	margin-bottom: 6px;
}

.wr-order-success__title {
	color: var(--wr-text-main, #1c1c1c);
}

/*
 * THE ORDER NUMBER, under a Lite shop's thank-you.
 *
 * It is the one thing the customer may still need to say out loud at the counter, so it is
 * a line of its own and slightly letter-spaced rather than being buried in the sentence.
 */
.wr-order-success__ref {
	color: var(--wr-primary);
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 12px;
}

.wr-order-success__message {
	color: var(--wr-text-sub, #696969);
	line-height: 1.55;
	white-space: pre-line;
}

.wr-order-success__track,
.wr-customer-order__track {
	background: var(--wr-primary);
	border-color: var(--wr-primary);
	border-radius: 12px;
	color: #fff;
	padding: .78rem 1rem;
}

.wr-order-success__track:hover,
.wr-order-success__track:focus-visible,
.wr-customer-order__track:hover,
.wr-customer-order__track:focus-visible {
	background: var(--wr-primary-hover, var(--wr-primary));
	border-color: var(--wr-primary-hover, var(--wr-primary));
	color: #fff;
}

.wr-order-success__done {
	background: rgba(var(--wr-primary-rgb), .06);
	border: 1px solid rgba(var(--wr-primary-rgb), .28);
	border-radius: 12px;
	color: var(--wr-primary);
	padding: .75rem 1rem;
}

.wr-order-success__done:hover,
.wr-order-success__done:focus-visible {
	background: rgba(var(--wr-primary-rgb), .12);
	border-color: var(--wr-primary);
	color: var(--wr-primary);
}

/*
 * Bootstrap's .d-flex is `display: flex !important`, which beats the browser's
 * [hidden] { display: none }. Both charge lines in the checkout carry the two
 * together, so hiding them did nothing: a PICKUP order still displayed
 * "Delivery charge ₹0.00" -- a charge that does not apply, on the very line the
 * customer checks to see what they are being asked to pay. Same trap as
 * .wr-tab[hidden] and .wr-share-btn[hidden] below.
 */
#delivery-fee-row[hidden],
#online-fee-row[hidden] {
	display: none !important;
}

/*
 * The close button on a sheet.
 *
 * Bootstrap sizes .btn-close as a 1em icon PLUS .25em of padding, and relies on
 * `box-sizing: content-box` for the padding to add to the hit area. .wr-app sets
 * `box-sizing: border-box` on every descendant, which swallows it: measured
 * 16x16, under the 24x24 minimum in WCAG 2.2, on the one control that dismisses
 * the checkout. Restored here rather than by loosening the border-box rule,
 * which exists to keep every width in the app honest.
 */
.wr-app .btn-close {
	box-sizing: content-box;
	padding: 0.5em;
}

/* --------------------------------------------------------------- fulfilment ---
 * How the customer gets the food: "Pickup available", or "Pickup or Delivery"
 * once the store switches delivery on.
 *
 * A quiet strip under the store's name rather than a promotional card. It
 * answers a question the customer is about to have -- can I get this brought to
 * me? -- so it belongs near the top, where they look before they start choosing
 * dishes. It deliberately does not look like an advert: nothing here is being
 * sold, and dressing it up as a campaign would make the store look like it was
 * pushing something.
 *
 * The neutral grey, not the brand red, for the same reason. Red is used
 * throughout this stylesheet for things the customer should TAP.
 */
.wr-fulfil {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #f6f7f9;
	border: 1px solid #e6e8ec;
	border-radius: 12px;
	color: #3f4756;
	font-size: 1rem;
	line-height: 1.35;
}

.wr-fulfil-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid #e6e8ec;
	color: #5b6472;
}

.wr-fulfil-text strong {
	display: block;
	font-weight: 700;
	color: #1f2430;
}

.wr-fulfil-sub {
	display: block;
	margin-top: 1px;
	/* Darkened from #6b7280, which sat at about 4.2:1 on this grey: legible by the
	   standard and not by a customer reading it over a counter. */
	color: #5b6472;
}

/*
 * A distance band: what it is on the left, what it costs on the right.
 *
 * The price never wraps, because a band whose charge falls onto a second line
 * reads as two separate options. The selected row is tinted rather than given a
 * heavy border, so a long list does not look like a warning.
 */
.wr-band-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	cursor: pointer;
}

.wr-band-row + .wr-band-row {
	margin-top: 8px;
}

.wr-band-row:has(input:checked) {
	border-color: var(--wr-primary);
	background: rgba(var(--wr-primary-rgb), 0.04);
}

.wr-band-row .text-nowrap {
	white-space: nowrap;
}

/* The QR code list and the sticker sheet are styled in templates/app-manager.php.
 *
 * They used to live here, where they did nothing. This file is only enqueued for
 * pages carrying the [wizresto_app] shortcode, and the staff screens are served
 * from their own masked URLs, so the manager page never loaded it. The rules are
 * kept next to the only markup that uses them.
 */

/* ------------------------------------------------------------------ merch ---
 * The three merchandising banners: best selling drink, best selling combo, and
 * the recommended pair that closes the menu. The recommendations shelf is the
 * same thing with a list in it.
 *
 * These sit IN the dish list, so they have to read as a suggestion rather than
 * as another dish. What makes them read that way is the container -- a thin outline
 * all the way round, a very light tint, a heading and a line of reasoning -- not a
 * different shape of tile and not a stripe down one side. The dishes inside are the
 * menu's own cards, drawn by the same function, so a dish looks like itself wherever
 * it appears.
 *
 * The four accent colours are fixed rather than configurable: they separate the
 * cards from each other, and a store that could pick them would mostly pick the
 * same one four times.
 */
.wr-merch {
	--wr-merch-accent: var(--wr-primary);
	position: relative;
	margin: 22px 0;
	/*
	 * A thin outline all the way round, and nothing else.
	 *
	 * This used to be a tinted panel with a 4px bar down its left-hand side, and the
	 * bar was the awkward part: it read as a table cell or a quote block rather than
	 * as a group of food, and it put a stripe next to the dish photographs, which are
	 * the thing the eye should be going to. The outline does the same job of saying
	 * "these dishes belong together" without drawing a line beside anybody's dinner.
	 *
	 * The tint stays, very light, because it is what separates a suggestion from the
	 * plain list.
	 */
	padding: 14px 12px;
	background: linear-gradient(180deg, rgba(var(--wr-primary-rgb), 0.05), rgba(var(--wr-primary-rgb), 0.015));
	border: 1px solid rgba(var(--wr-primary-rgb), 0.28);
	border-radius: 16px;
	overflow: hidden;
}
/*
 * The coloured rail that used to run down the left of this panel has gone.
 *
 * It was there to mark the group, and the outline above now does that. Kept as a note
 * rather than deleted silently because a coloured bar beside a photograph looks
 * deliberate: somebody rebuilding this screen will reach for one, and it will read
 * like a table cell again.
 */

.wr-merch-theme-mint {
	--wr-merch-accent: #0f9d6e;
	background: linear-gradient(180deg, rgba(15, 157, 110, 0.07), rgba(15, 157, 110, 0.02));
	border-color: rgba(15, 157, 110, 0.18);
}
.wr-merch-theme-saffron {
	--wr-merch-accent: #e08a00;
	background: linear-gradient(180deg, rgba(224, 138, 0, 0.08), rgba(224, 138, 0, 0.02));
	border-color: rgba(224, 138, 0, 0.2);
}
.wr-merch-theme-indigo {
	--wr-merch-accent: #4f5bd5;
	background: linear-gradient(180deg, rgba(79, 91, 213, 0.07), rgba(79, 91, 213, 0.02));
	border-color: rgba(79, 91, 213, 0.18);
}
.wr-merch-theme-coral {
	--wr-merch-accent: var(--wr-primary);
}

/* ------------------------------------------------------------------ shelves ---
 * The home page the customer lands on: a shop window, then shelves.
 *
 * The page used to be one column of everything, and then a shop window with
 * nothing around it. It is now a handful of shelves, which is how a phone shows a
 * lot of food at once: the customer reads the shop window and glances along the
 * rails.
 *
 * A rail holds the SAME card as the menu, drawn by the same function. It is
 * narrower, and that is the only difference, because a dish that looks like one
 * thing on the menu and another thing on the home page is two dishes to a customer
 * working out what to order.
 */
.wr-shelf {
	/*
	 * The space between one shelf and the next, and the space below the rail.
	 *
	 * Two shelves with four pixels of margin between them read as one long list that
	 * happens to change its subject halfway down. The rail inside this carries 18px of
	 * its own bottom padding for the shadow, so the outer margin only has to separate
	 * the headings.
	 */
	margin: 26px 0 8px;
}

.wr-shelf:last-child {
	margin-bottom: 0;
}

/*
 * The shelf heading, stacked rather than on one line.
 *
 * Title and its line of reasoning used to sit at opposite ends of one row, which
 * meant the longer notes -- "what other customers ordered in the last 30 days" -- were
 * cut off mid-sentence on a phone, which is worse than not saying it. Two lines,
 * title first, and nothing silently truncated.
 */
.wr-shelf-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 14px 8px;
}

/*
 * A shelf heading, and it is the largest thing in the section on purpose.
 *
 * The dish names on the cards are 1.22rem, so a heading at under a rem was smaller
 * than the food it was introducing and read as a caption on the row below rather
 * than as the name of a section. A customer scanning for "something sweet" finds
 * the section by its heading, so the heading has to win the page at a glance: bigger
 * than the dish names it introduces, and the dish names are not being touched to
 * make that true.
 */
.wr-shelf-title {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--wr-text-main);
}

.wr-shelf-note {
	font-size: 0.92rem;
	color: var(--wr-text-sub);
	line-height: 1.4;
	/* Two lines at most, so a wordy note cannot push the food off the screen. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/*
 * A category banner: the section's own dishes behind its own name.
 *
 * BUILT FROM THE PRODUCT PHOTOGRAPHS AND THIS CSS. Nothing is uploaded for it and nothing has to be
 * kept in step: a section that gets renamed, or a dish that gains or loses its picture, changes the
 * banner without anybody touching it. Three of the section's foods fill the card edge to edge, and
 * the scrim over them is what makes white type readable on whatever those photographs happen to be
 * -- which is the whole reason a store can be trusted to supply them.
 *
 * IT STANDS WHERE THE PLAIN HEADING STANDS, so it carries the same name and the same count line and
 * needs the same 14px inset the headings use. A section with no photographs gets the same card
 * filled with the store's own colour and no strip at all, rather than three grey boxes.
 */
.wr-cat-banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: calc(100% - 28px);
	margin: 0 14px 12px;
	padding: 0;
	min-height: 96px;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(var(--wr-primary-rgb), 0.78));
	-webkit-appearance: none;
	appearance: none;
}

.wr-cat-banner-art {
	position: absolute;
	inset: 0;
	display: flex;
}

.wr-cat-banner-art img,
.wr-cat-banner-img {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

/*
 * The scrim. Two stops and not one: the left is where the words are and needs the depth, the right
 * can let the food through. It paints over the photographs and under the words, which is why both
 * text spans below are positioned.
 */
.wr-cat-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.wr-cat-banner-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 0 16px 16px;
	min-width: 0;
}

.wr-cat-banner-name {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.wr-cat-banner-note {
	font-size: 0.85rem;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.88);
}

.wr-cat-banner-go {
	position: relative;
	z-index: 1;
	margin-left: auto;
	margin-right: 16px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--wr-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* It is a button, so it has to say so when it is reached by keyboard. */
.wr-cat-banner:focus-visible {
	outline: 3px solid rgba(var(--wr-primary-rgb), 0.6);
	outline-offset: 2px;
}

/*
 * A shelf that scrolls sideways.
 *
 * Contained for the same reason the category rail is: a swipe that reaches the end
 * of a shelf must not hand its leftover movement to the page. The scrollbar is
 * hidden, so the card at the edge is cut off at the screen edge and the next one
 * peeks in, which is what tells a customer the row goes on.
 */
.wr-rail {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	scroll-padding-inline: 14px;
	/*
	 * Room for the shadow, top and bottom.
	 *
	 * A scrolling box clips BOTH axes, so a card's shadow is cut off at the rail's
	 * edge: four pixels of bottom padding left every card in a shelf looking sliced
	 * along its foot. The padding is the shadow's room, not decoration.
	 */
	padding: 6px 14px 18px;
}
.wr-rail::-webkit-scrollbar { display: none; }

/*
 * A CATALOGUE SECTION IS A GRID, NOT A RAIL.
 *
 * The rail above is the shop window: two and a half cards, and the rest one swipe away,
 * which is right for a shelf of recommendations -- it is a suggestion, not an index, and a
 * customer swiping it is browsing rather than looking for something.
 *
 * The catalogue is the opposite. "Makanan · 22 dishes" followed by two cards and a long
 * empty swipe reads as a shop that has lost twenty of them, and a phone shows two at a
 * time, so a twenty-two dish section was eleven swipes deep with no sign of an end. So the
 * section wraps: every dish in it is on the page, in rows, and the count in the heading is
 * true of what is under it.
 */
.wr-rail.wr-grid {
	display: grid;
	/*
	 * 140px, not 160px: the rail carries 14px of side padding, so a 390px phone offers 362px
	 * of content, and two 160px tracks plus the 14px gap need 334 -- except the shell adds
	 * more, and the fit failed by twenty pixels: the section fell to ONE column and read as a
	 * single-file list. Two across on a phone is the shape being asked for.
	 */
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	overflow-x: visible;
	overscroll-behavior-x: auto;
}

/* The card sizes itself to the grid cell rather than to the rail's 168px. */
.wr-rail.wr-grid .wr-product-card {
	flex: none;
	width: auto;
}

/*
 * The rail's card: the menu's card, narrower.
 *
 * 168px is about two and a half cards across a 390px phone, so the next one is
 * always partly visible. The photograph keeps its shape, the price keeps its size,
 * the ADD bar stays the full width of the card, and the description clamps to two
 * lines because it is the one thing on the card that can afford to.
 */
.wr-rail .wr-product-card {
	flex: 0 0 168px;
	width: 168px;
	margin-bottom: 0;
}

.wr-rail .wr-product-details {
	padding: 12px;
}

.wr-rail .wr-product-title {
	font-size: 1rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wr-rail .wr-product-price {
	font-size: 1rem;
	margin-top: 2px;
}

.wr-rail .wr-product-desc {
	font-size: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wr-rail .wr-add-btn-wrapper {
	margin-top: 10px;
}

/*
 * One tap to accept a suggestion of two dishes.
 *
 * Shared by the landing page's combo and pair shelves and by the merchandising panels in
 * the catalogue, because it is the same offer in both places and it should look like it.
 * A rail card carries its own ADD for one dish; this is the button that takes the pair.
 */
.wr-add-all {
	width: 100%;
	margin-top: 12px;
	height: 46px;
	border: 0;
	border-radius: 12px;
	background: var(--wr-primary);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.wr-add-all:focus-visible {
	outline: 2px solid var(--wr-primary);
	outline-offset: 2px;
}

/*
 * Under a shelf, the button belongs to the pair above it.
 *
 * It used to sit 30px under the cards and 26px above the next heading, which is the middle:
 * measured on the demo menu at 1440px, a full width button exactly between two shelves reads
 * as the heading of the one BELOW it and not as the action of the one above. Tighter to its
 * own cards, further from whatever comes next, so there is no doubt which pair it buys. The
 * 18px of room it keeps above is the rail's own bottom padding, which exists so the card
 * shadows are not clipped.
 *
 * The button keeps the shelf's full width, the same shape it takes inside the merchandising
 * panels in the catalogue, and it is inset by the rail's own 14px on both sides, so its edges
 * line up with the cards above it instead of running out to the edge of the shelf.
 *
 * The width is written out as `calc(100% - 28px)` rather than left to `width: auto`, because
 * a button is a form control: with `display: block` and `width: auto` it shrink-to-fits its
 * own label (measured 151px) rather than taking the line, and with the base `width: 100%` still
 * on it the 28px of margins would have been added on top and pushed the shelf wider than the
 * screen. `calc` is the only one of the three that says what is meant.
 */
.wr-shelf > .wr-add-all {
	width: calc(100% - 28px);
	margin: 4px 14px 18px;
}

/* The way from the shop window to the whole menu. */
.wr-see-all {
	display: block;
	width: 100%;
	margin: 18px 0 4px;
	height: 46px;
	border: 1px solid var(--wr-border);
	border-radius: 12px;
	background: var(--wr-surface);
	color: var(--wr-text-main);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.wr-see-all:focus-visible {
	outline: 2px solid var(--wr-primary);
	outline-offset: 2px;
}

.wr-merch-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 2px;
}
.wr-merch-title {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--wr-merch-accent);
}
.wr-merch-badge {
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--wr-merch-accent);
	color: #fff;
	white-space: nowrap;
}
.wr-merch-note {
	font-size: 0.9rem;
	color: var(--wr-text-sub);
	margin-bottom: 10px;
	line-height: 1.4;
}

/*
 * A banner holds the menu's own product cards, one per line.
 *
 * It used to hold a smaller tile of its own design: a 52px thumbnail, the name
 * and the price on one row, and an ADD button on the end. The same dish was then
 * two different things on one screen depending on which shelf it was standing on,
 * and the smaller of the two carried the smaller tap target and the smaller
 * photograph. A suggestion is still a dish, so it is drawn as a dish.
 *
 * The banner keeps its tint and its coloured rail, which is what says "this is
 * something we are suggesting" rather than "this is the menu in order".
 */
.wr-merch-items .wr-product-card {
	margin-bottom: 12px;
}
.wr-merch-items .wr-product-card:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ share ---
 * The share sheet. Every target is a full-width row rather than a grid of
 * icons: these are apps, and a row with the app's name and what it does is
 * legible in a way that six unlabelled coloured squares are not.
 */
.wr-share-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wr-share-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 14px;
	background: var(--wr-surface);
	border: 1px solid var(--wr-border);
	border-radius: 12px;
	color: var(--wr-text-main);
	font-family: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.wr-share-btn:hover,
.wr-share-btn:focus-visible {
	border-color: var(--wr-share-accent, var(--wr-primary));
	color: var(--wr-text-main);
}
.wr-share-btn[hidden] {
	display: none;
}
.wr-share-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--wr-share-accent, var(--wr-primary));
	color: #fff;
}
.wr-share-label {
	flex: 1;
	min-width: 0;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.2;
}
.wr-share-sub {
	flex-shrink: 0;
	font-size: 0.82rem;
	color: var(--wr-text-sub);
	text-align: right;
	max-width: 40%;
	line-height: 1.25;
}
/* Official brand colours, so the rows are recognisable before they are read. */
.wr-share-whatsapp { --wr-share-accent: #25d366; }
.wr-share-status   { --wr-share-accent: #128c7e; }
.wr-share-telegram { --wr-share-accent: #2aabee; }
.wr-share-facebook { --wr-share-accent: #1877f2; }
.wr-share-x        { --wr-share-accent: #14171a; }
.wr-share-copy     { --wr-share-accent: #5f6368; }

/* ------------------------------------------------------------------ see all
 *
 * The full-screen list behind every "See all". Written here rather than in each app so the five
 * screens cannot drift, and deliberately plain: a table, a sticky heading and a scrollable body.
 * Nothing global, nothing that can leak into a phone's own list styles.
 */
.wizpos-seeall {
	position: fixed;
	inset: 0;
	z-index: 20000;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
}

.wizpos-seeall-panel {
	background: #fff;
	width: 100%;
	max-width: 1100px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.wizpos-seeall-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	background: #fff;
}

.wizpos-seeall-head h2 {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 2px;
}

.wizpos-seeall-note {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.wizpos-seeall-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.wizpos-seeall-btn {
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.wizpos-seeall-btn:hover { background: #f9fafb; }
.wizpos-seeall-close { border-color: #111827; }

.wizpos-seeall-body {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px 24px;
	min-height: 0;
}

.wizpos-seeall-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.wizpos-seeall-table th,
.wizpos-seeall-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #f1f5f9;
	white-space: nowrap;
}

.wizpos-seeall-table th {
	position: sticky;
	top: 0;
	background: #f8fafc;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #475569;
	z-index: 1;
}

.wizpos-seeall-empty {
	padding: 24px 4px;
	color: #6b7280;
	font-size: 0.9rem;
}

@media (max-width: 640px) {
	.wizpos-seeall-panel { max-width: none; }
	.wizpos-seeall-head { flex-direction: column; }
	.wizpos-seeall-actions { width: 100%; }
	.wizpos-seeall-btn { flex: 1 1 auto; }
	.wizpos-seeall-table th, .wizpos-seeall-table td { padding: 7px 8px; font-size: 0.8rem; }
}