@keyframes fadein {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
@keyframes fadeout {
  100% {opacity: 1;}
  0% {opacity: 0;}
}
.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.html) 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-callback {
    display: flex;
    flex-direction: column;
}

.modal-callback-form {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
}

.modal-callback-input {
    margin: 15px 0px !important;
}

.modal-callback-btn {
    margin-top: auto;
    margin-bottom: 15px;
    margin-left: 10px; 
    white-space: nowrap;
    padding: 0px 40px;
}











#js_modal-newsletter-success .modal__content {
    box-shadow: initial;
    border: 0;
    background: url(../../../../../image/catalog/kviz/kviz_background.html) bottom right no-repeat;
    background-color: #fff;
}
#js_modal-newsletter-success .modal__title {
    text-align: center;
    color: #D1B17C;
    padding-left: 24px;
}

#js_modal-newsletter-success .modal-promocode {
    max-width: 590px;
}
#js_modal-newsletter-success .modal-promocode .promocode_block {
    display: flex;
    align-items: start;
}





#js_modal-newsletter-success .modal-promocode .promocode_block .promocode_value {
    margin-right: 7px;
}
#js_modal-newsletter-success .modal-promocode .promocode_block .promocode_value input {
    box-sizing: border-box;
    padding: 17px 20px;
    width: 329px;
    height: 50px;
    border: 1px solid #EDEFF0;
    border-radius: 5px;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #777777;
}
#js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy {

}
#js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy a, #js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy a:focus, #js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy a:hover {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 22px;
    width: 186px;
    height: 50px;
    background: #FFFFFF;
    border: 1px solid #EFF1F2;
    border-radius: 4px;
}
#js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy a span {
    display: inline-block;
    margin-left: 10px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #D1B17C;
}

#js_modal-newsletter-success .modal-promocode .promocode_text {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    margin-top: 30px;
}

#js_modal-newsletter-success .modal-promocode .promocode_dop_text {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #C0C0C0;
    margin-top: 10px;
}

#js_modal-newsletter-success .modal-promocode .promocode_button {
    display: flex;
    width: 227px;
    height: 50px;
    font-size: 16px;
    margin: auto;
    margin-top: 30px;
}

#js_modal-auth .modal__title {
    text-align: center;
    padding-right: 0px;
}

#js_modal-auth .modal__body {
    min-width: 275px;
    padding-top: 0px;
    flex: none;
}
#js_modal-auth .auth__form-data .error {
    color: #f00;
    text-align: center;
    display: block;
    font-size: 12px;

}
#js_modal-auth .auth__form-data .success {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #000;

}
.auth__enter-is {    
    text-align: center;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 14px;
    text-decoration-line: underline;
    color: #D0A66F;
}

.auth__buttons-form {
    margin-bottom: 20px;
}
.auth__buttons-form-list {    
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth__buttons-form-list-item {    
    width: 50%;
}
.auth__button-form {    
    background-color: #f1f1f1;
    padding: 6px 5px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #000;
    border: none;
}
.auth__button-form-left {
    border-radius: 5px 0px 0px 5px;
}
.auth__button-form-right {
    border-radius: 0px 5px 5px 0px;
}
.auth__button-form.active {    
    background-color: #e2c084;
}

.auth__forms-wrap {}
.auth__form-item {
    display: none;
}
.auth__form-item.active {    
    display: block;
}
.auth__form-data {}
.auth__form-data input {}

.auth__ref-block {
    display: none;
}
.auth__ref-block.active {
    display: block;
}
.auth__forgotten-link {
    display: block;
    font-size: 12px;
    margin: auto;
    margin-bottom: 25px;
    color: #D0A66F;
    text-decoration: underline;
    background: 0;
    border: 0;
}
.auth__form-submit {
    width: 100%;
}


.auth__button-action {     
    text-decoration: underline;
    font-size: 12px;
    color: #D0A66F;
    text-transform: uppercase;
    width: auto;
    margin: auto;
    display: block;
    background: 0;
    border: 0;
}

.auth__form-data-password-control {
    position: absolute;
    top: 15px;
    right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../../../../../image/catalog/icon/view.html) 0 0 no-repeat;
    outline: none;
    border: none;

}
.auth__form-data-password-control.view {
    background: url(../../../../../image/catalog/icon/no-view.html) 0 0 no-repeat;    
}
.form-block--password {    
    position: relative;
}

#js_modal-auth .modal__footer {
    padding: 25px 60px;
    border-top: 1px solid #e0e0e0;
}

#js_modal-auth .g-recaptcha > div {
    /*margin: auto;*/
}



.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;
}



.modal-predzakaz-title {}
.modal-predzakaz {}
.modal-predzakaz-form {}
.modal-predzakaz-product {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}
.modal-predzakaz-input-group {}
.modal-predzakaz-input-block {}
.modal-predzakaz-input {}
.modal-predzakaz-btn {}

