.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    position: relative;
    min-height: 100vh;
    margin: 0 auto;
    /*width: auto;*/
    /*margin: 0.5rem;*/
    pointer-events: none;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.modal-dialog-scrollable {
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

.modal-content {
    position: relative;
    width: 100%;
    /*min-height: 100vh;*/
    pointer-events: auto;
    /*background-color: #fff;*/
    background-clip: padding-box;
    /*border: 1px solid rgba(0, 0, 0, 0.2);*/
    /*border-radius: 0.3rem;*/
    outline: 0;
}

/*.modal-content.is-active {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.modal-content:not(.is-active) {
    display: none;
}*/

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}

.icon-modal-close {
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    z-index: 2;
    font-size: 0;
    line-height: 1;
    opacity: 1;
    border-bottom-width: 0;
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.modal-close:not(:disabled):not(.disabled):hover, .modal-close:not(:disabled):not(.disabled):focus {
    opacity: .75;
    outline: none;
}

button.modal-close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: auto;
}

a.modal-close.disabled {
    pointer-events: none;
}

/*.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}*/

.modal-body {
    position: relative;
    /*-ms-flex: 1 1 auto;*/
    /*flex: 1 1 auto;*/
    /*padding: 1rem;*/
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.modal-footer > :not(:first-child) {
    margin-left: .25rem;
}

.modal-footer > :not(:last-child) {
    margin-right: .25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 576px) {
    /*.modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }*/
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
    }
    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}


/* *** */

.modal-dialog {
    padding: 50px 0 50px;
}

.modal:not([class*="_size-big"]) .modal-dialog {
    max-width: 600px;
}

.modal_size-big .modal-dialog {
    max-width: 760px;
}

.modal-content {
    background-color: #ffffff;
    color: #3D3D3D;
}

.modal-title {
    text-align: center;
    margin: 0 0 40px;
}

.modal-title > * {
    margin-bottom: 0;
}

.modal-desc {
    text-align: center;
}

.modal-step:not(.is-active) {
    display: none;
}

.modal-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.modal-form .form-group {
    padding: 0 10px;
}

.modal-finish {
    text-align: center;
    padding: 50px 0 50px;
}

.modal-finish .cnt-finish {
    margin: 40px 0 0;
}


.modal-calc {
    width: 100%;
    max-width: 392px;
    margin: 0 auto;
}

.modal-calc__line {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal-calc__column {
    width: 50%;
}

.modal-calc__title {
    display: block;
}

.modal-calc__result {
    border-top: 1px solid #DCDCDC;
    padding: 30px 0 0;
    margin: 30px 10px 0;
}

.modal-calc__result-numbers {
    text-align: center;
}


.modal-basket__form .modal-form {
    margin-top: 30px;
}

.modal-basket {
    margin: 0 0 50px;
}

.modal-basket__sum {
    border: solid #DCDCDC;
    border-width: 1px 0 1px;
    text-align: right;
    font-style: italic;
    padding: 10px 0;
}

.modal-basket__head {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #DCDCDC;
}

.modal-basket__head .th {
    font-size: 17px;
    font-weight: 700;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-basket__head .th:nth-child(1) {
    width: 320px;
}

.modal-basket__head .th:nth-child(2) {
    width: 100px;
}

.modal-basket__head .th:nth-child(3) {
    width: 130px;
}

.modal-basket__head .th:nth-child(4) {
    width: calc(100% - 550px);
}

.modal-basket__tr {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.modal-basket__tr {
    margin-bottom: 20px;
}

.modal-basket__title {
    border-bottom: 1px solid currentColor;
}

.modal-basket__desc {
    display: block;
    color: #78828E;
    margin-top: 3px;
}

.modal-basket__delete {
    display: inline-block;
    vertical-align: top;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
}

.modal-basket__count .count__control {
    width: 45px;
}

.modal-basket__tr .td:nth-child(5) {
    font-size: 0;
    line-height: 1;
}


@media only screen and (min-width: 768px) {
    .modal-basket__desc {
        font-size: 14px;
    }

    .modal-basket__tr .td:nth-child(1) {
        width: 320px;
    }

    .modal-basket__tr .td:nth-child(2) {
        width: 100px;
    }

    .modal-basket__tr .td:nth-child(3) {
        width: 130px;
    }

    .modal-basket__tr .td:nth-child(4) {
        width: 100px;
    }

    .modal-basket__tr {
        font-size: 17px;
    }

    .modal-basket__head {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .modal-basket__sum {
        font-size: 17px;
    }

    .modal-finish .cnt-finish {
        max-width: 400px;
        font-size: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    .modal-form {
        margin-top: 40px;
    }

    .modal-content {
        border-radius: 5px;
        padding: 50px 40px 50px;
    }

    .modal-backdrop {
        background-color: #4E4E4E;
    }

    .modal-backdrop.fade {
        opacity: 0;
    }

    .modal-backdrop.show {
        opacity: 0.5;
    }

    .icon-modal-close {
        background-image: url("../../../img/icons/modal-close-white.svg");
    }

    .modal-close {
        right: 0;
        top: -45px;
        width: 35px;
        height: 35px;
    }

    .modal-form .form-group:not(.full) {
        width: 50%;
    }

    .modal-form .form-group.full {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .modal-basket__tr .td:nth-child(2) {
        min-width: 80px;
    }

    .modal-basket__title {
        font-size: 14px;
    }

    .modal-basket__desc {
        font-size: 12px;
    }

    .modal-basket__tr .td:nth-child(5) {
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 1;
    }

    .modal-basket__tr {
        position: relative;
        background-color: #F9F9F9;
        margin-left: -15px;
        margin-right: -15px;
        padding: 18px 15px;
    }

    .modal-basket__tr .td:nth-child(1) {
        width: 100%;
        border-bottom: 1px solid #DCDCDC;
        padding-bottom: 20px;
        margin-bottom: 15px;
    }

    .modal-basket__tr {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .modal-basket__head {
        display: none;
    }

    .modal-basket__form h5 {
        font-size: 18px;
        text-align: center;
    }

    .modal-calc__result-numbers {
        font-size: 14px;
    }

    .modal-calc__title {
        font-size: 14px;
    }

    .modal-finish .cnt-finish {
        max-width: 292px;
        font-size: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    .modal-form {
        margin-top: 30px;
    }

    .modal-title {
        margin-bottom: 30px;
    }

    .modal-desc {
        font-size: 14px;
    }

    .modal-form .form-group {
        width: 100%;
    }

    .icon-modal-close {
        background-image: url("../../../img/icons/modal-close-black.svg");
    }

    .modal-close {
        right: 15px;
        top: 15px;
        width: 28px;
        height: 28px;
    }

    .modal-backdrop {
        background-color: #ffffff;
    }

    .modal-backdrop.fade {
        opacity: 0;
    }

    .modal-backdrop.show {
        opacity: 1;
    }

    .modal-content {
        min-height: 100vh;
        padding: 60px 15px 60px;
    }

    .modal-dialog {
        padding-top: 0;
        padding-bottom: 0;
    }
}