/**
 * WordPress Generated Classes
 * http://codex.wordpress.org/CSS#WordPress_Generated_Classes
 */

/* Alignment */
.alignnone {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    height: auto;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .alignleft {
        display: inline;
        margin-right: 1.5em;
    }

    .alignright {
        display: inline;
        margin-left: 1.5em;
    }
}

/* Captions */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Text meant only for screen readers (from bootstrap sr-only) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}


@media (min-width: 767px) {
    .li-read-more[data-mobile-only="yes"] {
        display: none !important;
    }

    .li-read-more--content.mobile-only-yes {
        display: inline !important;
    }
}


/*Excample Icons LI with mask*/

.li-icon-container-wrapper {
    display: flex;
    flex-direction: row;
}


.li-icon-container {
    display: flex;
    flex-direction: row;
}

.li-rotation-left {
    transform: rotate(180deg);
}

.li-icon {
    display: flex;
    width: 20px;
    height: 30px;
    text-indent: -9999px;
    background-color: var(--e-global-color-primary);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
}

.li-arrow {
    mask-image: url('/wp-content/themes/hello-child-libase__master/assets/icons/arrow.svg');
    -webkit-mask-image: url('/wp-content/themes/hello-child-libase__master/assets/icons/arrow.svg');
}


/* Header Basic Menu*/


.li_nav #menu-main {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    align-self: stretch;
}

.li_nav #menu-main li {
    display: flex;

}

.li_nav #menu-main li a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    min-width: 200px;
    overflow: hidden;

}


.li_nav #menu-main li a:before {
    position: absolute;
    left: 0;
    bottom: -80px;
    content: "CSS im Theme!";
    display: flex;
    background: var(--e-global-color-secondary);
    animation: genesis-menu 2s;
    transition: bottom 0.25s ease-out;
    overflow: hidden;
    min-width: 200px;
    padding: 20px;
    width: 100%;


}

.li_nav #menu-main li a:hover:before {
    bottom: 0;
    transition: bottom 0.25s ease-out;

}


.li_nav #menu-mainli a span {
    font-weight: 300;
    color: #000;
    font-size: 20px
}

@media screen and (max-width: 992px) {
    .li_nav #menu-main {
        gap: 10px;
    }

    .li_nav #menu-main li a {
        font-size: 18px;
        padding: 5px;
    }
}


/* Default Footer Menu */


#li-footer .li_nav a {
    color: white;
    text-decoration: none;

}

#li-footer .li_nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    flex-direction: column;
    width: 100%;

}

#li-footer .li_nav ul li {
    display: flex;
    flex-direction: row;
}

#li-footer .li_nav ul li a {
    display: flex;
    width: 100%;
    transition: padding 0.4s;
}

#li-footer .li_nav a:hover {
    padding-left: 10px;
    color: #fff;
}

#li-footer .li_nav a::before {
    display: flex;
    width: 14px;
    height: 14px;
    content: "";
    margin-right: 10px;
    align-self: center;
    text-indent: -9999px;
    background-color: #fff;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-image: url('../icons/arrow.svg')

}


#li-footer .li_nav a:hover::before {
    background-color: #fff;
}


/*shortcode contacts im Footer*/
#li-contacts-footer {
    color: #fff;
}

.lio .products-popup .swiper-pagination .swiper-pagination-bullet {
    border-radius: 0 !important;
}

/* product rebrush */

#custom-filter-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;

    #filter-sidebar {
        border: 1px solid var(--e-global-color-accent);
        padding: 20px;
        height: max-content;

        h3 {
            color: #000;
            font-size: 14px;
        }

        ul {
            padding: 0;
            list-style-position: inside;
            list-style-type: none;

            .parent-term {
                padding: 3px 0;
            }

            .selected > label {
                border-bottom: 1px solid var(--e-global-color-accent);
            }

            input {
                display: none;
            }

            label {
                cursor: pointer;
                color: #000;
            }

            ul {
                .child-term {
                    padding-left: 10px;
                }
            }

            .child-wrapper {
                display: none;
            }

            .parent-term.open {
                .child-wrapper {
                    display: block;
                }
            }

            .parent-term:has(.child-wrapper) {
                > h3 {
                    position: relative;
                    display: inline-block;
                    width: 100%;

                   &:after {
                       content: "⏷";
                       display: block;
                       position: absolute;
                       right: 0;
                       top: 0;
                       font-size: 14px;
                       height: 10px;
                       width: 10px;
                   }
                }
            }
        }
    }

    #filter-results {
        width: 100%;

        .select2-search__field {
            display: none !important;
        }

        .filter-select-wrapper {
            display: none;

            #filter-select {
                background: none;
                border: none;
                appearance: none;
                width: auto;
                font-size: 14px;
            }
        }

        .results-filter-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            background: #f3f3f3;
            align-items: center;
            padding: 10px 0;
        }

        .result-count-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            padding: 0 20px;
            width: 100%;
        }

        .products-wrapper {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            text-align: center;
            grid-gap: 40px;
            padding-top: 25px;

            img {
                max-width: 150px;
                height: 300px;
                object-fit: contain;
            }
        }

        .pagination {
            justify-content: center;
            gap: 10px;

            .page-numbers {
                font-size: 20px;
                border: 1px solid var(--e-global-color-accent);
                padding: 10px 20px;
                color: #000;
                font-weight: 300;
                position: relative;
                font-family: 'Montserrat', sans-serif;

                &:hover {
                    background: var(--e-global-color-accent);
                }

                &.current {
                    font-size: 20px;
                    line-height: 28px !important;
                    min-width: 50px;
                    background: var(--e-global-color-accent);
                }

                img {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 15px;
                    height: 15px;
                }

                &.prev {
                    transform: rotate(-180deg);
                    min-width: 50px;
                }

                &.next {
                    min-width: 50px;
                }
            }
        }
    }
}

