.ifx-custom-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6b7795;
	cursor: pointer;
	transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.ifx-custom-search__toggle:hover,
.ifx-custom-search__toggle:focus-visible {
	color: #5b6cff;
	transform: translateY(-1px);
	opacity: 0.96;
}

.ifx-custom-search__toggle svg {
	display: block;
	width: 34px;
	height: 34px;
}

.ifx-custom-search__ring,
.ifx-custom-search__glass {
	fill: none;
	stroke: currentColor;
}

.ifx-custom-search__ring {
	stroke: #e3e8f1;
}

.ifx-custom-search__glass {
	stroke-width: 1.16667;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ifx-custom-search__toggle:hover .ifx-custom-search__ring,
.ifx-custom-search__toggle:focus-visible .ifx-custom-search__ring {
	stroke: #d7deea;
}

.ifx-header-search {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 12px;
	align-self: center;
	height: 100%;
}

.ifx-header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ifx-header-search__panel {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	width: min(360px, 82vw);
	z-index: 220;
}

.ifx-header-search__panel[hidden] {
	display: none;
}

.ifx-custom-search-form {
	position: relative;
	width: 100%;
}

.ifx-custom-search-form__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.ifx-custom-search-form input[type="search"] {
	width: 100%;
	min-height: 98px;
	border: 2px solid #7486ff;
	border-radius: 28px;
	padding: 18px 30px;
	font-family: "Poppins", sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: #2c3858;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.05);
}

.ifx-custom-search-form button {
	min-height: 54px;
	border: 0;
	border-radius: 16px;
	padding: 12px 18px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	background: #5b6cff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ifx-custom-search-form input[type="search"]:focus {
	outline: none;
}

.ifx-custom-search-form__dropdown {
	position: absolute;
	z-index: 200;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e3e8f1;
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(32, 12, 20, 0.12);
	overflow: hidden;
	max-height: min(60vh, 420px);
	overflow-y: auto;
}

.ifx-custom-search-form__dropdown[hidden] {
	display: none;
}

.ifx-custom-search-form__result,
.ifx-custom-search-form__empty {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 10px;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
}

.ifx-custom-search-form__result + .ifx-custom-search-form__result {
	border-top: 1px solid #e8edf7;
}

.ifx-custom-search-form__result:hover {
	background: #fafbff;
}

.ifx-custom-search-form__result--no-image {
	grid-template-columns: 14px minmax(0, 1fr);
	gap: 12px;
}

.ifx-custom-search-form__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #eef2f8;
	overflow: hidden;
}

.ifx-custom-search-form__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ifx-custom-search-form__thumb--empty {
	width: 14px;
	height: auto;
	min-height: 100%;
	border-radius: 0;
	background: #5b6cff;
}

.ifx-custom-search-form__copy {
	display: block;
	min-width: 0;
}

.ifx-custom-search-form__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.ifx-custom-search-form__type,
.ifx-custom-search-form__sku {
	color: #9aa3bb;
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1;
	text-transform: uppercase;
}

.ifx-custom-search-form__title {
	margin: 2px 0 0;
	color: #2c3858;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.ifx-custom-search-form__excerpt {
	margin: 0;
	color: #6b7795;
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	display: none;
}

.ifx-custom-search-form__all-results {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 16px;
	color: #2c3858;
	font-family: "Poppins", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2.2px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

.ifx-custom-search-form__all-results::after {
	content: "";
	width: 14px;
	height: 10px;
	background: url("../../inflexion-acf-home-blocks/assets/icons/solutions-link-arrow.svg") center / 14px 10px no-repeat;
}

.ifx-custom-search-form--header .ifx-custom-search-form__inner {
	grid-template-columns: 1fr;
	gap: 10px;
}

.ifx-custom-search-form--header input[type="search"] {
	min-height: 46px;
	border: 3px solid #d9e0ee;
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #2c3858;
	box-shadow: none;
}

.ifx-custom-search-form--header input[type="search"]:focus {
	border-color: #5b6cff;
	box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.1);
}

.ifx-custom-search-form--header button {
	display: none;
}

.ifx-custom-search-form--header .ifx-custom-search-form__dropdown {
	top: calc(100% + 10px);
	border-radius: 14px;
	box-shadow: 0 14px 28px rgba(40, 55, 110, 0.14);
}

.ifx-custom-search-form--header .ifx-custom-search-form__result {
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 10px;
	padding: 10px 12px;
}

.ifx-custom-search-form--header .ifx-custom-search-form__result--no-image {
	grid-template-columns: 14px minmax(0, 1fr);
	gap: 12px;
}

.ifx-custom-search-form--header .ifx-custom-search-form__thumb {
	width: 48px;
	height: 48px;
	border-radius: 10px;
}

.ifx-custom-search-form--header .ifx-custom-search-form__thumb--empty {
	width: 14px;
}

.ifx-custom-search-form--header .ifx-custom-search-form__title {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 600;
}

.ifx-custom-search-form--header .ifx-custom-search-form__type,
.ifx-custom-search-form--header .ifx-custom-search-form__sku {
	font-size: 10px;
	font-weight: 700;
}

.ifx-search-hero {
	padding: calc(var(--ifx-header-height) + var(--ifx-admin-bar-height) + 34px) 0 24px;
	background: #f5f7fb;
}

.ifx-search-results-page .ifx-canvas-main {
	padding-top: 0;
}

.ifx-search-wrap {
	width: min(1200px, calc(100vw - 64px));
	margin: 0 auto;
}

