.payment-sca-otp .l-page--login .m-dashboard-title,
.payment-sca-otp .m-dashboard-title {
	text-align: center;
	margin: 0;
	padding: 0;
}

.payment-sca-otp .m-dashboard-title h1 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 auto 0.75rem;
	max-width: 28rem;
}

.payment-sca-otp .m-dashboard-title p {
	max-width: 32rem;
	margin: 0 auto;
	color: #4a4a4a;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.payment-sca-otp .m-dashboard-title .normal-link {
	display: inline-block;
	margin-top: 0.5rem;
}

.payment-sca-otp .payment-sca-otp-pin-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch; /* full-width PIN + error (not content-centered) */
	width: 100%;
	max-width: 26em; /* match login/recipient PIN row */
	margin-top: 1.75rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	background: transparent;
	box-shadow: none;
	text-align: left;
}

.payment-sca-otp #paymentScaOtpForm,
.payment-sca-otp #forwardsScaOtpForm,
.payment-sca-otp #batchBookConfirmPasswordModel {
	display: block;
	width: 100%;
	margin: 0;
}

.payment-sca-otp-pin-block {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	max-width: 26em;
	min-width: 0;
	margin: 0;
	text-align: left;
}

.payment-sca-otp-field-error {
	display: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0.5rem 0 0;
	padding: 0;
	color: #d14343;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
	background: none;
	border: 0;
}

.payment-sca-otp-field-error.is-active,
.payment-sca-otp #paymentScaOtpError.is-active,
.payment-sca-otp #forwardsScaOtpError.is-active {
	display: flex !important;
	flex-direction: row;
	align-items: flex-start;
	align-self: stretch;
	justify-content: center;
	gap: 0.4rem;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: center !important;
	background: none;
	border: 0;
	padding: 0;
}

/* Batch has two .notify--copy siblings (invalid vs expired); keep column so JS can hide one. */
.batch-book-otp #errorMessageIncorrectPinBatchBook.is-active {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	justify-content: flex-start;
	gap: 0;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: center !important;
	background: none;
	border: 0;
	padding: 0;
}

.payment-sca-otp-field-error .notify--copy,
.batch-book-otp #errorMessageIncorrectPinBatchBook.is-active .notify--copy {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	gap: 0.4rem;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin: 0 auto !important;
	padding: 0 !important;
	background: none !important;
}

.payment-sca-otp-field-error .notify--copy p,
.payment-sca-otp-field-error .notify--copy span,
.payment-sca-otp-field-error > span {
	flex: 0 1 auto;
	min-width: 0 !important;
	max-width: 100%;
	margin: 0;
	color: #d14343;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center !important;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.payment-sca-otp-field-error .payment-sca-otp-error-icon {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0.1rem 0 0;
	color: #d14343;
}

.payment-sca-otp-field-error .notify--close {
	display: none;
}

/* Match login/recipient x5 PIN sizing (grid + min-height 5rem) */
.payment-sca-otp .m-form-field-group.payment-sca-x6 {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	grid-column-gap: 2.6%;
	justify-items: stretch;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.payment-sca-otp.is-six-digit .m-form-field-group.payment-sca-x6 {
	grid-template-columns: repeat(6, 1fr);
	grid-column-gap: 2%;
}

.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form-field {
	width: auto;
	max-width: none;
	margin: 0;
}

.payment-sca-otp:not(.is-six-digit) #paymentScaOtpPinGroup .payment-sca-otp-digit-six,
.payment-sca-otp:not(.is-six-digit) #paymentScaOtpPinGroup .m-form-field:last-child,
.payment-sca-otp:not(.is-six-digit) #forwardsScaOtpPinGroup .payment-sca-otp-digit-six,
.payment-sca-otp:not(.is-six-digit) #forwardsScaOtpPinGroup .m-form-field:last-child {
	display: none;
}

