/*
 * NR Core Search - PRST
 * Le déclencheur (.search_btn) et la structure de la modale
 * (.modal-window, .modal-window-full, .modal-search, .content, .form-search,
 * .input-group, #searchsubmit, .popular-searches) héritent déjà du style du
 * thème (voir _header.scss / _modal.scss). Ce fichier ne couvre que les
 * éléments propres à cet addon (préfixe nrcsp-*) : boutons vocal/effacer,
 * zone de résultats, suggestions, "vouliez-vous dire", lien "voir tout".
 */

.nrcsp__field-group {
	position: relative;
}

.nrcsp__voice,
.nrcsp__clear {
	background: none;
	border: none;
	cursor: pointer;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: var(--theme-color__primary);
	order: 1;
}

.nrcsp__voice::before {
	content: "\1F3A4";
}

.nrcsp__clear::before {
	content: "\2715";
}

.nrcsp__voice[aria-pressed="true"] {
	color: var(--theme-color__secondary);
}

.nrcsp__results {
	width: 100%;
	max-width: 700px;
	margin-top: 20px;
	text-align: left;
}

.nrcsp__state {
	color: var(--theme-color__white);
	font-size: 0.95rem;
	text-align: center;
	margin: 0 0 10px;
}

.nrcsp__dym {
	font-size: 0.9rem;
	color: var(--theme-color__white);
	text-align: center;
	margin: 0 0 10px;
}

.nrcsp__dym a {
	color: var(--theme-color__secondary);
	text-decoration: underline;
	margin-left: 4px;
}

.nrcsp__suggestions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 50vh;
	overflow-y: auto;
}

.nrcsp__suggestion-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 6px;
	color: var(--theme-color__white);
	text-decoration: none !important;
	transition: background-color 0.2s;

	&:hover {
		text-decoration: none !important;

		.nrcsp__suggestion-text, .nrcsp__suggestion-type {
			color: var(--theme-color__7);
		}
	}
}

.nrcsp__suggestion-label:hover,
.nrcsp__suggestion.is-active .nrcsp__suggestion-label {
	background-color: rgba(255, 255, 255, 0.12);
}

.nrcsp__suggestion-text {
	flex: 1 1 auto;
	min-width: 0;
}

.nrcsp__suggestion-label strong {
	color: var(--theme-color__secondary);
	font-weight: 700;
}

.nrcsp__suggestion-type {
	flex: 0 0 auto;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.65;
	white-space: nowrap;
	margin-top: 2px;
}

.nrcsp__view-all {
	text-align: center;
	margin-top: 12px;

	a:hover {
		color: var(--theme-color__7);
	}
}

.nrcsp__view-all a {
	color: var(--theme-color__secondary);
	font-weight: 600;
	text-decoration: underline;
}

.nrcsp__popular {
	margin-top: 20px;
	text-align: center;
}

.nrcsp__popular-title {
	color: var(--theme-color__white);
	font-weight: 600;
	margin: 0 0 12px;
}

.nrcsp__popular-title--categories {
	margin-top: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--theme-color__white);
}

.nrcsp__popular-list {
	ul, li, a {
		color: var(--theme-color__white);
	}

	a:hover {
		color: var(--theme-color__4);
	}
}

.nrcsp__popular-list--categories {
	margin-top: 12px;
}
