/*счетчик*/
.ipg__counter{
    align-self: flex-end;
    display: -webkit-box;
    display: -ms-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    border: 2px solid #F6F6F6;
}

.ipg__counter.--disabled{
    position: relative;
    opacity: .4;
}

.ipg__counter.--disabled:before{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ipg__counter-field{
    width: 48px;
    height: 40px;
    line-height: 40px;
    border: none;
    font-size: 14px;
    color: #2A2F33;
    text-align: center;
    background: #F6F6F6;
}

.ipg__decrement,
.ipg__increment{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

/*корзина*/
.ipg__add-cart,
.ipg__add-like{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.ipg__add-cart{
    background: #F58220;
    margin-right: 8px;
}

.ipg__add-cart:disabled{
    opacity: .4;
}

.ipg__add-like{
    background: #fff;
    border: 1px solid #F58220;
}

/*модлка*/
.ipg__add-modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100vh;
    z-index: 101;
}

.ipg__add-block{
    position: relative;
    left: 50%;
    top: 50%;
    background: #FFF;
    width: 100%;
    max-height: 95vh;
    max-width: 1024px;
    transform: translate(-50%, -50%);
    padding: 55px 40px 35px;
    overflow-y: auto;
}

.ipg__add-close{
    position: absolute;
    cursor: pointer;
    top: 22px;
    right: 24px;
}

.ipg__add-header__title{
    font-weight: 500;
    font-size: 24px;
    line-height: 125%;
    color: #000;
    margin-bottom: 24px;
}

.ipg__add-inner{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ipg__add-info{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: calc(100% - 225px);
    padding-right: 90px;
}

.ipg__add-info{
    display: block;
}

.ipg__add-img{
    position: relative;
    min-width: 132px;
    float: left;

    margin-right: 10px;
}

.ipg__add-img img{
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#basket-modal .ipg__add-img > img{
    width: 133px;
    height:auto;
    float: left;
}

.ipg__add-flag{
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 22px;
    z-index: 1;
}

.ipg__add-flag img{
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.ipg__add-description{
    /*float: left;*/
    margin-left: 10px;
    margin-bottom: 9px;
}

.ipg__add-title{
    font-size: 16px;
    line-height: 1.5;
    color: #2A2F33;
}

.ipg__add-article{
    font-size: 14px;
    color: #79848E;
}

.ipg__add-right{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 225px;
}

.ipg__add-priceInfo{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.ipg__add-price{
    font-weight: 500;
    font-size: 24px;
    color: #2A2F33;
}

.ipg__add-priceOld{
    font-size: 16px;
    color: #79848E;
    text-decoration: line-through;
    margin-right: 12px;
    margin-bottom: 4px;
}

.ipg__add-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding-top: 32px;
}

.ipg__add-actions__btn{
    width: 190px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #F58220;
    text-decoration: none;
    border: 1px solid #F58220;
    background: #fff;
    border-radius: 4px;
    margin-right: 24px;
    cursor: pointer;
    user-select: none;
}

.ipg__add-actions__btn.--active{
    color: #fff;
    background: #F58220;
}

.ipg__add-actions__btn:last-child{
    margin-right: 0;
    margin-bottom: 0;
}

.ipg__add-additional:nth-child(1){
    border-top: 1px solid #E8EAEC;
}

.ipg__add-additional{
    position: relative;
    padding-top: 35px;
    margin-top: 35px;
}

.ipg__add-additional__header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ipg__add-additional__header-checkbox{
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 125%;
    color: #79848E;
    cursor: pointer;
    user-select: none;
}

.ipg__add-additional__header-checkbox:before{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    background: #FFF;
    border-radius: 2px;
    height: 16px;
    border: 2px solid #E8EAEC;
    box-sizing: border-box;
}

.ipg__add-additional__header-check input{
    display: none;
}

.ipg__add-additional__header-check input:checked + .ipg__add-additional__header-checkbox:before{
    background: #F58220 url('/local/templates/fiera/img/ico/check.svg') no-repeat center center / contain;
    border-color: #F58220;
}

.ipg__add-additional__header-text{
    font-size: 16px;
    line-height: 125%;
    color: #79848E;
}

.ipg__add-additional__item{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E8EAEC;
}

.ipg__add-additional__item:last-child{
    padding-bottom: 0;
    border: none;
}

.ipg__add-additional__info{
    display: flex;
    align-items: center;
    width: calc(100% - 300px);
}

.ipg__add-additional__img{
    min-width: 46px;
    height: 46px;
}

.ipg__add-additional__img img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.ipg__add-additional__discription{
    padding: 0 16px;
}

.ipg__add-additional__title{
    font-size: 14px;
    line-height: 155%;
    color: #2A2F33;
}

.ipg__add-additional__article{
    font-size: 14px;
    line-height: 155%;
    color: #79848E;
}

.ipg__add-additional__price{
    width: 120px;
    font-weight: 500;
    font-size: 16px;
    line-height: 125%;
    color: #2A2F33;
}

.ipg__add-additional__actions{
    display: flex;
    justify-content: space-between;
    width: 180px;
}

.ipg__add-additional__cart{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    background: #F58220;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.ipg__add-additional__cart span{
    display: none;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    margin-left: 10px;
}

#basket-modal{
    z-index:1000;
}

.basket_modal_hide_scroll body{
    overflow: hidden !important;
    margin-right:17px;
}

.basket_modal_hide_scroll #basket-modal{
    overflow-y: scroll;
}

.fancybox-margin{
    margin-right: 0px !important;
}

.fancybox-lock body{
    overflow: auto !important;
}

.fancybox-lock .fancybox-overlay{
    overflow-y: hidden;
}

.quantity_not_equal{
    background: #e1bdbd !important;
}

#basket-modal[data-possibility="cannot"] #close,
#basket-modal[data-possibility="cannot"] .ipg__add-actions a{
    pointer-events: none;
    opacity:0.3;
}

#basket-modal .ipg__add-additional{
    opacity:1;
}

