button#calculator *{
    font-family: "RobotoCustom";
}

div#calculator #body{
    width: calc(100% - 30px);
    overflow-y: auto;
    max-width: 1340px;
}

button#calculator{
    width:100%;
}

div#calculator{
   display: block;
}

div#calculator #image img{
    max-height: 400px
}

div#calculator #image img[src=""]{
    visibility: hidden;
}

div#calculator .custom_select#frame{
    margin-top: 0px;
}

div#calculator .custom{
    display:inline-block;
}

div#calculator #loops .custom{
    display:none;
}

div#calculator img:after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    background: #ffffff;
}

div#calculator #loops[data-count="4"] .custom:nth-child(2),
div#calculator #loops[data-count="4"] .custom:nth-child(3),
div#calculator #loops[data-count="4"] .custom:nth-child(4){
    display: inline-block;
}

div#calculator #loops[data-count="2-4"] .custom:nth-child(2),
div#calculator #loops[data-count="2-4"] .custom:nth-child(4){
    display: inline-block;
}

div#calculator #loops[data-count="6"] .custom{
    display: inline-block;
}

div#calculator .ipg__calc-inner{
    position: relative;
}

div#calculator .ipg__calc-aside{
    padding-right: 0px;
    width: 500px;
}

div#calculator .ipg__calc-img{
    padding: 0 10px;
    top: 0;
    position: absolute;
    right: 0;
    width: 396px;
}

div#calculator input[type="number"]{
    padding-right:1px;
}

div#calculator .ipg__calc-block.--big{
    min-height: 500px;
}

div#calculator .item .custom_select{
    margin-top:0px;
}

div#calculator .custom .radio{
    min-width: 40px;
}

div#calculator .custom .radio .number,
div#calculator .custom .checkbox .number{
    font-size: 14px;
    line-height: 22px;
    color: #2A2F33;
    margin-bottom: 8px;
    font-weight: initial;
    top: 1px;
    padding-left: 25px !important;
}



div#calculator .counter{
    margin-right: 8px;
}

div#calculator .item{
    display:none;
}

div#calculator #group.item{
    display: block;
}

div#calculator .item#group{
    margin-bottom: 16px;
}

div#calculator .item#group fieldset{
    border: transparent;
    margin: 0;
    padding: 0;
}

div#calculator .item#group fieldset legend{
    height: 0;
    color: transparent;
}

div#calculator .item#group fieldset#bottom{
    display:none;
}

div#calculator .item#group[data-lifting="hf"] fieldset{
    display:flex;
}

div#calculator .item#group[data-lifting="hf"] fieldset .item{
    display: flow-root;
    width: 50%;
    margin-bottom: 0;
}

div#calculator .item#group[data-lifting="hf"] fieldset:nth-of-type(1){
    margin-bottom:16px;
}

div#calculator .item#group[data-lifting="hf"] fieldset .item:nth-of-type(1){
    margin-right: 10px;
}

div#calculator .item#group[data-lifting="hf"] fieldset legend{
    height: initial;
    margin-bottom: 10px;

    font-style: normal;
    font-weight: 600;
    font-size: 14px;

    color: #2A2F33;
}

div#calculator .item#group[data-lifting="hf"] fieldset#bottom{
    display: flex;
}

div#calculator .item#group[data-lifting="hf"] fieldset{
    padding: 5px;
}

div#calculator .item#group[data-lifting="hf"] fieldset legend{
    text-align: left;
}

div#calculator .item#group[data-lifting="hf"] .--error .ipg__calc-item__text{
    display:none;    
}

div#calculator .item#group[data-lifting="hf"] .--error .ipg__calc-item__err{
    position:initial;
}

div#calculator button{
    text-transform:initial;
}

div#calculator button:disabled{
    opacity:0.4;
}

div#calculator #basket{
    margin-top:24px;
}

div#calculator #success{
    display:none;
}

div#calculator #total{
    font-family: 'RobotoCustom';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 41px;
    color: #2A2F33;
    margin-right: 16px;
}

div#calculator #download{
    text-decoration: none;
}

button.calculator{
    width: 100%;
}

button.calculator.in-cart{
    cursor:
    pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 9px 24px;
    position: static;
    width: 197px;
    height: 40px;
    left: 0px;
    top: 258px;
    border: 1px solid #F58220;
    box-sizing: border-box;
    border-radius: 4px;
    flex: none;
    order: 3;
    flex-grow: 0;
    margin: 24px 0px;
    background: transparent;
    text-transform: initial;
}

button.calculator.in-cart span{
    position: static;
    width: 121px;
    height: 22px;
    left: calc(50% - 121px/2 - 14px);
    top: calc(50% - 22px/2);

    font-family : 'RobotoCustom';
    font-style: normal;
    font-weight : 500;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    color: #F58220;
    flex: none;
    flex-grow: 0;
    margin: 0px 8px;
}

