/**
 * Gravity Forms SEPA Fields - front-end styling.
 *
 * The Gravity Forms theme sets form inputs to width:100% with a fairly
 * specific selector, which would force every IBAN block onto its own line.
 * We therefore pin the block width with !important and lay the blocks out
 * in a non-stretching flex row.
 *
 * @since 1.0.0
 */

.ginput_container_iban .sp-iban-field {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.ginput_container_iban .sp-iban-field .sp-iban-block {
	flex: 0 0 auto;
	width: 3.4rem !important;
	min-width: 0;
	padding: 0.3rem;
	box-sizing: border-box;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.08rem;
	font-variant-numeric: tabular-nums;
}

.ginput_container_bic .sp-bic-input {
	width: 14rem !important;
	max-width: 100%;
	box-sizing: border-box;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
}

/**
 * Creditor Reference ( ISO 11649 ). Wider than the BIC input because a complete reference is up to
 * 25 characters. Tabular figures keep a long numeric reference readable, and the monospace-ish
 * letter-spacing makes miscounted digits stand out - which is the point of a reference the payer has
 * to quote unchanged.
 *
 * @since 1.3.0
 */

.ginput_container_iso11649 .sp-iso11649-input {
	width: 20rem !important;
	max-width: 100%;
	box-sizing: border-box;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	font-variant-numeric: tabular-nums;
}