#basket-modal .ipg__add-additional.opacity{
    animation-name: basket-modal-opacity;
    animation-duration: 2s;
    animation-iteration-count: 1;
}

@keyframes basket-modal-opacity{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}


#screws *{
    font-family: 'Roboto', 'RobotoCustom', 'Arial', sans-serif;
}

#screws{
    display:
    none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100vh;
    z-index: 900;
}

#screws #body{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 0px;
    gap: 10px;
    position: absolute;
    width: 380px;
    height: 206px;
    left: calc(50% - 428px/2);
    top: calc(50% - 206px/2);
    background: #FFFFFF;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#screws #title{
    width: 127px;
    height: 24px;

    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;

    color: #2A2F33;

    flex: none;
    order: 0;
    flex-grow: 0;
}

#screws #info{
    position: absolute;
    width: 86px;
    height: 18px;
    top: 45px;

    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #79848E;
}

#screws button{
    margin-top: 20px;
}

@media screen and (max-width: 450px){
    #screws #body{
        width: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 1279px){
    .ipg__add-info{
        padding-right: 20px;
    }
}

@media screen and (max-width: 767px){
    .ipg__add-block{
        padding: 50px 16px;
    }

    .ipg__add-header__title{
        font-size: 16px;
    }

    .ipg__add-img{
        min-width: 64px;
        height: 42px;
    }

    .ipg__add-description{
        padding-left: 8px;
    }

    .ipg__add-flag{
        width: 16px;
        height: 14px;
    }

    .ipg__add-title,
    .ipg__add-article{
        font-size: 12px;
    }

    .ipg__add-info{
        width: 100%;
        padding-right: 0;
    }

    .ipg__add-right{
        display: flex;
        flex-direction: initial;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 16px;
    }

    .ipg__add-priceInfo{
        order: 2;
    }

    .ipg__add-priceInfo{
        margin-bottom: 0;
    }

    .ipg__add-additional__discription{
        padding-right: 0;
    }

    .ipg__add-actions{
        padding-top: 20px;
    }

    .ipg__add-actions__btn{
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .ipg__add-priceOld{
        width: 100%;
        text-align: right;
        font-size: 12px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .ipg__add-price{
        font-size: 18px;
    }

    .ipg__add-additional__info{
        width: 100%;
        margin-bottom: 10px;
    }

    .ipg__add-additional__price{
        width: 100%;
        text-align: right;
        margin-bottom: 10px;
    }

    .ipg__add-additional__actions{
        width: 100%;
        justify-content: space-between;
    }

    .ipg__add-additional__cart{
        min-width: 126px;
    }

    .ipg__add-additional__cart span{
        display: initial;
    }

    .ipg__add-additional{
        padding-bottom: 50px;
    }

    .ipg__add-additional__header{
        margin-bottom: 10px;
    }

    .ipg__add-additional__header-text{
        font-size: 14px;
    }

    .ipg__add-additional__header-check{
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 0;
    }
}

.products form[id] #put-in-cart{
    margin-left: 8px;
}

.products form[id] #put-in-cart.added,
.products form[id] #update-cart.added{
    background: #ccc;
}