.nmi-payment-form,
fieldset.nmi-payment-form,
fieldset.wc-credit-card-form.nmi-payment-form {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #111;
}

.nmi-payment-form *,
.nmi-payment-form *::before,
.nmi-payment-form *::after {
	box-sizing: border-box;
}

.nmi-wallets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
	max-width: 100%;
	min-width: 0;
}

.nmi-wallet-button {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
}

.nmi-wallet-button:empty,
.nmi-wallet-button:not(:has(iframe)) {
	display: none;
}

.nmi-wallet-button iframe {
	display: block;
	width: 100%;
	height: 48px;
	max-height: 48px;
	border: 0;
}

.nmi-wallets:not(:has(iframe)) {
	display: none;
	margin: 0;
}

.nmi-field {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 14px;
}

.nmi-field label {
	display: block;
	margin: 0 0 6px;
	color: #111;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.nmi-text-input,
.nmi-input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 42px;
	letter-spacing: 0;
	appearance: none;
	box-shadow: none;
}

.nmi-text-input::placeholder {
	color: #9ca3af;
}

.nmi-text-input:focus,
.nmi-input:focus-within {
	outline: none;
	border-color: #d1d5db;
}

.nmi-input {
	display: flex;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
}

.nmi-input--card {
	padding-left: 12px;
}

.nmi-card-icon {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin-right: 2px;
}

.nmi-hosted-field {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 42px;
	min-height: 42px;
	background: transparent;
}

.nmi-hosted-field iframe {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 42px !important;
	min-height: 42px !important;
	border: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.nmi-field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nmi-field-row > .nmi-field {
	margin-bottom: 14px;
}

.nmi-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	margin-top: 4px;
	padding: 16px 12px;
	border-radius: 12px;
	background: #f3f4f6;
	max-width: 100%;
	min-width: 0;
}

.nmi-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #111;
	font-size: 13px;
	font-weight: 600;
}

.nmi-trust-item svg {
	flex: none;
}

@media (max-width: 520px) {
	.nmi-field-row,
	.nmi-wallets {
		grid-template-columns: minmax(0, 1fr);
		display: grid;
	}

	.nmi-trust {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
}
