.modal {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    background: rgba(208, 166, 111, 0.4);
    cursor: pointer;
}

.modal--show {
    display: flex;
    animation: fadein 0.3s linear forwards;
    /*opacity: 0;
    animation: fadein 0.5s forwards;*/
}


.modal__close, .main-menu__close {
    align-self: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    outline: 0!important;
    background: url(/image/catalog/icon/i-close.svg) 50% no-repeat;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal__header {
    padding: 40px 32px 24px;
}


.modal__title {     
    padding-right: 24px;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    color: #D0A66F;
}
.modal__body {      
    flex: 1 1 auto;
    padding: 16px 32px 32px;
    overflow: auto;
}
.modal__body--p0 {
    padding: 0;
}
.modal__content {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    position: relative; 
    cursor: auto;
}
.modal__footer {
    padding: 24px 15px;
}

















.modal-search__result {
    height: 100%;
}
.modal-search__result .search-block__autocomplete {
    display: block;
    height: 100%;
}
.modal-search__result .search-block__autocomplete-wrap {
    height: 100%;
}
.modal-search__result .search-block__autocomplete-list {
    height: calc(100% - 181px);
    margin-bottom: 15px;
    overflow: auto;
    padding: 8px 15px;  
}

#js_modal-search .modal__body {    
    overflow: hidden;
}


















@media (min-width: 768px) {
    #js_modal-search {
        display: none;
    }    
}





@media (max-width: 767px) {

    .modal__content {
        width: 100%;
        height: 100%;   
        border-radius: 0px;
    }

    .modal__header {
        padding: 24px 15px 16px;
    }

    .modal__body {
        padding: 8px 15px;
    }

    .modal__body--p0 {
        padding: 0;
    }

    .modal__close {
        top: 27px;
    }

    .modal__body .btn {
        width: 100%;
    }

    /*.modal__search-input-field {
        background-image: url(/image/catalog/icon/search.svg);
        background-size: 17px;
        padding-left: 44px;
        background-position: 16px 50%;
        background-repeat: no-repeat;
    }*/

}

