.svg-icon {
    display: inline-block;
    margin-bottom: 0.4em;
    margin-right: 0.4em;
    height: 1.4em;
    width: 1.4em;
    fill: currentColor;
    vertical-align: middle;
}

.calc-wrapper {
    position: relative;
    margin-bottom: 30px;
    transition: opacity .3s linear;
    /*overflow: hidden;*/
}

.calc-wrapper .calc-errors {
    margin-top: 10px;
    padding: 10px;
}

.calc-wrapper:after {
    opacity: 0;
}

.calc-wrapper:not(.loaded):after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff url('/images/preloader.svg') no-repeat center top;
    background-size: 20%;
    opacity: 1;
    z-index: 2;
}

.calc-wrapper .calc-preheader {
    margin-bottom: 25px;
}

.calc-wrapper .calc-rooms {
    /*background: #e5e5e5;*/
    /*padding: 15px;*/
    /*margin-bottom: 15px;*/
}

.calc-wrapper .calc-rooms .styled-h3,
.calc-wrapper .calc-header .styled-h2 {
    color: #2e2e2e;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0;
    line-height: 41px;
}

.calc-wrapper .calc-header {
    position: relative;
    background: #555555;
    padding: 15px;
    margin-bottom: 15px;
}

.calc-wrapper .calc-header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 420px;
    display: block;
    width: 100px;
    height: 122px;
    background: url('../../images/ribbon-sale_min.png') no-repeat;
}

.calc-wrapper .calc-header .styled-h2 {
    color: #fff;
}

.calc-wrapper .calc-header .ch-buttons {
    text-align: right;
}

.calc-wrapper .calc-rooms .btn-default2,
.calc-wrapper .calc-header .btn-default2 {
    min-width: 180px;
    border-radius: 0;
    background: #797979;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.calc-wrapper .calc-header .btn-default2:hover,
.calc-wrapper .calc-rooms .btn-default2:hover,
.calc-wrapper .calc-header .btn-default2.active,
.calc-wrapper .calc-rooms .btn-default2.active {
    color: #ffffff;
    background: #f56d48;
}

.calc-wrapper .calc-header .btn-default2:not(:last-child) {
    margin-right: 7px;
}

.calc-wrapper .calc-rooms .btn-default2 {
    margin-right: 7px;
    width: auto;
    min-width: unset;
}

.calc-wrapper .calc-rooms .edit-item,
.calc-wrapper .calc-rooms .remove-item {
    margin-right: 7px;
    margin-top: 0;
    border-radius: 0;
    width: auto;
    min-width: unset;
}

.calc-wrapper .calc-rooms .remove-item {
    margin-right: 0;
}

.calc-wrapper .calc-rooms .edit-item:hover:before,
.calc-wrapper .calc-rooms .remove-item:hover:before,
.calc-wrapper .calc-rooms .edit-item:active:before,
.calc-wrapper .calc-rooms .remove-item:active:before,
.calc-wrapper .calc-rooms .edit-item:focus:before,
.calc-wrapper .calc-rooms .remove-item:focus:before {
    transform: scale(0.8, 0.8);
}

.calc-wrapper .calc-rooms table {
}

.calc-wrapper .calc-rooms table td {
    vertical-align: middle;
}

.calc-wrapper .calc-rooms table td.cart-item-description {
    vertical-align: top;
}

.calc-wrapper .calc-rooms table td .cid-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.calc-wrapper .calc-rooms table td .cid-transcription {
    font-size: 14px;
}

.calc-wrapper .calc-rooms table td.cart-item-image {
    width: 10%;
}

.calc-wrapper .calc-rooms table td.cart-item-image > div {
    margin: 0 auto;
}

.calc-wrapper .calc-rooms table td.cart-item-size,
.calc-wrapper .calc-rooms table td.cart-item-price {
    width: 150px;
    text-align: center;
    font-size: 20px;
}

.calc-wrapper .calc-rooms table td.cart-total {
    font-size: 20px;
}

.calc-wrapper .calc-rooms table td.cart-item-price {
    color: #f56d48;
    font-weight: bold;
}

.calc-wrapper .calc-rooms table td.cart-item-price .svg-icon {
    font-size: 10px;
}

.calc-wrapper .calc-rooms table td.cart-item-buttons {
    width: 140px;
    text-align: center;
}

.calc-wrapper .btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}

.calc-wrapper .calc-footer {
    background: #ededed;
    padding: 15px;
    margin-top: 15px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
}

.calc-wrapper .calc-footer .text-uppercase {
    font-size: 20px;
}

