.otp-box-input {
	position: relative;
	width: 100%;
}

.otp-box-input__target {
	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;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.otp-box-input__cells {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.otp-box-input__cell {
	flex: 1 1 0;
	min-width: 0;
	max-width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	border: 1.5px solid var(--border-color-light, #d1d5db);
	background: var(--color-bg-primary, #fff);
	color: var(--color-text-primary, #111827);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.otp-box-input__cell:focus {
	outline: none;
	border-color: var(--color-info, #2563eb);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-info, #2563eb) 18%, transparent);
}

.otp-box-input.is-focused .otp-box-input__cell:focus {
	border-color: var(--color-info, #2563eb);
}

.otp-box-input__cell.invalid-ip,
.otp-box-input.is-invalid .otp-box-input__cell {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

/* Agent login — glass panel */
.topform_main .otp-box-input__cells {
	gap: 8px;
}

.topform_main .otp-box-input__cell {
	max-width: none;
	height: 48px;
	border-radius: 12px;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	-webkit-text-fill-color: #fff;
}

.topform_main .otp-box-input__cell:focus {
	border-color: rgba(125, 211, 252, 0.85);
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
	background: rgba(255, 255, 255, 0.14);
}

.topform_main .otp-box-input__cell.invalid-ip,
.topform_main .otp-box-input.is-invalid .otp-box-input__cell {
	border-color: rgba(252, 165, 165, 0.85) !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

/* B2C login modal */
#show_log .otp-box-input__cells,
.login-otp-section .otp-box-input__cells {
	gap: 8px;
}

#show_log .otp-box-input__cell,
.login-otp-section .otp-box-input__cell {
	max-width: none;
	height: 48px;
	font-size: 18px;
}

#show_log .rowput.otp-box-field,
.login-otp-section .otp-box-field {
	padding-left: 0;
}

#show_log .rowput.otp-box-field .input-icon-left,
.login-otp-section .otp-box-field .input-icon-left {
	display: none;
}

@media (max-width: 480px) {
	.otp-box-input__cells {
		gap: 6px;
	}

	.otp-box-input__cell {
		height: 44px;
		font-size: 16px;
		border-radius: 10px;
	}
}
