/* Helloprev — Recherche Entreprise. Personnaliser via les variables --hpcl-* sur .hpcl
   ou sur la classe de conteneur définie dans l'éditeur Fluent Forms. */
.hpcl {
	--hpcl-primary: #2221e5;
	--hpcl-accent: #f7802f;
	--hpcl-light: #f3f3ff;
	--hpcl-dark: #201e73;
	--hpcl-font: Poppins, system-ui, sans-serif;
	--hpcl-title-font: Montserrat, Nordique, Poppins, system-ui, sans-serif;
	--hpcl-radius: 8px;
	font-family: var(--hpcl-font);
}

.hpcl-field {
	position: relative;
}

.hpcl.is-loading .hpcl-field::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--hpcl-light);
	border-top-color: var(--hpcl-primary);
	border-radius: 50%;
	animation: hpcl-spin 0.7s linear infinite;
}

@keyframes hpcl-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hpcl.is-loading .hpcl-field::after {
		animation-duration: 2s;
	}
}

.hpcl-list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: min(60vh, 360px);
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid var(--hpcl-primary);
	border-radius: var(--hpcl-radius);
	box-shadow: 0 8px 24px rgba(32, 30, 115, 0.15);
}

.hpcl-list[hidden],
.hpcl-card[hidden],
.hpcl-manual[hidden] {
	display: none;
}

.hpcl-option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border-radius: calc(var(--hpcl-radius) - 2px);
	cursor: pointer;
}

.hpcl-option:hover,
.hpcl-option[aria-selected="true"] {
	background: var(--hpcl-light);
	box-shadow: inset 3px 0 0 var(--hpcl-primary);
}

.hpcl-option-name {
	font-weight: 600;
	color: var(--hpcl-dark);
}

.hpcl-option-meta {
	font-size: 0.85em;
	color: #55557a;
}

.hpcl-help {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-top: 6px;
	font-size: 0.875em;
	color: #55557a;
}

.hpcl-status:empty {
	display: none;
}

.hpcl.is-error .hpcl-status {
	color: #a4470f;
}

.hpcl-manual,
.hpcl-change {
	padding: 0;
	font: inherit;
	font-weight: 600;
	color: var(--hpcl-primary);
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.hpcl-manual:hover,
.hpcl-change:hover {
	color: var(--hpcl-dark);
}

.hpcl-manual:focus-visible,
.hpcl-change:focus-visible {
	outline: 2px solid var(--hpcl-accent);
	outline-offset: 2px;
}

.hpcl-card {
	margin-top: 12px;
	padding: 16px;
	background: var(--hpcl-light);
	border-left: 4px solid var(--hpcl-primary);
	border-radius: var(--hpcl-radius);
}

.hpcl-card-title {
	margin: 0 0 8px;
	font-family: var(--hpcl-title-font);
	font-weight: 700;
	color: var(--hpcl-dark);
}

.hpcl-card-data {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 16px;
	margin: 0;
	font-size: 0.9em;
}

.hpcl-card-data dt {
	font-weight: 600;
	color: var(--hpcl-dark);
}

.hpcl-card-data dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.hpcl-card-note {
	margin: 8px 0;
	font-size: 0.8em;
	color: #55557a;
}

@media (max-width: 480px) {
	.hpcl-card-data {
		grid-template-columns: 1fr;
	}

	.hpcl-card-data dd {
		margin-bottom: 6px;
	}
}
