/* Buscador CP Argentina
 *
 * Estilos deliberadamente neutros: heredan tipografia y colores del tema para
 * no desentonar con el checkout. Solo se define lo estructural.
 */

.bcp-anchor {
	position: relative;
	display: block;
}

.bcp-panel {
	position: absolute;
	z-index: 9999;
	top: 2px;
	left: 0;
	right: 0;
	max-height: 16rem;
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.18 );
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.12 );
	font-size: 0.95em;
	line-height: 1.3;
}

.bcp-panel[hidden] {
	display: none;
}

.bcp-panel li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75em;
	margin: 0;
	padding: 0.5em 0.75em;
	cursor: pointer;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.05 );
}

.bcp-panel li:last-child {
	border-bottom: 0;
}

.bcp-panel li:hover,
.bcp-panel li.bcp-activo {
	background: rgba( 0, 0, 0, 0.06 );
}

.bcp-panel .bcp-nombre {
	flex: 1 1 auto;
}

.bcp-panel .bcp-cp {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
	font-size: 0.9em;
}

.bcp-panel .bcp-vacio {
	cursor: default;
	opacity: 0.6;
}

.bcp-panel .bcp-vacio:hover {
	background: transparent;
}

.bcp-aviso {
	margin: 0.35em 0 0;
	font-size: 0.85em;
	line-height: 1.35;
	opacity: 0.85;
}

.bcp-aviso[data-tipo="ok"] {
	color: #1a7f37;
}

.bcp-aviso[data-tipo="aviso"] {
	color: #9a6700;
}

.bcp-aviso[data-tipo="cargando"] {
	opacity: 0.6;
}

.bcp-bloqueado {
	background-color: rgba( 0, 0, 0, 0.04 );
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ *
 * Buscador publico (shortcode)
 * ------------------------------------------------------------------ */

.bcp-buscador {
	max-width: 46rem;
}

.bcp-buscador .bcp-fila {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.bcp-buscador .bcp-fila > * {
	flex: 1 1 14rem;
	min-width: 0;
}

.bcp-buscador input,
.bcp-buscador select {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid rgba( 0, 0, 0, 0.25 );
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.bcp-tabla {
	width: 100%;
	border-collapse: collapse;
}

.bcp-tabla th,
.bcp-tabla td {
	text-align: left;
	padding: 0.5em 0.6em;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}

.bcp-tabla th {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
}

.bcp-tabla .bcp-col-cp {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.bcp-estado {
	margin: 0.75rem 0 0;
	opacity: 0.7;
	font-size: 0.9em;
}

.bcp-fuente {
	margin-top: 1.25rem;
	font-size: 0.8em;
	opacity: 0.55;
}
