When to use

An overlay opens over the page when a task needs a moment of focus but should not cost people their place: choosing a store before ordering, a request to a business team, the menu filters on a phone, the cookie preview and cart. Everything else stays on the page.

The website has four overlay shapes, all built from the same paper panel:

  • Dialog: centred, rounded on every corner. The store chooser on Food & Drink, the For Business contact popups, the cookie preview from md.
  • Bottom sheet: meets the bottom edge of a phone, rounded on top. The menu filters, and the cookie preview and cart on phones.
  • Drawer: full height on the right. The cookie cart from md.
  • Corner card: the Home promo from md, small and without dimming, so the page stays usable.

Feedback never floats. A result appears where the action happened, an empty list explains itself in the space of the list, and a problem says what to do next. The website has no toasts and no loading spinners.

Anatomy

Dialog Paper panel · 1 px ink border · 24 px corners · header with the Lilita One title, the intro and the 44 px close button · body. Here: the For Business fleet popup, whose header is open (no rule).
PartRule
Surfacepaper, ink text, a 1 px ink border. The only edge: no shadow, as everywhere on the site.
CornersPanel radius, 24 px. Sheets keep it on the top corners only; the drawer is square.
TitleLilita One at the display-s size (24 to 28 px), in capitals. An intro under it in body-s when the overlay needs one.
HeaderEither open (title and intro, 24 px padding, 32 px from md) or ruled: an ink line under the title row.
CloseA 44 px circle with a 1 px ink ring and an 18 px X, named for screen readers (Close, Close filters). In the store chooser and the filters sheet it fills with ink on hover.
Dimmingnight at 60 % behind every modal overlay (the native ::backdrop).
HeightAt most 92 % of the screen (88 % for the filters sheet). The body scrolls inside.
Close 44 px, 1 px ink ring, 18 px X.
Close, hover Store chooser and filters sheet: fills with ink.
Close, focus The site's focus ring: 3 px ink, 3 px away.

Dialogs

Every dialog is the browser’s native modal <dialog>, sized with min(100% - 2rem, width): on a phone it keeps 16 px of page on each side.

Store chooser Food & Drink, when a visitor picks or changes the store. At most 560 px wide: pickup time, search, results between line hairlines, then the link to the full finder.
Business request, unavailable When online requests cannot be delivered, the popup says so instead of showing a form that goes nowhere.
Store chooser, no match An empty search inside a dialog: a quiet surface panel in place of the rows.
DialogWidthHeaderOpened from
Store chooser560 pxRuled, 16 px (20 px from md)Change store and the store gate on Food & Drink
For Business contact640 pxOpen, title and introContact the fleet team, Request a quote and the other team buttons
Cookie preview960 px from mdRuled, title and a captionPreview in the cookie flow and the cart

The For Business popup remounts its form on every opening, so a sent or failed state never greets the next visitor. Its buttons, Send and Cancel, sit side by side.

Bottom sheets and drawer

Phones and tablets get a sheet wherever desktop shows the same controls in place: the menu filters live in a sidebar from lg and in a sheet below it.

Filters sheet, phone Full width, 24 px top corners, an ink rule on top. Footer: Show N items over Clear all, both at full width.
Cart drawer, md and up Cookie cart: full height on the right, at most 480 px, square, an ink rule on its left. Here with the pickup slot gone: the alert takes the place of the pickup card and checkout is disabled.
Filters sheet, tablet From md the sheet is at most 640 px wide and centred, with ink rules on its sides; the footer turns into one row, Show items on the right.
PartRule
HeaderTitle and close over an ink rule: 12 px vertical padding in the filters sheet, 16 px in the cookie sheets and drawer.
BodyScrolls on its own and carries data-lenis-prevent, so smooth scrolling never fights it. Page gutter at the sides on phones, 32 px from md.
FooterUnder an ink rule, 16 px padding, and it stays in place. Filters: Show 12 items in ink (it closes the sheet: filters apply as they change) and Clear all outlined, both 48 px. Cart: the totals and Continue to checkout in red, the one primary action.
Cookie previewOn phones a sheet at most 92 % tall; from md a 960 px dialog.
CartOn phones a sheet 92 % tall; from md a drawer the height of the screen, at most 480 px wide.

Corner card

Promo card, md and up A 380 px card 24 px from the bottom-right corner, an 84 px photo strip, no dimming. A non-modal dialog: the page stays visible and usable.
Promo, phone A modal at most 448 px wide, a 180 px photo, the heading one size up and the two buttons stacked at full width.

