.auth-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999999;
    display: none;
    background: rgba(0,0,0,0.3);
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}
.auth-modal_active{
    display: block;
}
.auth-modal__window{
    opacity: 0;
    transform: translate(0, -150px);
    transition: 0.3s all;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    justify-content: center;
    overflow-y: scroll;
    padding: 30px 0;
}
.auth-modal__window_active{
    opacity: 1;
    transform: translate(0,0);
}
.auth-modal__content{
    position: relative;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    background-clip: padding-box;
    /*border: 1px solid rgba(0,0,0,.2);*/
    border-radius: 10px;
    outline: 0;
    width: 300px;
    height: max-content;
    overflow: hidden;
}  
.auth-modal__header{
    padding: 27px 20px 5px 20px;
    font-family: 'Roboto Slab', sans-serif;
}
.auth-modal__title{
    text-align:left;
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
    color: #242E49;
    margin-top: 0;
    margin-bottom: 15px;
}
button.auth-modal__close {
    position: absolute;
    right: 10px;
    top: 0;
    border: none;
    background: transparent;
    color: #7481AA;
    font-size: 25px;
    font-weight: 300;
    padding: 0;
    outline: none;
}

.auth-modal__close span {
    display: block;
    position: absolute;
    background: url("/local/templates/dgw/assets/images/icon--close.svg") no-repeat;
    width: 20px;
    height: 20px;
    right: 0px;
    top: 13px;
}

