.glazing-form table tr td{
    padding: 0;
    border: 0;
    vertical-align: middle;
}

.glazing-form table tr td input{
    box-shadow: none !important;
}


.glazing-form table tr td:not(:nth-last-child(-n+2)){
    border-right: 1px solid black;
}

.glazing-form table tr:not(:last-child) td{
    border-bottom: 1px solid black;
}

.glazing-form table tr td:last-child{
    border-bottom: 0;
}

/*.glazing-form table tr:first-child td:last-child{*/
/*    border-left: 1px solid black;*/
/*    border-bottom: 1px solid black;*/
/*}*/

.glazing-form table tr:first-child td{
    border: 0;
}

.glazing-form table tr:first-child td{
    height: 50px;
}

.glazing-form table tr:first-child td div{
    transform: rotate(-90deg);
}

.glazing-form-matrixs{
    display: flex;
    margin-top: 30px;
}

table{
    margin-bottom: 0 !important;
}

.egf-close-btn{
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.egf-close-btn:hover{
    background: #FBFBFB;
}

.egf-close-btn:after{
    content: "";
    display: block;
    background: url('../img/close.svg') no-repeat;
    background-size: cover;
    height: 18px;
    width: 18px;
}

.glazing-form-btn{
    font-style: normal;
    font-weight: 700 !important;
    line-height: 37px;
    border-radius: 0 !important;
    border: 0 !important;
    white-space: normal !important;
    padding: 8px 15px !important;
}

.glazing-form-btn:focus{
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.matrix-btn{
    margin-bottom: 15px;
    width: 360px !important;
    display: block !important;
    text-align: center !important;
    margin-left: auto;
}

.btn-send-form{
    grid-column: initial;
    background: #303030 !important;
    color: #FFFFFF !important;
    margin-top: 75px;
}

.btn-send-form:hover{
    background: #0133A0 !important;
}

#add-configuration{
    background: #0133A0;
    color: #FFFFFF;
}

#add-configuration:hover{
    background: #000000;
}

#add-additional-configuration{
    background: transparent;
    color: #0133A0;
}

#reset-configuration{
    color: #BDBDBD;
    background: transparent;
    border: 0;
    font-weight: bold;
    text-decoration: underline;
    padding-right: 0;
    padding-left: 0;
    outline: none;
}

#recommended-configuration{
    background: #000000;
    color: #FFFFFF;
}

.bereich70-wrapper{
    width: calc(50% + 20px);
}

.bereich65-wrapper{
    width: calc(50% - 20px);
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
}

#bereich65 tbody tr:nth-child(2) td{
    border: none;
}

/*#bereich65 tbody tr:nth-child(2) td{*/
/*    !*border-right: none;*!*/
/*    border-bottom: none;*/
/*}*/

#bereich65 tbody tr:not(:first-child) td:last-child{
    display: none;
}

#bereich70 tr td, #bereich65 tr td,
#bereich70 tr td input, #bereich65 tr td input{
    text-align: center;
}

#bereich70 tbody tr td:last-child{
    /*width: 40px;*/
}

#bereich65 tbody tr td input, #bereich70 tbody tr td input{
    padding: 0 !important;
    border: 0 !important;
    min-width: 40px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#bereich65 tbody td, #bereich70 tbody td{
    background: white;
}

#orders-table thead{
    border-bottom: 1px solid #D8D8D8;
}

#orders-table tfoot{
    border-top: 1px solid #D8D8D8;
}

#orders-table tr td, #orders-table tr th{
    background: white !important;
    border: none !important;
    text-align: left;
}

#orders-table tr th{
    font-style: normal;
    font-weight: 700;
    line-height: 46px;
    color: #666666;
    padding-left: 0;
}

#orders-table tr td{
    font-style: normal;
    font-weight: 700;
    line-height: 46px;
    color: #303030;
    padding: 15px 0 0 0;
}

#orders-table tr.subtitle td{
    line-height: 25px;
}

