:root {
  --animate-duration: 500ms;
}

.prayer__inner .payment-method, #popup_new .payment-method, #popup_widget .payment-method {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 10px;
}

.prayer__inner .payment-method {
    max-width: 298px;
}

.prayer__inner .payment-method .payment-method-popup_btn, #popup_new .payment-method .payment-method-popup_btn, #popup_widget .payment-method-popup_btn {
    background: #F8F8F8;
    border-radius: 4px;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    color: #1B1A13;
    border: 1px solid #F8F8F8;
    padding: 10px;
    position: relative;
    cursor: pointer;
    width: 144px;
    filter: grayscale(0%);
}

#popup_new .payment-method .payment-method-popup_btn {
    height: 60px;
}

.prayer__inner .payment-method-popup_btn img, #popup_new .payment-method .payment-method-popup_btn img, #popup_widget .payment-method .payment-method-popup_btn img {
    margin-bottom: 4px;
}

.prayer__inner .payment-method-popup_btn:not(:first-of-type), #popup_new .payment-method .payment-method-popup_btn:not(:first-of-type), #popup_widget .payment-method .payment-method-popup_btn:not(:first-of-type) {
    margin-left: 10px;
}

.prayer__inner .payment-method-popup_btn:first-of-type img, #popup_new .payment-method .payment-method-popup_btn:first-of-type img, #popup_widget .payment-method .payment-method-popup_btn:first-of-type img {
    margin-bottom: 10px;
}

.prayer__inner .payment-method .payment-method-popup_btn.active, #popup_new .payment-method .payment-method-popup_btn.active, #popup_widget .payment-method .payment-method-popup_btn.active {
    background: #FFFFFF;
    border: 1px solid #9C3625;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.prayer__inner .payment-method .payment-method-popup_btn.disabled, #popup_new .payment-method .payment-method-popup_btn.disabled, #popup_widget .payment-method .payment-method-popup_btn.disabled {
    filter: grayscale(100%);
    cursor: default;
    color: #8D8D89;
}

.prayer__inner .payment-method-popup_btn.disabled img, #popup_new .payment-method .payment-method-popup_btn.disabled img, #popup_widget .payment-method .payment-method-popup_btn.disabled img {
    opacity: 0.7;
}

.prayer__inner .payment-method-popup_btn.active:after, #popup_new .payment-method .payment-method-popup_btn.active:after, #popup_widget .payment-method .payment-method-popup_btn.active:after {
    content: '';
    background: url(//xn----8sbedalbxckj1anejwmjiu3qxa.xn--p1ai/wp-content/themes/church/assets/images/popup-checked.svg) no-repeat center center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
}

.donate-widget__icon {
    width: 70px;
    height: 70px;
    padding: 0;
    background: transparent;
    border: 0;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 500;
    transition: opacity var(--speed-medium);
}

.donate-widget__icon.hide {
    opacity: 0;
}

.donate-widget__icon__inner {
    width: 60px;
    height: 60px;
    border-radius: 9px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.donate-widget__icon.donate-widget__icon_type1:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid #dba537;
    border-radius: 9px;
    animation: donate-widget-icon-type1 1s linear 0s infinite;
}

.donate-widget__icon.donate-widget__icon_type1 .donate-widget__icon__inner {
    display: flex;
    align-items: flex-end;
    background: #eeb33c url(//xn----8sbedalbxckj1anejwmjiu3qxa.xn--p1ai/wp-content/themes/church/assets/images/bg/donate-widget_icon1.png) center no-repeat;
    -webkit-background-size: 100%;
    background-size: 100%;
}

.donate-widget__icon.donate-widget__icon_type1 .donate-widget__icon__btn {
    flex: 0 0 100%;
    max-width: 100%;
    height: 23px;
    background: #9D3C3C;
    border-radius: 9px;
    text-transform: uppercase;
    text-align: center;
    line-height: 23px;
    font-size: 10px;
    color: #fff;
}

.donate-widget__icon.donate-widget__icon_type2:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid #dba537;
    border-radius: 9px;
    animation: donate-widget-icon-type1 1s linear 0s infinite;
}

.donate-widget__icon.donate-widget__icon_type2:after {
    content: '';
    display: block;
    width: 34px;
    height: 25px;
    background: #dba537;
    -webkit-mask: url(../svg/note_cross.svg) center bottom no-repeat;
    mask: url(../svg/note_cross.svg) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%);
}

