/* NW Base Chile — formulario de facturación del checkout.
   Hereda la tipografía y los colores del tema: solo ordena y marca estados. */

.nwbc-facturacion {
	margin: 1.25em 0;
}

.nwbc-pide {
	display: flex;
	align-items: center;
	gap: .6em;
	cursor: pointer;
	font-weight: 600;
}

.nwbc-pide input {
	width: 1.15em;
	height: 1.15em;
	margin: 0;
}

.nwbc-campos {
	margin: 1em 0 0;
	padding: 1em 1.1em .4em;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 6px;
}

.nwbc-campos[hidden] {
	display: none;
}

.nwbc-campos legend {
	padding: 0 .35em;
	font-weight: 600;
}

.nwbc-campo {
	display: flex;
	flex-direction: column;
	gap: .3em;
	margin-bottom: .9em;
	min-width: 0;
}

.nwbc-campo label {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	font-size: .92em;
	font-weight: 600;
}

.nwbc-campo input,
.nwbc-campo select {
	width: 100%;
	box-sizing: border-box;
	padding: .6em .7em;
	border: 1px solid rgba(0, 0, 0, .28);
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.nwbc-campo select:disabled {
	opacity: .6;
}

.nwbc-campo input:focus-visible,
.nwbc-campo select:focus-visible,
.nwbc-pide input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nwbc-contador {
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	opacity: .65;
}

.nwbc-contador.nwbc-excede {
	color: #b3261e;
	opacity: 1;
	font-weight: 600;
}

.nwbc-ayuda {
	margin: 0;
	font-size: .85em;
	opacity: .75;
}

.nwbc-error {
	margin: 0;
	font-size: .87em;
	color: #b3261e;
}

.nwbc-error:empty {
	display: none;
}

.nwbc-con-error input,
.nwbc-con-error select {
	border-color: #b3261e;
}

.nwbc-fila {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 .8em;
}

@media (max-width: 640px) {
	.nwbc-fila {
		grid-template-columns: 1fr;
	}
}
