:root {
	--wcaf-accent: #7c3aed;
	--wcaf-accent-2: #a855f7;
	--wcaf-accent-soft: #f5edff;
	--wcaf-text: #111827;
	--wcaf-muted: #6b7280;
	--wcaf-bg: #ffffff;
	--wcaf-border: #e5e7eb;
	--wcaf-border-2: #d1d5db;
	--wcaf-pill-bg: #f3f4f6;
	--wcaf-pill-text: #111827;
	--wcaf-pill-border-color: #e5e7eb;
	--wcaf-pill-hover-bg: #ffffff;
	--wcaf-pill-hover-text: #111827;
	--wcaf-pill-hover-border-color: rgba(124,58,237,.35);
	--wcaf-pill-active-bg: linear-gradient(135deg, #f5edff 0%, #ede9fe 100%);
	--wcaf-pill-active-text: #4c1d95;
	--wcaf-pill-active-border-brush: linear-gradient(135deg, rgba(124,58,237,.65) 0%, rgba(168,85,247,.7) 100%);
	--wcaf-pill-badge-bg: #7c3aed;
	--wcaf-pill-badge-text: #ffffff;
	--wcaf-pill-badge-border-color: transparent;
	--wcaf-pill-active-badge-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	--wcaf-pill-active-badge-text: #ffffff;
	--wcaf-pill-active-badge-border-brush: linear-gradient(135deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 100%);
	--wcaf-button-bg: #7c3aed;
	--wcaf-button-text: #ffffff;
	--wcaf-button-hover-bg: #6d28d9;
	--wcaf-button-hover-text: #ffffff;
	--wcaf-clear-button-bg: #f3f4f6;
	--wcaf-clear-button-text: #111827;
	--wcaf-clear-button-hover-bg: #e5e7eb;
	--wcaf-clear-button-hover-text: #111827;
	--wcaf-panel-bg: #ffffff;
	--wcaf-panel-border-color: #e5e7eb;
	--wcaf-filter-item-bg: #ffffff;
	--wcaf-filter-item-text: #111827;
	--wcaf-filter-item-hover-bg: #f9fafb;
	--wcaf-filter-item-hover-text: #111827;
	--wcaf-filter-item-selected-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	--wcaf-filter-item-selected-text: #4c1d95;
	--wcaf-filter-item-selected-border-color: transparent;
	--wcaf-checkbox-border-color: #d1d5db;
	--wcaf-checkbox-bg: #ffffff;
	--wcaf-checkbox-selected-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	--wcaf-checkbox-selected-border-color: transparent;
	--wcaf-checkbox-focus-ring-color: rgba(124,58,237,.18);
	--wcaf-results-bg: #ffffff;
	--wcaf-results-text: #111827;
	--wcaf-count-text: #111827;
	--wcaf-price-input-bg: #ffffff;
	--wcaf-price-input-text: #111827;
	--wcaf-price-input-border-color: #e5e7eb;
	--wcaf-price-input-focus-border-color: rgba(124,58,237,.55);
	--wcaf-pagination-bg: #ffffff;
	--wcaf-pagination-text: #111827;
	--wcaf-pagination-hover-bg: #f5edff;
	--wcaf-pagination-hover-text: #7c3aed;
	--wcaf-pagination-active-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	--wcaf-pagination-active-text: #ffffff;
	--wcaf-gap: 12px;
	--wcaf-border-width: 1px;
	--wcaf-radius: 16px;
	--wcaf-control-pad-y: 8px;
	--wcaf-control-pad-x: 12px;
	--wcaf-font-size: 14px;
	--wcaf-dropdown-z-index: 100000;
	--wcaf-shadow-sm: 0 6px 18px rgba(124,58,237,.10);
	--wcaf-shadow-md: 0 10px 30px rgba(0,0,0,.08);
	--wcaf-shadow-accent: 0 10px 22px rgba(124,58,237,.28);
}

.wcaf {
	margin: 0 0 18px;
	font-family: inherit;
	color: var(--wcaf-text);
}
.wcaf * { box-sizing: border-box; }
.wcaf a, .wcaf button, .wcaf input { font: inherit; }
.wcaf-bar {
	display: flex;
	width: -moz-fit-content;
	width: fit-content;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wcaf-gap);
	margin-bottom: 10px;
	padding: 0.44rem;
	max-width: 100%;
	border: 1px solid var(--wcaf-bar-border-color, var(--wcaf-border));
	border-radius: 9999px;
	background: var(--wcaf-bar-bg, var(--wcaf-bg));
	box-shadow: 0 8px 22px var(--wcaf-bar-shadow-color, rgba(17, 24, 39, 0.06));
}
@media (max-width: 768px) {
	.wcaf-bar {
		display: flex;
		width: 100%;
		max-width: none;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		white-space: nowrap;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-padding-inline: 0.44rem;
		padding: 0.44rem;
		position: sticky;
		top: 15px;
		z-index: 50;
		background: var(--wcaf-sticky-bar-bg, var(--wcaf-bar-bg, var(--wcaf-bg)));
		color: var(--wcaf-sticky-bar-text);
		border-color: var(--wcaf-sticky-bar-border-color, var(--wcaf-bar-border-color, var(--wcaf-border)));
		box-shadow: 0 8px 22px var(--wcaf-sticky-shadow-color, var(--wcaf-bar-shadow-color, rgba(17, 24, 39, 0.06)));
	}
	.wcaf-pill { scroll-snap-align: start; }
	.wcaf.wcaf-is-stuck .wcaf-bar {
		background: var(--wcaf-sticky-bar-bg, var(--wcaf-bar-bg, var(--wcaf-bg)));
		border-color: var(--wcaf-sticky-bar-border-color, var(--wcaf-bar-border-color, var(--wcaf-border)));
		box-shadow: 0 8px 22px var(--wcaf-sticky-shadow-color, var(--wcaf-bar-shadow-color, rgba(17, 24, 39, 0.06)));
	}
}
.wcaf-sticky-sentinel { height: 1px; width: 100%; }
.wcaf-pill { position: relative; display: inline-block; }
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn {
	background: var(--wcaf-pill-bg) !important;
	color: var(--wcaf-pill-text) !important;
	border: var(--wcaf-border-width) solid var(--wcaf-pill-border-color) !important;
	border-radius: 9999px !important;
	padding: var(--wcaf-control-pad-y) var(--wcaf-control-pad-x) !important;
	font-weight: 400 !important;
	font-size: 12px !important;
	line-height: 1.15 !important;
	cursor: pointer !important;
	text-transform: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 6px;
	position: relative;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
	box-sizing: border-box !important;
	height: auto !important;
	min-height: var(--wcaf-current-pill-min-height, 40px);
	transform: none;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn:hover {
	background: var(--wcaf-pill-hover-bg) !important;
	color: var(--wcaf-pill-hover-text) !important;
	border-color: var(--wcaf-pill-hover-border-color) !important;
	box-shadow: 0 6px 18px var(--wcaf-pill-hover-shadow-color);
	outline: none;
}
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn:focus {
	outline: none;
}
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn:focus-visible {
	background: var(--wcaf-pill-hover-bg) !important;
	color: var(--wcaf-pill-hover-text) !important;
	border-color: var(--wcaf-pill-hover-border-color) !important;
	box-shadow: 0 0 0 3px var(--wcaf-checkbox-focus-ring-color), 0 6px 18px var(--wcaf-pill-hover-shadow-color);
}
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn.has-active {
	color: var(--wcaf-pill-active-text) !important;
	background: var(--wcaf-pill-active-composite-bg, var(--wcaf-pill-active-bg)) !important;
	border-color: var(--wcaf-pill-active-border-color-rendered, transparent) !important;
}
.wcaf-pill__btn .wcaf-caret {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 1;
	margin-left: 0;
	color: currentColor;
}
.wcaf-pill__btn .wcaf-btntext {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	line-height: 1.15;
	white-space: nowrap;
}
.wcaf-pill__btn .wcaf-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	flex-shrink: 0;
	width: 22px;
	min-width: 22px;
	height: 22px;
	min-height: 22px;
	padding: 0;
	border-radius: 9999px;
	box-sizing: border-box;
	line-height: 1;
	font-size: 11px;
	font-weight: 700;
	background: var(--wcaf-pill-badge-bg);
	color: var(--wcaf-pill-badge-text);
	border: 1px solid var(--wcaf-pill-badge-border-color);
	pointer-events: none;
	box-shadow: none;
}
.wcaf-pill__btn .wcaf-badge[hidden] {
	display: none !important;
}
.wcaf-pill__btn.has-active .wcaf-badge {
	display: inline-flex !important;
	color: var(--wcaf-pill-active-badge-text);
	background: var(--wcaf-pill-active-badge-composite-bg, var(--wcaf-pill-active-badge-bg));
	border: 1px solid var(--wcaf-pill-active-badge-border-color-rendered, transparent);
	box-shadow: none;
}
.wcaf-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: var(--wcaf-dropdown-z-index);
	background: var(--wcaf-panel-bg);
	border: var(--wcaf-border-width) solid var(--wcaf-panel-border-color);
	border-radius: var(--wcaf-radius);
	box-shadow: var(--wcaf-shadow-md), 0 1px 0 rgba(0,0,0,.04);
	min-width: 260px;
	animation: wcafFadeIn .18s ease;
}
.wcaf-dropdown[hidden] { display: none !important; }
@keyframes wcafFadeIn { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform: translateY(0); } }
.wcaf-dd-portal { position: fixed !important; z-index: var(--wcaf-dropdown-z-index, 100000); color: var(--wcaf-text); }
.wcaf-dropdown__inner { max-height: 320px; overflow: auto; padding: 12px; }
.wcaf-dropdown__inner::-webkit-scrollbar { width: 10px; }
.wcaf-dropdown__inner::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 999px; border: 2px solid #fff; }
.wcaf-check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 8px;
	border-radius: 10px;
	cursor: pointer;
	user-select: none;
	background: transparent;
	transition: background .15s ease;
}
.wcaf-check:hover { background: var(--wcaf-filter-item-hover-bg); }
.wcaf-check input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.wcaf-check span {
	position: relative;
	padding-left: 26px;
	font-size: var(--wcaf-font-size);
	color: var(--wcaf-filter-item-text);
	white-space: normal;
}
.wcaf-check span::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 6px;
	border: 1.5px solid var(--wcaf-checkbox-border-color);
	background: var(--wcaf-checkbox-bg);
	transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}
