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

.modal {
    display: none;
    background: rgba(34, 34, 34, 0.2);
    z-index: 999;
    padding: 30px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal .modal-dialog {
    background: #FFFFFF;
    color: #222222;
    box-shadow: 0px 10px 30px rgba(121, 122, 121, 0.15);
    border-radius: 10px;
    z-index: 1000;
    /*padding: 10px;*/
    max-width: calc(90%);
    margin: auto;
}

.modal .modal-dialog__header {
    padding: 10px 10px 20px;
    border-bottom: 2px solid #DBDEE0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal .modal-dialog__header-title {
    font-size: 18px;
    line-height: 22px;
    display: flex;
    align-items: center;
}

.modal .modal-dialog__close {
    min-width: 16px;
    width: 16px;
    height: 16px;
    background-image: url("image/red-cross.svg");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.modal .modal-dialog__content {
    padding: 10px;
}

.modal-help {
    width: 16px;
    height: 16px;
    background-image: url("image/help.svg");
    background-size: contain;
    background-position: center;
    display: inline-block;
    position: relative;
    margin: 0 10px;
}

.modal-help-content {
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    color: #222222;
    background: #EFF4F7;
    box-shadow: 0px 3px 12px rgba(121, 122, 121, 0.1);
    padding: 5px 23px 7px;
    position: absolute;
    top: calc(100% + 15px);
    transform: translateX(-50%);
    left: 5px;
    min-width: 160px;
    max-width: 250px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.modal-help:hover .modal-help-content {
    opacity: 1;
}

.modal-help-content:before {
    content: "";
    width: 16px;
    height: 12px;
    position: absolute;
    bottom: calc(100% - 3px);
    left: calc(50% - 6px);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0L13.9282 9H0.0717969L7 0Z' fill='%23EFF4F7'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

@media (max-width: 600px) {
    .modal .modal-dialog__header-title {
        font-size: 16px;
        line-height: 19px;
    }

    .modal .modal-dialog {
        /*max-width: calc(80%);*/
    }

    .g-recaptcha iframe{
        max-width: 270px !important;
    }
}

.franchise-modal {
    width: 404px !important;
    max-width: calc(100% - 54px) !important;
}

.modal#cart_result_modal {
    z-index: 9999;
}

@media only screen and (max-width: 767px) {
    .modal.favorite-modal .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px 15px !important;
    }

    .modal.favorite-modal .webcube-favorites__products-list {
        max-height: 100%;
    }
}

.header .mobile__search {
    display: none;
}

@media only screen and (max-width: 767px) {
    .header__button_favorites {
        /*display: none !important;*/
    }
    .header .button.header__button.header__button_search {
        display: none;
    }
    .header .mobile__search {
        display: block;
        margin-bottom: 16px;
    }
    .header .mobile__search .search {
        position: relative;
        display: block;
        padding: 3px 0;
    }
    .header .mobile__search .search__input {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        padding-right: 55px;
    }
    .header .mobile__search .search .search_button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 2px;
    }
    .header .mobile__search .search .search_button-wrap {
        justify-content: flex-end;
    }
    .burger-menu {
        padding-top: 143px !important;
    }
}