/* Machic renders footer widget columns even after a widget is filtered out. */
.single-product .site-footer .footer-widgets .row > .col:not(:has(> *)),
.single-product .site-footer .footer-widgets .col:has(> .widget_product_categories:only-child),
.single-product .site-footer .footer-widgets .widget_product_categories {
    display: none;
}
@media (min-width: 992px) {
    .single-product .site-footer .footer-widgets .row > .col-lg-3 { flex: 1 1 0; max-width: none; }
}
@media (max-width: 767px) {
    .site-offcanvas .site-scroll { overflow-anchor: none; }
    .site-offcanvas nav.categories li.menu-item-has-children { align-items: center; }
    .site-offcanvas nav.categories li > a.next {
        min-width: 42px;
        min-height: 42px;
        justify-content: center;
        touch-action: manipulation;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center {
        display: grid;
        grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
        align-items: stretch;
        overflow: hidden;
        height: auto;
        min-height: 0;
        border-radius: 9px;
        isolation: isolate;
    }
    .theme-machic.home .slider-module .banner:has(img[src*="Haushaltsgeraete-und-Elektrogeraete"]) {
        background-color: #f0efed;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .banner-content {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        padding: clamp(13px, 3.7vw, 20px) 0 clamp(15px, 4vw, 21px) clamp(13px, 3.6vw, 20px);
        min-width: 0;
        max-width: none;
        width: auto;
        height: auto;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .banner-content-wrapper {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-subtitle {
        display: block;
        padding: 0;
        margin: 0 0 5px;
        background: transparent;
        font-size: .64rem;
        font-weight: 650;
        line-height: 1.3;
        letter-spacing: .055em;
        white-space: normal;
        color: #355268;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-title {
        margin: 0;
        max-width: none;
        font-size: clamp(1.08rem, 4.6vw, 1.55rem);
        line-height: 1.18;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-description,
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-description p {
        margin: .3rem 0 0;
        font-size: .79rem;
        line-height: 1.34;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .entry-description:has(> p:only-child:empty) { display: none; }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-button { margin: .6rem 0 0; }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .entry-button a {
        min-height: 33px;
        height: auto;
        padding: .42rem .78rem;
        font-size: .77rem;
        line-height: 1.15;
        white-space: normal;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .banner-image {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        inset: auto;
        width: 100%;
        height: auto;
        overflow: hidden;
        min-width: 0;
        z-index: 0;
    }
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .banner-image img {
        position: absolute;
        inset: 0 0 0 auto;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: contain;
        object-position: right center;
    }
    /* These three original wide banners place their products in the rightmost 40–45%. */
    .theme-machic.home :is(.slider-module, .banner-module) .banner.align-center .banner-image
    img:is([src*="Haushaltsgeraete-und-Elektrogeraete"],[src*="/Elektronische-Bauteile."],[src*="/Kameras-und-Fotogeraete-"]) {
        width: 222%;
    }
}