.ifx-search-hero__content {
	max-width: 1120px;
}

.ifx-search-hero__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: #f47c6c;
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.42px;
	text-transform: uppercase;
}

.ifx-search-hero__title {
	margin: 0;
	color: #2c3858;
	font-family: "Poppins", sans-serif;
	font-size: clamp(38px, 4.8vw, 72px);
	font-weight: 600;
	line-height: 0.94;
}

.ifx-search-hero__meta,
.ifx-search-hero__query {
	margin: 10px 0 0;
	color: #6b7795;
	font-family: "Mulish", sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

.ifx-search-hero__form {
	max-width: 1000px;
	margin-top: 26px;
}

.ifx-custom-search-form--results .ifx-custom-search-form__inner {
	grid-template-columns: minmax(0, 1fr) 232px;
	gap: 18px;
	align-items: stretch;
}

.ifx-custom-search-form--results input[type="search"] {
	min-height: 60px;
	border-radius: 18px;
	padding: 14px 18px;
	font-size: 18px;
	box-shadow: none;
}

.ifx-custom-search-form--results button {
	min-height: 60px;
	height: 60px;
	border-radius: 18px;
	font-size: 14px;
}

.ifx-search-results-page .ifx-search-page {
	padding: 8px 0 88px;
	background: #ffffff !important;
}

.ifx-search-results-page .ifx-search-wrap {
	position: relative;
	z-index: 1;
}

.ifx-search-results-page .ifx-search-filters,
.ifx-search-results-page .ifx-search-results-area {
	background: #ffffff;
}

.ifx-search-results-page .ifx-search-results-area {
	margin-top: 0;
	padding-top: 0;
	background: #ffffff;
}

.ifx-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	margin-bottom: 28px;
	padding-top: 0;
}

.ifx-search-filters__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 0 0 4px;
	border-radius: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: #2c3858;
	text-decoration: none;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.98px;
	text-transform: uppercase;
}

.ifx-search-filters__item.is-active {
	color: #5b6cff;
	border-bottom-color: #5b6cff;
}

.ifx-search-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

.ifx-search-card {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	min-height: 260px;
	height: 260px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e3e8f1;
	box-shadow: 0 10px 22px rgba(40, 55, 110, 0.1);
}

.ifx-search-card__media {
	display: block;
	height: 100%;
	background: #eef2f8;
}

.ifx-search-card__media img,
.ifx-search-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ifx-search-card__placeholder {
	background: linear-gradient(180deg, rgba(91, 108, 255, 0.98), rgba(84, 104, 255, 0.88));
}

.ifx-search-card__body {
	display: flex;
	flex-direction: column;
	padding: 20px 22px 18px;
}

.ifx-search-card--no-image .ifx-search-card__media {
	background: linear-gradient(180deg, rgba(91, 108, 255, 0.98), rgba(84, 104, 255, 0.88));
}

.ifx-search-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.ifx-search-card__type {
	color: #9aa3bb;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.98px;
	text-transform: uppercase;
}

.ifx-search-card__title {
	margin: 0 0 8px;
	color: #2c3858;
	font-family: "Poppins", sans-serif;
	font-size: clamp(18px, 1.55vw, 24px);
	font-weight: 600;
	line-height: 1.12;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ifx-search-card__title a,
.ifx-search-card__link {
	color: inherit;
	text-decoration: none;
}

.ifx-search-card__excerpt {
	margin: 0;
	color: #6b7795;
	font-family: "Mulish", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	max-width: 48ch;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 4.5em;
	max-height: 4.5em;
}

.ifx-search-card__link {
	margin-top: auto;
	padding-top: 12px;
	color: #2c3858;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.98px;
	text-transform: uppercase;
}

.ifx-search-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
}

.ifx-search-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid #d9e0ee;
	background: #fff;
	color: #2c3858;
	text-decoration: none;
	font-weight: 600;
}

.ifx-search-pagination .page-numbers.current {
	background: #2c3858;
	color: #fff;
}

.ifx-search-empty {
	padding: 42px;
	border-radius: 24px;
	background: #fff;
	text-align: center;
	border: 1px solid #e3e8f1;
}

@media (min-width: 1100px) {
	.ifx-search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ifx-search-wrap {
		width: min(calc(100vw - 32px), 1200px);
	}

	.ifx-search-hero {
		padding-top: calc(var(--ifx-header-height) + var(--ifx-admin-bar-height) + 22px);
	}

	.ifx-custom-search-form--results .ifx-custom-search-form__inner {
		grid-template-columns: 1fr;
	}

	.ifx-search-card {
		grid-template-columns: 1fr;
		min-height: 0;
		height: auto;
	}

	.ifx-search-card__media {
		min-height: 220px;
	}
}

@media (max-width: 767px) {
	.ifx-search-wrap {
		width: min(calc(100vw - 24px), 1200px);
	}

	.ifx-header-search__panel {
		right: -10px;
		width: min(320px, calc(100vw - 24px));
	}

	.ifx-custom-search-form input[type="search"] {
		min-height: 54px;
		border-radius: 16px;
		font-size: 16px;
	}

	.ifx-custom-search-form--header input[type="search"] {
		min-height: 44px;
		border-width: 3px;
		padding: 8px 12px;
		font-size: 15px;
	}

	.ifx-custom-search-form__result,
	.ifx-custom-search-form__empty,
	.ifx-custom-search-form__all-results {
		padding-left: 18px;
		padding-right: 18px;
	}

	.ifx-custom-search-form__title {
		font-size: 18px;
	}
}