.auth-modal__body{
    padding: 0px 20px 30px 20px;
}
.auth-modal__body-class{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.auth-modal__footer {
    background: #F7F7FA;
}

.auth-modal__footer-container {
    padding-top: 20px;
    padding-bottom: 30px;
}

.auth-modal__code-container {
    padding: 15px 0;
}

.auth-form__group:hover input {
    border: 1px solid #7481AA;
}

.auth-form__group input:focus {
    border: 1px solid #7481AA;
}

.auth-form__group:not(:last-child),
.auth-form__block:not(:last-child) {
    margin-bottom: 10px;
}

.auth-form__block .auth-form__group {
    margin-bottom: 0;
}

.auth-form__group {
    position: relative;
}

.auth-form__group.is--required::before {
    content: '*';
    color: #B4193E;
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 5px;
}

.auth-form__label {
    font-weight: normal;
    font-size: 14px;
    color: #7481AA;

    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;

    display: flex;
    align-items: center;
    transition: all .2s linear;
    pointer-events: none;
}

.auth-form__label.focused {
    font-size: 11px;
    top: -25px;
}

input.auth-form__input{
    background: #FFFFFF;
    border: 1px solid #E0E4EF;
    box-sizing: border-box;
    border-radius: 5px;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 28px;
    color: #7481AA;
    margin: 0;
    height: 50px;
    width: 100%;
    padding: 25px 8px 10px 15px;
    display: block;
    outline: none;
    transition: border .2s;
}

input.auth-form__input.not-empty-pass {
    color: #242E49;
    font-size: 30px;
}

input.auth-form__input:disabled {
    background-color: #F5F5F8;
}

.auth-form__req {
    display: none;
    color: #FF7671;
    position: absolute;
    right: 8px;
    top: 5px;
    transition: opacity .3s;
}

input.auth-form__input.is--error {
    border: 1px solid #FF7671;
}

input.auth-form__input[required] ~ .auth-form__req,
.auth-form__required .auth-form__req {
    display: inline-block;
    opacity: 1;
}

input.auth-form__input.is--success ~ .auth-form__req,
.auth-form__block.is--success .auth-form__req {
    opacity: 0;
}

.auth-form__success {
    opacity: 0;
    transition: opacity .3s;
    display: inline-block;
    width: 10px;
    height: 7px;
    background: url("./images/success.svg") no-repeat center center;
    position: absolute;
    right: 8px;
    top: 8px;
    margin: auto;
    cursor: pointer;
}

input.auth-form__input.is--success ~ .auth-form__success,
.auth-form__block.is--success .auth-form__success
{
    opacity: 1;
}

.icon-eye {
    display: none;
    width: 18px;
    height: 18px;
    background: url("./images/eye.svg") no-repeat center center;
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}

input.auth-form__input[type="password"] ~ .icon-eye,
input.auth-form__input[type="text"] ~ .icon-eye{
    display: inline-block;
}

.auth-form__submit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin:  0 auto;
    height: 50px;
    background: linear-gradient(180deg, #FF7671 0%, #FF4F4D 100%);
    border-radius: 5px;
    font-weight: normal;
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: all .2s;
}

.auth-form__submit:disabled,
.auth-form__submit[disabled=true] {
    background: linear-gradient(180deg, #FF7671 0%, #FF4F4D 100%) !important;
    color: #242E49 !important;
    pointer-events: none;
}

.auth-form__submit:hover,
.auth-form__submit:focus,
.auth-form__submit:active,
.auth-form__submit.all-success {
    background: linear-gradient(180deg, #FF5049 0%, #FF2C29 100%);
    color: white;
    text-decoration: none;
    transition: 0.5s;
}

.auth-form__buttons{
    margin-top: 15px;
}

.auth-form__button-disabled {
    pointer-events: none;
    background: #F5F5F8;
    color: #7481AA;
}

.auth-form__primary{
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    box-sizing: border-box;
    border-radius: 4px;
    display: block;
    font-weight: normal;
    font-size: 14px;
    line-height: 28px;
    color: rgba(0, 0, 0, 0.65);
    padding: 2px;
    padding-left: 40px;
    margin-top: 10px;
}
.auth-form__primary:hover{
    border-color: #1890FF;
    text-decoration: none;
}



.auth-modal__link, 
.auth-modal__message {
    display: block;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 22px;
    color: #1890FF;
    margin: 5px 0;
    text-align: center;
}

.auth-modal__link--forgot-password:hover,
.auth-modal__link--forgot-password:active {
    color: #242E49 !important;
}

.auth-modal__message {
    color: #242E49;
}
.auth-modal__link:hover{
    text-decoration: none;
}

.auth-modal__links--inline .auth-modal__link,
.auth-modal__links--inline .custom-check__text {
    font-size: 12px;
    color: #7481AA;
    text-decoration: none;
}

.auth-modal__links--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-modal__link--type{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    max-width: 200px;
    margin: 0 auto;
    background: #242E49;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none !important;
    filter: drop-shadow(0px 0px 30px rgba(116, 129, 170, 0.2));
    -webkit-filter: drop-shadow(0px 0px 30px rgba(116, 129, 170, 0.2));
}

.auth-modal__link--type:hover {
    background: #242E49;
    color: #fff;
    transition: 0.5s;
}

.auth-modal__link--type:not(:last-child) {
    margin-bottom: 10px;
}

.auth-form__primary_email{
    position: relative;
}
.auth-form__primary_email:after{
    width: 18px;
    height: 12px;
    background: url('images/email.svg');
    background-position: center center;
    background-size: cover;
    position: absolute;
    content: '';
    left: 13px;
    top: 10px;
}
.auth-form__primary_phone{
    position: relative;
}
.auth-form__primary_phone:after{
    width: 16px;
    height: 16px;
    background: url('images/phone.svg');
    background-position: center center;
    background-size: cover;
    position: absolute;
    content: '';
    left: 12px;
    top: 8px;
}

.auth-form__checkbox:not(:last-child) {
    margin-bottom: 10px;
}

.auth-form__checkbox input{
    display: none;
}
.auth-form__checkbox span{
    font-style: normal;
    font-weight: normal;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    display: block;
    color: rgba(0, 0, 0, 0.65);
    padding-left: 24px;
    position: relative;
}
.auth-form__checkbox span:before{
    content: '';
    border-radius: 2px;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 3px;
    left: 0;
    border: 1px solid #1890FF;
    background: #fff;
}
.auth-form__checkboxes{
    margin-top: 20px;
}
.auth-form__checkbox input:checked ~ span:before{
    background: #1890FF;
}
.auth-form__checkbox input:checked ~ span:after{
    content: '\2714';
    position: absolute;
    top: 1px;
    left: 2px;
    color: #fff;
    font-size: 16px;
}
.auth-modal_error {
    border: 1px solid red;
    padding: 5px;
    margin: 5px 0;
    text-align: left;
}
.auth-modal__errors {
    display: block !important;
    margin: 0 0 10px 0;
    color: red;
    font-size: 12px;
    padding: 0 5px 5px 5px;
}

.auth-modal__success-item {
    border: 1px solid green;
    padding: 5px;
    margin: 10px 0;
}

.auth-form__error {
    color: #FF7671;
    font-size: 11px;
    text-align: right;
    white-space: normal;
}

.auth-form__error.blog-form__error{
    color: #B4193E !important;
    display: flex;
    justify-content: end;
}
.auth-form__error.blog-form__error.success{
    color: #84B04C !important;
}
.auth-form__message {
    color: #B4193E;
    font-size: 11px;
    text-align: right;
    margin-top: 4px;
    white-space: pre-line;
}

.auth-form__message {
    text-align: left;
    color: #7481AA;
}

.auth-form__refresh{
    display: block;
    position: absolute;
    top: 5px;
    cursor: pointer;
    right: 20px;
    background: url(/bitrix/components/prm/main.login/templates/.default/images/refresh.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    transform: rotate(75deg);
}
.auth-form__captcha-image-block{
    position: relative;
    margin-bottom: 10px;
}


:root {
    --emailTabPadding: 30px; /* отступ для таба Email */
}


.cartLinner {
    /*float: right;
    margin-right: 90px;
    margin-top: -45px;*/
    position: absolute;
    top: 70px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top:30px;
}

.tb {
    min-height: 30px;
}

.tb--auth {
    display: flex;
    justify-content: flex-end;
}

.tabs {
    padding-left: 0;
    margin: 10px 0;
}

.tabs li {
    list-style-type: none;
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 100%;
    float: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #E3E6F0;
}

.tabs li a {
    float: left;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 100%;
    /* identical to box height, or 14px */
    display: flex;
    align-items: center;
    /* $black */
    text-decoration: none;
    border: none;
    color: #7481AA;
}

.tabs li a.active {
    color: #242E49;
    display: inline-block;
    position: relative;
}

.tabs li a.active::before {
    content: "";
    display: inline-block;
    width: 100%;
    border-bottom: 2px solid black;
    position: absolute;
    bottom: -12px;
}

.tabs li a:hover {
    color: #242E49;
}

.tabs li:last-child a {
    padding-left: var(--emailTabPadding);
}

.tabs li:last-child a.active::before {
    width: calc(100% - var(--emailTabPadding));
}

.tabs li span {
    padding-left: 5px;
    padding-right: 5px;
    color: #7481AA;
    font-size: 14px;
}

.custom-check {
    position: relative;
    font-size: 14px;
}

.custom-check--conditions {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.custom-check--remember:hover,
.custom-check--remember:active {
    cursor: pointer;
}

.custom-check--grey .custom-check__box > input:checked + .custom-check__check {
    background-image: url("./images/done-grey.svg");
}

.custom-check__box {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.custom-check__box--remember {
    column-gap: 10px;
    cursor: pointer;
}

.custom-check__box--remember p {
    padding: 0;
    margin: 0;
    font-style: normal;
    font-weight: 400;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.custom-check__box--remember:hover p {
    color: #242E49;
}

.custom-check__check {
    display: inline-block;
    height: 12px;
    width: 12px;
    border-radius: 3px;
    border: 1px solid #E3E6F0;
    cursor: pointer;
}

.custom-check__box > input {
    margin: 0;
    display: none;
}

.custom-check__box > input:checked + .custom-check__check {
    background-image: url("./images/done.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    border: none;
}

.custom-check__text {
    color: #7481AA;
    white-space: normal;
    text-align: left;
    font-size: 12px;
}

.custom-check__text--lg {
    font-size: 16px;
    font-weight: 400;
    color: #151D33;
}

.custom-check__text--prop {
    color: #7481AA;
}

.is--mobile,
.mobile-container {
    width: 100%;
    text-align: left;
    white-space: normal;
}

.auth-modal .separator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.separator__line {
    width: 100%;
    height: 1px;
    background-color: #E0E4EF;

}

.separator__text {
    line-height: 16px;
    font-size: 10px;
    color: #7481AA;
    text-align: center;
    position: absolute;
    margin: auto;
    background: #F5F5F8;
    padding: 0 15px;
}

.auth-modal_social {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 40px;
    margin: 0 auto;
}

.auth-modal_social__item:not(:last-child) {
margin-right: 15px;
}

.auth-modal_social__item {
display: inline-block;
height: 40px;
width: 40px;
background-repeat: no-repeat;
background-position: center center;
}

.icon-fb-auth {
background-image: url("/local/templates/dgw/assets/images/social/fb.svg");
}

.auth-modal_social:hover .icon-fb-auth,
.auth-modal_social:active .icon-fb-auth {
background-image: url("/local/templates/dgw/assets/images/social/fb--active.svg");
}

/*=============
TRANSITION END
===============*/

.auth-form__code-text,
.auth-form__insert-text {
    font-size: 14px;
    text-align: center;
    margin-top: 25px;
    color: #242E49;
}

.loading {
    width: 40px;
    height: 40px;
    margin: 55px auto 60px auto;
    background-image: url("./images/ellipse.png");
    background-repeat: no-repeat;
    background-size: cover;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.insert-code {
    margin-top: 15px;
}

.insert-code__wrapper {
    display: flex;
    justify-content: center;
}

.insert-code__item:not(:last-child) {
    margin-right: 10px;
}

.insert-code__input {
    height: 40px;
    width: 30px;
    border: 1px solid #E0E4EF;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 24px;
    color: #242E49 !important;
    padding: 13px 5px 15px 5px;
    text-align: center;
}

.insert-code__input::placeholder {
    color: #7481AA;
}

.insert-code__input {
    -moz-appearance:textfield;
}

.insert-code__input::-webkit-outer-spin-button,
.insert-code__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.auth-form__resend {
    max-width: 174px;
    margin: 0 auto;
    border-radius: 5px;
    border: 1px solid #7481AA;
    padding: 10px 20px;
    background-color: #fff;
    color: #242E49;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}

.auth-form__code-message {
    font-size: 12px;
    padding: 10px 0;
    margin-top: 0;
}

.auth-modal__devider {
    height: 1px;
    width: 100px;
    margin: 20px auto;

    background-color: #E0E4EF;
}

.auth-form__confirm-sended {
    font-size: 18px;
}

.auth-form .auth-form__group .iti {
    width: 100%;
}

.auth-form .custom-check__text a {
    color: #7148E5;
    text-decoration: none;
}

.auth-form .custom-check__text a:hover {
    text-decoration: underline;
}

.auth-form .auth-form__input-describe {
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: #7481AA;
    text-align: left;
    margin-bottom: 4px;
}

.auth-form__error-message {
    color: #FF7671;
    font-size: 11px;
    font-weight: 400;
    display: none;
}
.auth-form__block.is--error .auth-form__error-message {
    display: block;
}

@media (max-width: 500px) {
    .auth-modal__header{
        padding: 10px 20px 5px 20px;
    }
    .auth-modal__title {
        margin-bottom: 5px;
    }
    .auth-form__checkboxes {
        margin-top: 10px;
    }
    .auth-modal__body {
        padding: 0px 20px 15px 20px;
    }
    .auth-modal__footer-container {
        padding-top: 10px;
    }
    .auth-modal .separator {
        margin: 20px 0;
    }
    .auth-modal__footer-container {
        padding-bottom: 10px;
    }
    .auth-form__buttons {
        margin-top: 10px;
    }
    input.auth-form__input.not-empty-pass {
        font-size: 24px;
    }
}