The Home promo opens once per browser session, four seconds after the Home loads, and never during the first render. Escape, the close button and No thanks close it; on phones a tap on the dimmed page does too. Automated browsers do not see it unless the address carries ?popup, so tests and crawlers are never blocked.

Page dimming

Behind a dialog or sheet Night at 60 %, the native backdrop of every modal overlay. A click on it closes the overlay.
Under a mega-menu Night at 50 %, from the bottom of the header down. Pointing at it or clicking it closes the menu.
LayerValueMotion
Modal backdropnight at 60 %Appears with the dialog, at once.
Mega-menu scrimnight at 50 %Fades in over 300 ms on the expo-out curve, cubic-bezier(0.16, 1, 0.3, 1); out over 200 ms. The panel fades in while moving down 8 px over 400 ms.
Photo scrimnight from 80 % to clear, bottom two fifths of the Home sliderThe one gradient on the site, under the slider tabs (Graphic System).

Dimming is always night, never black or ink, and never on a corner card.

Store gate

The store gate is not an overlay, but it does an overlay’s job in place: on a first visit to Food & Drink it asks for a store before the menu loads, without covering anything.

Choose your store Where are you picking up? Menus and prices change by store. Pick one and the items below load right here.
ZIP code, city or address City, ZIP or address Find stores Recent: Store 002 Browse all stores
Store gate, desktop Surface band between ink rules. Question on the left (5 of 12 columns), search on the right (columns 7 to 12), recent stores and Browse all stores below the search.
Choose your store Where are you picking up? Menus and prices change by store. Pick one and the items below load right here.
ZIP code, city or address City, ZIP or address Find stores Browse all stores
Store gate, phone Stacked. The 56 px field and the Find stores button both span the width, field first.
PartRule
Bandsurface, 1 px ink rules above and below, the small section padding (40 to 48 px).
Eyebrow16 px map pin and Choose your store.
SearchA 56 px field with 16 px corners and a 56 px ink Find stores button with an 18 px search icon. It opens the store chooser filtered by what was typed.
RecentRecent: in caption type and the stores chosen before as 44 px outlined chips that fill with ink on hover. They are read after the page loads, so the first render never shows them.

Messages

A message replaces or tops the thing it reports on, in a full sentence.

Thank you, your request has been sent. Our team will be in touch using the email address you provided.
Sent A business request that went through: it takes the place of the form.
Thanks! You’re entered.
Entered The Home promo sign-up: the thank-you takes the place of the form.
Not sent A request that failed: above the fields, the answers stay.
Fix the following Errors on submit: a summary on top, each error a link to its field.
MessageFillEdgeCornersPaddingType
Sentpastelnone24 px32 pxLilita One heading, body
Enteredsurfacenone24 px20 pxBody L
Not sentsurfacenone24 px24 pxBody
Error summarynone2 px ink24 px24 pxLilita One heading, UI links underlined at 2 px
Added to cartsurfacenone16 px12 by 16 pxCheck icon, UI type

Field-level errors and every form message are covered on the Forms page.

Empty states

No stores match Try a different city, ZIP code or store name, or clear the filters. Clear search and filters
No stores match Locations: the panel takes the place of the list. The way out clears the search and filters.
No store near “00009” is open 24 hours. Try a different city or ZIP code, or clear the filters. Clear “Open 24 Hours”
With filters on Find a Store names the filters in the heading and offers to clear the last one.
PartRule
Panelsurface, 24 px corners, 32 px padding.
HeadingLilita One, display-s. It says what did not match, with the search and filters when there are any.
TextBody type, 12 px under the heading. With a fuel filter on, it names the nearest store with that fuel as a link.
Way outOne underlined UI-type button, 44 px tall, 20 px below.

Site search is the exception: with nothing found it keeps its count line (0 results for “…”) and the closing line that points to the Help Center and Find a Store, with no panel.

Notices and warnings

Added to cart
Added Cart drawer, after adding a design. Announced as a status.
Pickup slot gone The one warning with actions: pastel, 2 px ink, 16 px corners, the warning triangle, then the two ways forward.

The warning triangle appears in two places only: this alert (18 px) and the low print quality line under an uploaded cookie photo (14 px, caption type, next to the text Print quality: low. A larger photo will print sharper.). A good photo gets a check instead. There is no red message: red is for the primary action alone.

Loading

The website has no spinners and no skeletons. Waiting is said in words, in place:

Finding you…
Locating Use my location while the browser answers: the label changes and the button reports busy.
Sending…
Sending A business request in flight: the submit reads Sending… and is disabled.
Loading pickup times…
Pickup times Slots are computed on the device, after the page loads.

Live store status keeps an empty line of its own height until the device clock is read, so nothing shifts when Open 24 hours appears. The cookie order and confirmation pages hold their space (60 % of the screen, marked busy) until the saved order is read.

States

OverlayOpensClosesScroll lock
Store chooserChange store, the store gateEscape, close, the backdrop, choosing a storeYes
For Business popupThe team buttonEscape, close, Cancel, the backdropYes
Filters sheetFiltersEscape, close, the backdrop, Show N items, Clear allYes
Promo, md and upFour seconds after the Home loads, once a sessionEscape, close, No thanksNo
Promo, phoneThe sameAlso the backdropYes
Cookie preview, cartPreview, the cart buttonEscape, close, the backdropNo; the body is data-lenis-prevent
Mega-menuHover (after 120 ms) or the chevronEscape, a click outside, leaving the item (after 220 ms), a route changeNo

Modal overlays appear and disappear at once: there is no slide or fade. Only the mega-menu animates.

Scroll lock. useLockBodyScroll puts overflow: hidden on the root element, not on the body, so the sticky header stays put; it pads the root by the scrollbar’s width so the layout does not jump on desktop browsers with classic scrollbars, and it pauses Lenis smooth scrolling with stopSmoothScroll() until the overlay closes. Any panel that scrolls on its own carries data-lenis-prevent.

Sizes

ElementMeasure
Close button44 px circle, 18 px icon
Store chooserAt most 560 px wide
For Business popupAt most 640 px wide
Promo380 px corner card from md; at most 448 px on phones
Filters sheetFull width on phones, at most 640 px from md, at most 88 % tall
Cookie previewFull-width sheet on phones, 960 px dialog from md, at most 92 % tall
CartFull-width sheet 92 % tall on phones, 480 px full-height drawer from md
Buttons inside overlays48 px in the filters sheet, the store chooser and the cookie dialogs; 44 px in the promo form, the cart alert and the For Business popup (its submit grows to 48 px from lg)
Phone margin16 px each side for every centred dialog

Usage

Thank you, your request has been sent. Our team will be in touch using the email address you provided.
Correct The message takes the place of the form and says what happens next.
Sent
Avoid A floating bar with a single word, gone before anyone reads it.
Correct Dim the page with night, and let the panel's ink border be its only edge.
Avoid A drop shadow or a black veil: the site has neither.
Correct A warning in pastel with the triangle, the facts and the two ways forward.
This pickup time is no longer available.
Avoid A red alert: red belongs to ORDER FOOD and checkout, never to a problem.
  • Stack only within one task. The cookie preview may open over the cart, because it previews a line of that cart. Nothing else opens over an overlay.
  • Always a way out. Escape and a visible close button, plus Cancel or No thanks where there is a form.
  • Red stays on the action. Inside an overlay the primary button is ink, except the cart checkout, which is the page’s one red action.
  • Say it in place. Results, errors and confirmations appear where the action happened, in full sentences.

Accessibility

  • Dialogs and sheets are native modal <dialog> elements: the rest of the page is inert while they are open, Escape closes them, and focus returns to the button that opened them. Each is named by its title (aria-labelledby) and the For Business popup also by its intro.
  • Opening buttons say what they open (aria-haspopup="dialog" on the business buttons and Find stores).
  • The promo card from md is non-modal, so the page stays usable; Escape still closes it.
  • Successes and quiet updates are status messages; failures, the error summary and the pickup warning are alerts. After a submit, focus moves to the summary or the result.
  • Result counts (3 stores near you) are polite live regions, so filtering is announced without moving focus.
  • Close buttons and every action inside overlays are at least 44 px. Nothing depends on animation: under reduced motion the mega-menu panel no longer moves and its chevron turns at once.

Source

Website
components/locations/StoreChooserDialog.tsxcomponents/locations/StoreChooser.tsxcomponents/forms/BusinessFormDialog.tsxcomponents/forms/BusinessForm.tsxcomponents/sections/MenuFilterSheet.tsxcomponents/sections/HomePromoPopup.tsxcomponents/custom-cookies/CookieDialogs.tsxcomponents/navigation/MegaMenuItem.tsxcomponents/sections/StoreGate.tsxcomponents/locations/StoreFinder.tsxcomponents/locations/LocationsExplorer.tsxcomponents/sections/SearchResults.tsxhooks/useLockBodyScroll.tslib/smooth-scroll.ts