button.calculator.in-cart i{
    background: url(/local/templates/fiera/img/ico/frame-facade/calc.png) no-repeat;
    position: static;
    width: 20px;
    height: 20px;
    left: 153px;
    top: 10px;

    flex: none;
    order: 1;
    flex-grow: 0;
    margin: 0px 8px;
}

/* custom  radio & checkbox */
.custom .radio,
.custom .checkbox{
    position:relative;
    cursor: pointer;
    user-select: none;
    height: 24px;
    min-width: 54px;
}

.custom .radio input + label:before,
.custom .checkbox input + label:before{
     content: "";
     position: absolute;
     width: 21px;
     height: 21px;
     border: 2px solid #E8EAEC;
     border-radius: 50%;
     box-sizing: border-box;
}

.item.--error .custom .radio input + label:before{
    border: 1px solid #f00;    
}

.custom .checkbox input + label:before{
    border-radius: 2px;
}

.custom .radio input:checked + label:before,
.custom .checkbox input:checked + label:before{
    -webkit-box-shadow: inset #fff 0 0 0 2px;
    box-shadow: inset #fff 0 0 0 2px;
    background: #F58220;
}

.custom .radio .number,
.custom .checkbox .number{
    font-weight: 500;
    font-size: 16px;
    color: #2A2F33;
    padding-left: 30px !important;
    position: absolute;
    top: 4px;
}
/* custom  radio & checkbox */

div#calculator.ipg__calc .ipg__calc-table__td {
    width: 20%;
}

div#calculator .button_checkbox{

}

div#calculator .button_checkbox .body{
    display: flex;
    gap: 8px;
}

div#calculator .button_checkbox label{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    background: #F6F6F6;
    border-radius: 2px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    font-size: 14px;
    height: 17px;
    -webkit-box-sizing: initial;
}

div#calculator .button_checkbox input label{
    height: 17px;
    font-style: normal;
    font-size: 14px;
    line-height: 120%;
    display: flex;
    align-items: center;
}

div#calculator .button_checkbox input:checked + label{
    font-style: normal;
    font-weight: 500;
    color: #F58220;
    font-size: 14px;
}

div#calculator .button_checkbox input{
    position:absolute;
}

div#calculator .button_checkbox input:checked + label span{
    width: 21px;
    height: 21px;
    background: url(/public/image/ico/circle_done.svg) no-repeat center center;
    background-size: 20px;
}

div#calculator #image #info{
    background-color: #E8F4FD;
    padding: 16px;
    margin-bottom: 15px;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    border-radius: 0px 0px 4px 4px;
    /* line-height: 56px; */
}

div#calculator #image #info:before{
    content: "";
    width:24px;
    height: 24px;
    background: url(/public/image/ico/expand_up_down.svg) no-repeat center center;
    float: left;
    top: -3px;
    position: relative;
    margin-right: 5px;
}

div#calculator .ipg__calc-footer{
    justify-content: initial;
    padding-bottom: 0;
}

div#calculator .ipg__calc-footer .ipg__calc-footer__inner{
    margin-right: 25px;
}

div#calculator .ipg__calc-footer__text{
    margin-bottom:0px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    flex-grow: 0;
}

div#calculator .ipg__calc-footer__link{
    border: none;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    color: #F58220;
}

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

    div#calculator .items{
        order:2;
    }

    div#calculator #image{
        order:1;
        display: flex;
        position:
        initial;
        flex-flow: wrap;
        height: auto;
        width: 100%;
    }

    div#calculator #image img{
        max-height: 270px;
    }

    div#calculator #image #info{
        order: 1 !important;
        width: 100%;
    }

    div#calculator #image #info span{
        margin-top: 5px;
        display: flex;
    }

    div#calculator #image img{
        order: 0;
        margin-bottom: 20px;
    }

    div#calculator #modal{
        width:100%;
    }
}

#lifting_hf{
    margin-top: 10px;
    color: #ef7d31;
}

#basket-modal .ipg__add-img{
    height:100%;
}

div#calculator .custom_select .select_wrap .select_button .select_text{
     white-space: nowrap;
     overflow: hidden;
}

div#calculator .items .item.--error .title {
    color: #FC7676;
}

div#calculator .items .item.--error select{
    border-color: #FC7676;
    background: #FFF7F7;
    color: #FC7676;
}

div#calculator table#dev{
    width:100%;
    margin-top:50px;
}

div#calculator table#dev td{
    border:1px solid #ccc;
    padding:10px;
}

@media screen and (min-width: 1001px) {
    div#calculator .ipg__calc-aside#items{
        width:35%;
    }

    div#calculator .ipg__calc-img#image{
        width:65%;
        position: initial;
    }

    div#calculator .ipg__calc-img#image #photo>div{
        text-align: center;
    }
}

div#calculator .ipg__calc-img#image #photo>div:nth-child(1){
    margin-bottom:30px;
}

div#calculator .ipg__calc-img#image #photo img{
    object-fit: initial;
    width:initial;
    height:initial;
}