/* All presentation changes require an explicit opt-in. Existing settings still own colour and fonts. */
.menuSidebarActionLabel { display:none; }
.menuSideBar[data-sidebar-actions="1"] .sideBarAction,
.menuSideBar[data-sidebar-actions="2"] .sideBarAction,
.menuSideBar[data-sidebar-actions="3"] .sideBarAction { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px; margin:4px; border:1px solid currentColor; box-sizing:border-box; text-decoration:none; }
.menuSideBar[data-sidebar-actions="1"] .sideBarAction { border-radius:50%; }
.menuSideBar[data-sidebar-actions="2"] .sideBarAction { border-radius:8px; }
.menuSideBar[data-sidebar-actions="3"] .sideBarAction { flex-direction:column; gap:5px; border:0; }
.menuSideBar[data-sidebar-actions="3"] .menuSidebarActionLabel { display:block; font-size:18px; line-height:1.25; }


.menuBrowsingCompact[hidden] { display:none !important; }
.menuBrowsingHeader { position:sticky; top:0; z-index:2; }
.menuBrowsingHeader > .stickySwiper,
.menuBrowsingHeader > .stickySearchbar,
.menuBrowsingHeader > .stickySearchbar-rtl,
.menuBrowsingHeader > .category-reminder { position:relative !important; top:auto !important; inset-inline:auto; transform:none !important; width:100%; box-sizing:border-box; }
.menuBrowsingHeader { top:calc(-1 * var(--browsing-hidden-height,0px)); overflow-anchor:none; }
.menuBrowsingHeader.is-compact > .stickySwiper,
.menuBrowsingHeader.is-compact > .stickySearchbar,
.menuBrowsingHeader.is-compact > .stickySearchbar-rtl { visibility:hidden; pointer-events:none; }
.menuBrowsingCompact { display:flex; align-items:center; gap:10px; position:absolute; inset-inline:0; bottom:var(--browsing-reminder-height,0px); min-height:60px; padding:6px 12px; box-sizing:border-box; }
.menuBrowsingCompact .menuBrowsingCurrent { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:24px; }
.menuBrowsingCompact .menuSideBarLink { float:none; position:static; width:auto; padding:8px 12px; margin:0; border:1px solid currentColor; border-radius:6px; font-size:24px; white-space:nowrap; }
.menuBrowsingExpand { appearance:none; background:none; border:0; border-radius:5px; box-shadow:none; color:inherit; padding:8px; margin:0; min-width:44px; min-height:44px; }
.menuBrowsingExpand svg { display:block; width:24px; height:24px; }
ul.menu.menuBrowsingEnabled > li.product { margin-top:5px !important; margin-bottom:5px !important; }
ul.menu.menuBrowsingEnabled > li.product > a > .imgColumn { padding-block:6px; }
ul.menu.menuBrowsingEnabled > li.product > a > .descColumn { padding-block:6px; }
ul.menu.menuBrowsingEnabled > li.product > a .itemName { margin-bottom:4px; }
/* Consistent thumbnails in opt-in browsing modes. Legacy flex growth must not
   stretch photographs when the description beside them needs more lines. */
ul.menu.menuBrowsingEnabled > li.product { --menu-thumbnail-size:clamp(90px,22vw,120px); }
ul.menu.menuBrowsingEnabled > li.product > a > .imgColumn > .aligner { align-items:flex-start; }
ul.menu.menuBrowsingEnabled > li.product > a > .imgColumn .productImage { flex:none; width:var(--menu-thumbnail-size) !important; min-height:0; height:var(--menu-thumbnail-size) !important; }
ul.menu.menuBrowsingEnabled > li.product > a > .imgColumn { flex:0 0 auto; width:auto !important; }
ul.menu.menuBrowsingEnabled > li.product > a > .descColumn { flex:1 1 0; min-width:0; width:auto !important; }