@media (max-width: 767px) {
    #custom-filter-wrapper {
        flex-wrap: wrap;
    }
    #filter-sidebar {
        width: 100%;
    }
    #filter-sidebar h3 {
        margin-top: 0;
        margin-bottom: 4px;
    }
    #custom-filter-wrapper  .products-wrapper {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-gap: 20px !important;
    }
    #filter-results .pagination .page-numbers {
        font-size: 16px !important;
        padding: 5px 15px !important;
        min-width: 40px !important;
    }
}

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

    #filter-sidebar h3 {
        margin-top: 0;
        margin-bottom: 4px;
    }
    #custom-filter-wrapper  .products-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 20px !important;
    }
    #filter-results .pagination .page-numbers {
        font-size: 16px !important;
        padding: 5px 15px !important;
        min-width: 40px !important;
    }
}

/* product single view */
#all-products-button {
    display: none;
}

.single-product #all-products-button {
    display: block;
}

.product-details-item {
    .item-wrapper {
        display: flex;
        flex-flow: row nowrap;
        gap: 35px;
        padding: 20px 0;
        border-top: 1px solid #cacaca;

        img {
            max-height: 150px;
            width: 160px;
            height: 100%;
            min-height: 100%;
            object-fit: contain;
        }

        .item-description {
            display: flex;
            flex-direction: column;
            gap: 20px;

            h3 {
                margin: 0 0 5px 0;
            }

            p,
            h4 {
                margin: 0 !important;
            }

            ul {
                padding: 0;
                list-style-position: inside;
            }

            p,
            li {
                color: #7f7f7f;
            }

            h4,
            .closing-sentence {
                font-weight: bold;
            }

            .closing-sentence {
                color: #000;
                font-size: 13px;
                padding-top: 5px;
            }

            .item-introduction {
                h3 {
                    color: #000;
                    text-transform: uppercase;
                    font-size: 15px;
                }
            }
        }
    }
}

@media (max-width: 1024px) {
    .product-details-item {
        .item-wrapper {
            flex-direction: column;
        }
    }
}

.page-id-6039 {
    .entry-title {
        display: none;
    }
}

.parent-term {
    font-weight: 600;
    border-bottom: 1px solid #000;
    padding: 5px 0 !important;
}

.child-term {
    font-weight: 400;
    padding-top: 4px;
    padding-bottom: 4px;
}

.child-term label {
    line-height: 22px;
    position: relative;
    padding-left: 22px;
}

.child-term label:before {
    content: "";
    width: 15px;
    height: 15px;
    border: 1px solid #000;
    display:block;
    position: absolute;
    background:#fff;
    top: 3px;
    left: 0;
}

.child-term label:after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display:block;
    position: absolute;
    background:var(--e-global-color-accent);
    top: 6px;
    left: 3px;
    display: none;
}

#filter-sidebar {
    width: 220px;
}

#filter-sidebar input {
    width: 17px;
    height: 17px;
}

.selected > label {
    border-bottom: none !important
}

.child-term.selected > label:after {
    display: block;
}

.parent-term h3 {
    font-weight: 600;
    padding: 5px 0 !important;
}

.child-term label, .parent-term label {
    font-weight: 400;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.child-term label, .parent-term label {
    line-height: 22px;
    position: relative;
    padding-left: 22px;
}

.child-term label:before, .parent-term label:before {
    content: "";
    width: 15px;
    height: 15px;
    border: 1px solid #000;
    display:block;
    position: absolute;
    background:#fff;
    top: 3px;
    left: 0;
}

.parent-term h3 {
    margin: 0;
    border-bottom: none;
}

.child-term label:after, .parent-term label:after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display:block;
    position: absolute;
    background:var(--e-global-color-accent);
    top: 6px;
    left: 3px;
    display: none;
}

#filter-sidebar {
    width: 220px;
}

#filter-sidebar input {
    width: 17px;
    height: 17px;
}

.child-term {
    padding: 0 !important;
}

.selected > label {
    border-bottom: none !important
}

.child-term.selected > label:after, .parent-term.selected > label:after {
    display: block;
}

@media (max-width: 767px) {
    #filter-sidebar {width: 100%;}
}
