/* Text strip is an optional presentation of the existing scheduled section navigation. */
.stickySwiper.type-5 { box-sizing:border-box; min-height:0; height:76px; padding:8px 12px; z-index:2; }
.stickySwiper.type-5 .swiper-container { height:60px; }
.stickySwiper.type-5 .swiper-wrapper { align-items:center; }
.stickySwiper.type-5 .swiper-slide { box-sizing:border-box; width:auto; max-width:85%; height:56px; padding:8px 16px; cursor:pointer; border:1px solid transparent; border-radius:8px; }
.stickySwiper.type-5 .swiper-title { display:block; position:static; width:auto; min-height:0; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:none; font-size:26px; line-height:38px; color:inherit; }
.stickySwiper.type-5 .swiper-slide[aria-current=true] { border-color:currentColor; }
.stickySwiper .swiper-slide:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }
.menuCategoriesOnly { justify-content:flex-start; box-sizing:border-box; padding-inline:12px; }
.menuCategoriesOnly .menuSideBarLink { margin:0; }
.menuSideBar.menuTextNavigation .sideBarScrollTrigger[aria-current=true] > .categoryName,
.menuSideBar.menuTextNavigation .sideBarScrollTrigger[aria-current=true] > .menuSectionName { text-decoration:none; text-underline-offset:.16em; }


/* With search hidden, keep the Categories action outside the moving strip,
   on the same sticky row. The flex direction follows the menu language. */
