/* User Account Login and Management - OTP Modal styling */

.sb-otp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sb-otp-overlay.sb-open {
	display: flex;
}

.sb-otp-box {
	background: #FFFFFF;
	border-radius: 14px;
	padding: 32px 30px;
	width: 90%;
	max-width: 420px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.sb-otp-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	border-radius: 50% !important;
	border: none !important;
	background: #F2F2F2 !important;
	color: #333 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
}

.sb-otp-title {
	font-size: 20px;
	font-weight: 700;
	color: #111111;
	margin: 0 0 10px;
	padding-right: 24px;
}

.sb-otp-subtitle {
	font-size: 14px;
	color: #6B6B6B;
	margin: 0 0 22px;
	line-height: 1.5;
}

.sb-otp-subtitle .sb-otp-edit {
	color: #111111;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	margin-left: 4px;
}

.sb-otp-label {
	display: block;
	font-size: 12px;
	color: #6B6B6B;
	margin-bottom: 6px;
}

.sb-otp-phone-row {
	display: flex;
	align-items: center;
	border: 1px solid #DDDDDD;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
}

.sb-otp-prefix {
	padding: 13px 12px;
	background: #FAFAFA;
	color: #333333;
	font-size: 15px;
	border-right: 1px solid #DDDDDD;
}

.sb-otp-phone-row input,
.sb-otp-box input[type="text"].sb-otp-plain,
.sb-otp-box input[type="email"] {
	flex: 1;
	border: none !important;
	outline: none;
	padding: 13px 12px !important;
	font-size: 15px !important;
	color: #111111;
	width: 100%;
	box-sizing: border-box;
	height: auto !important;
	margin: 0 !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
}

.sb-otp-box input[type="text"].sb-otp-plain,
.sb-otp-box input[type="email"] {
	border: 1px solid #DDDDDD !important;
	border-radius: 8px !important;
	margin-bottom: 8px !important;
}

.sb-otp-box input.sb-otp-code {
	border: 1px solid #DDDDDD !important;
	border-radius: 8px !important;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 12px !important;
	font-size: 18px !important;
	letter-spacing: 4px;
	margin-bottom: 8px !important;
	height: auto !important;
}

.sb-otp-btn {
	width: 100% !important;
	margin-top: 14px;
	padding: 14px !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #FFFFFF !important;
	background: #C9C9C9 !important;
	cursor: not-allowed;
	transition: background 0.15s ease;
	box-shadow: none !important;
	text-transform: none !important;
	line-height: normal !important;
	display: block;
}

.sb-otp-btn:not(:disabled) {
	background: #772613 !important;
	cursor: pointer;
}

.sb-otp-btn:not(:disabled):hover {
	background: #5A1C0E !important;
}

.sb-otp-sent-note {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #1FA97D;
	margin: 4px 0 14px;
}

.sb-otp-resend-row {
	font-size: 13px;
	color: #6B6B6B;
	margin: 4px 0 2px;
}

.sb-otp-resend-link {
	color: #6B6B6B;
	text-decoration: underline;
	font-weight: 600;
	cursor: default;
}

.sb-otp-resend-link.sb-active {
	color: #111111;
	cursor: pointer;
}

.sb-otp-toggle-mode {
	display: block;
	text-align: center;
	font-size: 13px;
	color: #6B6B6B;
	text-decoration: underline;
	margin-top: 16px;
	cursor: pointer;
}

.sb-otp-footer-text {
	font-size: 12px;
	color: #8A8A8A;
	text-align: center;
	margin: 22px 0 0;
	line-height: 1.5;
}

.sb-otp-footer-text a {
	color: #6B6B6B;
	text-decoration: underline;
}

.sb-otp-error {
	font-size: 13px;
	color: #C0392B;
	margin: 0 0 10px;
	min-height: 16px;
}

.sb-otp-step {
	display: none;
}

.sb-otp-step.sb-active {
	display: block;
}

/* Floating success toast */
.sb-otp-toast {
	position: fixed;
	top: 18px;
	left: 50%;
	transform: translate(-50%, -20px);
	background: #16B888;
	color: #FFFFFF;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 100001;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.sb-otp-toast.sb-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

.sb-otp-toast .sb-otp-toast-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

@media (max-width: 480px) {
	.sb-otp-box {
		padding: 26px 20px;
	}
}
