.sms-auth-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    z-index: 1000;
    box-sizing: border-box;
    padding: 48px 32px 32px 32px;
    background-color: #FFFFFF;
    color: #2d2d2d;
    border: 1px solid #CACACE;
}

.sms-auth-static {
    position: relative;
    width: 440px;
    z-index: 1;
    box-sizing: border-box;
    padding: 24px;
    background-color: #FFFFFF;
    color: #2d2d2d;
    box-shadow: 0px 12px 42px -4px #18274B1F;
    border-radius: 15px;
    margin: 0 auto 90px auto;
}

.auth-title {
    margin: 0 0 32px 0;
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
}

.authorization-input-field {
    margin-bottom: 10px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    padding: 12px 24px;
    border-radius: 60px;
    height: 56px;
    border: 1px solid #D4D4D8;
    background-color: #fbfbfb;
}

.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: left;
    margin: 0 0 5px 0;
    font-weight: 400;
    color: #ffa633;
    font-size: 12px;
}

#sms-auth-code-container {
    margin-top: 15px;
} 

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

.send-code-button {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    border: none;
    padding: 8px;
    height: 52px;
    color: #fff;
    cursor: pointer;
    background: #FB923C;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
}

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

#sms-auth-cancel {
    display: block;
    position: absolute;
    width: 48px;
    height: 48px;
    left: 100%;
    top: 0;
    margin-left: 6px;
    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: #FB923C;
    background-color: #FB923C;
}


.sms-auth__checkbox:checked+label::before {
	border-color: #FB923C;
    background-color: #FB923C;
    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 #ff0000 !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: 15px;
    line-height: 19px;
    color: #18181b;
    margin-bottom: 8px;
    text-align: center;
}

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

#sms-auth-resend {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    padding: 8px;
    color: #18181B;
    cursor: pointer;
    border: 1px solid #E4E4E7;
    justify-content: center;
    position: relative;
    background-color: #fff;
    margin: 16px 0 0 0;
    height: 52px;
    border-radius: 60px;
    align-items: center;
	overflow:hidden;
}


#sms-auth-change-number {
    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%;
		padding: 42px 16px 16px 16px;
	}
		
    .sms-auth-static {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }
	
	.sms-auth__checkbox+label {
		font-size: 11px;
	}
	
	.auth-code_subtitle {
		font-size: 13px;
		text-align: center;	
	}
	
	.auth-title {
		font-size: 22px;
		line-height: 27px;
		text-align: center;
	}
	
	.sms-auth__checkbox+label {
		justify-content: center;
	}
}


.stop-scroll {
	overflow: hidden;
}

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