/* products-voucher-addon v7.4 - s grid fixem pro kategorie SK/HU/RO/CZ (pod zeleným tlačítkem) */
body .flag[class*=flag-slevovy-kod-]{display:none}
body .flag[class*=flag-slevovy-kod-].fvSt_forceFlagDisplay{display:inline-block!important}

.type-category .fvSt_discountBox,.type-index .fvSt_discountBox,.type-product .fvSt_discountBox{
    font-size:14px;
    color:#000;
    margin:16px 0;
    padding:12px;
    background-color:#ddeccd;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    transition:background-color .15s ease-in-out
}
.type-product .fvSt_discountBox:hover{background-color:#c1d8a8}
.type-product .fvSt_discountBox .fvSt_discountBoxIcon{width:24px;height:24px;display:none}
.type-product .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxPrice,
.type-index .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxPrice,
.type-category .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxPrice{
    font-weight:700;color:red
}
.type-product .fvSt_discountBox .fvSt_discountBoxCode{
    background-color:var(--color-header-background);
    padding:4px;
    color:var(--color-primary);
    font-weight:700
}

/* === PŮVODNÍ KATEGORIE/INDEX STYLY (ponechány pro ostatní kontexty) === */
.type-category .fvSt_discountBox,.type-index .fvSt_discountBox{
    justify-self:center;
    font-size:15px;
    margin:12px auto;
    padding:9px;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    line-height:1.2;
    text-align:center;
    max-width:220px
}
.type-category .fvSt_discountBox:hover,.type-index .fvSt_discountBox:hover{background-color:#c1d8a8}
.type-category .fvSt_discountBox .fvSt_discountBoxIcon,.type-index .fvSt_discountBox .fvSt_discountBoxIcon{width:95px;height:16px}
.type-category .fvSt_discountBox .fvSt_listDiscountBoxCode,.type-index .fvSt_discountBox .fvSt_listDiscountBoxCode{
    padding:4px 8px 1px;
    font-weight:700;
    border:2px dashed #fff
}
.type-category .fvSt_discountBox .fvSt_discountBoxWrapper,.type-index .fvSt_discountBox .fvSt_discountBoxWrapper{
    text-align:center;
    width:100%
}

/* === NOVÝ GRID FIX: PRO 4 KONKRÉTNÍ KATEGORIE (SK .id-2545, HU .id-4397, RO .id-4532, CZ .id-3571) === */
/* Box pod "Do košíka" tlačítkem, 160px šíře, vystředěný pod tlačítkem */
@media (min-width:768px){
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox){
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(160px,1fr) !important;
        grid-template-rows:auto auto !important;
        align-items:center !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-in-in{
        grid-column:1 !important;
        grid-row:1 / 3 !important;
        width:auto !important;
        min-width:0 !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-bottom{
        grid-column:2 !important;
        grid-row:1 !important;
        width:100% !important;
        display:flex !important;
        justify-content:center !important;
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-bottom .p-tools{
        width:100% !important;
        display:flex !important;
        justify-content:center !important;
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-bottom .btn-cart{
        margin:0 auto !important;
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-bottom .offers{
        width:100% !important;
        display:flex !important;
        justify-content:center !important;
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .p-bottom .prices{
        display:none !important;
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .p-in:has(> .fvSt_discountBox) > .fvSt_discountBox{
        grid-column:2 !important;
        grid-row:2 !important;
        width:160px !important;
        padding:6px 8px !important;
        margin:6px auto !important;
        gap:4px !important;
        font-size:12px !important;
        line-height:15px !important;
        justify-self:center !important;
        max-width:160px !important;
        background-color:#ddeccd !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .fvSt_discountBox .fvSt_discountBoxIcon{
        font-size:12px !important;
        line-height:15px !important;
        width:auto !important;
        height:auto !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .fvSt_discountBox .fvSt_listDiscountBoxCode{
        font-size:12px !important;
        line-height:15px !important;
        padding:2px 6px 1px !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .fvSt_discountBox .fvSt_discountBoxText{
        font-size:12px !important;
        line-height:15px !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .fvSt_discountBox .fvSt_discountBoxPrice{
        font-size:16px !important;
        line-height:18px !important;
        font-weight:700 !important;
        color:red !important
    }
    body:is(.id-2545,.id-4397,.id-4532,.id-3571) .products-inline .fvSt_discountBox .fvSt_discountBoxWrapper{
        width:100% !important;
        text-align:center !important
    }
}

.flag[class*=flag-slevovy-kod-]{display:none}

#product-detail-form{display:flex;flex-direction:column}
#product-detail-form .fvSt_discountBox{background:#ddeccd;transition:none;margin-bottom:0}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxIcon svg path{fill:#000}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper{width:100%}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxText{
    color:#000;
    width:100%;
    display:flex;
    align-items:baseline;
    flex-wrap:wrap
}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxText .fv-code-title{
    font-weight:600;
    text-decoration:underline
}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxText .fv-code .fvSt_discountBoxCode{
    background:#ddeccd;
    color:#000;
    font-weight:400;
    padding:2px;
    margin:2px
}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxText .fv-code-small{font-size:10px}
#product-detail-form .fvSt_discountBox .fvSt_discountBoxWrapper .fvSt_discountBoxText .fv-code-value{
    color:red;
    margin-left:auto
}
#product-detail-form .fvSt_discountBox:hover,
#product-detail-form .fvSt_discountBox:hover .fvSt_discountBoxWrapper .fvSt_discountBoxText .fv-code .fvSt_discountBoxCode{
    background:#c1d8a8
}