.sms-auth-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 628px;
    z-index: 1000;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #2d2d2d;
    border: 1px solid #CACACE;
	z-index: 999999;
	border-radius: 10px;
    overflow: hidden;
}

.sms-auth-static {
    position: relative;
    width: 100%;
    max-width: 620px;
    background-color: #FFFFFF;
    color: #2d2d2d;
    border: 1px solid #CACACE;
    border-radius: 10px;
    overflow: hidden;
}

.authorization_box {
    max-width: 100%;
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 420px;
    align-items: center;
    flex-direction: column;
}


#sms-auth-phone-container, #email-auth-container {
    background-color: #ececec;
    padding: 24px;
}


.auth-title-box {
    display: flex;
    padding: 12px 24px;
    justify-content: space-between;
    align-items: center;
	background-color: #fff;
}

.auth-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.authorization-input-field {
    margin-bottom: 24px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    padding: 12px 20px;
    height: 48px;
    border: 1px solid #838383;
    background-color: #fbfbfb;
    border-radius: 8px;
}

.sms-auth-tab {
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.sms-auth-tab.active {
	color: #fff;
    background: #18181B;
}

#sms-auth-message {
    text-align: center;
    font-weight: 400;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 24px;
    background-color: #724254;
}

#sms-auth-code-container, #email-auth-code-container {
    background-color: #ececec;
    padding: 24px;
} 

#sms-auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.send-code-button {
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: none;
    padding: 18px;
    color: #fff;
    cursor: pointer;
    background: #222;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.send-code-button:hover {
    background: #000;
}


#sms-auth-cancel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}


.sms-auth-tabs {
    display: flex;
    flex-direction: row;
    gap: 4px;
    border: 1px solid #E4E4E7;
    padding: 4px;
    margin-bottom: 8px;
}



.sms-auth__checkbox {
	position: absolute;
	z-index: -1;
	opacity: 0;
	cursor:pointer;
}

.sms-auth__checkbox+label {
    display: flex;
    align-items: center;
    user-select: none;
    font-size: 12px;
    line-height: 16px;
}

.sms-auth__checkbox+label::before {
    content: '';
    display: inline-block;
    height: 16px;
    width: 16px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #464646;
    border-radius: 0.25em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}


/* стили для активного чекбокса (при нажатии на него) */
.sms-auth__checkbox:not(:disabled):active+label::before {
    border-color: #ff3333;
    background-color: #ff3333;
}


.sms-auth__checkbox:checked+label::before {
	border-color: #ff3333;
    background-color: #ff3333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.sms-auth__checkbox-box {
    display: block;
    margin-top: 32px;
    margin-bottom: 10px;
}


.input-phone-error {
    border: 1px solid #c41230 !important;
}

.send-code-button:disabled,
.send-code-button[disabled]{
	opacity:0.5;
}

#sms-auth-resend:disabled,
#sms-auth-resend[disabled]{
    opacity: 0.8;
    color: #525252;
}

.auth-code_subtitle {
	font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #4c4c53;
    margin-bottom: 8px;
    text-align: left;
}

#sms-auth-timer, #email-auth-timer {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    background-color: #E4E4E7;
    box-sizing: border-box;
    padding: 2px 8px;
    border-radius: 0 0 0 8px;
}


#sms-auth-resend, #email-auth-resend {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    padding: 18px;
    color: #18181B;
    cursor: pointer;
    border: 1px solid #E4E4E7;
    justify-content: center;
    position: relative;
    background-color: #fff;
    margin: 10px 0 0 0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    height: 56px;
	overflow:hidden;
	align-items: center;
}


#sms-auth-change-number, #email-auth-change {
    background: #fff0;
    border: none;
    outline: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #8b8b8b;
    display: flex;
    padding: 0;
    justify-content: flex-end;
    width: 100%;
    text-decoration: underline;
    margin-top: 15px;
}

/* Прелоадер */
.sms-auth-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9999; 
}

.sms-auth-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3); 
    border-top: 5px solid white; 
    border-radius: 50%;
    animation: sms-auth-spin 1s linear infinite; 
}

/* Анимация вращения */
@keyframes sms-auth-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@media screen and (max-width: 768px) {
	.sms-auth-popup {
		width: 100%;
		max-width: 95%;
	}
		
	.sms-auth-static {
		width: 100%;
		max-width: 100%;
	}
	
	.sms-auth__checkbox+label {
		font-size: 11px;
	}
	
	.auth-code_subtitle {
		font-size: 13px;
		text-align: left;
	}
	
	.send-code-button {
		padding: 12px;
		font-size: 14px;
	}
	
	#sms-auth-resend {
		font-size: 14px;
		padding: 12px;
		height: 44px;
	}
}


.stop-scroll {
	overflow: hidden;
}

.sms-auth-static #sms-auth-cancel {
    display: none;
}

.sms-auth__checkbox-box {
    display: none;
}

.phone-label {
    color: #71717A;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 4px;
}

.sms-auth__info-text {
    color: #71717A;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    margin-top: 24px;
}




#force-complete-popup {
	display:flex; 
	align-items:center; 
	justify-content:center; 
	position:fixed; 
	top:0; 
	left:0; 
	right:0; 
	bottom:0; 
	background:rgba(0,0,0,0.8); 
	z-index:9999;
}

.force-complete-popup__box {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.03);
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
	position: relative;
}

.force-input {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: block;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
    margin: 0;
    outline: none;
    padding: 0 20px;
    transition: border .15s;
    width: 100%;
	margin-bottom: 8px;
}

.force-input:focus {
    border: 1px solid #666;
}

.force-complete-popup__title {
    color: #202020;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
    display: block;
}

#force-complete-save {
    align-items: center;
    background: #222;
    border: none;
    border-radius: 4px;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 400;
    line-height: 17px;
    cursor: pointer;
    height: 44px;
    margin-top: 8px;
}

#force-complete-message {
    font-size: 14px;
    position: absolute;
    bottom: -26px;
    left: 0;
    color: #ffffff;
    width: 100%;
    text-align: center;
}



@media screen and (max-width: 767px) {
	
	.force-complete-popup__box {
		height: 100%;
		border-radius: 10px 10px 0 0;
	}
	
	#force-complete-popup {
		padding-top: 32px;
	}
	
	#force-complete-message {
		position: relative;
		color: #000;
		bottom: 0;
		margin-top: 16px;
	}
}