/* Keep the expanded flow height while the actual navigation surface reduces smoothly. */
.menuBrowsingHeader { box-sizing:border-box; }
.menuNavigationSurface { position:absolute; inset-inline:0; bottom:0; }
.menuNavigationSurface > :is(.stickySwiper,.stickySearchbar,.stickySearchbar-rtl,.category-reminder) { position:relative !important; top:auto !important; transform:none !important; width:100%; box-sizing:border-box; }
.menuNavigationSurface > .menuBrowsingCompact { position:relative; inset:auto; }
.menuBrowsingHeader[data-gallery-scroll="legacy"].is-compact .menuNavigationSurface > :is(.stickySwiper,.stickySearchbar,.stickySearchbar-rtl) { display:none; }
.menuBrowsingHeader .stickySwiper { min-height:0; }
.menuBrowsingHeader .stickySwiper,.menuBrowsingHeader .swiper-container,.menuBrowsingHeader .swiper-slide,.menuBrowsingHeader .swiper-slide>img { transition:height 220ms ease,padding 220ms ease,opacity 180ms ease; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="1"] .stickySwiper { height:0 !important; padding-block:0 !important; overflow:hidden; opacity:0; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .stickySwiper { height:76px !important; padding:8px 12px; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-container { height:60px !important; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-slide { height:56px !important; background:none; display:flex; align-items:center; justify-content:center; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-slide>img { height:0 !important; opacity:0; }
.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-title { position:static; width:100%; color:inherit; background:none; box-shadow:none; font-size:24px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .stickySwiper { height:110px !important; padding-block:5px; }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-container { height:100px !important; }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-slide { height:95px !important; border-radius:var(--upper-radius,6px); overflow:hidden; }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-slide>img { height:95px !important; width:100%; object-fit:cover; border-radius:inherit; }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-title { position:absolute; bottom:0; width:100%; min-height:0; color:white !important; background:rgba(0,0,0,.6); box-shadow:none; font-size:22px; line-height:1.2; }
.menuMeasuring,.menuMeasuring * { transition:none !important; }
/* Scale all card text from its own configured size, preserving custom fonts and colours. */
ul.menu.menuBrowsingEnabled > li.product { --menu-density:.8; --menu-thumbnail-size:clamp(88px,20vw,112px); }
ul.menu.menuBrowsingEnabled > li.product .menuDensityText { font-size:max(18px,calc(var(--menu-reading-size) * var(--menu-density))) !important; line-height:1.22; }
ul.menu.menuBrowsingEnabled > li.product > a > .imgColumn { padding:7px; }
ul.menu.menuBrowsingEnabled > li.product > a > .descColumn { padding:7px 10px; }
ul.menu.menuBrowsingEnabled > li.product .itemDescription { margin-block:5px; -webkit-line-clamp:2; }
ul.menu.menuBrowsingEnabled > li.product .itemPrice { margin-top:5px; }
ul.menu.menuBrowsingEnabled > li.product .allergensColumn img { max-width:30px; max-height:30px; object-fit:contain; }
@media(prefers-reduced-motion:reduce) { .menuBrowsingHeader * { transition:none !important; } }

.menuBrowsingHeader.is-compact .stickySwiper { min-height:0;box-sizing:border-box; }
.menuBrowsingHeader.is-compact .swiper-slide>img { margin-bottom:0; }
.menuBrowsingHeader[data-gallery-scroll="legacy"] { transition:top 220ms ease; }
@media(prefers-reduced-motion:reduce) { .menuBrowsingHeader { transition:none; } }

.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .stickySwiper.type-5 .swiper-slide>img { display:block; }
ul.menu.menuBrowsingEnabled > li.product .specialtyTag { font-size:calc(var(--menu-reading-size) * var(--menu-density)) !important;padding:4px 7px; }
ul.menu.menuBrowsingEnabled > li.product .specialtyTagIcon img { height:30px !important;width:auto; }

.menuBrowsingHeader.is-compact[data-gallery-scroll="4"] .swiper-title { color:#111 !important; background:rgba(255,255,255,.8); }
.menuNavigationSurface [hidden] { display:none !important; }

/* The wave scales within each row's reserved space. Scroll positions and anchors stay fixed. */
ul.menu.menuWaveEnabled { overflow-anchor:none; }
ul.menu.menuWaveEnabled > li.product { transform:scale(calc(.90 + .10 * var(--menu-wave,0))); transform-origin:center; }
ul.menu.menuWaveEnabled > li.product .itemDescription { -webkit-line-clamp:2; }
ul.menu.menuWaveEnabled > li.product .itemName { -webkit-line-clamp:2; }
ul.menu[data-product-image-radius="custom"] > li.product .productImage { border-radius:var(--product-image-radius) !important; }
ul.menu[data-product-bubble-radius="custom"] > li.product:is(.bubbleListSideAligned,.bubbleListCentered,.bubbleImageSideAligned,.bubbleImageRightAligned) { border-radius:var(--product-bubble-radius) !important; overflow:hidden; }
ul.menu[data-product-bubble-radius="custom"] > li.product[data-product-group="start"] { border-bottom-left-radius:0 !important; border-bottom-right-radius:0 !important; }
ul.menu[data-product-bubble-radius="custom"] > li.product[data-product-group="middle"] { border-radius:0 !important; }
ul.menu[data-product-bubble-radius="custom"] > li.product[data-product-group="end"] { border-top-left-radius:0 !important; border-top-right-radius:0 !important; }
