.ecf-product-filter {
	--ecf-accent: #009991;
	--ecf-accent-dark: #007c76;
	--ecf-accent-soft: #e8f6f5;
	--ecf-button: #007c76;
	--ecf-ink: #153b39;
	--ecf-muted: #667775;
	--ecf-border: #dce8e6;
	position: relative;
	width: 100%;
	margin: 0 0 28px;
	padding: 18px;
	border: 1px solid var(--ecf-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(21, 59, 57, 0.045);
	font-family: Inter, sans-serif;
}

.ecf-product-filter__hint {
	margin: 0 0 12px;
	color: #1f2f2d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.ecf-landing-description {
	margin: 0 0 28px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid #dee8e6;
	border-radius: 16px;
	background: #fff;
}

.ecf-landing-description__title {
	margin: 0;
	color: #153b39;
	font-family: "Red Hat Display", sans-serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 750;
	line-height: 1.12;
}

.ecf-landing-description__text {
	max-width: 82ch;
	margin-top: 14px;
	color: #60716f;
	font-size: 16px;
	line-height: 1.7;
}

.ecf-landing-description__text > :last-child {
	margin-bottom: 0;
}

.ecf-product-filter *,
.ecf-product-filter *::before,
.ecf-product-filter *::after {
	box-sizing: border-box;
}

.ecf-product-filter__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.ecf-product-filter__field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.ecf-product-filter__field[hidden] {
	display: none !important;
}

.ecf-product-filter__field > span {
	color: var(--ecf-ink);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.ecf-product-filter select {
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--ecf-border);
	border-radius: 8px;
	background-color: #f8fbfa;
	color: #536260;
	font: inherit;
	font-size: 13px;
	box-shadow: none;
	cursor: pointer;
}

.ecf-product-filter select:hover,
.ecf-product-filter select:focus {
	border-color: var(--ecf-accent);
	background-color: #fff;
	outline: 2px solid rgba(0, 153, 145, 0.12);
	outline-offset: 0;
}

.ecf-product-filter select option:disabled {
	color: #a9b6b4;
}

/* Selected filter parameters are highlighted so shoppers can tell at one
 * glance which criteria are already active. */
.ecf-product-filter__field.is-active > span {
	color: var(--ecf-accent-dark);
}

.ecf-product-filter__field.is-active select {
	border-color: var(--ecf-accent);
	background-color: var(--ecf-accent-soft);
	color: var(--ecf-accent-dark);
	font-weight: 750;
	box-shadow: inset 0 0 0 1px rgba(0, 153, 145, 0.35);
}

.ecf-product-filter.ecf-motor-guide .ecf-product-filter__field.is-active > span {
	color: #ffffff;
}

.ecf-product-filter.ecf-motor-guide .ecf-product-filter__field.is-active select {
	border-color: #00b3aa;
	background-color: rgba(0, 179, 170, 0.4);
	color: #ffffff;
}

.ecf-product-filter__status {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 16px;
	padding: 12px 13px;
	border-radius: 9px;
	background: var(--ecf-accent-soft);
	color: #0f5f5a;
}

.ecf-product-filter__status strong {
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	color: #0f5f5a;
}

.ecf-product-filter__status span {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f5f5a;
}

/* Průvodce výběrem - lepší čitelnost čísel */
.ecf-product-filter.ecf-motor-guide .ecf-product-filter__status {
	background: #007c76;
	color: #ffffff !important;
}

.ecf-product-filter.ecf-motor-guide .ecf-product-filter__status strong,
.ecf-product-filter.ecf-motor-guide .ecf-product-filter__status .ecf-motor-guide__status-text,
.ecf-product-filter.ecf-motor-guide .ecf-product-filter__status strong *,
.ecf-product-filter.ecf-motor-guide .ecf-product-filter__status .ecf-motor-guide__status-text * {
	color: #ffffff !important;
	text-shadow: none;
}

.ecf-product-filter__submit {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 46px;
	margin: 10px 0 0 !important;
	padding: 11px 14px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--ecf-button) !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.ecf-product-filter__submit:not(:disabled):hover,
.ecf-product-filter__submit:not(:disabled):focus-visible {
	background: #005f5a !important;
	color: #fff !important;
}

.ecf-js .ecf-product-filter[data-auto-apply="1"] .ecf-product-filter__submit {
	display: none !important;
}

.ecf-product-filter__submit:disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

.ecf-product-filter__reset {
	display: block;
	width: fit-content;
	margin: 12px auto 0;
	color: var(--ecf-accent-dark) !important;
	font-size: 12px;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ecf-product-filter.is-loading::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.55);
	content: "";
	pointer-events: none;
}

