/* ==================================================
   ELEKTRO ZA HUBICKU - KONKURENCNI VYHODY v1.0
   Uvodni stranka / pouze mobilni zobrazeni
   Desktop, paticka a ostatni stranky beze zmeny.
   ================================================== */

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

    /* 01 - Dvousloupcova mrizka originalnich vyhod Shoptetu */
    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 16px !important;
        padding: 0 10px !important;
    }

    /* 02 - Jednotlive karty, zachovani originalni viditelnosti */
    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) > .benefitBanner__item {
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 92px;
        margin: 0 !important;
        padding: 10px 6px !important;
        background: #F0F7F6;
        border: 1px solid #DCE5E4;
        border-radius: 8px;
        text-align: center !important;
    }

    /* 03 - Puvodni obrazky a jejich rozmery */
    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) .benefitBanner__picture {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: 40px !important;
        height: 40px !important;
        max-width: 100% !important;
        margin: 0 auto 6px !important;
        padding: 0 !important;
    }

    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) .benefitBanner__picture img {
        display: block !important;
        width: 40px !important;
        height: 40px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* 04 - Nadpisy zustavaji skutecne, bez nahrazovani textu CSS */
    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) .benefitBanner__content {
        flex: 0 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) .benefitBanner__title {
        display: block;
        margin: 0 !important;
        padding: 0 !important;
        color: #002F30 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: center !important;
    }

    /* 05 - Dlouhe doprovodne popisy skryt pouze zde na mobilu.
       Plne popisy v paticce i na desktopu zustavaji. */
    body:is(.type-index, .in-index) .benefitBanner:not(#ezh-footer *):not(footer *) .benefitBanner__data {
        display: none !important;
    }
}
