/* 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}
}

/* v58rb: consistent mini-cart frame and accessible quantity controls. */
html.smx-integration-v1:root body.template-11 #cart-widget{padding-bottom:0!important;overflow-y:auto!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}
html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-product-amount,
html.smx-integration-v1:root body.template-11 #cart-widget .quantity-form{width:144px!important;max-width:100%!important;min-width:144px!important;height:auto!important}
html.smx-integration-v1:root body.template-11 #header .cart-count,
html.smx-integration-v1:root body.template-11 .responsive-tools .cart-count{border-color:transparent!important;box-shadow:none!important;background:transparent!important;border-radius:12px!important}
html.smx-integration-v1:root body.template-11 #cart-widget{border:1px solid #d6dfed!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 30px rgba(24,35,62,.14)!important}
html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-inner{border:0!important;box-shadow:none!important;border-radius:17px 17px 0 0!important;background:#fff!important}
html.smx-integration-v1:root body.template-11 #cart-widget .cart-widget-button{background:#fff!important;border-top:1px solid #e4e9f2!important;border-radius:0 0 17px 17px!important;padding:18px 20px!important}
html.smx-integration-v1:root body.template-11 #cart-widget #continue-order-button{background:#ff5938!important;border:1px solid #ff5938!important;color:#fff!important;font-family:inherit!important;font-weight:700!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;text-align:center!important}
html.smx-integration-v1:root body.template-11 #cart-widget #continue-order-button:hover{background:#e64a2b!important;border-color:#e64a2b!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity{display:grid!important;position:relative!important;box-sizing:border-box!important;grid-template-columns:44px 54px 44px!important;grid-template-rows:44px!important;width:144px!important;max-width:100%!important;height:46px!important;padding:0!important;margin:8px 0 0!important;gap:0!important;border:1px solid #e7d8d2!important;border-radius:11px!important;background:#fff!important;vertical-align:middle!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>label{display:block!important;position:static!important;grid-column:2!important;grid-row:1!important;width:54px!important;min-width:0!important;height:44px!important;margin:0!important;padding:0!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity input{display:block!important;box-sizing:border-box!important;width:54px!important;min-width:0!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;font-family:inherit!important;font-weight:700!important;font-size:17px!important;line-height:44px!important;color:#171522!important;text-align:center!important;-moz-appearance:textfield!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity input::-webkit-inner-spin-button,
html.smx-integration-v1:root body.template-11 #cart-widget .quantity input::-webkit-outer-spin-button{margin:0!important;-webkit-appearance:none!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>button{display:flex!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;box-sizing:border-box!important;grid-row:1!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;margin:0!important;align-items:center!important;justify-content:center!important;border:0!important;box-shadow:none!important;background:#fff4ef!important;color:#dc4a2c!important;font-size:25px!important;line-height:1!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>.decrease{grid-column:1!important;border-radius:10px 0 0 10px!important;border-right:1px solid #e7d8d2!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>.increase{grid-column:3!important;border-radius:0 10px 10px 0!important;border-left:1px solid #e7d8d2!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>button::before,
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>button::after{display:none!important;content:none!important;pointer-events:none!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>button>span{display:block!important;color:inherit!important;font-size:25px!important;line-height:1!important;font-family:Arial,sans-serif!important;font-weight:700!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity>button:hover{background:#ff5938!important;color:#fff!important}
html.smx-integration-v1:root body.template-11 #cart-widget .quantity :is(button,input):focus-visible{outline:2px solid #302580!important;outline-offset:-3px!important}
