/* calculator */
.of-hidden {
    overflow: hidden;
}
.mg-grey-wrap,
.mg-calculator {
    background: #f8f8f8;
}
.mg-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 0 100px;
    font-family: ProximaNovaLight, Helvetica, arial, sans-serif;
}
.mg-calculator.mg-calc-flat .text-p-light {
    margin-bottom: 20px;
}
.mg-calculator.mg-calc-flat {
    margin-top: 40px;
    padding-top: 45px;
}
.mg-calculator .mg-title {
    color: #000;
    font-size: 45px;
    line-height: 118%;
    margin-bottom: 40px;
}
.mg-calculator .mg-block-item-text {
    font-size: 22px;
    line-height: 26px;
    color: #000000;
}

.mg-calc-wrap {
    display: flex;
    column-gap: 3%;
}

.mg-calc-l {
    width: 31%;
}
.mg-calc-r {
    width: 66%;
}

.mg-filter.filter-form {
    margin-top: 15px;
    padding: 0;
    background: none;
    border: none;
}
.mg-filter.filter-form .irs--flat {
    margin-top: -27px;
}
.mg-filter.filter-form .irs--flat .irs-line {
    background: none;
}
.mg-filter-field {
    margin-bottom: 15px;
}
.mg-filter-field .field-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #727272;
}
.mg-field-wrap {
    position: relative;
    width: 100%;
}
.mg-field-wrap .fp-field-wrap {
    display: flex;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
}
.mg-field-wrap .fp-field-wrap.fpf-warning {
    border: 1px solid red;
}
.mg-field-wrap #first_pay {
    width: 76%;
}
.mg-field-wrap #fp_percent {
    width: 100%;
    text-align: right;
    padding: 16px 32px 16px 0;
}
.mg-field-wrap-percent {
    display: inline-block;
    position: relative;
    width: 24%;
}
.mg-field-wrap-percent:after {
    content: '%';
    position: absolute;
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #000;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
}
.mg-filter-field select,
.mg-filter-field .field-select {
    position: relative;
    display: inline-block;
    vertical-align: top;
    padding: 16px 22px;
    width: 100%;
    font-weight: 400;
    font-size: 22px;
    line-height: 160%;
    background: #fff;
    border: 0;
    border-radius: 8px;
    -webkit-appearance: none;
    outline: 0;
}
.mg-filter-field .field-select:before {
    content: '';
    position: absolute;
    height: 9px;
    width: 15px;
    background: url("/svg/landing/arrow_green.svg") no-repeat center center;
    -webkit-appearance: none;
    outline: none;
    right: 15px;
    top: 50%;
    margin-top: -5px;
    transition: all ease .2s;
}

.mg-filter-field .field-select.is-active:before {
    transform: rotate(180deg);
    transition: all ease .2s;
}
.mg-filter-field .select2-container--default {
    font-size: 22px;
}
.field-select-options {
    display: none;
}
.mg-filter-field .select2-container--default .select2-selection--single,
.mg-calculator .select2-results__option {
    border: none;
    height: auto;
    padding: 16px 24px !important;
}
.mg-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered,
.mg-calculator .select2-results__option {
    font-family: ProximaNovaLight, Helvetica, arial, sans-serif;
    color: #000;
    margin: 0;
    font-weight: 400;
    font-size: 22px;
    line-height: 160%;
}
.mg-filter-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #00cd2e transparent transparent transparent;
}
.mg-filter-field  .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #00cd2e transparent;
}
#mgSelectContainer .select2-dropdown {
    border: none;
    margin-top: 5px;
    box-shadow: 0 12px 32px -13px rgba(0, 0, 0, 0.25);
}
#mgSelectContainer #select2-mg-program-select-results {
    height: 235px;
    max-height: 235px;
}
.select2-results__option {
    position: relative;
}
.mg-select-options .mg-select-option input[type="checkbox"] {
    display: none;
}
.select2-results__option .select-dot,
.mg-select-options .mg-select-option .select-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #BFBFBF;
    border-radius: 50%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}
