/*
--------------------------------------
Container
--------------------------------------
*/

.pl-search {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: calc(300px + (670 - 300) * ((100vw - 320px) / (1920 - 320)));
	padding-bottom: calc(30px + (110 - 30) * ((100vw - 320px) / (1920 - 320)));
	padding-top: calc(16px + (32 - 16) * ((100vw - 320px) / (1920 - 320)));
	margin: 0 auto;
}

/*
--------------------------------------
Search bar
--------------------------------------
*/

.pl-search__bar,
.bwa-ia-search-container .bwa-ia-search-form {
	display: flex;
	align-items: center;
	border-radius: 50px;
	border: 1px solid #FEA8FF;
	background: linear-gradient(90deg, rgba(153, 187, 255, 0.15) 0%, rgba(124, 155, 255, 0.06) 100%);
	box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(15px);
	padding: 8px;
}

/* input */

.pl-search__input,
.bwa-ia-search-input {
	font-size: 20px;
	font-weight: 600;
	background: transparent;
	color: #fff !important;
	border: none !important;
}

.bwa-ia-search-form {
	height: 66px;
}

.pl-search__input:focus-visible,
.bwa-ia-search-input:focus-visible {
	color: #fff !important;
	background: transparent;
	border: none !important;
	outline: none !important;
}

/* placeholder */

.pl-search__input::placeholder,
.bwa-ia-search-input::placeholder {
	background: linear-gradient(92deg, #FF72F2 0.97%, #D0B9FF 50.49%, #B8D4FF 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0.4px;
}

/* Bouton */

.pl-search__button,
.bwa-ia-search-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: #ffffff;
	background: linear-gradient(135deg, #a32bff 0%, #5f5bff 40%, #40b0ff 100%);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	white-space: nowrap;
}

.pl-search__button:hover,
.bwa-ia-search-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
	opacity: 0.95;
}

.pl-search__button:active,
.bwa-ia-search-submit:active {
	transform: translateY(0);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* Icône du bouton */

.pl-search__button-icon {
	display: flex;
	font-size: 18px;
}

/* Chips */

.pl-search__chips {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.pl-search__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px dashed rgba(255, 255, 255, 0.30);
	border-radius: 12px;
	color: #ffffff;
	cursor: grab;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	padding: 10px 18px;
}

.pl-search__chip:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pl-search__chip:active {
	cursor: grabbing;
	transform: translateY(0);
	box-shadow: none;
}

.pl-search__chip-icon {
	display: flex;
	font-size: 15px;
	opacity: 0.8;
}

/* Items masqués par la recherche */

.pl-search__hidden {
	display: none !important;
}

.pl-search__no-results {
	display: none;
	padding: 2rem;
	text-align: center;
	color: #666;
}

.pl-search__no-results.is-visible {
	display: block;
}

.pl-search__input-wrapper {
	position: relative;
	flex: 1;
}

.pl-search__input {
	width: 100%;
	padding-right: 40px;
}

/* bouton pour vider la search */

.pl-search__clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pl-search__clear:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-50%) scale(1.05);
}

.pl-search__clear svg {
	display: block;
}

/*pas de résultats */

.pl-search__no-results {
	font-size: 20px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.9);
	border: 1px dashed rgba(255, 255, 255, 0.25);
	text-align: center;
	margin-top: 16px;
	padding: 12px 16px;
}

.pl-search__no-results strong {
	font-weight: 600;
}