.cp-ar-wrapper {
	position: relative;
}

/* Caja que ancla el dropdown de sugerencias debajo del campo de búsqueda. */
.cp-ar-busqueda-box {
	position: relative;
}

/* Refuerza el ocultado de campoBusqueda/campoDireccion frente a temas que
   fuerzan display en los .input-text. */
.cp-ar-wrapper [hidden] {
	display: none !important;
}

.cp-ar-wrapper input.cp-ar-confirmado {
	border-color: #4caf50 !important;
	background-image: none;
}

.cp-ar-bloqueado {
	background-color: #f0f0f1 !important;
	cursor: not-allowed !important;
	opacity: 0.85;
}

.cp-ar-select2-bloqueado {
	pointer-events: none;
	opacity: 0.85;
}

/* Fallback: Google no devolvió provincia/localidad y el cliente debe cargarla. */
.cp-ar-manual {
	border-color: #f0b849 !important;
}

.cp-ar-manual + .select2 .select2-selection {
	border-color: #f0b849 !important;
}

.cp-ar-provincia-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: #b26a00;
}

.cp-ar-provincia-hint[hidden] {
	display: none !important;
}

.cp-ar-cambiar-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	background: none;
	border: none;
	color: #2271b1;
	text-decoration: underline;
	font-size: 0.85em;
	cursor: pointer;
}

.cp-ar-cambiar-btn:hover {
	color: #135e96;
}

.cp-ar-dropdown {
	position: absolute;
	z-index: 9999;
	top: 100%;
	left: 0;
	right: 0;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.15 );
	max-height: 280px;
	overflow-y: auto;
}

.cp-ar-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 12px;
	cursor: pointer;
	line-height: 1.3;
}

.cp-ar-item:not(.cp-ar-item--vacio):hover,
.cp-ar-item--activo {
	background: #f0f6fc;
}

.cp-ar-item__principal {
	font-weight: 600;
	color: #1d2327;
}

.cp-ar-item__secundario {
	font-size: 0.85em;
	color: #646970;
}

.cp-ar-item--vacio {
	cursor: default;
	color: #646970;
	font-style: italic;
}

.cp-ar-item--vacio:hover {
	background: transparent;
}

/* "No encuentro mi dirección · cargarla a mano": siempre al pie del dropdown. */
.cp-ar-item--manual {
	margin-top: 4px;
	border-top: 1px solid #e0e0e0;
	padding-top: 10px;
	color: #2271b1;
	font-size: 0.9em;
	font-weight: 600;
}

.cp-ar-item--manual:hover {
	background: #f0f6fc;
	color: #135e96;
}
