/* Smartmax v58: category watercolors in the native navigation only. */
/* v58r3: match the CSS-open panel immediately, before native hover timers. */
@media(min-width:768px){
 html.smx-integration-v1 body.template-11 #header:has(#navigation:is(:hover,:focus-within)){z-index:9999!important}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2 a{transition-property:color,background-color,border-color!important}
}
#header #navigation .menu-level-1>li>.menu-level-2{background:#fff6ef!important;border-color:#f4c6a7!important}
html.smx-integration-v1 body.template-11 #header #navigation .menu-level-1>li>.menu-level-2>li{background:#ffe4d3!important;border-color:#efc8ae!important}
html.smx-integration-v1 body.template-11 #header #navigation .menu-level-1>li>.menu-level-2>li:hover{background:#ffdcc3!important}
#header #navigation .menu-level-2>li :is(.menu-image,img,div,div>a){background:transparent!important}
#header #navigation .menu-level-2>li>div>a{color:#0d2b4a!important}
@media(max-width:767px){
 #header #navigation .menu-level-1>li>.menu-level-2>li:not(.menu-item-category){display:flex!important;align-items:center;gap:12px;min-height:76px;padding:10px 12px!important}
 #header #navigation .menu-level-2>li>a.menu-image{display:flex!important;align-items:center;justify-content:center;flex:0 0 64px;width:64px;padding:0!important}
 #header #navigation .menu-level-2>li>a.menu-image>img{display:block!important;width:64px!important;height:54px!important;max-width:100%;object-fit:contain}
 #header #navigation .menu-level-2>li>div{flex:1 1 0;min-width:0}
 #header #navigation .menu-level-2>li>div>a{white-space:normal;overflow-wrap:anywhere}
}
@media(min-width:768px) and (max-width:991px){
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-1>li>.menu-level-2{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px!important}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li:not(.menu-item-category){display:flex!important;align-items:center;gap:10px;width:auto!important;max-width:none!important;min-width:0;min-height:82px;padding:10px!important}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li>.menu-image{flex:0 0 56px;width:56px!important;padding:0!important}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li>.menu-image>img{width:56px!important;height:52px!important;object-fit:contain}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li>div{flex:1 1 0;min-width:0}
 html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li>div>a,html.smx-integration-v1 body.template-11 #header #navigation .menu-level-2>li>div>a>span{white-space:normal!important;overflow-wrap:anywhere}
}
/* v58r2: switch desktop panels atomically; avoid overlapping fades. */
@media(min-width:768px){
 html.smx-integration-v1 body.template-11 #header #navigation .navigation-in>.menu-level-1>li.ext>.menu-level-2{transition:none!important}
 html.smx-integration-v1 body.template-11 #header #navigation .navigation-in>.menu-level-1:has(>li:hover)>li.ext:not(:hover)>.menu-level-2{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
/* v58r5: keep page controls out of the mobile navigation and give open More priority on touch. */
@media(max-width:767px){
 html.smx-integration-v1:root body.template-11.navigation-window-visible #return-to-top{display:none!important}
}
@media(min-width:768px) and (max-width:991px){
 html.smx-integration-v1 body.template-11 #header .menu-helper.smx-more-stuck{position:fixed!important;top:var(--smx-more-top)!important;right:var(--smx-more-right)!important;bottom:auto!important;left:auto!important;z-index:10002!important;height:58px!important}
 html.smx-integration-v1 body.template-11 #header:has(.menu-helper:is(:hover,:focus-within)){z-index:9999!important}
}
@media(min-width:768px){
 html.smx-integration-v1 body.template-11 #header #navigation:has(.ik-product-more.is-open) .navigation-in>.menu-level-1>li.ext>.menu-level-2,
 html.smx-integration-v1 body.template-11.menu-helper-visible #header #navigation .navigation-in>.menu-level-1>li.ext>.menu-level-2{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
/* v58r6: phone-to-tablet rotation must not retain the mobile navigation footer. */
@media(min-width:768px){
 html.smx-integration-v1 body.template-11 #header #navigation .navigation-in{height:58px!important}
 html.smx-integration-v1 body.template-11 #header #navigation .navigation-in>:is(.navigationActions,.navigation-in-bottom){display:none!important}
 html.smx-integration-v1 body.template-11 #header #navigation .navigation-in>.menu-level-1>li.ext>.menu-level-2{max-height:var(--smx-menu-space,calc(100dvh - 300px))!important;overflow-y:auto!important;overscroll-behavior:contain}
}
/* v58r7: header panels leave the tablet navigation controls accessible. */
@media(min-width:768px){
 html.smx-integration-v1:root body.template-11:is(.menu-helper-visible,.submenu-visible) .smx-hours-header #smx-opening-hours-slot #OPHWidgetWrapp:not([aria-hidden="true"]){display:block!important;visibility:visible!important;pointer-events:auto!important}
 html.smx-integration-v1:root body.template-11 .smx-hours-header #smx-opening-hours-slot #OPHWidgetWrapp .OPHWidgetTable{position:fixed!important;inset:auto 12px auto auto!important;top:var(--smx-header-panel-top)!important;max-height:calc(100dvh - var(--smx-header-panel-top) - 12px)!important}
 html.smx-integration-v1:root body.template-11 #ikc-search-popup{top:var(--smx-header-panel-top)!important;max-height:calc(100dvh - var(--smx-header-panel-top) - 12px)!important}
 html.smx-integration-v1 body.template-11:is(.cart-window-visible,:has(#OPHWidgetWrapp.openTable),:has(input[data-testid="searchInput"][aria-expanded="true"])) #navigation .navigation-in>.menu-level-1>li.ext>.menu-level-2{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
}
@media(min-width:768px){
 html.smx-integration-v1:root body.template-11 .ikc-search-shade{top:var(--smx-header-panel-top)!important;height:calc(100dvh - var(--smx-header-panel-top))!important}
}
@media(min-width:768px){
 html.smx-integration-v1:root body.template-11:is(.submenu-visible,.menu-helper-visible,:has(.ik-product-more.is-open),:has(#OPHWidgetWrapp.openTable)) .top-navigation-bar{z-index:10020!important}
}
/* v58r8: keep the tablet cart below the navigation after rotation. */
@media(min-width:768px){
 html.smx-integration-v1:root body.template-11 #cart-widget{position:fixed!important;inset:auto 12px auto auto!important;top:var(--smx-header-panel-top)!important;max-height:calc(100dvh - var(--smx-header-panel-top) - 12px)!important;overflow-y:auto!important;margin:0!important}
}

/* v58r9: short landscape viewports scroll the filled cart and its action together. */
@media(min-width:768px) and (max-height:600px){
 html.smx-integration-v1:root body.template-11 #cart-widget{padding-bottom:0!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-inner{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-products{overflow:visible!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-button{position:static!important;width:100%!important}
}

/* v58ra: touch cart editing keeps removal controls and feedback accessible. */
@media(hover:none),(pointer:coarse){
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-product-delete{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
}
html.smx-integration-v1:root body.template-11.cart-window-visible .messages .msg-success{position:fixed!important;top:8px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 24px)!important;padding:8px 16px!important;margin:0!important;font-size:14px!important;line-height:1.4!important;border-radius:12px!important;pointer-events:none!important}
html.smx-integration-v1:root body.template-11.cart-window-visible .messages .msg-success *{pointer-events:none!important}
html.smx-integration-v1:root body.template-11.cart-window-visible .messages .msg-success .container{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
html.smx-integration-v1:root body.template-11.cart-window-visible .messages .msg-success :is(a,button){pointer-events:auto!important}
/* Filled and single-item tablet carts share one scroll container. */
@media(min-width:768px){
 html.smx-integration-v1:root body.template-11 #cart-widget{padding-bottom:0!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-inner{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-products{overflow:visible!important}
 html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-button{position:static!important;width:100%!important}
}