.ecf-landing-description {
	margin: 0 0 28px;
}

/* Defensive fallback for themes that ignore WooCommerce archive display mode. */
.ecf-filter-active ul.products > li.product-category {
	display: none !important;
}

@media (max-width: 767px) {
	.ecf-product-filter {
		padding: 15px;
		border-radius: 12px;
	}
}

/* Homepage motor guide. It uses the same live facets and URL builder as the
 * archive filter; only its presentation differs. */
.ecf-product-filter.ecf-motor-guide {
	--ecf-guide-teal: #00c0b6;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.ecf-motor-guide__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
}

.ecf-motor-guide__step {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.10);
	backdrop-filter: blur(8px);
}

.ecf-motor-guide__step[hidden] {
	display: none !important;
}

.ecf-motor-guide__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.ecf-motor-guide__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--ecf-button);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.ecf-motor-guide__head > strong {
	color: #fff;
	font-family: "Titillium Web", "Red Hat Display", Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.ecf-product-filter.ecf-motor-guide select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 38px 0 13px;
	border: 1px solid rgba(255, 255, 255, 0.30);
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	box-shadow: none;
}

.ecf-product-filter.ecf-motor-guide select:hover,
.ecf-product-filter.ecf-motor-guide select:focus {
	border-color: var(--ecf-guide-teal);
	background-color: rgba(255, 255, 255, 0.18);
	outline: 2px solid rgba(0, 192, 182, 0.38);
}

.ecf-product-filter.ecf-motor-guide select option {
	background: #fff;
	color: #263432;
}

.ecf-motor-guide__actions {
	display: grid;
	grid-template-columns: minmax(220px, 0.45fr) minmax(260px, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 18px;
}

.ecf-motor-guide .ecf-motor-guide__status {
	margin: 0;
	min-height: 56px;
	padding: 13px 16px;
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
}

.ecf-motor-guide .ecf-motor-guide__status strong {
	color: var(--ecf-guide-teal);
	font-size: 25px;
}

.ecf-motor-guide .ecf-motor-guide__status span {
	color: rgba(255, 255, 255, 0.86);
	font-size: 13px;
}

.ecf-motor-guide .ecf-motor-guide__search {
	min-height: 56px;
	margin: 0 !important;
	padding: 16px 34px !important;
	background: var(--ecf-button) !important;
	font-size: 16px !important;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
}

.ecf-motor-guide .ecf-motor-guide__search:not(:disabled):hover {
	background: #005f5a !important;
	transform: translateY(-2px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
}

.ecf-motor-guide .ecf-motor-guide__reset {
	margin: 0;
	color: #fff !important;
	white-space: nowrap;
}

.ecf-motor-guide__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: 14px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(35, 47, 62, 0.72);
}

.ecf-motor-guide__bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.45;
}

.ecf-motor-guide__bottom p strong {
	display: block;
	margin-bottom: 2px;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.ecf-motor-guide__request {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 13px 22px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 8px;
	background: transparent;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.ecf-motor-guide__request:hover {
	border-color: #fff;
	background: #fff;
	color: #2b2b2b !important;
	transform: translateY(-2px);
}

@media (max-width: 1180px) {
	.ecf-motor-guide__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ecf-motor-guide__actions {
		grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr);
	}

	.ecf-motor-guide .ecf-motor-guide__reset {
		grid-column: 1 / -1;
		justify-self: center;
	}
}

@media (max-width: 720px) {
	.ecf-motor-guide__steps,
	.ecf-motor-guide__actions {
		grid-template-columns: 1fr;
	}

	.ecf-motor-guide__step {
		padding: 16px;
	}

	.ecf-motor-guide .ecf-motor-guide__reset {
		grid-column: auto;
	}

	.ecf-motor-guide__bottom {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px;
	}

	.ecf-motor-guide__request {
		width: 100%;
	}
}
