
.knn-custom-header-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: transparent;
    text-align: center;
}

.knn-custom-header-link,
.knn-custom-header-link:hover,
.knn-custom-header-link:focus {
    display: block;
    text-decoration: none;
}

.knn-custom-header-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    vertical-align: top;
}

.knn-custom-header-image-mobile {
    display: none;
}

@media (max-width: 767px) {
    .knn-custom-header-image-desktop {
        display: none;
    }

    .knn-custom-header-image-mobile {
        display: block;
    }

    body.knn-custom-header-mounted-mobile #Header_wrapper {
        position: relative !important;
        overflow: visible !important;
        z-index: auto !important;
        box-sizing: border-box !important;
    }

    body.knn-custom-header-mounted-mobile .knn-custom-header-banner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 12;
        pointer-events: none !important;
    }

    body.knn-custom-header-mounted-mobile .knn-custom-header-spacer {
        display: block;
        width: 100%;
        height: calc(var(--knn-header-mobile-banner-height, 0px) + var(--knn-header-mobile-gap, 1px));
        pointer-events: none;
    }

    body.knn-custom-header-mounted-mobile .knn-custom-header-banner,
    body.knn-custom-header-mounted-mobile .knn-custom-header-banner *,
    body.knn-custom-header-mounted-mobile .knn-custom-header-link,
    body.knn-custom-header-mounted-mobile .knn-custom-header-image {
        pointer-events: none !important;
    }

    body.knn-custom-header-mounted-mobile #Header,
    body.knn-custom-header-mounted-mobile #Top_bar,
    body.knn-custom-header-mounted-mobile .mobile-header-mini,
    body.knn-custom-header-mounted-mobile .mfn-header-tmpl,
    body.knn-custom-header-mounted-mobile .mfn-header-tmpl-menu-sidebar,
    body.knn-custom-header-mounted-mobile .mfn-header-menu {
        position: relative;
        z-index: 20;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.knn-custom-header-mounted-tablet #Header_wrapper {
        position: relative !important;
        overflow: visible !important;
        z-index: auto !important;
        box-sizing: border-box !important;
    }

    body.knn-custom-header-mounted-tablet .knn-custom-header-banner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 12;
        pointer-events: none !important;
    }

    body.knn-custom-header-mounted-tablet .knn-custom-header-spacer {
        display: block;
        width: 100%;
        height: calc(var(--knn-header-tablet-banner-height, 0px) + var(--knn-header-tablet-gap, 20px));
        pointer-events: none;
    }

    body.knn-custom-header-mounted-tablet .knn-custom-header-banner,
    body.knn-custom-header-mounted-tablet .knn-custom-header-banner *,
    body.knn-custom-header-mounted-tablet .knn-custom-header-link,
    body.knn-custom-header-mounted-tablet .knn-custom-header-image {
        pointer-events: none !important;
    }

    body.knn-custom-header-mounted-tablet .knn-custom-header-image-desktop {
        display: block;
    }

    body.knn-custom-header-mounted-tablet .knn-custom-header-image-mobile {
        display: none;
    }

    body.knn-custom-header-mounted-tablet #Header,
    body.knn-custom-header-mounted-tablet #Top_bar,
    body.knn-custom-header-mounted-tablet .mobile-header-mini,
    body.knn-custom-header-mounted-tablet .mfn-header-tmpl,
    body.knn-custom-header-mounted-tablet .mfn-header-tmpl-menu-sidebar,
    body.knn-custom-header-mounted-tablet .mfn-header-menu {
        position: relative;
        z-index: 20;
    }
}
