.container-hidden {
    opacity: 0;
}

.auth-modal__field .auth-modal__error.hide {
    display: none;
}

.permanent_hiding {
    display: none;
}

.auth-modal {
    display: inline-flex;
    flex-direction: column;

    position: relative;

    width: 100%;
    max-width: 440px;
    padding: 88px 40px 48px;

    color: #2B1B35;

    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.1);
}

.auth-modal__close {
    cursor: pointer;
    position: absolute;
    right: 44px;
    top: 44px;
}

.auth-page-modal .auth-modal__close {
    display: none;
}

.auth-modal-wrapper .auth-modal__close {
    display: block;
}

.auth-modal__header {
    margin-bottom: 24px;
}

.auth-modal__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    user-select: none;
}

.auth-modal__caption {
    margin-top: 8px;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    user-select: none;
}

.auth-modal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 6px;
    margin-bottom: 24px;

    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.auth-modal__nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: calc(50% - 3px);
    height: 36px;

    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 1.35px;
    text-transform: uppercase;

    color: rgba(43, 27, 53, 0.6);

    cursor: pointer;
    transition: 0.5s;
    border-radius: 6px;
    user-select: none;
}

.auth-modal__nav-item:hover {
    color: #fff;
    background: #0049bc;
}

.auth-modal__nav-item.is-active {
    transition: 0.5s;
    color: rgba(43, 27, 53, 1);
    background: rgba(228, 231, 235, 0.6);
}

.auth-modal__field {
    margin-bottom: 24px;
    text-align: center;
}

.auth-modal__link:not(:first-child) {
    margin-top: 18px;
}

.auth-modal__field.has-error .auth-modal__input {
    border-color: #EE005A;
}

.auth-modal__field.has-error .code-input__input {
    animation: shake 1s 1;
    color: #EE005A;
}

.auth-modal__field.is-loading .code-input__input, .check-code.is-loading .code-input__input{
    opacity: 0;
    transition: 0.4s;
}

.auth-modal__field.is-loading .code-input__shapes, .check-code.is-loading .code-input__shapes {
    opacity: 0;
    transition: 0.4s;
}

.code-input:hover .code-input__shape:first-child {
    background: #0049BC;
}

.code-input.focus .code-input__shape:first-child {
    background: #0049BC;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.auth-modal__field.is-loading .code-input::before, .check-code.is-loading .code-input::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    background: url('/img/loader.png') no-repeat;

    animation: rotate 1s infinite;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.auth-modal__error {
    margin-top: 6px;
    font-size: 10px;
    line-height: 12px;
    color: #EE005A;
    text-align: left;
    display: block;
}


.auth-modal__field:last-child {
    margin-bottom: 0;
}

.auth-modal__input {
    padding: 17px 12px 6px;

    width: 100%;
    height: 48px;

    font-size: 20px;
    line-height: 24px;
    color: #2B1B35;

    background: #FFFFFF;
    transition: 0.5s;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}
.auth-modal__input.no-border{
    border: none;
}

.auth-modal__input.no-border .code-input__shapes {
    bottom: 15px;
    width: 70%;
    left: 25px;
}

.confirm-change-data-input{
    max-width: 165px !important;
}

.auth-modal__input::placeholder {
    opacity: 0.3;
}

.auth-modal__input:focus {
    transition: 0.5s;
    border-color: #1248B2;
}

.auth-modal__footer {
    margin-top: 40px;
    text-align: center;
}

.auth-modal__footer.sm-mt {
    margin-top: 24px;
}

.auth-modal__footer .auth-modal__policy a {
    user-select: none;
}

.auth-modal__button, .auth-modal__button_delete_account {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 32px;

    width: 100%;
    height: 48px;

    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 1.35px;
    text-transform: uppercase;
    color: #FFFFFF;

    background: #0049BC;
    border-radius: 100px;
    transition: 0.5s;
    border: 1px solid transparent;
}

.auth-modal__button:hover, .auth-modal__button_delete_account:hover {
    cursor: pointer;
    transition: 0.5s;
    border-color: #e1e1e1;
    color: #0049bc;
    background: 0;
}

#auth-modal__button_delete_account_form .auth-modal__footer.sm-mt.shop-card {
    background-color: #FFFFFF;
}

.auth-modal__button_delete,.auth-modal__button_close:hover {
    background-color: #FFFFFF;
    color:#0049bc;
    border-color: #e1e1e1;
}

.auth-modal__button_delete:hover,.auth-modal__button_close {
    background-color: #0049BC;
    color: #FFFFFF;
}

.auth-modal__button_delete_account {
    width: fit-content;
    margin-top: 30px;
    color: #0049BC;
    background: 0;
}

.auth-modal__footer__container {
    display: flex;
}
.auth-modal__footer .auth-modal__button_delete {
    margin-right: 5px; /* Добавляем отступ справа для первой кнопки */
}
.auth-modal__footer .auth-modal__button_close {
    margin-left: 5px; /* Добавляем отступ слева для второй кнопки */
}
#auth-modal__button_delete_account_form .auth-modal__footer {
    display: flex; /* Используем Flexbox для выравнивания */
    justify-content: space-between; /* Размещает элементы с равным отступом */
    width: 100%; /* Занимает всю ширину родительского элемента */
}

.auth-modal__footer button {
    flex: 1; /* Делим пространство поровну между кнопками */
}