#mgSelectContainer .select2-container--default .select2-results__option[aria-selected=true] {
    background: none !important;
    color: #444 !important;
}
#mgSelectContainer .select2-container--default .select2-results__option[aria-selected=true] .select-dot,
.mg-select-options .mg-select-option input:checked + label .select-dot,
.mg-select-options .mg-select-option.active .select-dot {
    border: 1px solid #00cd2e;
}
#mgSelectContainer .select2-container--default .select2-results__option[aria-selected=true] .select-dot div,
.mg-select-options .mg-select-option input:checked + label .select-dot:before,
.mg-select-options .mg-select-option.active .select-dot:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #00cd2e;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}
.mCSB_outside + .mCSB_scrollTools {
    right: -10px !important;
    width: 6px;
}
.mCSB_scrollTools .mCSB_draggerRail {
    width: 4px;
    background: #fff !important;
    border-radius: 0;
}
.mg-select-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}
.mg-result-sort {
    position: relative;
    font-size: 16px;
    line-height: 160%;
    background: #fff;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
}
.mg-result-sort span {
    margin-left: 25px;
}
.mg-result-sort:before {
    content: "";
    position: absolute;
    width: 17px;
    height: 13px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("/img/mortgage/icons/sort-arrows.svg");
}
.mg-select-options {
    display: none;
    position: absolute;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 12px 32px -13px rgba(0, 0, 0, 0.25);
    margin-top: 5px;
    padding: 10px 0 10px 20px;
    font-size: 22px;
    line-height: 1;
    border: 0;
    border-radius: 8px;
    max-height: 60vh;
    overflow: scroll;
}
.mg-select-options.active {
    display: block;
}
.mg-select-options .mg-select-option {
    position: relative;
    padding: 15px 50px 15px 0;
    cursor: pointer;
}

.mg-program-field .mg-select-options {
    top: 0;
    max-height: 235px;
    overflow: scroll;
    margin-top: 0;
    border-radius: 12px;
}

.mg-house-field .mg-select-option[data-kvartal] {
    padding-left: 30px;
}

.mg-multiselect-options .mg-select-option {
    height: 52px;
    padding: 0;
}
.mg-multiselect-options .mg-select-option label {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 15px 50px 15px 0;
    cursor: pointer;
    align-items: center;
}

.mg-filter-field input[type=text] {
    background-color: #fff;
    padding: 16px 18px;
    border: 0;
    box-sizing: border-box;
    width: 100%;
    outline: 0;
    font-weight: 400;
    font-size: 22px;
    line-height: 160%;
    border-radius: 8px 8px 0 0;
}

.mg-filter-button {
    width: 100%;
    padding: 21px 48px;
    border: none;
}

.mg-filter-results {
    position: relative;
    height: 612px;
    overflow-y: scroll;
}
.mg-filter-results .mg-block-item-text {
    text-align: justify;
    padding: 10%;
}
.mg-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px 20px;
    z-index: 0;
    border-radius: 12px;
    margin-bottom: 15px;
    row-gap: 16px;
}
.mg-item:last-child {
    margin-bottom: 0;
}
.mg-item .to-right {
    margin-left: auto;
}
.mg-item .mg-item-row.part-2-grey .mg-item-b33 {
    flex-wrap: wrap;
    color: #222;
    background: #f8f8f8;
    padding: 2px 10px;
    border-radius: 0;
}
.mg-item .mg-item-row.part-2-grey .mg-item-b33:first-child {
    border-radius: 4px 0 0 4px;
}
.mg-item .mg-item-row.part-2-grey .mg-item-b33:last-child {
    border-radius: 0 4px 4px 0;
}
.mg-item .mg-item-row.part-2-grey .mg-item-b33 span {
    white-space: nowrap;
}
.mg-item .mg-item-row.part-3 {
    justify-content: flex-start;
    column-gap: 30px;
}
.mg-item .mg-item-row {
    display: flex;
    justify-content: space-between;
    column-gap: 2px;
    background: #fff;
}
.mg-item .mg-item-row__border {
    padding-bottom: 14px;
    border-bottom: solid 1px #dadada;
    border-radius: 0;
}
.mg-item .mg-item-b33 {
    display: flex;
    align-items: center;
    width: calc(33.333% - 1px);
    gap: 4px;
}
.mg-item .mg-item-row__border .mg-item-b33:last-child {
    justify-content: flex-end;
}
.mg-item-b {
    display: flex;
    row-gap: 2px;
    flex-direction: column;
    cursor: pointer;
}
.mg-item--text {
    display: flex;
    font-size: 22px;
    line-height: 26px;
    color: #000;
    flex: 0 0 20%;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;}
