.ifx-custom-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	/* Default color is set by .ifx-header-search__toggle below for the site
	   header (white, matching Figma node 4922:17856 search-icon); this
	   generic default only applies if the toggle is used somewhere else. */
	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: var(--ifx-primary, #ba0c2f);
	transform: translateY(-1px);
	opacity: 0.96;
}

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

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

/* Site header instance: plain white search icon on the red/gradient nav
   (Figma node 4922:17848), brand-red hover instead of the plugin's default
   purple — overrides the generic toggle color above. */
.ifx-header-search__toggle {
	color: #fff;
}

.ifx-header-search__toggle:hover,
.ifx-header-search__toggle:focus-visible {
	color: var(--ifx-primary, #ba0c2f);
	transform: none;
	opacity: 1;
}

.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%;
}

/* Mobile off-canvas nav (#mobile-nav): the menu items above this form are
   inset via #menu-mobile's max-width:282px (centered), but this form is a
   plain sibling with no such wrapper, so it was spanning edge-to-edge with
   no side margin. Match the same 282px inset. */
.mobile-nav .ifx-custom-search-form {
	max-width: 282px;
	margin: 0 auto;
}

.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 var(--ifx-primary, #ba0c2f);
	border-radius: 28px;
	padding: 18px 30px;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: #212F37;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.08);
}

.ifx-custom-search-form button {
	min-height: 54px;
	border: 0;
	border-radius: 16px;
	padding: 12px 18px;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	background: var(--ifx-primary, #ba0c2f);
	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: var(--ifx-primary, #ba0c2f);
}

.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 {
	color: #9aa3bb;
	font-family: "Alright Sans", Verdana, 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: #212F37;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

/* Sits below the title now, not next to the type badge — same family/case
   as the badge but smaller, so it reads as secondary info under the name. */
.ifx-custom-search-form__sku {
	display: block;
	margin-top: 2px;
	color: #9aa3bb;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
}

.ifx-custom-search-form__excerpt {
	margin: 0;
	color: #6b7795;
	font-family: "Alright Sans", Verdana, 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: var(--ifx-primary, #ba0c2f);
	font-family: "Alright Sans", Verdana, 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: #212F37;
	box-shadow: none;
}

.ifx-custom-search-form--header input[type="search"]:focus {
	border-color: var(--ifx-primary, #ba0c2f);
	box-shadow: 0 0 0 3px rgba(186, 12, 47, 0.15);
}

.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 {
	font-size: 10px;
	font-weight: 700;
}

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

.ifx-search-hero {
	/* Was calc(var(--ifx-header-height) + var(--ifx-admin-bar-height) + 34px) —
	   those custom properties came from inflexionsoftware.com's own canvas
	   header component and are never set on this site. This site's
	   #main-nav is a fixed 121px bar positioned absolute (not in normal
	   flow), so anything that follows it needs its own top offset. */
	padding: 155px 0 40px;
	/* Same pattern-hero background already used site-wide on the product
	   and catalog headers (.product_single_hero / .product_catalog_hero) —
	   reusing it instead of inventing a new gradient. */
	background-color: #8b0027;
	background-image: url("/wp-content/uploads/2026/09/pattern-hero.png");
	background-size: cover;
	background-position: center;
}

.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: rgba(255, 255, 255, 0.85);
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.42px;
	text-transform: uppercase;
}

.ifx-search-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: clamp(38px, 4.8vw, 72px);
	font-weight: 900;
	line-height: 0.94;
}

.ifx-search-hero__meta,
.ifx-search-hero__query {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-family: "Alright Sans", Verdana, 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: none;
	border-radius: 999px;
	padding: 14px 24px;
	font-size: 18px;
	box-shadow: none;
}

.ifx-custom-search-form--results button {
	min-height: 60px;
	height: 60px;
	border-radius: 999px;
	font-size: 14px;
	/* Same solid brand red as every other button on the site
	   (.solid-btn a / .product_single_buy_btn a) — no blended tint. */
	background: var(--ifx-primary, #ba0c2f);
}

.ifx-search-results-page .ifx-search-page {
	/* Was 8px — the filter tabs sat almost flush against the hero. */
	padding: 40px 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: #212F37;
	text-decoration: none;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.98px;
	text-transform: uppercase;
}

.ifx-search-filters__item.is-active {
	color: var(--ifx-primary, #ba0c2f);
	border-bottom-color: var(--ifx-primary, #ba0c2f);
}

.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, var(--ifx-primary, #ba0c2f), #8b0027);
}

.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, var(--ifx-primary, #ba0c2f), #8b0027);
}

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

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

/* Sits below the title now, not next to the type badge — same family/case
   as the badge but smaller, so it reads as secondary info under the name. */
.ifx-search-card__sku {
	display: block;
	margin: -4px 0 10px;
	color: #9aa3bb;
	font-family: "Alright Sans", Verdana, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ifx-search-card__title {
	margin: 0 0 8px;
	color: #212F37;
	font-family: "Alright Sans", Verdana, 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: "Alright Sans", Verdana, 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: #212F37;
	font-family: "Alright Sans", Verdana, 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: #212F37;
	text-decoration: none;
	font-weight: 600;
}

.ifx-search-pagination .page-numbers.current {
	background: var(--ifx-primary, #ba0c2f);
	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 {
		/* Same undefined custom properties called out in the base rule
		   above — calc() with an unset var (no fallback) is invalid at
		   computed-value time, which resolves this declaration to its
		   initial value (0), not to the base rule's 155px. That left the
		   hero title with no top offset at all on mobile, hidden under the
		   fixed header. */
		padding-top: 100px;
	}

	.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;
	}
}
