/* ============== */
/* == Nagłówek == */
/* ============== */
header .wp-block-columns,
wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
    margin-bottom: 0;
}

.ast-above-header-wrap .wp-block-column.is-layout-flow,
.main-header-bar-wrap .wp-block-column.is-layout-flow {
    flex-basis: auto;
}

.ast-above-header-wrap nav a {
    text-transform: uppercase;
}

.ast-icon.icon-search svg {
    vertical-align: -3px;
}


/* == Menu w pierwszym nagłówku == */
.main-header-menu>.menu-item>.menu-link * {
    transition: .4s ease;
}

.main-header-menu>.menu-item>.menu-link:hover {
    color: #fff;
}

.main-header-menu>.menu-item>.menu-link::after {
    opacity: 0;
    transition: opacity 0s;
}

.main-header-menu>.menu-item>.menu-link:hover::after {
    content: "";
    background-color: #fff;
    position: absolute;
    bottom: 12px;
    left: 16px;
    width: calc(100% - 32px);
    height: 2px;
    -webkit-animation: fadeIn .5s ease 0.1s forwards;
    animation: fadeIn .5s ease 0.1s forwards;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* == Przełącznik języka WPML w pierwszym nagłówku == */
.widget.widget_block>p {
    margin: 0;
}

.wpml-ls-legacy-dropdown-click {
    width: auto;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    border: none;
}

.wpml-ls-legacy-dropdown-click a {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
    padding: 0;
    padding-left: 4px;
    margin-top: -1px;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown-click a:focus,
.wpml-ls-legacy-dropdown-click a:hover {
    color: #fff;
    background-color: transparent;
}

.wpml-ls-legacy-dropdown-click a>span {
    text-decoration: none !important;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    border: none;
}

.wpml-ls-statics-shortcode_actions li:not(.wpml-ls-current-language) .wpml-ls-link {
    background-color: #fff;
    border: 2px solid #001d46;
    padding: 2px 0 4px 2px;
}

a.wpml-ls-link>span {
    color: #001d46;
    font-weight: 500;
}

/*Przełącznik języka w nagłówku*/

.ast-above-header.ast-above-header-bar .wpml-ls-flag {
    display: none;
}

.ast-above-header.ast-above-header-bar .wpml-ls-native::before {
    content: '';
    background: url(/wp-content/uploads/sites/59/2023/10/globe.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0 16px;
    height: 16px;
    width: 16px;
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {
    border: none;
    background: url(/wp-content/uploads/sites/59/2023/10/chevron-down.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    height: 16px;
    width: 16px;
    top: 1px;
}

.wpml-ls-slot-shortcode_actions.wpml-ls-first-item.wpml-ls-last-item.wpml-ls-item-legacy-dropdown-click a.wpml-ls-item-toggle:after {
    display: none;
}

.wpml-ls-slot-shortcode_actions.wpml-ls-first-item.wpml-ls-last-item.wpml-ls-item-legacy-dropdown-click {
    pointer-events: none;
}

.wpml-ls-slot-shortcode_actions.wpml-ls-first-item.wpml-ls-last-item.wpml-ls-item-legacy-dropdown-click .wpml-ls-sub-menu {
    border: 0;
}

@media(max-width:400px) {
    .ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle:after {
        right: 0;
    }
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    width: 108px;
    top: 30px;
    left: 0;
    border: 1px solid white;
    border-top-width: 2px;
}


.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a span {
    color: white;
    margin-left: 6px;
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a {
    border: none;
    padding: 10px 8px;
    background-color: #003571;
}

.ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu a:hover {
    color: #001D46;
}

.wpml-ls-slot-shortcode_actions.wpml-ls-first-item.wpml-ls-last-item.wpml-ls-item-legacy-dropdown-click a.wpml-ls-item-toggle:after {
    display: none;
}

.wpml-ls-slot-shortcode_actions.wpml-ls-first-item.wpml-ls-last-item.wpml-ls-item-legacy-dropdown-click {
    pointer-events: none;
}


/* == Sticky Menu == */
/*HEADER*/
#page .site-header .ast-primary-header-bar {
    margin: 0;
    padding: 0 10vw;
    height: 100px;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 100px;
}

/*STICKY HEADER*/
#page .ast-sticky-active .site-primary-header-wrap .ast-builder-grid-row {
    min-height: 100px;
}


/* ======================= */
/* == Nagłówek - Mobile == */
/* ======================= */

a.wp-block-button__link .uagb-button__link,
a.wp-block-button__link,
.blok_na_skroty ul.uagb-tabs__panel li.uagb-tab a,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link{
	text-decoration:none!important;
}

@media(max-width:921px) {

    #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
        margin: 0;
        padding: 0 10vw;
    }

    /* == Menu Toggle == */
    #page .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
        flex-direction: row-reverse;
    }

    #page .ast-mobile-header-wrap .menu-toggle .mobile-menu-wrap {
        margin-right: 0.4em;
    }

    /* == Przełącznik języka-mobile == */
    #page .wpml-ls-legacy-dropdown-click a {
        color: var(--ast-global-color-0);
        background-color: transparent;
        text-decoration: none;
        padding: none;
    }

    #page .wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
    .wpml-ls-legacy-dropdown-click a:focus,
    .wpml-ls-legacy-dropdown-click a:hover {
        color: var(--ast-global-color-0);
        background-color: transparent;
    }

    /* == Wyszukiwarka-mobile == */
    #page .ast-header-search .ast-icon {
        color: var(--ast-global-color-0);
    }

    /*Header mobile*/
    
    header.site-header+#content {
        margin-top: 160px;
    }

    #page header.site-header {
        position: relative !important;
        width: 100%;
    }

    #page .ast-main-header-wrap.main-header-bar-wrap {
        position: fixed !important;
        padding-top: 60px;
    }

    #page #mega-menu-wrap-secondary_menu #mega-menu-secondary_menu>li.mega-menu-item>a.mega-menu-link,
    #mega-menu-wrap-secondary_menu #mega-menu-secondary_menu>li.mega-menu-item>a.mega-menu-link:hover,
    #mega-menu-wrap-secondary_menu #mega-menu-secondary_menu>li.mega-menu-item>a.mega-menu-link:active {
        color: #fff !important;
    }

    #page .wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
    .wpml-ls-legacy-dropdown-click a:focus,
    .wpml-ls-legacy-dropdown-click a:hover,
    #page .wpml-ls-legacy-dropdown-click a {
        color: white;
        background-color: transparent;
    }

    #mega-menu-wrap-secondary_menu #mega-menu-secondary_menu li.mega-menu-item a.mega-menu-link:before {
        content: "";
        background: url(/wp-content/uploads/2023/09/search.svg);
        background-size: 14px;
        padding-right: 20px;
        background-repeat: no-repeat;
        background-position: center;
        height: 4vh;
    }

    #page .ast-builder-menu-mobile .main-header-menu,
    .ast-header-break-point .ast-builder-menu-mobile .main-header-menu {
        margin-left: 0;
        margin-right: 0;
        margin-top: 11em;
        position: fixed;
        width: 100%;
        padding-top: 1em;
        padding-bottom: 1em;
    }

    header.site-header+.main-header-bar.ast-header-breadcrumb {
        margin-top: 165px;
    }

    .ast-main-header-wrap .widget_media_image img {
        max-height: 65px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }

    .ast-above-header.ast-above-header-bar .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
        background-color: #003571;
    }

    .site-header-above-section-left p {
        padding: 0 10px;
    }
}

