/*
 Mobile sizes
 */
@media screen and (max-width: 546px) {

    /*
     Slim header
     Separating the logo and burger on mobile
     */
    .csfse-header-slim>.wp-block-group {
        width: 100%;
        justify-content: space-between;
    }

    /*
     Footers
     */
    .footer-default {
        .wp-block-group {
            text-align: center;
        }

        .wp-block-group nav {
            display: flex;
            align-items: center;
        }

        .wp-block-group ul {
            display: grid;
            grid-column-gap: 16px;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .csfse-header-stacked {

        /*
         Links group on right
         */
        >.wp-block-group>.wp-block-group.is-content-justification-right,
        >.wp-block-group>.wp-block-group.is-content-justification-right>.wp-block-group {
            gap: unset;
            align-items: end;
            flex-direction: column;
        }

        /*
         Links group on right – pipe
         */
        >.wp-block-group>.wp-block-group.is-content-justification-right>.wp-block-group .has-text-color {
            display: none;
        }
    }

    .csfse-header-spaced {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 8px;
        grid-row-gap: 8px;

        >.wp-block-image {
            grid-area: 1 / 1 / 2 / 4;
        }

        >nav {
            grid-area: 1 / 4 / 2 / 5;
            justify-self: end;
        }

        >form {
            grid-area: 2 / 1 / 3 / 5;
        }
    }
}

/*
 Tablet sizes
 */
@media screen and (max-width: 781px) {

    /*
     Hero with aside, sidebar width
     */
    .wp-container-core-group-is-layout-43> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100%;
    }
}

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

    /*
     Header slim
     */
    .csfse-header-slim {
        .wp-block-buttons {
            display: none;
        }
    }

    /*
     Footers
     */
    .footer-simple {
        .wp-block-column p {
            text-align: center;
        }

        .wp-block-column ul {
            display: flex;
            justify-content: center;
        }
    }

    /*
     Tabbed content
     */
    .wp-block-cs-core-ui-kit-tabbed-content-item__content>.wp-block-group {
        padding-left: 0 !important;
    }

    /*
     Footers
     */
    footer .wp-block-quote {
        max-width: 100%;
    }
}

/*
 Small desktop sizes
 */
@media screen and (max-width: 1110px) {

    /*
     Header spaced
     */
    .csfse-header-spaced {
        flex-direction: column;

        .wp-block-image {
            margin-bottom: 0 !important;
        }
    }
}

/*
 Headers
 */
.csfse-header-slim {
    .wp-block-buttons {
        white-space: nowrap;
    }
}

.csfse-header-spaced {}

.csfse-header-stacked {}

/*
 Footers
 */
.footer-simple {}

.footer-slim {}

.footer-with-text {}

.footer-default {}

/*
 Nicer input default for line height
 */
input:not([type="image"], [type="range"], [type="checkbox"], [type="radio"]) {
    padding: 6px 4px 2px !important;
}

/*
 FacetWP
 */
.facetwp-type-checkboxes {
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facetwp-checkbox {
    cursor: pointer;
    transition: all;
    border-radius: 4px;
    padding: 8px 14px 4px;
    transition-duration: 150ms;
    color: var(--wp--preset--color--black);
    background: var(--wp--preset--color--white);
}

.facetwp-checkbox:active,
.facetwp-checkbox:hover {
    background: var(--wp--preset--color--primary);
}

.facetwp-checkbox.checked {
    background: var(--wp--preset--color--primary);
}

span.facetwp-counter {
    margin-left: 4px;
}

.facetwp-facet-search {
    .facetwp-search {
        width: 100%;
        transition: all;
        border-radius: 4px;
        padding: 9px 14px 9px;
        box-sizing: border-box;
        transition-duration: 150ms;
        color: var(--wp--preset--color--black);
        background: var(--wp--preset--color--white);
        border: 1px solid var(--wp--preset--color--mid-grey);
    }
}