.wcaf-check span::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 50%;
	width: 6px;
	height: 10px;
	border-right: 2px solid var(--wcaf-checkbox-tick-color);
	border-bottom: 2px solid var(--wcaf-checkbox-tick-color);
	transform: translateY(-60%) rotate(45deg);
	opacity: 0;
	transition: opacity .12s ease;
}
.wcaf-check input:checked + span::before {
	background: var(--wcaf-checkbox-selected-bg);
	border-color: var(--wcaf-checkbox-selected-border-color);
	box-shadow: 0 4px 12px var(--wcaf-selected-glow-color);
}
.wcaf-check input:focus-visible + span::before {
	box-shadow: 0 0 0 4px var(--wcaf-checkbox-focus-ring-color);
}
.wcaf-check input:checked + span::after { opacity: 1; }
.wcaf-check input:checked + span { color: var(--wcaf-filter-item-text); font-weight: 600; }
.wcaf-price label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 12px;
	color: var(--wcaf-muted);
}
.wcaf-price input {
	width: 120px;
	border: var(--wcaf-border-width) solid var(--wcaf-border);
	border-radius: 10px;
	padding: 8px 10px;
	outline: none;
	background: var(--wcaf-price-input-bg);
	color: var(--wcaf-price-input-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wcaf-price input:focus {
	border-color: var(--wcaf-price-input-focus-border-color);
	box-shadow: 0 0 0 4px var(--wcaf-price-input-focus-ring-color);
}
.wcaf-actions {
	position: sticky;
	bottom: 0;
	background: var(--wcaf-actions-bar-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 10px 0;
	margin-top: 12px;
	border-top: 1px solid var(--wcaf-actions-bar-border-color);
	display: flex;
	gap: 10px;
	z-index: 2;
}
.wcaf-actions .wcaf-apply,
.wcaf-actions .wcaf-clear {
	border: 0 !important;
	border-radius: 12px !important;
	padding: 8px 12px !important;
	cursor: pointer !important;
	font-size: 12px !important;
	line-height: 1 !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}
.wcaf-actions .wcaf-apply {
	background: var(--wcaf-button-bg) !important;
	color: var(--wcaf-button-text) !important;
	box-shadow: 0 10px 22px var(--wcaf-button-shadow-color);
}
.wcaf-actions .wcaf-apply:hover,
.wcaf-actions .wcaf-apply:focus,
.wcaf-actions .wcaf-apply:focus-visible { background: var(--wcaf-button-hover-bg) !important; color: var(--wcaf-button-hover-text) !important; filter: none; box-shadow: 0 10px 22px var(--wcaf-button-shadow-color); }
.wcaf-actions .wcaf-clear { background: var(--wcaf-clear-button-bg) !important; color: var(--wcaf-clear-button-text) !important; }
.wcaf-actions .wcaf-clear:hover,
.wcaf-actions .wcaf-clear:focus,
.wcaf-actions .wcaf-clear:focus-visible { background: var(--wcaf-clear-button-hover-bg) !important; color: var(--wcaf-clear-button-hover-text) !important; }
.wcaf-results {
	margin-top: 6px;
	background: var(--wcaf-results-bg);
	color: var(--wcaf-results-text);
	min-height: 40px;
}
.wcaf-count {
	margin-top: clamp(14px, 2vw, 18px);
	margin-bottom: clamp(14px, 2vw, 18px);
	font-weight: 700;
	font-size: 12px;
	color: var(--wcaf-count-text);
}
.wcaf-count + .wcaf-results { margin-top: 0; }
.wcaf-results.is-loading { opacity: 1; pointer-events: none; }
.wcaf-results.wcaf-anim-out { opacity: .85; }
.wcaf-results.wcaf-anim-in { animation: wcafResultsIn .22s ease both; }
@keyframes wcafResultsIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
.wcaf-skel { background: linear-gradient(90deg, var(--wcaf-skeleton-base-color) 0%, var(--wcaf-skeleton-highlight-color) 35%, var(--wcaf-skeleton-base-color) 70%); background-size: 200% 100%; animation: wcafShimmer 1.15s infinite linear; border-radius: 12px; }
@keyframes wcafShimmer { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
.wcaf-skel-img { height: 170px; border-radius: 14px; margin-bottom: 12px; }
.wcaf-skel-line { height: 12px; margin-bottom: 10px; }
.wcaf-skel-line.sm { width: 70%; height: 10px; }
.wcaf-skel-price { width: 40%; height: 14px; margin-top: 14px; }
.wcaf-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.wcaf-pagination a, .wcaf-pagination .wcaf-ellipsis {
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid var(--wcaf-border);
	background: var(--wcaf-pagination-bg);
	font-size: 14px;
	font-weight: 600;
	color: var(--wcaf-pagination-text);
	text-decoration: none;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.wcaf-pagination a:hover { background: var(--wcaf-pagination-hover-bg); color: var(--wcaf-pagination-hover-text); transform: translateY(-1px); box-shadow: 0 4px 14px var(--wcaf-pagination-hover-shadow-color); }
.wcaf-pagination a:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--wcaf-checkbox-focus-ring-color), 0 4px 14px var(--wcaf-pagination-hover-shadow-color);
}
.wcaf-pagination a.is-current, .wcaf-pagination a[aria-current="page"] {
	background: var(--wcaf-pagination-active-bg);
	color: var(--wcaf-pagination-active-text);
	border-color: transparent;
	box-shadow: 0 6px 20px var(--wcaf-pagination-active-shadow-color);
	pointer-events: none;
}
.wcaf-pagination a.wcaf-prev, .wcaf-pagination a.wcaf-next { font-size: 18px; line-height: 1; }
.wcaf-pagination .wcaf-ellipsis { border: none; background: transparent; color: #9ca3af; pointer-events: none; padding: 0 4px; }
@media (max-width: 768px) {
	.wcaf-pagination { gap: 6px; }
	.wcaf-pagination a { min-width: 36px; height: 36px; font-size: 13px; }
}
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn.button,
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn.btn,
.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn.wd-btn { border-radius: 9999px !important; }

/* Blocksy compatibility layer */
.wcaf-theme-blocksy {
	max-width: 100%;
}
.wcaf-theme-blocksy .wcaf-bar,
body.wp-theme-blocksy .wcaf .wcaf-bar {
	align-items: center;
}
.wcaf-theme-blocksy .wcaf-pill__btn,
body.wp-theme-blocksy .wcaf .wcaf-pill__btn {
	letter-spacing: normal !important;
	height: auto !important;
	min-height: var(--wcaf-current-pill-min-height, 40px) !important;
}
.wcaf-theme-blocksy .wcaf-dropdown,
body.wp-theme-blocksy .wcaf .wcaf-dropdown {
	overflow: visible;
}
.wcaf-theme-blocksy .wcaf-results ul.products,
body.wp-theme-blocksy .wcaf .wcaf-results ul.products {
	margin-top: 0;
}
.wcaf-theme-blocksy .wcaf-results .products,
body.wp-theme-blocksy .wcaf .wcaf-results .products {
	width: 100%;
}
.wcaf-theme-blocksy .wcaf-pagination a,
body.wp-theme-blocksy .wcaf .wcaf-pagination a {
	text-decoration: none;
}


/* Product loop wrapper reset for custom cards */
.wcaf .wcaf-results ul.products,
.wcaf .wcaf-results .products {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.wcaf .wcaf-results ul.products {
	padding-left: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.wcaf .wcaf-results ul.products::before,
.wcaf .wcaf-results ul.products::after,
.wcaf .wcaf-results .products::before,
.wcaf .wcaf-results .products::after {
	box-shadow: none !important;
	border: 0 !important;
}


/* Ensure WooCommerce/theme card selectors match inside filter results */
.wcaf .wcaf-results.woocommerce {
	max-width: 100%;
}

.wcaf .wcaf-results.woocommerce ul.products,
.wcaf .wcaf-results.woocommerce .products {
	margin-top: 0;
}

.wcaf .wcaf-results.woocommerce ul.products li.product {
	margin-top: 0 !important;
}

/* Outer filter wrapper reset to avoid theme/container borders */
.wcaf,
.wcaf::before,
.wcaf::after,
.wcaf .wcaf-results,
.wcaf .wcaf-results::before,
.wcaf .wcaf-results::after {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
}

/* Keep WooCommerce context only around the product loop, not the whole results area */
.wcaf .wcaf-results > .woocommerce,
.wcaf .wcaf-results > .woocommerce::before,
.wcaf .wcaf-results > .woocommerce::after,
.wcaf .wcaf-results > .wcaf-products-context,
.wcaf .wcaf-results > .wcaf-products-context::before,
.wcaf .wcaf-results > .wcaf-products-context::after {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wcaf .wcaf-results > .woocommerce ul.products,
.wcaf .wcaf-results > .wcaf-products-context ul.products {
	margin-top: 0 !important;
}

/* =====================================================
   Responsive design tokens and high-fidelity skeletons
===================================================== */
:root {
	--wcaf-pill-font-size-mobile: 13px;
	--wcaf-pill-font-size-desktop: 14px;
	--wcaf-label-font-size-mobile: 13px;
	--wcaf-label-font-size-desktop: 14px;
	--wcaf-button-font-size-mobile: 12px;
	--wcaf-button-font-size-desktop: 13px;
	--wcaf-filter-results-gap-mobile: 12px;
	--wcaf-filter-results-gap-desktop: 18px;
	--wcaf-card-radius: 21px;
	--wcaf-card-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
	--wcaf-card-border-color: #e6e6e6;
	--wcaf-card-media-ratio: 1;
	--wcaf-card-content-pad-x-mobile: 14px;
	--wcaf-card-content-pad-y-mobile: 14px;
	--wcaf-card-content-pad-x-desktop: 16px;
	--wcaf-card-content-pad-y-desktop: 16px;
	--wcaf-card-gap-mobile: 8px;
	--wcaf-card-gap-desktop: 8px;
	--wcaf-card-cat-font-size: 8px;
	--wcaf-card-title-size-mobile: 16px;
	--wcaf-card-title-size-desktop: 21px;
	--wcaf-card-title-line-height: 1.25;
	--wcaf-card-pill-size-mobile: 32px;
	--wcaf-card-pill-size-desktop: 30px;
	--wcaf-card-pill-font-size-mobile: 12px;
	--wcaf-card-pill-font-size-desktop: 11px;
	--wcaf-card-attrs-gap: 8px;
	--wcaf-card-attrs-pad-bottom: 14px;
	--wcaf-card-cta-min-height-mobile: 36px;
	--wcaf-card-cta-min-height-desktop: 36px;
	--wcaf-card-cta-radius: 16px;
	--wcaf-card-cta-icon-size-mobile: 32px;
	--wcaf-card-cta-icon-size-desktop: 36px;
	--wcaf-card-price-size-mobile: 14px;
	--wcaf-card-price-size-desktop: 18px;
}

.wcaf {
	--wcaf-current-pill-font-size: var(--wcaf-pill-font-size-mobile);
	--wcaf-current-label-font-size: var(--wcaf-label-font-size-mobile);
	--wcaf-current-button-font-size: var(--wcaf-button-font-size-mobile);
	--wcaf-current-filter-results-gap: var(--wcaf-filter-results-gap-mobile);
	--wcaf-current-pill-min-height: 40px;
}

@media (min-width: 769px) {
	.wcaf {
		--wcaf-current-pill-font-size: var(--wcaf-pill-font-size-desktop);
		--wcaf-current-label-font-size: var(--wcaf-label-font-size-desktop);
		--wcaf-current-button-font-size: var(--wcaf-button-font-size-desktop);
		--wcaf-current-filter-results-gap: var(--wcaf-filter-results-gap-desktop);
	}
}

.wcaf-bar {
	margin-bottom: 0;
	gap: max(12px, var(--wcaf-gap));
	vertical-align: top;
}

.wcaf-results {
	margin-top: var(--wcaf-current-filter-results-gap);
}

.wcaf-nojs-note {
	margin-top: 12px;
	color: var(--wcaf-muted);
	font-size: var(--wcaf-current-label-font-size);
	line-height: 1.5;
}

.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn {
	font-size: var(--wcaf-current-pill-font-size) !important;
	line-height: 1.15 !important;
	padding: 8px 15px !important;
	gap: 8px;
	height: auto !important;
	min-height: var(--wcaf-current-pill-min-height) !important;
}

.wcaf-pill__btn .wcaf-btntext {
	white-space: nowrap;
}

.wcaf-pill__btn.has-active .wcaf-badge {
	font-size: 11px;
}

.wcaf-dropdown {
	top: calc(100% + 8px);
	min-width: 280px;
}

.wcaf-dropdown__inner {
	padding: 14px;
}

.wcaf-check {
	padding: 9px 10px;
}

.wcaf-check span {
	font-size: var(--wcaf-current-label-font-size);
	line-height: 1.35;
}

.wcaf-price label,
.wcaf-count {
	font-size: var(--wcaf-current-label-font-size);
}

.wcaf-actions .wcaf-apply,
.wcaf-actions .wcaf-clear {
	font-size: var(--wcaf-current-button-font-size) !important;
	padding: 10px 14px !important;
	min-height: 40px;
}

@media (min-width: 769px) {
	.wcaf-bar {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (min-width: 1025px) {
	.wcaf {
		--wcaf-current-pill-min-height: 44px;
	}

	.wcaf-bar {
		gap: max(14px, var(--wcaf-gap));
	}

	.wcaf .wcaf-bar .wcaf-pill .wcaf-pill__btn {
		padding: 8px 15px !important;
	}

	.wcaf-dropdown__inner {
		padding: 16px;
	}

	.wcaf-check {
		padding: 10px 12px;
	}
}

.wcaf-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding: 6px 0;
}

.wcaf-skeleton-card {
	min-width: 0;
	width: 100%;
}

@media (max-width: 1024px) {
	.wcaf-skeleton-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.wcaf-skeleton-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

.wcaf-skeleton-product {
	min-width: 0;
}

.wcaf-skeleton-product .wc-card__inner {
	height: 100%;
}

.wcaf-skeleton-product .wc-card__link,
.wcaf-skeleton-product .wc-card__media {
	aspect-ratio: var(--wcaf-card-media-ratio) / 1;
}

.wcaf-skeleton-product .wc-card__media {
	background: #f1f1f1;
}

.wcaf-skeleton-product .wc-card__actions,
.wcaf-skeleton-product .wc-card__badge,
.wcaf-skeleton-product .wc-card__cat,
.wcaf-skeleton-product .wc-card__title,
.wcaf-skeleton-product .wc-card__attrs,
.wcaf-skeleton-product .wc-card__cta {
	pointer-events: none;
}

.wcaf-skeleton-product .wc-card__content {
	justify-content: flex-start;
}

.wcaf-skeleton-product .wcaf-skel {
	background: linear-gradient(90deg, #f3f4f6 0%, #eceef3 38%, #f3f4f6 72%);
	background-size: 220% 100%;
	animation: wcafShimmer 1.2s linear infinite;
	border-radius: 999px;
}

.wcaf-skeleton-product .wcaf-skel--media,
.wcaf-skeleton-product .wcaf-skel--badge,
.wcaf-skeleton-product .wcaf-skel--action,
.wcaf-skeleton-product .wcaf-skel--line,
.wcaf-skeleton-product .wcaf-skel--price,
.wcaf-skeleton-product .wcaf-skel--icon,
.wcaf-skeleton-product .wcaf-skel--pill {
	display: block;
}

.wcaf-skeleton-product .wcaf-skel--media {
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.wcaf-skeleton-product .wcaf-skel--badge {
	width: 56px;
	height: 24px;
	border-radius: 8px;
}

.wcaf-skeleton-product .wcaf-skel--action {
	width: 34px;
	height: 34px;
	border-radius: 999px;
}

.wcaf-skeleton-product .wcaf-skel--line.xs { width: 36%; height: 8px; }
.wcaf-skeleton-product .wcaf-skel--line.md { width: 72%; height: 16px; }
.wcaf-skeleton-product .wcaf-skel--line.lg { width: 88%; height: 16px; }
.wcaf-skeleton-product .wcaf-skel--price { width: 94px; height: 18px; }
.wcaf-skeleton-product .wcaf-skel--pill {
	width: var(--wcaf-card-pill-size-desktop);
	height: var(--wcaf-card-pill-size-desktop);
	border-radius: 999px;
}
.wcaf-skeleton-product .wcaf-skel--icon {
	width: var(--wcaf-card-cta-icon-size-desktop);
	height: var(--wcaf-card-cta-icon-size-desktop);
	border-radius: 10px;
}

@media (max-width: 768px) {
	.wcaf-skeleton-product .wcaf-skel--pill {
		width: var(--wcaf-card-pill-size-mobile);
		height: var(--wcaf-card-pill-size-mobile);
	}
	.wcaf-skeleton-product .wcaf-skel--icon {
		width: var(--wcaf-card-cta-icon-size-mobile);
		height: var(--wcaf-card-cta-icon-size-mobile);
	}
}

.wcaf-skeleton-product .wc-card__badge {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.wcaf-skeleton-product .wc-card__actions {
	background: transparent;
}

.wcaf-skeleton-product .wc-card__cta {
	background: #fff !important;
	border-color: var(--wcaf-card-border-color, #e6e6e6) !important;
	color: #111 !important;
	box-shadow: 0 8px 18px rgba(0,0,0,.06);
	transform: none !important;
}

.wcaf-skeleton-product .wc-card__cta-icon {
	background: #eef2f7;
	box-shadow: none;
}

.wcaf-skeleton-product .wc-card__cta-price {
	align-items: center;
}

/* Keep recovery controls outside the busy product region. */
.wcaf { scroll-margin-top: 24px; }
.wcaf-results { touch-action: pan-y pinch-zoom; }
.wcaf-results img { -webkit-user-drag: none; }
.wcaf-request-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; margin:12px 0; border:1px solid var(--wcaf-border); border-radius:12px; color:var(--wcaf-text); background:var(--wcaf-bg); }
.wcaf-request-notice[hidden] { display:none; }
.wcaf-retry { flex-shrink:0; min-height:44px; border:0; border-radius:10px; padding:10px 16px; background:var(--wcaf-button-bg, #111); color:var(--wcaf-button-text, #fff); cursor:pointer; }
.wcaf-retry:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