@media(max-width:600px) {
    .site-header-above-section-left p {
        display: none;
    }

    .ast-header-html-4 .ast-builder-html-element {
        color: var(--ast-global-color-0);
    }
}




/* ===================== */
/* == Header - Sticky == */
/* ===================== */
.ast-above-header-wrap {
    position: fixed;
    width: 100%;
    z-index: 10;
}

.ast-above-header.ast-above-header-bar {
    height: 60px;
    display: grid;
}

.ast-main-header-wrap.main-header-bar-wrap {
    position: fixed;
    padding-top: 60px;
    width: 100%;
    border-bottom: 1px solid var(--ast-global-color-0);
}

#content {
    padding-top: 161px;
}

@media(max-width:921px) {
    .ast-main-header-wrap.main-header-bar-wrap {
        padding-top: 0;
        position: relative;
    }

    #content {
        padding-top: 0;
    }
}

/* ================================================================ */
/* == Search ico mobile behavior: hidden text and show only icon == */
/* ================================================================ */

/*Search*/

#mega-menu-wrap-secondary_menu #mega-menu-secondary_menu li.mega-menu-item a.mega-menu-link:before {
    height: 44px;
}

#mega-menu-wrap-secondary_menu #mega-menu-secondary_menu>li.mega-menu-item>a.mega-menu-link {
    line-height: 44px;
    height: 44px;
}

.site-above-header-wrap .mega-menu-wrap .max-mega-menu .mega-sub-menu:first-of-type {
    top: 152px !important;
}

@media(max-width:921px) {
    .site-above-header-wrap .mega-menu-wrap .max-mega-menu .mega-sub-menu:first-of-type {
        top: 152px !important;
    }
}

/*Search icon*/

@media(max-width:500px) {
    .ast-above-header-wrap .dashicons-search.mega-menu-link {
        text-indent: -9999px !important;
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .ast-above-header-wrap .dashicons-search.mega-menu-link:before {
        text-indent: 0;
        float: left;
        margin-right: 0 !important;
    }
}


/* ====================================================== */
/* == Przywrócenie jednolitego koloru w belce nagłówka == */
/* ====================================================== */
@media(max-width:380px) {
    #page .ast-above-header.ast-above-header-bar {
        background: none;
        background-color: #003571;
    }
}

/* ========================== */
/* == Site title in header == */
/* ========================== */
.pk-header_site-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pk-header_site-title--mobile {
	color: var(--ast-global-color-0);
	text-transform: uppercase;
	font-weight: 900;
	text-wrap: pretty;
    text-align: right;
    line-height: 1.4;
}

.pk-header_site-title--mobile:hover {
    color: var(--ast-global-color-0);
}

/* =========================== */
/* == Mobile menu hamburger == */
/* =========================== */
.ast-mobile-header-wrap .ast-button-wrap {
	margin-left: 10px !important;
}

.ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle {
	padding: 0 !important;
}

.ast-mobile-header-wrap .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	height: 44px !important;
	width: 44px !important;
}
