/* The WordPress menu and Elementor footer remain the editable content sources. */
.nb-footer-toggle { display: none; }
body.nb-shop-premium :is(#site-header, .header-sticky-template) .elementor-element-a13e74b,
body.nb-shop-premium :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad) .megamenu-template { background: #fff !important; }
@media (min-width: 1025px) {
    :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad).desktop-view > .nav-menu > .nb-desktop-open > .megamenu-template {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad).desktop-view > .nav-menu > .nb-desktop-closed > .megamenu-template {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    :is(#site-header, .header-sticky-template) nav.desktop-view > .nav-menu > li > a {
        font-weight: 400 !important;
    }
}
body.page-id-6764 :is(#nobonobo, #publikacje, #nagrody, #historia) { scroll-margin-top: 180px; }
@media (max-width: 1024px) {
    html.nb-mobile-navigation-open, body.nb-mobile-navigation-open { overflow: hidden; }
    :is(#site-header, .header-sticky-template) .elementor-element-62c324d,
    :is(#site-header, .header-sticky-template) .elementor-element-62c324d > .e-con-inner { justify-content: flex-end !important; }
    :is(#site-header, .header-sticky-template) .elementor-element-4d73876 { margin-left: auto !important; }
    :is(#site-header, .header-sticky-template) .elementor-element-ad3f5d6 { display: none !important; }
    :is(#site-header, .header-sticky-template) .elementor-element-ea5b8d0 {
        min-height: 48px !important;
        height: 48px !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready.mobile-view > .mobile-menu-source {
        box-sizing: border-box !important;
        display: none !important;
        height: var(--nb-mobile-menu-available, calc(100dvh - 124px)) !important;
        max-height: var(--nb-mobile-menu-available, calc(100dvh - 124px)) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 16px 32px 36px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        background: #e9e3da !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        pointer-events: auto !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready.mobile-view.nb-mobile-open > .mobile-menu-source {
        display: block !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready.mobile-view > .dl-submenu,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .dl-back,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .menu-item-parent-toggle {
        display: none !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source li {
        position: static !important;
        float: none !important;
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source a {
        min-height: 0 !important;
        height: auto !important;
        border: 0 !important;
        text-align: left !important;
        text-decoration: none !important;
        background: transparent !important;
        white-space: normal !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready > .mobile-menu-source > li > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 11px 0 !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready > .mobile-menu-source > li > a[aria-controls]::after {
        content: '' !important;
        display: inline-block !important;
        position: static !important;
        width: 6px !important;
        height: 6px !important;
        border-right: 1px solid currentColor !important;
        border-bottom: 1px solid currentColor !important;
        transform: rotate(45deg) translateY(-2px) !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready > .mobile-menu-source > li > a[aria-expanded='true']::after {
        transform: rotate(225deg) translate(-1px, -1px) !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source .sub-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 4px 0 14px !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        pointer-events: auto !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source > .nb-submenu-open > .sub-menu {
        display: block !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source .sub-menu a {
        display: block !important;
        padding: 7px 0 !important;
        text-transform: none !important;
        font-weight: 400 !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .nb-mobile-collections.nb-submenu-open > .sub-menu {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        padding-bottom: 18px !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .nb-mobile-collections > .sub-menu > li > .sub-menu {
        display: block !important;
        padding: 0 !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .nb-mobile-collections > .sub-menu > li > a {
        pointer-events: none;
        text-transform: uppercase !important;
        padding-bottom: 10px !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .nb-mobile-secondary-start,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .nb-mobile-tertiary-start {
        padding-top: 24px !important;
    }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .menu-toggle[aria-expanded='true'] .menu-line-1 { transform: translateY(7px) rotate(45deg) !important; }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .menu-toggle[aria-expanded='true'] .menu-line-2 { opacity: 0 !important; }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .menu-toggle[aria-expanded='true'] .menu-line-3 { transform: translateY(-7px) rotate(-45deg) !important; }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source li.dl-back,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source li::before,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source li::after,
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source a::before { display: none !important; content: none !important; }
    :is(#site-header, .header-sticky-template) #menu-0ba7e47.nb-inline-ready .mobile-menu-source .sub-menu a::after { display: none !important; content: none !important; }
}
@media (max-width: 767px) {
    .nb-footer.nb-footer-ready { min-height: 0 !important; padding: 40px 32px 32px !important; }
    .nb-footer.nb-footer-ready .nb-footer-inner { padding: 0 !important; gap: 0 !important; }
    .nb-footer.nb-footer-ready .nb-footer-row { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .nb-footer.nb-footer-ready .nb-footer-row > .nb-footer-col { width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; }
    .nb-footer.nb-footer-ready .nb-footer-logo { display: none !important; }
    .nb-footer.nb-footer-ready .nb-footer-accordion .elementor-widget-heading { width: 100% !important; margin: 0 !important; }
    .nb-footer.nb-footer-ready .nb-footer-original-heading { display: none; }
    .nb-footer.nb-footer-ready .nb-footer-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 12px 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        letter-spacing: inherit;
        text-transform: inherit;
        line-height: inherit;
        text-align: left;
        cursor: pointer;
    }
    .nb-footer.nb-footer-ready .nb-footer-toggle::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
    .nb-footer.nb-footer-ready .nb-footer-toggle[aria-expanded='true']::after { transform: rotate(225deg) translate(-1px, -1px); }
    .nb-footer.nb-footer-ready .nb-footer-accordion > .elementor-widget-icon-list { display: none !important; padding: 5px 0 20px !important; margin: 0 !important; }
    .nb-footer.nb-footer-ready .nb-footer-expanded > .elementor-widget-icon-list { display: block !important; }
    .nb-footer.nb-footer-ready .nb-footer-desktop-only { display: none !important; }
    .nb-footer.nb-footer-ready .nb-footer-social { padding-top: 32px !important; }
    .nb-footer.nb-footer-ready .nb-footer-social > .elementor-widget-heading { display: none !important; }
    .nb-footer.nb-footer-ready .nb-footer-social .elementor-icon-list-items { display: flex; flex-direction: column; gap: 0; }
    .nb-footer.nb-footer-ready .nb-footer-copyright { padding: 32px 0 0 !important; margin: 0 !important; }
}

/* Powrót na górę: kolory i układ strony pozostają w natywnych szablonach. */
#nb-return-top {
    position: fixed; right: 24px;
    bottom: calc(var(--nb-return-top-clearance, 24px) + env(safe-area-inset-bottom, 0px));
    z-index: 200; display: grid; place-items: center;
    width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 10px;
    border: 1px solid #161616; border-radius: 0;
    background: #e9e3dc; color: #161616; cursor: pointer;
}
#nb-return-top[hidden], .elementor-editor-active #nb-return-top { display: none !important; }
#nb-return-top svg { width: 22px; height: 22px; }
#nb-return-top:hover { background: #fff; color: #161616; }
#nb-return-top:focus-visible { outline: 2px solid #161616; outline-offset: 3px; }
@media(max-width:767px) {
    #nb-return-top { right: 16px; }
    body:has(input:focus,textarea:focus,select:focus) #nb-return-top { visibility: hidden; }
}