.calc-wrapper .calc-result-hint {
    text-align: right;
    margin: 15px 0 0;
}

.calc-wrapper .calc-result-price {
    /*font-size: 32px;*/
    /*color: #f56d48;*/
    /*font-weight: bold;*/
}

.calc-wrapper .calc-result-price .svg-icon {
    font-size: 16px;
}

.calc-wrapper .calc-footer > span,
.calc-wrapper .calc-footer > .cf-middle {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.calc-wrapper .calc-footer > span.hint {
    max-width: 30%;
}

.calc-wrapper .calc-footer > span.calc-result-price {
    max-width: 20%;
}

.calc-wrapper .co-steps {
    display: table;
    width: 100%;
}

.calc-wrapper .co-steps > div {
    display: table-row;
}

.calc-wrapper .co-steps > div > div {
    display: table-cell;
    vertical-align: middle;
    padding-bottom: 5px;
}

.calc-wrapper .co-steps > div > div p {
    margin: 0;
}

.calc-wrapper .co-steps .cos-number {
    text-align: center;
    padding-right: 5px;
    width: 80px;
}

.calc-wrapper .co-steps .cosn-inner {
    background: linear-gradient(90deg, #37AD80 0.05%, #2EC68B 100.05%);
    border-radius: 6px;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calc-wrapper .co-steps .cos-number span {
    color: #fff;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
}

.calc-wrapper .co-steps .cos-data {

}

.calc-wrapper .co-steps .cosd-inner {
    /*background: #f5f5f5;*/
    border-bottom: 1px solid #e5e5e5;
    height: 75px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 15px;
    justify-content: space-between;
    gap: 15px;
}

#co-steps .calc-sizes {
    display: flex;
    flex-grow: 0;
    gap: 15px;
}

.calc-wrapper .co-steps .cosd-inner > p,
.calc-wrapper .co-steps .cosd-inner > div {
    position: relative;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.calc-wrapper .co-steps .step-1 .cosd-inner > p {
    max-width: 26%;
}

.calc-wrapper .co-steps .step-1 .cosd-inner > div {
    max-width: 74%;
}

.calc-wrapper .co-steps .step-5 .cosd-inner > p {
    max-width: 30%;
}

.calc-wrapper .co-steps .step-3 .cosd-inner > p,
.calc-wrapper .co-steps .step-4 .cosd-inner > p {
    max-width: 40%;
}

.calc-wrapper .co-steps .step-5 .cosd-inner > div {
    max-width: 70%;
}

.calc-wrapper .co-steps .step-3 .cosd-inner > div,
.calc-wrapper .co-steps .step-4 .cosd-inner > div {
    max-width: 60%;
}

.calc-wrapper .calc-sizes {
    display: flex;
}

.calc-wrapper .calc-sizes .size-selector {
    display: flex;
    width: 100%;
    margin: 0 2px;
}

.calc-wrapper .calc-sizes .size-selector:first-child {
    margin-left: 0;
}

.calc-wrapper .calc-sizes .size-selector:last-child {
    margin-right: 0;
}

.calc-wrapper .calc-sizes .size-selector input {
    display: none;
}

.calc-wrapper .calc-sizes .size-selector label {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
}

.calc-wrapper .calc-sizes .size-selector input + label:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 1px solid #89b47f;
    background: rgba(137, 180, 127, .25);
    opacity: 0;
    transition: all .2s ease-in-out;
}

.calc-wrapper .calc-sizes .size-selector input:checked + label:after {
    opacity: 1;
}

.cart-item-image > div,
.calc-wrapper .calc-sizes .calc-type-image {
    display: block;
    width: auto;
    height: 50px;
    background-size: auto;
    background-repeat: no-repeat;
}

.cart-item-image > div.s-one,
.calc-wrapper .calc-sizes .s-one .calc-type-image {
    width: 38px;
    background-image: url('/images/calc/type-1.png');
}

.cart-item-image > div.s-two,
.calc-wrapper .calc-sizes .s-two .calc-type-image {
    width: 51px;
    background-image: url('/images/calc/type-2.png');
}

.cart-item-image > div.s-three,
.calc-wrapper .calc-sizes .s-three .calc-type-image {
    width: 62px;
    background-image: url('/images/calc/type-3.png');
}

.cart-item-image > div.s-four,
.calc-wrapper .calc-sizes .s-four .calc-type-image {
    width: 82px;
    background-image: url('/images/calc/type-4.png');
}

.cart-item-image > div.s-balcony_door,
.calc-wrapper .calc-sizes .s-balcony_door .calc-type-image {
    width: 20px;
    background-image: url('/images/calc/type-5.png');
}

.cart-item-image > div.s-balcony_door_sash,
.calc-wrapper .calc-sizes .s-balcony_door_sash .calc-type-image {
    width: 44px;
    background-image: url('/images/calc/type-6.png');
}

.cart-item-image > div.s-balcony_door_sash_sash,
.calc-wrapper .calc-sizes .s-balcony_door_sash_sash .calc-type-image {
    width: 56px;
    background-image: url('/images/calc/type-7.png');
}

.calc-wrapper select.form-control {
    /*border: 1px solid #ccc;*/
    background: #EFF6F9;
    border-radius: 10px;
    border: none;
}

.calc-wrapper .calc-additional ul {
    list-style-type: none;
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

/*.calc-wrapper .calc-additional label {
    position: relative;
    top: -1px;
    margin: 0;
    padding-left: 3px;
    font-weight: normal;
    cursor: pointer;
}*/

.calc-image .ci-wrapper {
    padding: 60px 0 0;
}

.calc-image .ci-inner {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 336px;
}

.calc-image .ci-inner:after {
    content: "";
    display: block;
    position: absolute;
    border: 1px solid #e5e5e5;
    width: 216px;
    height: 280px;
    top: 34px;
    z-index: -1;
}

.calc-image[data-type="four"] .ci-inner {
    -ms-flex-pack: start;
    justify-content: start;
}

.calc-image[data-type="two"] .ci-inner:after,
.calc-image[data-type="three"] .ci-inner:after,
.calc-image[data-type="four"] .ci-inner:after {
    height: 200px;
}

.calc-image[data-type="three"] .ci-inner:after,
.calc-image[data-type="balcony_door_sash_sash"] .ci-inner:after {
    width: 324px;
}

.calc-image[data-type="four"] .ci-inner:after {
    width: 432px;
}

.calc-image[data-type="one"] .ci-inner:after,
.calc-image[data-type="balcony_door"] .ci-inner:after {
    display: none;
}

.calc-image .ci-inner .ci-image-input {
    position: absolute;
}

.calc-image .ci-inner .ci-image-input.global-width {
    top: 218px;
    left: 50%;
    margin-left: -37px;
    width: 100%;
}

.calc-image[data-type="balcony_door_sash"] .ci-inner .ci-image-input.global-width,
.calc-image[data-type="balcony_door_sash_sash"] .ci-inner .ci-image-input.global-width {
    top: 298px;
}

.calc-image[data-type="four"] .ci-inner .ci-image-input.global-width {
    margin-left: -67px;
}

.calc-image .ci-inner .ci-image-input.height.sash,
.calc-image .ci-inner .ci-image-input.height.door {
    top: 50%;
    right: -74px;
    transform: rotate(90deg);
    margin-top: -16px;
}

.calc-image .ci-inner .ci-image-input.height.door {
    left: -74px;
    right: auto;
    transform: rotate(-90deg);
}

.calc-image .ci-inner > div > .ci-image-input.width {
    top: -52px;
    left: 17px;
}

.calc-image .ci-inner .ci-image-input input {
    width: 74px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #89b47f;
    height: 32px;
    z-index: 2;
    position: relative;
}

.calc-image .ci-inner .ci-image-input.has-error input {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.calc-image .ci-sash,
.calc-image .ci-door {
    position: relative;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 108px;
    max-width: 108px;
}

.calc-image .ci-sash:after,
.calc-image .ci-door:after {
    content: "";
    display: block;
    position: absolute;
    border: 1px solid #e5e5e5;
    width: 100%;
    height: 100%;
    top: -34px;
    z-index: -1;
}

.calc-image .ci-sash.last:before,
.calc-image .ci-door:before {
    content: "";
    display: block;
    position: absolute;
    border: 1px solid #e5e5e5;
    width: 100%;
    height: 100%;
    top: 0;
    right: -36px;
    z-index: -1;
}

.calc-image .ci-door:before {
    left: -36px;
    right: auto;
}


.calc-image .ci-image-inner label {
    width: 100%;
    margin: 0;
    cursor: pointer;
}

.calc-image .state-image {
    width: 108px;
    display: block;
}

.calc-image .ci-sash,
.calc-image .ci-sash .state-image {
    height: 200px;
}

.calc-image .ci-door,
.calc-image .ci-door .state-image {
    height: 280px;
}

.calc-image [data-state="blank"] .state-image {
    background-image: url('/images/calc/states/s-blank.jpg');
}

.calc-image .ci-sash [data-state="right-turn"] .state-image {
    background-image: url('/images/calc/states/s-right-turn.jpg');
}

.calc-image .ci-door [data-state="right-turn"] .state-image {
    background-image: url('/images/calc/states/d-right-turn.jpg');
}

.calc-image .ci-sash [data-state="left-turn"] .state-image {
    background-image: url('/images/calc/states/s-left-turn.jpg');
}

.calc-image .ci-door [data-state="left-turn"] .state-image {
    background-image: url('/images/calc/states/d-left-turn.jpg');
}

.calc-image .ci-sash [data-state="right-tilt-turn"] .state-image {
    background-image: url('/images/calc/states/s-right-tilt-turn.jpg');
}

.calc-image .ci-door [data-state="right-tilt-turn"] .state-image {
    background-image: url('/images/calc/states/d-right-tilt-turn.jpg');
}

.calc-image .ci-sash [data-state="left-tilt-turn"] .state-image {
    background-image: url('/images/calc/states/s-left-tilt-turn.jpg');
}

.calc-image .ci-door [data-state="left-tilt-turn"] .state-image {
    background-image: url('/images/calc/states/d-left-tilt-turn.jpg');
}

@media (min-width: 768px) {
    .calc-main .col-sm-5 {
        width: 45%;
    }

    .calc-main .col-sm-7 {
        width: 55%;
    }
}

@media screen and (max-width: 1024px) {
    .calc-wrapper .calc-header .btn-default2 {
        min-width: 150px;
    }

    .calc-main > .row > div {
        width: 100% !important;
    }

    .calc-image[data-type="four"] .ci-inner {
        -ms-flex-pack: center;
        justify-content: center;
    }

    .calc-image[data-type="four"] .ci-inner .ci-image-input.global-width {
        margin-left: -37px;
    }

    .calc-image .ci-inner .ci-image-input.global-width {
        width: auto;
    }

    .calc-wrapper .co-steps .step-3 .cosd-inner > div, .calc-wrapper .co-steps .step-4 .cosd-inner > div,
    .calc-wrapper .co-steps .step-1 .cosd-inner > div {
        max-width: 45%;
    }

    .calc-wrapper .co-steps .step-3 .cosd-inner > p, .calc-wrapper .co-steps .step-4 .cosd-inner > p,
    .calc-wrapper .co-steps .step-1 .cosd-inner > p {
        max-width: 55%;
    }

    .calc-wrapper .calc-footer > span.hint {
        max-width: 40%;
    }

    .calc-wrapper .calc-header:after {
        top: auto;
        bottom: -122px;
        left: 0;
    }
}

@media screen and (max-width: 992px) {
    .calc-wrapper .co-steps .step-3 .cosd-inner > div, .calc-wrapper .co-steps .step-4 .cosd-inner > div,
    .calc-wrapper .co-steps .step-1 .cosd-inner > div {
        max-width: 65%;
    }

    .calc-wrapper .co-steps .step-3 .cosd-inner > p, .calc-wrapper .co-steps .step-4 .cosd-inner > p,
    .calc-wrapper .co-steps .step-1 .cosd-inner > p {
        max-width: 35%;
    }

    .calc-wrapper .calc-footer > span.hint {
        max-width: 40%;
    }

    .calc-wrapper .calc-header .ch-buttons {
        margin-top: 15px;
        text-align: left;
    }

    .calc-wrapper .calc-rooms .edit-item, .calc-wrapper .calc-rooms .remove-item {
        display: block;
        float: none;
        margin: 0 auto 15px;
    }
}

@media screen and (max-width: 667px) {
    .calc-wrapper .co-steps .cosd-inner {
        background: #f5f5f5;
        border: 1px solid #e5e5e5;
        height: 100px;
        display: block;
        padding: 5px 15px;
    }

    .calc-wrapper .co-steps .cosd-inner > p, .calc-wrapper .co-steps .cosd-inner > div {
        position: relative;
        max-width: 100% !important;
    }

    .calc-wrapper .co-steps .cosd-inner > p {
        margin-bottom: 7px;
    }

    .calc-wrapper .calc-rooms .styled-h3 {
        position: relative;
    }

    .calc-wrapper .calc-rooms .styled-h3:after {
        content: '↔';
        display: block;
        position: absolute;
        top: -3px;
        left: 50%;
    }

    .calc-wrapper .calc-rooms .cr-inner {
        overflow-x: scroll;
    }

    .calc-wrapper .calc-rooms table {
        min-width: 1024px;
    }

    .calc-wrapper .calc-footer {
        background: #ededed;
        padding: 15px;
        margin-top: 15px;
        display: block;
        text-align: center;
    }

    .calc-wrapper .calc-footer > span,
    .calc-wrapper .calc-footer > div {
        display: block;
        max-width: 100% !important;
        margin-bottom: 10px;
    }

    .calc-wrapper .calc-footer > div.cf-end {
        margin-bottom: 0;
    }

    .calc-wrapper .calc-header:after {
        top: 0;
        bottom: auto;
        left: auto;
        right: 0;
    }
}

@media screen and (max-width: 568px) {
    .calc-wrapper .calc-header .btn-default2 {
        min-width: unset;
    }

    .calc-wrapper .co-steps .cos-number {
        display: none;
    }

    .calc-image .ci-inner {
        transform: scale(0.8);
    }

    .calc-image[data-type="four"] .ci-sash, .calc-image[data-type="four"] .ci-door {
        width: 80px;
        max-width: 80px;
    }

    .calc-image[data-type="four"] .ci-inner:after {
        height: 140px;
    }

    .calc-image[data-type="four"] .ci-sash, .calc-image[data-type="four"] .ci-sash .state-image {
        height: 150px;
    }

    .calc-image[data-type="four"] .ci-inner:after {
        width: 320px;
    }

    .calc-image[data-type="four"] .ci-inner .ci-image-input.global-width {
        top: 158px;
    }

    .calc-image[data-type="four"] .state-image {
        width: 80px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .calc-image .ci-inner .ci-image-input input {
        width: 60px;
        padding: 0;
    }

    .calc-image .ci-inner > div > .ci-image-input.width {
        left: 9px;
    }

    .calc-wrapper .calc-header .btn-default2 {
        width: 100%;
        margin-bottom: 7px;
    }

    .calc-wrapper .calc-header .btn-default2:last-child {
        margin-bottom: 0;
    }

    .calc-wrapper .co-steps .cosd-inner {
        height: auto;
    }

    .calc-wrapper .co-steps .cosd-inner .calc-sizes {
        transform: scale(0.8);
        left: -30px;
    }

    .calc-wrapper .co-steps,
    .calc-wrapper .co-steps > div,
    .calc-wrapper .co-steps > div > .cos-data {
        display: block;
    }

    .calc-wrapper .calc-header:after {
        top: auto;
        bottom: -122px;
        left: 0;
        right: auto;
    }
}

@media screen and (max-width: 414px) {
    .calc-wrapper .calc-header:after {
        top: auto;
        bottom: -92px;
        left: 0;
        right: auto;
        width: 76px;
        height: 92px;
        background-size: contain;
    }
}

@media screen and (max-width: 320px) {
    .calc-wrapper .co-steps .cosd-inner .calc-sizes {
        transform: scale(0.65);
        left: -45px;
    }

    .calc-image .ci-sash, .calc-image .ci-door {
        width: 80px;
        max-width: 80px;
    }

    .calc-image .ci-inner:after {
        height: 140px;
    }

    .calc-image .ci-sash, .calc-image .ci-sash .state-image {
        height: 150px;
    }

    .calc-image .ci-door, .calc-image .ci-door .state-image {
        height: 206px;
    }

    .calc-image .ci-inner .ci-image-input.global-width {
        top: 158px;
    }

    .calc-image[data-type="three"] .ci-inner:after, .calc-image[data-type="balcony_door_sash_sash"] .ci-inner:after {
        width: 244px;
        height: 200px;
    }

    .calc-image[data-type="two"] .ci-inner:after, .calc-image[data-type="three"] .ci-inner:after {
        height: 140px;
    }

    .calc-image[data-type="balcony_door_sash"] .ci-inner .ci-image-input.global-width, .calc-image[data-type="balcony_door_sash_sash"] .ci-inner .ci-image-input.global-width {
        top: 218px;
    }

    .calc-image[data-type="two"] .ci-inner:after, .calc-image[data-type="balcony_door_sash"] .ci-inner:after {
        width: 158px;
    }

    .calc-image .state-image {
        width: 80px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .calc-image[data-type="four"] .state-image {
        width: 70px;
    }

    .calc-image[data-type="four"] .ci-inner:after {
        width: 290px;
    }

    .calc-image[data-type="four"] .ci-inner:after,
    .calc-image[data-type="four"] .ci-sash, .calc-image[data-type="four"] .ci-sash .state-image {
        height: 130px;
    }

    .calc-image .ci-inner {
        min-height: 230px;
    }
}