.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.single input {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-size: 200%;
	font-weight: 600;
	min-height: 5rem;
	height: auto;
	max-height: none;
	padding: 0;
	border-radius: 4px;
	border: 1px solid #c8c8c8;
	background-color: #fff;
}

.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.single input:focus {
	border-color: #1a6dff;
	outline: none;
	box-shadow: none;
}

.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.single input.is-error,
.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.is-error input {
	border-color: #d14343;
}

.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.single input:disabled {
	background-color: #f5f5f5;
	color: #4a4a4a;
}

.payment-sca-otp-resend {
	text-align: center;
	margin-top: 1.75rem;
}

.payment-sca-otp-resend-prompt {
	margin: 0 0 0.25rem;
	font-weight: 600;
	color: #1a1a1a;
}

.payment-sca-otp-resend-countdown {
	margin: 0;
	color: #6b6b6b;
	font-size: 0.9375rem;
}

.payment-sca-otp-resend-link-wrap {
	margin: 0;
}

.payment-sca-otp-resend-link-wrap a {
	font-weight: 600;
}

.payment-sca-otp #paymentScaOtpResendLink.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.batch-book-otp #landlinePhoneTypeBatchBook,
.batch-book-otp #mobilePhoneTypeSmsBatchBook,
.batch-book-otp #mobilePhoneTypeCallBatchBook {
	display: none !important;
}

.batch-book-otp #batchBookOtpResendLink.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.batch-book-otp .m-notification.inline.error.is-active {
	display: block;
	margin-bottom: 1rem;
}

.payment-sca-otp #paymentScaOtpResendMsg.is-active,
.payment-sca-otp #forwardsScaOtpResendMsg.is-active {
	display: block;
}

.ach-payment-error.sca-otp-banner {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.5rem;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 57.5em; /* match .m-stages-payment-details-small */
	margin-left: auto;
	margin-right: auto;
	background-color: #fcf2f2;
	border-radius: 8px;
	box-shadow: none;
	padding: 1rem 2.75rem 1rem 2.75rem;
}

/* Match .m-stages--box.m-stages-payments: width 44.5em capped at 92% of parent */
#batchBookScaMaxAttemptsError.ach-payment-error.sca-otp-banner,
#batchBookScaOtpExpiredError.ach-payment-error.sca-otp-banner,
.m-stages-payments > .ach-payment-error.sca-otp-banner {
	width: 44.5em;
	max-width: 92%;
}

@media (max-width: 1024px) {
	#batchBookScaMaxAttemptsError.ach-payment-error.sca-otp-banner,
	#batchBookScaOtpExpiredError.ach-payment-error.sca-otp-banner,
	.m-stages-payments > .ach-payment-error.sca-otp-banner {
		width: 40rem;
		max-width: 92%;
	}
}

.ach-payment-error.sca-otp-banner > .svg-icon-material-outline,
.ach-payment-error.sca-otp-banner > .svg-icon-material-error {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.125rem 0 0;
	color: #f43737;
}

.ach-payment-error.sca-otp-banner > .ach-error-close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
}

.ach-payment-error.sca-otp-banner label {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	text-align: left;
	vertical-align: middle;
	color: #4a4a4a;
	font-size: 0.938rem;
	font-weight: 500;
	white-space: normal;
}

.ach-payment-error.sca-otp-banner label strong {
	display: inline;
	font-weight: 700;
	color: #4a4a4a;
}

.ach-payment-error.sca-otp-banner label strong::after {
	content: ' ';
}

.ach-payment-error.sca-otp-banner label span {
	display: inline;
	font-weight: 400;
	color: #4a4a4a;
}

.ach-payment-error.sca-otp-banner label span strong {
	font-weight: 700;
}

@media (max-width: 480px) {
	.payment-sca-otp .m-dashboard-title h1 {
		font-size: 1.25rem;
	}

	.payment-sca-otp .m-form-field-group.payment-sca-x6 .m-form--input.single input {
		min-height: 3.5rem;
		font-size: 160%;
	}
}