#orders-table tr.child td{
    color: #666666;
    line-height: 25px;
    padding: 5px 0;
}

#orders-table tbody tr:first-child td{
    padding-top: 35px;
}

#orders-table tbody tr:last-child td{
    padding-bottom: 35px;
}

#orders-table tr td:not(:first-child),
#orders-table tr th:not(:first-child){
    text-align: center;
}

.egf-edit-btn{
    font-style: normal;
    font-weight: 400;
    /*font-size: 16px;*/
    line-height: 31px;
    color: #666666;
    margin-left: 25px;
    cursor: pointer;
    border-radius: 5px;
    padding: 3px 5px;
}

.egf-edit-btn:hover{
    background: #FBFBFB;
}

.with_frm_style .frm-show-form .frm_section_heading h3{
    font-style: normal;
    font-weight: 700;
    /*font-size: 32px;*/
    line-height: 61px;
    color: #000000;
}

.with_frm_style .frm_primary_label{
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 46px;
    color: #303030;
}

#comment_container{
    margin-top: 100px;
}

#comment{
    outline: none;
}

.success-wrapper,
.fail-wrapper{
    display: none;
    text-align: center;
}

.success-wrapper h2,
.fail-wrapper h2{
    margin-top: 30px;
}

.success-img:before{
    display: block;
    height: 50px;
    width: 50px;
    content: "";
    background: url('../img/success.svg') no-repeat;
    background-size: cover;
    margin: 0 auto;
}

.fail-img:before{
    display: block;
    height: 50px;
    width: 50px;
    content: "";
    background: url('../img/remove.svg') no-repeat;
    background-size: cover;
    margin: 0 auto;
}

.error-box span{
    display: block;
    color: #B94A48;
}

@media (max-width: 1024px) {
    .glazing-form{
        padding: 20px;
    }

    .glazing-form-matrixs{
        display: block;
    }

    .bereich70-wrapper,
    .bereich65-wrapper{
        width: 100%;
    }

    #bereich65 tbody tr:not(:first-child) td:last-child{
        display: table-cell;
    }

    #add-configuration{
        width: 100%;
        margin-top: 20px;
    }

    #send-form{
        width: 100%;
    }
}

@media (max-width: 696px) {
    #orders-table tr th{
        font-size: 14px;
    }

    #orders-table tr td{
        font-size: 14px;
    }
}

@media (max-width: 535px) {
    .glazing-form-btn{
        font-size: 18px !important;
    }

    #bereich65 tbody tr td input, #bereich70 tbody tr td input{
        min-width: 35px;
    }
}

/**************************************/

.glazing-form fieldset{
    border: none;
}

.glazing-form h3{
    font-style: normal !important;
    font-weight: 700 !important;
    /*font-size: 32px !important;*/
    line-height: 61px !important;
    color: #000000 !important;
    margin-bottom: 30px !important;
    padding: 15px 0 3px 0;
}

.glazing-form h3.top-line{
    border-top: 1px solid #e8e8e8;
}

.glazing-form label{
    display: block !important;
    float: none;
    width: auto;
    font-style: normal;
    font-weight: 700;
    /*font-size: 22px;*/
    line-height: 46px !important;
    color: #303030;
}

.glazing-form input[type=text], 
.glazing-form input[type=number], 
.glazing-form select{
    color: #555555;
    background-color: #ffffff;
    border: 1px solid #BFC3C8 !important;
    -moz-border-radius: 0;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100%;
    font-size: 14px !important;
    padding: 6px 10px !important;
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    font-weight: normal;
    height: 32px;
    line-height: 1.3;
}

.glazing-form textarea{
    color: #555555;
    font-size: 14px;
    padding: 7px 10px !important;
    background-color: #ffffff;
    border-radius: 0 !important;
    border-color: #BFC3C8 !important;
}

.box-wrapper{
    margin-bottom: 40px;
}

.required{
    color: #B94A48;
    font-weight: bold;
}