
body.layout-menu-white-template .layout-header:not(.no-filter) {
    filter: invert(1);
}

body.layout-menu-white-template .layout-header:not(.no-filter) .nav-menu-item .dropdown-menu {
    filter: invert(1);
}

body.layout-menu-white-template .layout-header:not(.no-filter) #top-menu .dropdown-menu {
    filter: invert(1);
}

body.layout-menu-white-template .layout-header:not(.no-filter) .top-search.active .klevu-search-form-wrapper #klevu-top img {
    filter: invert(1);
}

body .layout-header:not(.no-filter) .nav-menu-item > a {
    color: #000 !important;
}

:root {
    --pre-header-size: 0;
}

body > .layout-header.no-filter {
    filter: unset;
    background-color: #fff;
}

body:has(.pre-header .content-news-top.news-top-small) > .header.layout-header:not(.scrolling) {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;

}
body:has(.pre-header .content-news-top.medium) > .header.layout-header:not(.scrolling) {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;

}
body:has(.pre-header .content-news-top.news-top-big) > .header.layout-header:not(.scrolling) {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;

}

body:has(.pre-header .content-news-top.news-top-small) > .header.layout-header.scrolling {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;
}

body:has(.pre-header .content-news-top.news-top-medium) > .header.layout-header.scrolling {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;
}

body:has(.pre-header .content-news-top.news-top-big) > .header.layout-header.scrolling {
    position: sticky;
    top: var(--pre-header-size);
    z-index: 1000;
}

body:has(.pre-header .content-news-top.news-top-auto-hide) > .header.layout-header.scrolling {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pre-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pre-header:has(.content-news-top.news-top-auto-hide) {
    position: static;
}


.layout-template-hero .layout-main {
    margin-top: -120px; /* wysokość menu  */
}

.pre-header .content-news-top {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    background-color: #0a1ace;
    padding: 7px;
    width: 100%;
    z-index: 20;
    min-height: 34px;
}


.pre-header .content-news-top.news-top-big {
    font-size: 24px;
}

.pre-header .content-news-top.news-top-medium {
    font-size: 24px;
}

.pre-header .content-news-top.news-top-small {
    font-size: 14px;
}


.pre-header .content-news-top .buttons {
    height: 40px;
    white-space: nowrap;
    overflow: hidden;
}

.pre-header .content-news-top .buttons a {
    display: inline-block;
    border: 1px solid;
    padding: 3px 10px;
    margin-left: 5px;
    font-size: 14px;
    text-transform: uppercase;
}

.pre-header .content-news-top > div.row {
    margin: auto;
}

.pre-header .content-news-top p {
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.pre-header .content-news-top b, .pre-header .content-news-top strong {
    font-weight: 400;
}

.pre-header .news-top-font-white a {
    color: #FFF;
    border-color: #FFF;
}


.pre-header .news-top-font-black a {
    color: #000;
    border-color: #000;
}

.pre-header .counter-datetime{
    margin: auto;
    display: flex;
    justify-content: center;
}

.pre-header .countdown-clock{
    padding: 0;
    background-color: transparent;
}


.pre-header .countdown-clock .clock-item{
    border: 0;
    width: 60px;
}

.pre-header .countdown-clock .clock-item.clock-item-days:has(.clock-value[data-time-diff-day="0"]){
    display: none;
}

.pre-header .content-news-top.news-top-medium .countdown-clock .clock-item{
    width: 65px;
}

.pre-header .content-news-top.news-top-medium .countdown-clock .clock-item .clock-label{
    font-size: 14px;
}

.pre-header .content-news-top.news-top-big .countdown-clock .clock-item{
    width: 65px;
}

.pre-header .content-news-top.news-top-big .countdown-clock .clock-item .clock-label{
    font-size: 14px;
}

@media screen and (max-width: 993px) {
    .pre-header .countdown-clock .clock-item{
        width: 50px;
    }

    .pre-header .content-news-top .content-news-top-mobile{
        display:grid;
        gap: 5px;
    }
}


.header.layout-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
}

.container-header .wrapper-main {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    padding-top: 30px;
    align-items: normal;
    height: 120px;
}

.container-header .wrapper-main > .wrapper-logo {
    text-align: center;
}

.container-header .wrapper-main > .wrapper-logo img {
    margin: -7px auto auto;
    width: 170px;
    aspect-ratio: 170/31;
}

.container-header .wrapper-main > .wrapper-logo > .desktop-logo {
    height: 150px;
}

.top {
    display: grid;
    grid-template-columns: 75% 25%;
    padding-top: 15px;
    text-align: center;
}

#top-menu.nav .open > a, #top-menu.nav .open > a:hover, #top-menu.nav .open > a:focus {
    background-color: transparent;
    border-color: transparent;
}

body:has(.top-search.active):before {
    content: ' ';
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    display: block;
    z-index: 12;
}

.top-search {
    position: absolute;
    right: 0;
    top: 60px;
    text-align: center;
    display: inline-block;
    margin-bottom: 10px;
    z-index: 100;

}


.top-search .klevu-search-form-wrapper {
    float: right;
}


.top-search .klevu-search-form {
    display: flex;
    border: 1px transparent solid;
    border-bottom: 1px #000 solid;
    background-color: transparent;
    transition: margin-top 0.7s, padding 0.7s, transform 0.7s, border-top-color 0.7s, border-left-color 0.7s, border-right-color 0.7s;
}


.top-search .search-ico {
    background-image: url("gfx/search.svg");
    background-size: cover;
    width: 18px;
    height: 16px;
}

.top-search.active .search-ico {
    background-image: url("gfx/search-active.svg");
}

