/*
 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;
        }
    }

    /*
     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 {}

footer.wp-block-template-part {
    margin-top: 0px;
}

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

.wp-block-cs-core-ui-kit-video-popup {
    text-align: center;
}

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

.facetwp-checkbox {
    cursor: pointer;
    transition: all;
    border-radius: 50px;
    padding: 10px 15px;
    transition-duration: 150ms;
    color: var(--wp--preset--color--black);
    background: var(--wp--preset--color--light-grey);

    & .span {
        padding: 0px;
    }
}


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

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


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);
    }
}

/* Hide counts in all Checkboxes facets */
[data-type="checkboxes"] .facetwp-counter {
    display: none;
}

.facetwp-reset {
    border-radius: 50px;
    padding: 13px 18px;
    color: var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--navy-blue);
    border: none;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--medium);

    &:hover {
        background-color: var(--wp--preset--color--red);
    }
}

.facetwp-type-pager {
    display: flex;
    justify-content: center;
    align-items: center;
}

.facetwp-page {
    border: 1px solid #D1D5DB;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    padding: 7px 12px;
    text-decoration: none;
    font-weight: bold;
    cursor:pointer;
    transition: all 0.2s ease-in-out;
}

.facetwp-page:hover {
    background: var(--wp--preset--color--light-grey);
}

a.facetwp-page.next,
a.facetwp-page.prev {
    background: var(--wp--preset--color--navy-blue);
    border: 1px solid var(--wp--preset--color--navy-blue);
    color: var(--wp--preset--color--white);
    border-radius: 8px;
    cursor:pointer;
    transition: all 0.2s ease-in-out;
}

a.facetwp-page.next:hover,
a.facetwp-page.prev:hover {
    background: var(--wp--preset--color--red);
    border: 1px solid var(--wp--preset--color--red);
    color: var(--wp--preset--color--white);
}

a.facetwp-page.next {
    border-radius: 0px 50px 50px 0px;
    padding-right: 15px;
}

a.facetwp-page.prev {
    border-radius: 50px 0px 0px 50px;
    padding-left: 15px;
}

.wp-block-button.is-style-outline a:hover {
    color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}


.wpf-center {
    margin: 0 auto !important;
    /* Adjust the width in the next 2 lines as your site needs */
    max-width: 500px !important;
    width: 500px !important;
}

/* Readjust the form width for smaller devices */
@media only screen and (max-width: 600px) {
    .wpf-center {
        /* Reset the width for devices under 600px */
        max-width: unset !important;
        width: auto !important;
    }
}

:root .swiper-wrapper {
  padding-bottom: var(--wp--preset--spacing--x-large);
}

.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    height: 30px;
}

.swiper-button-next {
    background-image: url('/wp-content/uploads/2025/08/next-arrow.png') !important;
    background-repeat: no-repeat !important;
    right: 25% !important;
    width: 29px !important;
    opacity: 1 !important;
    background-size: contain !important;
    height: 24px !important;
    &::after {
        content: none !important;
    }
}

.swiper-button-prev {
    background-image: url('/wp-content/uploads/2025/08/prev-arrow.png') !important;
    background-repeat: no-repeat !important;
    left: 25% !important;
    width: 29px !important;
    opacity: 1 !important;
    background-size: contain !important;
    height: 24px !important;
    &::after {
        content: none !important;
    }
}

.wp-block-cs-core-ui-kit-post-query-carousel .swiper-button-prev, .wp-block-cs-core-ui-kit-post-query-carousel .swiper-button-next {
  bottom: -5px !important;
}

.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    bottom: 3px;
}

.wp-block-cs-core-ui-kit-carousel .swiper-button-prev, .wp-block-cs-core-ui-kit-carousel .swiper-button-next {
  top: var(--swiper-navigation-top-offset,50%) !important;
}

.swiper-scrollbar {
    background: var(--wp--preset--color--navy-blue) !important;
}

.has-navy-blue-bg-color .swiper-scrollbar {
    background: var(--wp--preset--color--white) !important;
}

.has-light-grey-background-color .swiper-scrollbar {
    background: var(--wp--preset--color--navy-blue) !important;
}

.navbar-mobile .mobile-nav,
.navbar-mobile .customer-account-mobile {
    display: none;
}

.navbar-desktop .desktop-nav,
.navbar-desktop .customer-account-desktop {
    display: flex;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    border: none;
}

:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)) {
    padding: 0.5em;
}

.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container {
    min-width: 120px;
}

li.wp-block-navigation-item.wp-block-navigation-link:hover,
li.wp-block-navigation-item.has-child.open-on-hover-click.wp-block-navigation-submenu:hover {
    text-decoration: underline;
}

.current-menu-item a {
    text-decoration: underline;
}

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

    .navbar-mobile .mobile-nav,
    .navbar-mobile .customer-account-mobile {
        display: flex;
    }
}

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

    .navbar-desktop .desktop-nav,
    .navbar-desktop .customer-account-desktop {
        display: none;
    }
}

.woocommerce div.product form.cart {
    margin-bottom: 2em;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

button.wpcbn-btn.wpcbn-btn-single.wpcbn-btn-simple.single_add_to_cart_button.button.alt {
    font-size: var(--wp--preset--font-size--medium) !important;
    border-radius: 50px;
    background-color: var(--wp--preset--color--mid-blue) !important;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--roboto);
    padding-top: 10px;
    padding-right: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    text-decoration: none;
    border-width: 0;
    margin-right: 2rem;
    font-weight: 700;
}

.wp-block-cs-core-ui-kit-tabbed-content-item .wp-block-cs-core-ui-kit-tabbed-content-item__toggle {
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--red);
    padding: 10px 20px !important;
}

@media (max-width: 768px) {
    .wp-block-cs-core-ui-kit-tabbed-content-item {
        padding-right: 0px !important;
    }
}

:where(.wc-block-mini-cart__badge) {
    color: var(--wp--preset--color--white) !important;
}

.wp-block-video video {
    border-radius: 25px;
}