.upo-phone-otp-login {
	box-sizing: border-box;
	max-width: 420px;
}

.upo-phone-otp-login *,
.upo-phone-otp-login *::before,
.upo-phone-otp-login *::after {
	box-sizing: border-box;
}

.upo-phone-otp-login label,
.upo-phone-otp-login .upo-consent-text {
	color: #2b2835 !important;
	font-size: 0.9em !important;
	display: block;
	margin-bottom: 4px;
}

.upo-phone-otp-login .upo-phone-input,
.upo-phone-otp-login .upo-code:not(.upo-otp-aggregate),
.upo-phone-otp-login .upo-intake-input,
.upo-phone-otp-login textarea.upo-intake-input {
	width: 100%;
	padding: 8px;
	border: 1px solid #c8c4d4;
	border-radius: 3px;
	font-size: 1em;
	line-height: 1.4;
	background: #fff;
	color: #2b2835;
}

/* Segmented OTP digits (6 boxes). Aggregate input stays for SMS autofill / JS value. */
.upo-phone-otp-login .upo-otp-digits {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 4px 0 2px;
	position: relative;
}

.upo-phone-otp-login .upo-otp-aggregate {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.upo-phone-otp-login .upo-otp-box {
	flex: 0 0 2.75em;
	width: 2.75em;
	max-width: 2.75em;
	min-width: 2.75em;
	aspect-ratio: 1 / 1;
	height: auto;
	padding: 0;
	margin: 0;
	text-align: center;
	font-size: 1.35em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	border: 1.5px solid #c8c4d4;
	border-radius: 8px;
	background: #fff;
	color: #2b2835;
	caret-color: #3f3b4e;
	appearance: none;
	-webkit-appearance: none;
}

.upo-phone-otp-login .upo-otp-box:focus {
	outline: none;
	border-color: #6e6099;
	box-shadow: 0 0 0 2px rgba(110, 96, 153, 0.25);
}

@media (max-width: 360px) {
	.upo-phone-otp-login .upo-otp-digits {
		gap: 4px;
	}
	.upo-phone-otp-login .upo-otp-box {
		flex-basis: 2.4em;
		width: 2.4em;
		max-width: 2.4em;
		min-width: 2.4em;
		font-size: 1.15em;
		border-radius: 6px;
	}
}

.upo-phone-otp-login .upo-intake-field {
	margin-bottom: 8px;
}

.upo-phone-otp-login .upo-reg-intake {
	margin: 10px 0;
}

.upo-phone-otp-login .upo-recaptcha {
	margin: 10px 0;
}

.upo-phone-otp-login .upo-consent-wrap {
	margin: 10px 0;
}

.upo-phone-otp-login .upo-consent-line {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	line-height: 1.5;
}

.upo-phone-otp-login .upo-consent-check {
	margin-top: 3px;
	flex-shrink: 0;
}

.upo-phone-otp-login .upo-msg {
	margin-top: 12px;
	color: #2b2835;
	font-size: 0.9em;
	line-height: 1.5;
}

.upo-phone-otp-login .upo-send,
.upo-phone-otp-login .upo-verify {
	display: block;
	width: 100%;
	background-color: #3f3b4e !important;
	color: #ffffff !important;
	text-align: center !important;
	border-radius: 3px !important;
	padding: 0.65em 1em !important;
	font-family: 'Noto Sans JP', sans-serif !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	border: 1px solid #3f3b4e !important;
	cursor: pointer;
	font-size: 1em;
	appearance: none;
	-webkit-appearance: none;
}

.upo-phone-otp-login .upo-send:hover,
.upo-phone-otp-login .upo-verify:hover {
	background-color: #4a4560 !important;
	border-color: #4a4560 !important;
}

.upo-phone-otp-login .upo-step2 {
	margin-top: 12px;
}

.upo-phone-otp-login .upo-verify {
	margin-top: 10px;
}

.upo-phone-otp-login .upo-consent-check:checked {
	accent-color: #6e6099 !important;
}

.upo-phone-otp-login .upo-consent-text a {
	pointer-events: auto !important;
	color: #394198 !important;
	text-decoration: underline !important;
}

.upo-phone-otp-login small {
	display: block;
	margin-top: 4px;
	color: #5c5768;
	font-size: 0.85em;
}
