.ap24-part-search {
	--ap24-search-primary: var(--cforge-ui-color-primary, #ef233c);
	--ap24-search-primary-hover: var(--cforge-ui-color-primary-hover, #d90429);
	--ap24-search-text: var(--cforge-ui-color-text, #212529);
	--ap24-search-muted: var(--cforge-ui-color-muted, #868e96);
	--ap24-search-bg: var(--cforge-ui-color-surface, #ffffff);
	--ap24-search-border: var(--cforge-ui-color-border, #e9ecef);
	--ap24-search-placeholder: var(--cforge-ui-color-muted, #868e96);
	--ap24-search-focus-bg: var(--ap24-search-bg);
	--ap24-search-focus-border: var(--ap24-search-primary);
	--ap24-search-shadow: 0 1px 2px rgba(33, 37, 41, .09);
	--ap24-search-focus-shadow: 0 0 0 3px color-mix(in srgb, var(--ap24-search-focus-border) 14%, transparent);
	--ap24-search-radius: var(--cforge-ui-radius-md, 12px);
	--ap24-search-height: 64px;
	--ap24-search-input-padding: 6px 24px;
	--ap24-search-button-width: 58px;
	--ap24-search-button-bg: var(--ap24-search-primary);
	--ap24-search-button-hover-bg: var(--ap24-search-primary-hover);
	--ap24-search-button-color: #ffffff;
	--ap24-search-button-hover-color: #ffffff;
	--ap24-search-button-radius: 10px;
	--ap24-search-icon-size: 21px;
	--ap24-search-results-bg: var(--ap24-search-bg);
	--ap24-search-results-border: var(--ap24-search-border);
	--ap24-search-results-radius: var(--ap24-search-radius);
	--ap24-search-result-padding: 12px 14px;
	--ap24-search-result-title: var(--ap24-search-text);
	--ap24-search-result-price: var(--ap24-search-primary);
	--ap24-search-result-hover: var(--cforge-ui-color-surface-soft, #f1f3f5);
	position: relative;
	width: 100%;
	color: var(--ap24-search-text);
}

.ap24-part-search,
.ap24-part-search * {
	box-sizing: border-box;
}

.elementor-widget-ap24_part_search,
.elementor-widget-ap24_part_search .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

.ap24-part-search__form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: var(--ap24-search-height);
	background: var(--ap24-search-bg);
	border: 1px solid var(--ap24-search-border);
	border-radius: var(--ap24-search-radius);
	box-shadow: var(--ap24-search-shadow);
	overflow: hidden;
	transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.ap24-part-search__form:focus-within {
	background: var(--ap24-search-focus-bg);
	border-color: var(--ap24-search-focus-border);
	box-shadow: var(--ap24-search-focus-shadow);
}

.ap24-part-search__field-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	min-height: var(--ap24-search-height);
	padding: var(--ap24-search-input-padding);
}

.ap24-part-search__form:has(.ap24-part-search__submit) .ap24-part-search__field-wrapper {
	padding-inline-end: calc(var(--ap24-search-button-width) + 18px);
}

.ap24-part-search__input {
	width: 100%;
	min-width: 0;
	min-height: 100%;
	padding: 0;
	color: var(--ap24-search-text);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
	appearance: none;
}

.ap24-part-search input.ap24-part-search__input,
.ap24-part-search input.ap24-part-search__input:focus,
.ap24-part-search input.ap24-part-search__input:focus-visible {
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
}

.ap24-part-search__input::placeholder {
	color: var(--ap24-search-placeholder);
	font-size: 16px;
	font-weight: 500;
	opacity: 1;
}

.ap24-part-search__spinner {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid color-mix(in srgb, var(--ap24-search-primary) 20%, transparent);
	border-top-color: var(--ap24-search-primary);
	border-radius: 999px;
	animation: ap24-part-search-spin .65s linear infinite;
}

.ap24-part-search__spinner[hidden] {
	display: none;
}

.ap24-part-search__submit {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ap24-search-button-width);
	min-width: var(--ap24-search-button-width);
	height: calc(var(--ap24-search-height) - 2px);
	margin-block: auto;
	padding: 0;
	color: var(--ap24-search-button-color);
	background: var(--ap24-search-button-bg);
	border: 0;
	border-radius: var(--ap24-search-button-radius);
	cursor: pointer;
	transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.ap24-part-search .ap24-part-search__submit,
.ap24-part-search button.ap24-part-search__submit {
	color: var(--ap24-search-button-color);
	background: var(--ap24-search-button-bg);
}

.ap24-part-search__submit:hover,
.ap24-part-search__submit:focus-visible,
.ap24-part-search button.ap24-part-search__submit:hover,
.ap24-part-search button.ap24-part-search__submit:focus-visible {
	color: var(--ap24-search-button-hover-color);
	background: var(--ap24-search-button-hover-bg);
}

.ap24-part-search__submit svg {
	display: block;
	width: var(--ap24-search-icon-size);
	height: var(--ap24-search-icon-size);
	fill: currentColor;
}

.ap24-part-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 999;
	width: 100%;
	max-height: 430px;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--ap24-search-results-bg);
	border: 1px solid var(--ap24-search-results-border);
	border-radius: var(--ap24-search-results-radius);
	box-shadow: var(--ap24-search-shadow);
}

.ap24-part-search__results[hidden] {
	display: none;
}

.ap24-part-search__result-item {
	border-bottom: 1px solid var(--ap24-search-border);
	transition: background-color .2s ease;
}

.ap24-part-search__result-item:last-child {
	border-bottom: 0;
}

.ap24-part-search__result-item:hover,
.ap24-part-search__result-item--active {
	background: var(--ap24-search-result-hover);
}

.ap24-part-search__result-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: var(--ap24-search-result-padding);
	color: inherit;
	text-decoration: none;
}

.ap24-part-search__result-image {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	overflow: hidden;
	background: #f8f9fa;
	border: 1px solid var(--ap24-search-border);
	border-radius: 6px;
}

.ap24-part-search__result-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap24-part-search__result-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ap24-part-search__result-title {
	color: var(--ap24-search-result-title);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ap24-part-search__result-match,
.ap24-part-search__result-sku {
	color: var(--ap24-search-muted);
	font-size: 12px;
	line-height: 1.3;
	word-break: break-word;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ap24-part-search__result-match-label {
	display: inline-flex;
	align-items: center;
	min-height: 18px;
	margin-right: 4px;
	padding: 1px 6px;
	color: var(--ap24-search-button-color);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	background: var(--ap24-search-button-bg);
	border-radius: 999px;
}

.ap24-part-search mark {
	padding: 0 2px;
	color: inherit;
	background: color-mix(in srgb, var(--ap24-search-primary) 18%, transparent);
	border-radius: 3px;
}

.ap24-part-search__result-price {
	color: var(--ap24-search-result-price);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.ap24-part-search__numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 2px;
}

.ap24-part-search__number {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 7px;
	color: var(--ap24-search-muted);
	font-size: 11px;
	line-height: 1.2;
	background: #f1f3f5;
	border-radius: 999px;
}

.ap24-part-search__number.is-primary {
	color: var(--ap24-search-primary);
	background: color-mix(in srgb, var(--ap24-search-primary) 10%, #fff);
}

.ap24-part-search__number--more {
	color: var(--ap24-search-muted);
	font-weight: 700;
}

.ap24-part-search__number-type {
	font-weight: 700;
}

.ap24-part-search__number-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap24-part-search__no-results {
	padding: 18px;
	color: var(--ap24-search-muted);
	font-size: 14px;
	text-align: center;
}

.ap24-part-search__no-results p {
	margin: 0;
}

.ap24-part-search__suggestions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}

.ap24-part-search__suggestions-title {
	color: #6b7280;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ap24-part-search__suggestion {
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #111827;
	cursor: pointer;
	display: flex;
	gap: 7px;
	min-height: 34px;
	padding: 7px 9px;
	text-align: left;
	width: 100%;
}

.ap24-part-search__suggestion:hover,
.ap24-part-search__suggestion:focus-visible {
	background: #f9fafb;
	border-color: var(--ap24-search-button-bg, #e4002b);
	outline: none;
}

.ap24-part-search__suggestion-label {
	background: rgba(228, 0, 43, .09);
	border-radius: 999px;
	color: var(--ap24-search-button-bg, #e4002b);
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	padding: 4px 6px;
	text-transform: uppercase;
}

.ap24-part-search__suggestion-value {
	flex: 1 1 auto;
	font-size: 12px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap24-part-search__suggestion-count {
	color: #6b7280;
	flex: 0 0 auto;
	font-size: 11px;
}

.ap24-part-search__view-all {
	padding: 10px;
	background: #fff;
	border-top: 1px solid var(--ap24-search-results-border);
}

.ap24-part-search__view-all-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	color: var(--ap24-search-button-color);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	background: var(--ap24-search-button-bg);
	border-radius: 8px;
}

.ap24-part-search__view-all-link:hover,
.ap24-part-search__view-all-link:focus-visible {
	color: var(--ap24-search-button-hover-color);
	text-decoration: none;
	background: var(--ap24-search-button-hover-bg);
	outline: none;
}

.ap24-part-search-results-page__inner {
	width: min(1120px, calc(100% - 32px));
	margin: 48px auto;
}

.ap24-part-search-results-page__header {
	margin-bottom: 24px;
}

.ap24-part-search-results-page__summary {
	margin: 6px 0 0;
	color: var(--ap24-search-muted, #6b7280);
	font-size: 15px;
}

.ap24-part-search-results-grid {
	--ap24-results-primary: var(--ap24-search-button-bg, #e01934);
	--ap24-results-primary-hover: var(--ap24-search-button-hover-bg, #c8102e);
	--ap24-results-surface: #fff;
	--ap24-results-text: #111827;
	--ap24-results-muted: #6b7280;
	--ap24-results-border: #e5e7eb;
	--ap24-results-border-soft: #eef0f3;
	--ap24-results-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	--ap24-results-shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.12);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
	gap: 22px;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap24-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	height: 100%;
	padding: 16px;
	color: var(--ap24-results-text);
	font-family: inherit;
	background: var(--ap24-results-surface);
	border: 1px solid var(--ap24-results-border);
	border-radius: 8px;
	box-shadow: var(--ap24-results-shadow);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ap24-product-card--compact {
	flex-direction: row;
	gap: 12px;
	padding: 12px;
}

.ap24-product-card--list {
	flex-direction: row;
	gap: 18px;
	padding: 16px;
}

.ap24-product-card:hover,
.ap24-product-card:focus-within {
	border-color: color-mix(in srgb, var(--ap24-results-primary) 28%, var(--ap24-results-border));
	box-shadow: var(--ap24-results-shadow-hover);
	transform: translateY(-3px);
}

.ap24-product-card *,
.ap24-product-card *::before,
.ap24-product-card *::after {
	box-sizing: border-box;
}

.ap24-product-card__image-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 214px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ap24-results-border-soft);
	border-radius: 8px;
}

.ap24-product-card--compact .ap24-product-card__image-wrapper,
.ap24-product-card--list .ap24-product-card__image-wrapper {
	flex: 0 0 148px;
	min-height: 148px;
}

.ap24-product-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	text-decoration: none;
}

.ap24-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px;
	object-fit: contain;
	background: #fff;
	transition: transform 0.2s ease;
}

.ap24-product-card:hover .ap24-product-card__image img {
	transform: scale(1.035);
}

.ap24-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
}

.ap24-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	min-height: 18px;
	color: var(--ap24-results-muted);
	font-size: 12px;
	line-height: 1.35;
}

.ap24-product-card__category,
.ap24-product-card__sku,
.ap24-product-card__internal-article {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ap24-product-card__internal-article {
	color: #4b5563;
}

.ap24-product-card__title {
	margin: 0;
	color: var(--ap24-results-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.38;
}

.ap24-product-card__title a {
	display: -webkit-box;
	min-height: 2.76em;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ap24-product-card__title a:hover,
.ap24-product-card__title a:focus-visible {
	color: var(--ap24-results-primary);
	text-decoration: none;
	outline: none;
}

.ap24-product-card__references {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 28px;
}

.ap24-product-card__reference {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-height: 26px;
	padding: 4px 8px;
	overflow: hidden;
	color: #374151;
	font-size: 12px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: #f8fafc;
	border: 1px solid var(--ap24-results-border-soft);
	border-radius: 999px;
}

.ap24-product-card__reference:hover,
.ap24-product-card__reference:focus-visible {
	color: var(--ap24-results-primary);
	text-decoration: none;
	background: #fff5f6;
	border-color: color-mix(in srgb, var(--ap24-results-primary) 36%, var(--ap24-results-border));
	outline: none;
}

.ap24-product-card__reference-label {
	color: var(--ap24-results-text);
	font-weight: 700;
}

.ap24-product-card__reference-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ap24-product-card__references-more {
	display: inline-flex;
	position: static;
}

.ap24-product-card__references-summary {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 9px;
	color: var(--ap24-results-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--ap24-results-primary) 28%, var(--ap24-results-border));
	border-radius: 999px;
}

.ap24-product-card__references-summary::-webkit-details-marker {
	display: none;
}

.ap24-product-card__references-more[open] .ap24-product-card__references-summary {
	background: #fff5f6;
	border-color: var(--ap24-results-primary);
}

.ap24-product-card__references-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	width: min(320px, 100%);
	max-height: 240px;
	padding: 10px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--ap24-results-border);
	border-radius: 8px;
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.ap24-product-card__reference--expanded {
	justify-content: flex-start;
	width: 100%;
	border-radius: 8px;
}

.ap24-product-card__reference-action {
	margin-left: auto;
	color: var(--ap24-results-primary);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.ap24-product-card__price {
	min-height: 27px;
	color: var(--ap24-results-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.ap24-product-card__price del {
	margin-right: 6px;
	color: var(--ap24-results-muted);
	font-size: 14px;
	font-weight: 500;
}

.ap24-product-card__price ins {
	color: var(--ap24-results-primary);
	text-decoration: none;
}

.ap24-product-card__stock {
	--ap24-stock-icon-gap: 0.38rem;
	--ap24-stock-icon-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	gap: var(--ap24-stock-icon-gap);
	width: fit-content;
	min-height: 26px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
}

.ap24-product-card__stock-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--ap24-stock-icon-size);
	height: var(--ap24-stock-icon-size);
	color: currentColor;
	line-height: 1;
}

.ap24-product-card__stock-icon svg {
	display: block;
	width: var(--ap24-stock-icon-size);
	height: var(--ap24-stock-icon-size);
	overflow: visible;
	fill: none;
	stroke: currentColor;
}

.ap24-product-card__stock-text {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.ap24-product-card__stock--instock {
	color: #057a55;
	background: #ecfdf3;
}

.ap24-product-card__stock--outofstock {
	color: #991b1b;
	background: #fef2f2;
}

.ap24-product-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.ap24-product-card a.ap24-product-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	background: var(--ap24-results-primary);
	border: 1px solid var(--ap24-results-primary);
	border-radius: 8px;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ap24-product-card a.ap24-product-card__button:hover,
.ap24-product-card a.ap24-product-card__button:focus-visible {
	color: #fff;
	text-decoration: none;
	background: var(--ap24-results-primary-hover);
	border-color: var(--ap24-results-primary-hover);
	box-shadow: 0 8px 18px rgba(224, 25, 52, 0.22);
	outline: none;
}

.ap24-product-card a.ap24-product-card__button--secondary {
	color: var(--ap24-results-primary);
	background: #fff;
	border-color: color-mix(in srgb, var(--ap24-results-primary) 28%, var(--ap24-results-border));
}

.ap24-product-card a.ap24-product-card__button--secondary:hover,
.ap24-product-card a.ap24-product-card__button--secondary:focus-visible {
	color: var(--ap24-results-primary);
	background: #fff5f6;
	border-color: var(--ap24-results-primary);
	box-shadow: none;
}

@keyframes ap24-part-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.ap24-part-search-results-page__inner {
		width: min(100% - 24px, 520px);
		margin: 28px auto 36px;
	}

	.ap24-part-search-results-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ap24-product-card {
		padding: 14px;
	}

	.ap24-product-card__image-wrapper {
		min-height: 190px;
	}

	.ap24-product-card--compact,
	.ap24-product-card--list {
		flex-direction: column;
	}

	.ap24-product-card--compact .ap24-product-card__image-wrapper,
	.ap24-product-card--list .ap24-product-card__image-wrapper {
		flex-basis: auto;
		min-height: 190px;
	}

	.ap24-product-card__references-more {
		position: static;
	}

	.ap24-product-card__references-panel {
		right: auto;
		left: 0;
		width: min(320px, calc(100vw - 48px));
	}

	.ap24-part-search__result-item a {
		align-items: flex-start;
	}

	.ap24-part-search__result-image {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}
}