.mg-item--desc,
.mg-block-item-info-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #A1A1A1;
}
.mg-item--bank {
    flex: 0 0 20%;
    text-align: center;
}
.mg-item--bank img {
    width: 48px;
    margin-bottom: 8px;
}
.mb-banks-item--text {
    font-size: 16px;
    margin-left: 12px;
}
.mg-item .mg-block-item-info-text {
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    white-space: nowrap;
}
.mg-item .flat-card__features__q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    border: 1px solid #00cd2e;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    min-width: 18px;
    color: #00cd2e;
    opacity: 1;
    cursor: pointer;
}
.mg-item--mpay .mg-block-item-info-text {
    font-weight: 700;
}
.offer-button .link-button {
    padding: 14px 20px;
}
.mg-item-row.part-2 .offer-button a {
    width: 100%;
}
.mg-item-add-info {
    width: max-content;
    font-size: 16px;
    line-height: 22px;
    color: #00CD2E;
    border-bottom: 1px dashed #00CD2E;
    cursor: pointer;
    border-radius: 0;
}
/*.input-postfix {
    position: absolute;
    top: 16px;
    left: 100px;
    !*transition: all .05s ease-in-out;*!
    font-weight: 400;
    font-size: 22px;
    line-height: 160%;
}*/

.fd-features-item-spec {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #F8F8F8;
    border-radius: 8px;
    font-size: 16px;
    line-height: 100%;
    color: #7A827C;
    white-space: nowrap;
    gap: 4px;
}

.fd-features-item-spec:before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/img/icons/round/spec.svg');
}
.mCustomScrollBox {
    border-radius: 12px;
}

.mg-checkbox-wrap {
    display: flex;
    gap: 6px;
    margin-bottom: 25px;
}
.mg-checkbox-wrap input {
    margin: 0;
}
.mg-checkbox-wrap label {
    line-height: 1;
    color: #222;
}
/* END calculator */

.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-box {
    border-radius: 8px;
}

.tooltip_templates {
    display: none;
    max-width: 300px;
}
.tooltip_templates_body {
    max-width: 300px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* calculator block */
    .mg-calculator {
        padding-left: 15px;
        padding-right: 15px;
    }
    .mg-filter-field {
        margin-bottom: 10px;
        flex: 0 0 49%;
    }
    .mg-filter-results {
        max-height: 612px;
        height: auto;
    }
    /* END calculator block */
}
@media (max-width: 1199px) {
    .mg-filter.filter-form {
        z-index: 1;
        top: auto;
        left: auto;
        right: auto;
        overflow-y: inherit;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        column-gap: 2%;
        justify-content: space-between;
        margin-bottom: 50px;
    }
    .mg-calc-wrap {
        flex-wrap: wrap;
    }
    .mg-calc-wrap > div {
        width: 100%;
    }
    .mg-filter-button-wrap {
        width: 100%;
        margin-top: 12px;
    }
    .mg-checkbox-wrap {
        margin-bottom: 0;
    }
}
@media (max-width: 768px) {
    /* calculator block */
    .mg-calculator {
        padding-left: 15px;
        padding-right: 15px;
    }
    .mg-filter-field {
        margin-bottom: 10px;
        width: 100%;
    }
    .mg-result-sort {
        width: 100%;
        text-align: center;
    }
    .mg-calc-r {
        position: relative;
    }
    .mg-item {
        padding-top: 40px;
    }
    .mg-item--text {
        flex: 0 0 100%;
        margin-bottom: 13px;
        gap: 10px;
    }
    .mg-item--desc {
        margin-bottom: 18px;
    }
    .mg-item-row.part-2,
    .mg-item-row.part-3 {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .mg-item--mpay {
        flex: 0 0 100%;
    }
    .mg-item--bank.to-right-absolute {
        position: absolute;
        right: 0;
        margin: 20px 20px 0 0;
    }
    .mg-filter-results {
        height: 80vh;
    }
    .mg-calc-wrap {
        position: relative;
    }
    .mg-calc-wrap:after {
        content: '';
        position: absolute;
        bottom: -8px;
        width: 100%;
        height: 150px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
        border-radius: 0 0 12px 12px;
    }

    /* END calculator block */
}

@media (max-width: 500px) {
    .mg-item .mg-item-row__border {
        justify-content: space-between;
        column-gap: 4px;
        row-gap: 10px;
        flex-wrap: wrap;
    }
    .mg-item .mg-item-b33 {
        width: auto;
    }
    .mg-item .mg-item-b33 .mb-banks-item--text {
        display: none;
    }
    .mg-item .mg-item-b33.mg-item-program {
        display: inline-flex;
        width: calc(100% - 60px);
        max-height: 45px;
    }
    .mg-item .mg-item-b33.mg-item-spec {
        margin-left: auto;
    }
    .mg-item .mg-item-b.offer-button {
        width: 100%;
    }
}

::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #00CD2E;
}
