/*
 * CartineShop Commerce 0.4.0
 *
 * Blocksy owns the complete header and footer.
 * No custom header, hardcoded logo or duplicate navigation.
 */

html {
    overflow-x: clip;
}

body.csm-commerce {
    background: #ffffff;
}

/*
 * Guarantee that the real Blocksy header remains visible.
 */
#header.ct-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    pointer-events: auto !important;
}

#header.ct-header [data-row],
#header.ct-header .ct-container,
#header.ct-header [data-column],
#header.ct-header [data-items],
#header.ct-header .site-branding,
#header.ct-header .site-logo-container,
#header.ct-header .header-menu-1 {
    visibility: visible !important;
    opacity: 1 !important;
}

#header.ct-header .site-logo-container {
    display: flex !important;
    align-items: center;
}

#header.ct-header .default-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 65px !important;
    object-fit: contain;
}

/*
 * Correct Blocksy desktop/mobile header visibility.
 */
@media (min-width: 1000px) {
    #header.ct-header > [data-device="desktop"] {
        display: block !important;
    }

    #header.ct-header > [data-device="mobile"] {
        display: none !important;
    }
}

@media (max-width: 999.98px) {
    #header.ct-header > [data-device="desktop"] {
        display: none !important;
    }

    #header.ct-header > [data-device="mobile"] {
        display: block !important;
    }

    #header.ct-header .default-logo {
        max-height: 48px !important;
    }
}