.code-input {
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.code-input__input {
    width: 152px;
    padding: 0 0 0 7px;
    height: 100%;
    border: 0;
    box-shadow: none;
    outline: none;

    font-size: 20px;
    line-height: 24px;
    color: #2B1B35;

}

.code-input__shapes {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
}

.code-input__shape {
    margin-right: 4px;

    width: 20px;
    height: 2px;

    transition: 0.4s;

    background: rgba(43, 27, 53, 0.3);
}

.code-input__shape.filled {
    opacity: 0 !important;
    transition: 0.4s;
}

.code-input__shape.is-next {
    background: #0049BC;
    opacity: 1;
}

.code-input__shape:last-child {
    margin-right: 0;
}

.code-input__shape:nth-child(3) {
    margin-right: 16px;
}

.auth-modal__change-number {
    color: #0049BC;
    border: 0;
    padding: 0;
    outline: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 24px;
    background: 0;
    cursor: pointer;
}

.auth-modal__caption span {
    white-space: nowrap;
}

.auth-modal__label {
    margin-top: 18px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: rgba(43, 27, 53, 0.5);
}

.auth-modal__link {
    display: inline-flex;
    text-align: center;

    border: 0;
    background: 0;
    outline: none;
    box-shadow: none;
    cursor: pointer;

    font-size: 16px;
    line-height: 20px;
    color: #0049BC;
}

.auth-modal__link:hover {
    text-decoration: underline;
}


.auth-modal__placeholder {
    position: absolute;
    pointer-events: none;
    top: 11px;
    left: 12px;
    font-size: 20px;
    line-height: 24px;
    color: #2B1B35;
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.auth-modal__field {
    position: relative;
}

.auth-modal__input::placeholder {
    opacity: 0;
}

.auth-modal__input:focus ~ .auth-modal__placeholder,
.auth-modal__input:not(:placeholder-shown) ~ .auth-modal__placeholder {
    top: 5px;
    font-size: 10px;
    line-height: 12px;
}
.auth-modal__policy .jq-checkbox {
    width:24px;
    height:24px;
    box-sizing:border-box;
    border:2px solid #c1c1c1;
    display:inline-block;
    vertical-align:middle;
    margin-right:1.5em;
    border-radius:5px;
}
.auth-modal__policy .jq-checkbox.checked {
    border-color:#0049bc;
}
.auth-modal__policy .jq-checkbox:after {
    opacity: 0;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    content: '';
    background: url(../images/checked-ico.gif) no-repeat center center;
}
.auth-modal__policy .jq-checkbox.like-radio.checked:after {
    background: none;
    background-color: #0049bc;
    width: 12px;
    height: 12px;
    margin: auto auto;
    border-radius: 12px;
}
.auth-modal__policy .jq-checkbox {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    background: #ffffff;
    display: inline-block;
    vertical-align: middle;
    margin-right: 1.5em;
    margin-top: -3px;
    border-radius: 5px;
    position: relative;
}
.auth-modal__policy input {
    display: none;
}

.auth-modal__policy {
    display: block;
    padding-left: 35px;
    position: relative;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 120%;
    color: #2B1B35;
    text-align: left;
}

.auth-modal__policy a {
    color: #164CB5;
}

.auth-modal__policy a:hover {
    text-decoration: underline;
}

.auth-modal__policy:last-child {
    margin-bottom: 0;
}

.auth-modal__policy .jq-checkbox.checked {
    background: #164CB5;
}

.auth-modal__policy .jq-checkbox {
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 3px;
}

.auth-modal__policy .jq-checkbox:after {
    width: 24px;
    height: 24px;
    left: -2px;
    top: -2px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='23' height='23' fill='%23164CB5' stroke='%23164CB5'/%3E%3Cpath d='M9.87891 15.9512L17.8789 7.95117' stroke='white' stroke-width='2' stroke-miterlimit='10'/%3E%3Cpath d='M10.5859 16.6582L5.58594 11.6582' stroke='white' stroke-width='2' stroke-miterlimit='10'/%3E%3C/svg%3E%0A");
}

.auth-modal__policy.disabled_checkbox .jq-checkbox {
    border: 2px solid #EE005A;
}

.auth-modal-wrapper {
    display: none;
    /*position: fixed;*/
    /*left: 0;*/
    /*right: 0;*/
    /*top: 0;*/
    /*bottom: 0;*/
    /*width: 100%;*/
    /*height: 100%;*/
    background: rgba(0, 0, 0, 0);
    z-index: 852;
    padding: 0 !important;
}

.fancybox-login-popup .fancybox-slide {
    background: rgba(0, 0, 0, 0.8);
}

.shop-card.contacts.stocks .auth-modal-wrapper {
    display: block;
}

.auth-modal-wrapper .fancybox-close-small {
    display: none !important;
}

.auth-modal-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.auth-page-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 99px 0;
}

@media (max-width: 576px) {
    .auth-modal-wrapper {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 852;
        padding: 0 !important;
    }

    .auth-modal-wrapper {
        background: #fff;
    }

    .auth-modal-layout {
        justify-content: flex-start;
        padding: 18px;
    }

    .auth-modal-layout .auth-modal {
        padding-top: 48px;
    }

    .auth-modal__close {
        right: 0;
        top: 0;
        z-index: 848;
    }

    .auth-modal__close svg path {
        stroke: rgba(0, 0, 0, 0.45);
    }

    .auth-modal:not(.step-auth-5):not(.step-auth-6):not(.step-logout-modal) {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    .auth-page-modal {
        padding: 56px 0;
    }
    .recapcha_show {
        display: inline-block;
    }
}