.donate-widget__icon.donate-widget__icon_type2 .donate-widget__icon__inner {
    display: flex;
    align-items: flex-end;
    background: #f0fcff url(../img/donate__nicolay.png) center no-repeat;
    -webkit-background-size: 100%;
    background-size: 75%;
    background-position-y: top;
}

.donate-widget__icon.donate-widget__icon_type2 .donate-widget__icon__btn {
    flex: 0 0 100%;
    max-width: 100%;
    height: 23px;
    background: #9D3C3C;
    border-radius: 9px;
    text-transform: uppercase;
    text-align: center;
    line-height: 23px;
    font-size: 10px;
    color: #fff;
}

.widget-popup__close svg {
    width: 36px;
    height: 36px;
}

.widget-popup__close svg path {
    fill: #9D3C3C;
}

.widget-popup {
    width: 300px;
    height: 510px;
    padding: 0;
    background-color: transparent;
    overflow: visible;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 600;
    transform: translate(0, calc(100% + 50px));
    transition: transform var(--speed-medium);
}

.widget-popup:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: url(../svg/payment-popup_bg3.svg) center bottom no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    opacity: .18;
    filter: blur(15px);
    position: absolute;
    top: 0;
    left: 0;
}

.widget-popup.active {
    transform: translate(0);
}

.widget-popup .widget-popup__close {
    border: 0;
    position: absolute;
    right: 13px;
    top: -16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    padding: 0;
    background: #fff;
    opacity: 1;
    cursor: pointer;
}

.widget-popup__inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 20px 18px;
    background: #f0fcff url(../img/widget-popup_bg.jpg) center top no-repeat;
    -webkit-mask: url(../svg/payment-popup_bg3.svg) center bottom no-repeat;
    mask: url(../svg/payment-popup_bg3.svg) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    position: relative;
    z-index: 50;
}

.widget-popup__head {
    padding: 60px 0 0;
    margin: 0 0 6px;
    text-align: center;
}

.widget-popup__title {
    line-height: 70%;
    font-size: 50px;
    font-weight: 400;
    font-family: 'Fita_Vjaz';
    color: #9D3C3C;
    padding-top: 17px;
}

.widget-popup__subtitle {
    margin: 3px 0 0;
    font-size: 14px;
}

.widget-popup__summ-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 10px;
}

.widget-popup__summ-buttons button {
    text-align: center;
    flex: 0 0 calc(33.33% - 24px/3);
    max-width: calc(33.33% - 24px/3);
    height: 33px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,.15);
    text-align: center;
    line-height: 28px;
    font-size: 18px;
    color: var(--color-grey);
    position: relative;
}

.widget-popup__summ-buttons button.active {
    border-color: #eeb33c;
}

.widget-popup__summ-buttons button + button {
    margin-left: 12px;
}

.widget-popup__summ-buttons button span {
    display: inline-block;
    padding: 0 24px 0 0;
    position: relative;
}

.widget-popup__summ-buttons button span:before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: #eeb33c;
    -webkit-mask: url(../svg/form.svg#coin) center bottom no-repeat;
    mask: url(../svg/form.svg#coin) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
}

.widget-popup__label {
    display: block;
    width: 222px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 30px 0 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,.15);
    margin: 0 auto;
    position: relative;
}