.top-search input#search {
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    padding: 0 5px;
    width: 100%;
    border: 0;
    outline: 0;
    background-color: transparent;
}

.top-search input#search::placeholder {
    color: #000;
    opacity: 1; /* Firefox */
}

.top-search input#search::-ms-input-placeholder { /* Edge 12 -18 */
    color: #000;
    opacity: 1; /* Firefox */
}


.top-search input#search:focus {
    outline: none !important;
}


.sub-menu-box {
    float: right;
}

#top-menu {
    display: flex;
    align-items: flex-end;
}

#top-menu .user-search-ico {
    display: none;
}

#top-menu.nav > li > a {
    padding: 0 8px;
}

#top-menu.nav > li:last-of-type > a {
    padding-right: 0;
}

#top-menu.nav > li > a .caret {
    display: none;
}

.cart-widget .cart-items-wrapper, .wishlist-widget .wishlist-items-wrapper {
    position: relative;
    display: none;
}

.cart-widget .cart-items, .wishlist-widget .wishlist-items {
    position: absolute;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: #000;
    color: #FFF;
    width: 22px;
    height: 20px;
    box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: -31px;
    left: 9px;
    display: table;
    font-size: 12px;
}

.cart-widget .cart-items .cart-items-inside, .wishlist-widget .wishlist-items .wishlist-items-inside {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    line-height: 20px;
}

#top-menu .wishlist-ico {
    background-image: url(gfx/wishlist.svg);
    background-size: cover;
    width: 23px;
    height: 20px;
    display: block;
}

.top-search {
    margin-top: 21px;
}

.top-search:not(.active) .klevu-search-form-wrapper #klevu-top {
    display: none !important;
}

#klevu-top [role="option"].highlight {
    background-color: yellow;
}

.user-menu-top .dropdown-menu {
    border-radius: 0;
}

@media screen and (max-width: 993px) {


    body.layout-menu-white-template:has(.navbar-collapse.collapse.in) .layout-header {
        filter: unset;
    }

    body.layout-menu-white-template:has(.navbar-collapse.collapse.in) .layout-header .nav-menu-item .dropdown-menu {
        filter: invert(0);
    }

    body.layout-menu-white-template:has(.navbar-collapse.collapse.in) .layout-header #top-menu .dropdown-menu {
        filter: invert(1);
    }


    body.layout-menu-white-template:has(.navbar-collapse.collapse.in) .layout-header .top-search.active .klevu-search-form-wrapper #klevu-top img {
        filter: invert(1);
    }

    body.layout-template-hero:has(.pre-header .news-top-auto-hide)  .layout-main {
        margin-top: -51px;
    }


    .container-header {
        padding: 15px;
    }

    .container-header .wrapper-main {
        padding-bottom: 0;
    }

    .container-header .wrapper-main > .wrapper-logo img {
        margin-left: 0;
        width: 112px;
    }

    #top-menu .user-search-ico {
        display: block;
    }

    #top-menu .user-search-ico .search-ico {
        background-image: url("gfx/search-active.svg");
        background-size: cover;
        width: 20px;
        height: 20px;
        display: block;
    }

    #top-menu img {
        width: 20px;
        height: 20px;
    }

    .top-search {
        display: none;
    }

    .top-search.active {
        position: fixed;
        width: 100vw;
        height: calc(var(--app-height) + 10px);
        left: 0;
        right: 0;
        background-color: #fff;
        margin-top: -60px;
        padding: 40px 15px;
        overflow-x: auto;

    }

    .top-search.active .klevu-search-form-wrapper {
        max-width: 100%;
    }

    .top-search .klevuTarget {
        position: static;
    }

    .top-search.active .klevu-search-form {
        border: none;
        border-bottom: 1px #000 solid;
        padding: 5px 5px 5px 0;

    }

    .top-search.active .klevu-search-form-wrapper {
        opacity: 1;
        width: 100%;
        margin: auto;
        right: 1px;
        position: static;
    }

    .top-search.active {
        animation: none;
        transition: none;
        display: block;
    }

    .top-search.active .klevu-search-form-wrapper {

        animation: none;
        transition: none;
    }

    .pre-header .content-news-top.news-top-small {
        font-size: 12px;
        padding: 7.5px;
        min-height: 32px;
    }

    .pre-header .content-news-top.news-top-big {
        font-size: 22px;
    }

    .pre-header .content-news-top.news-top-medium {
        font-size: 22px;
    }
    .user-menu-top .dropdown-menu {
        width: 100vw;
        height: 100vh;
        padding-top: 20px;
        position: fixed;
        top: 0;
        border: none;
        left: 0;
        margin: 0;

    }


    .user-menu-top.open .dropdown-menu {
        -webkit-animation: userrightslide 0.2s forwards;
        animation: userrightslide 0.2s forwards;
    }

    .user-menu-top:not(.open) .dropdown-menu.active {
        display: block;
        -webkit-animation: userrightslidereverse 0.2s forwards;
        animation: userrightslidereverse 0.2s forwards;
    }

    #modal-login-register .login-register-logo {
        width: clamp(100px, 100%, 112px);
    }


}

@-webkit-keyframes userrightslide {
    0% {
        left: 100vw;
    }
    100% {
        left: 0;
    }
}

@keyframes userrightslide {
    0% {
        left: 100vw;
    }
    100% {
        left: 0;
    }
}

@-webkit-keyframes userrightslidereverse {
    0% {
        left: 0;
    }
    100% {
        left: 100vw;
    }
}

@keyframes userrightslidereverse {
    0% {
        left: 0;
    }
    100% {
        left: 100vw;
    }
}