.stickySwiper.type-5.menuTextCategoriesRow { display:flex; align-items:center; gap:12px; }
.menuTextCategoriesRow > .swiper-container { flex:1 1 0%; min-width:0; width:0; margin:0; }
.menuTextCategoriesRow > .menuSideBarLink {
 box-sizing:border-box; flex:0 0 auto; max-width:50%; height:60px;
 display:block; padding:13px 10px; border:1px solid; border-radius:10px;
 font-size:22px; line-height:32px; text-align:center; text-decoration:none;
 white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.menuTextCategoriesRow > .menuSideBarLink:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

/* Refined treatment applies only to the combined text strip / Categories row. */
.stickySwiper.type-5.menuTextCategoriesRow { gap:10px; }
.stickySwiper.type-5.menuTextCategoriesRow .swiper-slide {
 padding:8px 12px; border:0; border-bottom:2px solid transparent; border-radius:0;
}
.stickySwiper.type-5.menuTextCategoriesRow .swiper-title { font-size:24px; line-height:34px; }
.stickySwiper.type-5.menuTextCategoriesRow .swiper-slide[aria-current=true] { border-bottom-color:currentColor; }
.menuTextCategoriesRow > .menuTextDivider { flex:0 0 auto; height:24px; border-inline-start:1px solid currentColor; opacity:.25; }
.menuTextCategoriesRow > .swiper-container {
 --menu-fade-left:0px; --menu-fade-right:0px;
 -webkit-mask-image:linear-gradient(to right, transparent, #000 var(--menu-fade-left), #000 calc(100% - var(--menu-fade-right)), transparent);
 mask-image:linear-gradient(to right, transparent, #000 var(--menu-fade-left), #000 calc(100% - var(--menu-fade-right)), transparent);
}
.menuTextCategoriesRow > .swiper-container.hasOverflowLeft { --menu-fade-left:20px; }
.menuTextCategoriesRow > .swiper-container.hasOverflowRight { --menu-fade-right:20px; }
.category-reminder[hidden] { display:none; }

/* Optional image navigation: reuse the menu's configured colours, fonts and images. */
.menuImageToolbar { box-sizing:border-box; gap:12px; padding-inline:12px; }
.menuImageToolbar.menuCategoriesOnly { height:76px; justify-content:space-between; }
.menuImageToolbar .menuNavigationCurrent { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:24px; line-height:34px; }
.menuImageToolbar > .menuSideBarLink { box-sizing:border-box; flex:0 0 auto; max-width:50%; height:60px; margin:0; padding:13px 10px; font-size:22px; line-height:32px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; text-decoration:none; border:1px solid currentColor; border-radius:10px; }
.menuImageToolbar > form { flex:1 1 0; min-width:0; }
.menuImageToolbar input#filter { box-sizing:border-box; width:100%; max-width:100%; height:60px; margin:0; }
.menuImageToolbar .ui-input-text { display:block; margin:0; }
.menuImageToolbar > .menuSideBarLink:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.menuImageNavigation { position:-webkit-sticky; position:sticky; top:0; z-index:2; }
.menuImageNavigation[data-mode="2"] { top:calc(-1 * var(--menu-image-height, 225px)); }
.menuImageNavigation > .stickySwiper,
.menuImageNavigation > .stickySearchbar, .menuImageNavigation > .stickySearchbar-rtl,
.menuImageNavigation > .category-reminder { position:relative; top:auto; transform:none; }
.menuImageNavigation .swiperScrollTrigger[aria-current=true] .swiper-title { text-decoration:none; text-underline-offset:.15em; }
.menuImageNavigationPanel .sideBarScrollTrigger[aria-current=true] > .categoryName,
.menuImageNavigationPanel .sideBarScrollTrigger[aria-current=true] > .menuSectionName { text-decoration:none; text-underline-offset:.15em; }

.menuImageNavigation > .stickySwiper.is-empty { display:none; }

/* Upper-section options are independent of the product card layout. */
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) { height:125px; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) .swiper-container { height:115px; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) .swiper-slide { height:110px; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) .swiper-slide > img { width:100%; height:110px; object-fit:cover; }
.menuUpperAppearance[data-upper-radius="custom"] :is(.stickySwiper .swiper-slide,.stickySwiper .swiper-slide>img,.stickySwiper .swiper-slide>.menuSideBarLink,.stickySearchbar>.menuSideBarLink,.stickySearchbar-rtl>.menuSideBarLink,.menuTextCategoriesRow>.menuSideBarLink,.menuBrowsingCompact>.menuSideBarLink,.menuInlineCollapsedToolbar>.menuSideBarLink,#filter) { border-radius:var(--upper-radius) !important; }
.menuUpperAppearance[data-upper-radius="custom"] .stickySwiper .swiper-slide { overflow:hidden; }
.menuCategoriesGrid { display:none; width:30px; height:30px; fill:currentColor; flex:none; }
.menuUpperAppearance[data-upper-button-style="1"] :is(.stickySearchbar,.stickySearchbar-rtl,.menuTextCategoriesRow,.menuBrowsingCompact)>.menuSideBarLink { border:0;  box-shadow:none; }
.menuUpperAppearance[data-upper-button-style="2"] :is(.stickySearchbar,.stickySearchbar-rtl,.menuTextCategoriesRow,.menuBrowsingCompact)>.menuSideBarLink { border:0;  width:60px; min-width:60px; max-width:60px; padding:12px; height:60px; display:flex; align-items:center; justify-content:center; }
.menuUpperAppearance:is([data-upper-button-style="2"],[data-upper-button-style="3"]) .menuCategoriesGrid { display:inline-block; }
.menuUpperAppearance[data-upper-button-style="2"] .menuCategoriesLabel { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.menuUpperAppearance[data-upper-button-style="3"] :is(.stickySearchbar,.stickySearchbar-rtl,.menuTextCategoriesRow,.menuBrowsingCompact)>.menuSideBarLink { display:flex; align-items:center; justify-content:center; gap:8px; }
.menuUpperAppearance:not([data-upper-button-style="0"]) :is(.stickySearchbar,.stickySearchbar-rtl),
.menuUpperAppearance[data-upper-search-fill]:not([data-upper-search-fill="0"]) :is(.stickySearchbar,.stickySearchbar-rtl) { display:flex; align-items:center; gap:12px; padding-inline:12px; box-sizing:border-box; }
.menuUpperAppearance:not([data-upper-button-style="0"]) :is(.stickySearchbar,.stickySearchbar-rtl)>form { flex:1 1 0; min-width:0; width:auto; }
.menuUpperAppearance:not([data-upper-button-style="0"]) :is(.stickySearchbar,.stickySearchbar-rtl) .ui-input-text { width:100%; margin:0; }
.menuUpperAppearance:not([data-upper-button-style="0"]) #filter { width:100%; min-width:0; margin:0; box-sizing:border-box; }
.menuUpperAppearance:not([data-upper-button-style="0"]) :is(.stickySearchbar,.stickySearchbar-rtl)>.menuSideBarLink { flex:0 0 auto; margin:0; max-width:55%; }
/* The legacy PNG has an opaque white backing. Use a separate, colour-matched
   magnifier for custom fills; default menus retain their original image. */
.menuUpperAppearance:not([data-upper-search-fill="0"]) #filter { background-color:var(--upper-search-fill) !important; background-image:none !important; color:var(--upper-search-ink) !important; border:1px solid currentColor; box-shadow:none; }
.menuUpperAppearance:not([data-upper-search-fill="0"]) :is(.stickySearchbar,.stickySearchbar-rtl) > form { position:relative; }
.menuUpperAppearance:not([data-upper-search-fill="0"]) :is(.stickySearchbar,.stickySearchbar-rtl) > form::before {
 content:""; position:absolute; z-index:1; left:16px; top:50%; transform:translateY(-50%);
 width:26px; height:26px; pointer-events:none; background-color:var(--upper-search-ink); opacity:.75;
 --upper-search-icon:url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");
 -webkit-mask:var(--upper-search-icon) center / contain no-repeat;
 mask:var(--upper-search-icon) center / contain no-repeat;
}
.menuUpperAppearance:not([data-upper-search-fill="0"]) .stickySearchbar-rtl > form::before { left:auto; right:16px; }
.menuUpperAppearance:not([data-upper-search-fill="0"]) .stickySearchbar-rtl #filter { padding-right:56px; }
.menuUpperAppearance:not([data-upper-search-fill="0"]) #filter::placeholder { color:inherit; opacity:.75; }
.menuUpperAppearance:not([data-upper-title-alignment="0"]) :is(.menuNavigationCurrent,.menuBrowsingCurrent,.menuTextCategoriesRow .swiper-title,.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-title) { text-align:var(--upper-title-align); }
.menuUpperAppearance[data-upper-title-size="custom"] :is(.menuNavigationCurrent,.menuBrowsingCurrent,.menuTextCategoriesRow .swiper-title,.menuBrowsingHeader.is-compact[data-gallery-scroll="2"] .swiper-title) { font-size:var(--upper-title-size) !important; line-height:1.2; }

.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) { min-height:0;box-sizing:border-box;padding-block:5px; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) .swiper-slide>img { margin:0; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) .swiper-title { position:absolute;bottom:0;width:100%;min-height:0; }

.stickySwiper.type-5 .swiper-slide>img { display:none; }
.menuInlineCollapsedToolbar { display:flex;align-items:center;min-height:76px; }
.menuInlineCollapsedToolbar[hidden] { display:none; }
.menuUpperAppearance[data-upper-button-style="2"] .menuInlineCollapsedToolbar>.menuSideBarLink { border:0;width:60px;min-width:60px;max-width:60px;height:60px;padding:12px;display:flex;align-items:center;justify-content:center; }
.menuUpperAppearance[data-upper-button-style="1"] .menuInlineCollapsedToolbar>.menuSideBarLink { border:0; }
.menuUpperAppearance[data-upper-button-style="3"] .menuInlineCollapsedToolbar>.menuSideBarLink { display:flex;align-items:center;gap:8px; }

/* A single row rhythm for the enhanced toolbar, including its scrolled state.
   Default menus without these options retain their original toolbar geometry. */
.menuUpperAppearance :is(.stickySwiper,.stickySearchbar,.stickySearchbar-rtl,.menuBrowsingCompact,.menuInlineCollapsedToolbar) .menuSideBarLink,
.menuUpperAppearance :is(.stickySwiper,.stickySearchbar,.stickySearchbar-rtl,.menuBrowsingCompact,.menuInlineCollapsedToolbar) .menuSideBarLink:is(:hover,:focus,:active,:visited),
.menuUpperAppearance .menuCategoriesLabel { text-decoration:none !important; }
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar,.menuBrowsingCompact,.menuInlineCollapsedToolbar) {
 display:flex; align-items:center; gap:10px; height:auto !important; min-height:72px; padding:6px 12px !important; box-sizing:border-box;
}
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar) > form { flex:1 1 0; min-width:0; width:auto; margin:0; padding:0; }
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar) .ui-input-text { width:100%; margin:0; padding:0; }
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar) #filter { box-sizing:border-box; height:60px; min-height:0; width:100%; min-width:0; margin:0; padding-block:8px; line-height:normal; }
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar,.menuBrowsingCompact,.menuInlineCollapsedToolbar) > .menuSideBarLink {
 position:static; float:none; display:flex; align-items:center; justify-content:center; flex:0 0 auto;
 box-sizing:border-box; width:auto; min-width:44px; max-width:50%; height:60px; min-height:60px;
 padding:8px 12px; margin:0; line-height:1.2; white-space:nowrap; overflow:hidden;
}
.menuUpperAppearance :is(.menuAdaptiveToolbar,.menuImageToolbar,.menuBrowsingCompact,.menuInlineCollapsedToolbar) .menuCategoriesLabel { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.menuUpperAppearance :is(.menuNavigationCurrent,.menuBrowsingCurrent) { flex:1 1 0; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.2; }
.menuUpperAppearance[data-upper-button-style="2"] :is(.menuAdaptiveToolbar,.menuImageToolbar,.menuBrowsingCompact,.menuInlineCollapsedToolbar) > .menuSideBarLink { width:60px; min-width:60px; max-width:60px; padding:12px; }

.menuUpperAppearance .menuNavigationCurrent[hidden] { display:none !important; }

/* The title is local to its tile, not fixed to the transformed Swiper wrapper. */
.stickySwiper:is(.type-1,.type-2) .swiper-title { position:absolute; clip-path:inset(-300px 0 0 round 0 0 var(--gallery-caption-radius,5px) var(--gallery-caption-radius,5px)); }
.menuUpperAppearance[data-upper-radius="custom"] { --gallery-caption-radius:var(--upper-radius); }
.menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-title { clip-path:inset(-300px 0 0 round 0 0 var(--upper-radius,6px) var(--upper-radius,6px)); }

/* Leave room inside large rounded corners so long titles are not cut by the curve. */
.menuUpperAppearance[data-upper-radius="custom"] .stickySwiper:is(.type-1,.type-2) .swiper-title,
.menuUpperAppearance[data-upper-radius="custom"] .menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-title { box-sizing:border-box; padding:3px calc(4px + var(--upper-radius) * .6); }

.menuUpperAppearance .stickySwiper:not(.type-5) { box-sizing:border-box; padding-inline:clamp(12px,2.3vw,20px); }
.menuUpperAppearance .stickySwiper:is(.type-1,.type-2) .swiper-title,
.menuUpperAppearance .menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-title { box-sizing:border-box; padding:4px 10px; }
.menuUpperAppearance[data-upper-radius="custom"] .stickySwiper:is(.type-1,.type-2) .swiper-title,
.menuUpperAppearance[data-upper-radius="custom"] .menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .swiper-title { padding-inline:calc(8px + var(--upper-radius) * .55); }
.menuUpperAppearance :is(.menuNavigationCurrent,.menuBrowsingCurrent) { box-sizing:border-box; padding-inline:8px; }

/* Shared photo-gallery padding prevents a second vertical motion when changing shape. */
.menuUpperAppearance .stickySwiper:not(.type-5),
.menuUpperAppearance .menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .stickySwiper { padding-block:10px; }
.menuUpperAppearance[data-upper-gallery-shape="1"] .stickySwiper:is(.type-1,.type-2) { height:135px; padding-block:10px; }
.menuUpperAppearance .menuBrowsingHeader.is-compact:is([data-gallery-scroll="3"],[data-gallery-scroll="4"]) .stickySwiper { height:120px !important; }

/* Paint one continuous surface under adjacent rows, including fractional mobile zoom. */
.menuImageNavigation,.menuNavigationSurface { background-color:var(--menu-navigation-fill,var(--app-bg,#fff)); }

/* The saved opener artwork follows both tall and small Categories controls. */
.menuSideBarLink,.sideMenuOpenBtnTall { background-size:cover; background-position:center; background-repeat:no-repeat; }