.widget-popup__label:before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: #ccc;
    -webkit-mask: url(../svg/form.svg#coin) center bottom no-repeat;
    mask: url(../svg/form.svg#coin) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
}

.widget-popup__label.widget-popup__label_name:before {
    -webkit-mask: url(../svg/form.svg#user) center bottom no-repeat;
    mask: url(../svg/form.svg#user) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.widget-popup__label.widget-popup__label_email:before {
    -webkit-mask: url(../svg/form.svg#email) center bottom no-repeat;
    mask: url(../svg/form.svg#email) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.widget-popup__label input {
    width: 100%;
    height: 94%;
    border: 0;
    font-size: 14px;
    font-style: italic;
}

.widget-popup__label.error {
    box-shadow: 0 0 6px rgba(191, 20, 20, 0.94);
}

.widget-popup__label.error:before {
    background: #9D3C3C;
}

.widget-popup__label + .widget-popup__label {
    margin-top: 10px;
}

.widget-popup__check {
    display: flex;
    align-items: center;
    width: 222px;
    padding: 7px 0;
    margin: 0 auto;
    font-size: 14px;
    cursor: pointer;
}

.widget-popup__check .jq-checkbox {
    width: 21px;
    height: 21px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eeb33c;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0,0,0,.15);
    margin: 0 15px 0 0;
    position: relative;
}
.widget-popup__check input {
    opacity: 0;
    position: absolute;
}
.widget-popup__check .jq-checkbox .jq-checkbox__div {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    background: #eeb33c;
    -webkit-mask: url(../svg/form.svg#ok) center bottom no-repeat;
    mask: url(../svg/form.svg#ok) center bottom no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--speed-fast);
}

.widget-popup__check input:checked ~ .jq-checkbox {
    animation: unset;
}
.widget-popup__check input:checked ~ .jq-checkbox .jq-checkbox__div {
    opacity: 1;
}

.widget-popup__check .jq-checkbox:not(.checked) {
    animation: widget_checkbox .8s ease-in-out 0s infinite;
}

.widget-popup__submit {
    display: block;
    width: 212px;
    height: 34px;
    background: #9D3C3C;
    border: 0;
    border-radius: 26px;
    margin: 10px auto 0;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 0 rgba(127,32,17,.25);
    cursor: pointer;
}

.widget-popup__submit:hover {
    opacity: .8;
}

.widget-popup__bottom {
    margin: 7px 0 0;
    text-align: center;
    line-height: 1.1;
    font-size: 10px;
    font-weight: 300;
    color: #929292;
}

.widget-popup__bottom a {
    text-decoration: underline;
    color: inherit;
}

.widget-popup__bottom a:hover {
    text-decoration: none;
}

.widget-popup__submit {
    display: block;
    width: 222px;
    height: 40px;
    background: #9D3C3C;
    border: 0;
    border-radius: 9px;
    margin: 10px auto 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 0 rgba(127,32,17,.25);
}

.donate__toggle {
    transition: opacity 500ms;
    cursor: pointer;
}

.animate__slideInUp ~ .donate__toggle,
.animate__slideOutDown ~ .donate__toggle,
.widget-popup.active ~ .donate__toggle {
    opacity: 0;
}

@keyframes widget_checkbox {
    from {
        transform: scale(.8);
    }

    50% {
        transform: scale(1.2);
    }

    to {
        transform: scale(.8);
    }
}

@keyframes widget_checkbox_mob {
    from {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }

    to {
        opacity: 1;
    }
}

@keyframes donate-widget-icon-type1 {
    from {
        transform: scale(.8);
        border-width: 2px;
        opacity: 1;
    }

    to {
        transform: scale(1.6);
        border-width: 6px;
        opacity: 0;
    }
}

.shake{
	animation: 0.3s shakeInput;
}
@keyframes shakeInput{
	0%{
		transform: translateX(10px);
	}
	25%{
		transform: translateX(0);
	}
	50%{
		transform: translateX(10px);
	}
	75%{
		transform: translateX(0);
	}
}


@media (max-width: 700px) {
    .widget-popup {
        width: 100%;
        bottom: 0;
        right: 0;
        height: 100%;
        background-color: #f0fcff;
        background-image: url(../img/bg-donate-header.jpg);
        background-position-x: center;
        background-size: 100%;
        background-repeat: no-repeat;
        z-index: 999999;
    }
    .widget-popup__inner {
        background: unset;
        mask: unset;
        -webkit-mask: unset;
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }
    .widget-popup:before {
        display: none;
    }

    .widget-popup__head {
        padding: 23vh 0 0;
    }

    .widget-popup .widget-popup__close {
        top: 10px;
        filter: drop-shadow(2px 4px 6px #e1e1e1);
    }

    .widget-popup__label {
        width: 100%;
        height: 46px;
    }

    .widget-popup__summ-buttons {
        width: 100%;
    }

    .widget-popup__summ-buttons button {
        height: 46px;
        flex: unset;
        max-width: calc(100% / 3 - 8px);
        width: 100%;
    }

    .widget-popup__check {
        width: 100%;
        padding: 10px 0;
    }

    .prayer__inner .payment-method .payment-method-popup_btn, 
    #popup_new .payment-method .payment-method-popup_btn, 
    #popup_widget .payment-method-popup_btn {
        width: calc(100% / 2);
        height: 67px;
    }

    .prayer__inner .payment-method-popup_btn img, #popup_new .payment-method .payment-method-popup_btn img, #popup_widget .payment-method .payment-method-popup_btn img {
        margin-bottom: 4px;
        display: block;
    }

    .donate-widget__icon {
        bottom: 20px;
        right: 20px;
    }
}