.modal-nostock .block_noshop {
    
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    color: #ff4545;
    max-width: 500px;
    padding: 50px 10px;
}

.one-click {
    padding-bottom: 10px;
    padding-top: 0px;

}
#js_modal-one-click .modal__title {
    text-align: center;
    padding-right: 0px;
}
.one-click__img {
    max-width: 350px;
    overflow: hidden;
    border-radius: 4px;
    margin: auto;
    
}
.one-click__img img {
    width: 100%;
    display: block;
    
}
.one-click__fields {
    margin-top: 10px;
}
.one-click__label {
    margin-bottom: 5px;
}
.one-click__field {}
.one-click__info {    
    font-size: 13px;
    color: #a4a4a4;
    margin-top: 10px;
}
.one-click__footer {    
    padding: 24px 32px;
}
.one-click__submit {
    width: 100%;
}
.one-click__success {    
    color: #d0a66f;
    font-weight: bold;
    padding: 55px 40px 35px 40px;
    text-align: center;
    font-size: 16px;
}


.modal-review-title {}
.modal-review {}
.modal-review-form {}
.modal-review-input-group {}
.modal-review-input {
    min-width: 300px;
}
.modal-review-btn {
    width: 100%;
}

.modal-faq-form button {
    width: 100%;
}
.modal-faq-form {    
    min-width: 300px;
}

.modal-faq-header {
    text-align: center;
}

#js_modal-cart .modal__title {
    text-align: center;
    padding-right: 0px;
}

.modal__cart {}
.modal__cart-product {
    font-size: 14px;
    line-height: 16px;
    color: #D0A66F;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}
.modal__cart-buttons {}
.modal__cart-button-checkout {
    width: 100%;
    margin-bottom: 10px;
}
.modal__cart-button-close {
    width: 100%;
}


@media (min-width: 768px) {
    #js_modal-search {
        display: none;
    }
    #js_modal-contacts {
        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%;
    }

    #js_modal-auth .modal__body {
        padding: 25px 15px;
    }

    /*.modal--show {
        display: flex;
        opacity: 1;
        animation: none;
    }*/





    .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;
    }

    .modal-contacts__phones {
        padding: 0 15px 16px;
        border-bottom: 1px solid #e1e1e5;
    }

    .modal-contacts__label {
        padding: 8px 0 2px;
        color: #999;
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
    }

    .modal-contacts__val {
        display: block;
        padding: 0 0 8px;
        color: #333;
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
    }
    .modal-contacts__messengers {
        padding: 16px 15px;
        border-bottom: 1px solid #e1e1e5;
    }

    .modal-contacts__messenger {
        display: flex;
        align-items: center;
        color: #999;
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
    }

    .modal-contacts__messenger-icon {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .modal-contacts__messenger-text {
        padding-top: 8px;
    }



    .modal-contacts__whatsapp-icon {
        background: url(../../../../../image/catalog/icon_soc/whatsapp.svg) no-repeat;
    }

    .modal-contacts__telegram-icon {
        background: url(../../../../../image/catalog/icon_soc/telegram.svg) no-repeat;
    }

    .modal-contacts__viber-icon {
        background: url(../../../../../image/catalog/icon_soc/viber.svg) no-repeat;
    }

    .modal-contacts__instagram-icon {
        background: url(../../../../../image/catalog/icon_soc/instagram.svg) no-repeat;
    }

    .js_modal__callback {
        width: 100%;
    }

    

    .modal-callback-title {
        padding-left: 40px;
        background: url(../../../../../image/catalog/icon/modal-callback-arrow.svg) 0 50% no-repeat;
    }

    .modal-callback-form {
        flex-direction: column;
    }

    .modal-callback-btn {
        margin-left: 0px;
    }
    
    .modal-callback-policy {
        padding-bottom: 16px;
        font-size: 13px;
        text-align: center;
    }  

    #js_modal-newsletter-success .modal__title {
        text-align: center;
        color: #D1B17C;
        padding-left: 24px;
        font-size: 21px;
    }


    #js_modal-newsletter-success .modal-promocode {
        max-width: 100%;
    }

    #js_modal-newsletter-success .modal-promocode .promocode_block {
        display: block;
    }

    #js_modal-newsletter-success .modal-promocode .promocode_block .promocode_value {
        margin-right: 0px;
        margin-bottom: 10px;
    }

    #js_modal-newsletter-success .modal-promocode .promocode_block .promocode_value input {
        width: 100%;
    }
    #js_modal-newsletter-success .modal-promocode .promocode_block .promocode_copy a {
        width: 100%;
    }
    #js_modal-newsletter-success .modal-promocode .promocode_button {
        width: 100%;
    }

    .one-click__footer {
        padding: 24px 15px;
    }


    

}


@media (max-width: 450px) {

    .one-click__img {
        max-width: initial;
    }



}