.wp-block-wlc-algolia-search-page {
	--wlc-accent: #DB002F;
	--wlc-gap: 16px;
	--wlc-cols: 3;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;

	// Override WordPress content width constraints
	&.max-w-content,
	&.is-layout-constrained,
	&.wp-block-group__inner-container {
		max-width: 100% !important;
		width: 100% !important;
	}

	// Support for wide and full width alignment
	&.alignwide,
	&.alignfull {
		width: 100% !important;
		max-width: 100% !important;
	}

	&.alignfull {
		padding-left: 0;
		padding-right: 0;
	}

	&__container {
		width: 100%;
		max-width: 100%;
	}

	&__input-row {
		margin-bottom: 24px;
		width: 100%;
	}

	&__active-filters {
		margin-bottom: 32px;
		width: 100%;
		background: #fff;
		border-radius: 16px;
		padding: 20px 24px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.04);
		border: 1px solid #f0f0f0;

		&-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 16px;
		}

		&-title {
			font-size: 16px;
			font-weight: 700;
			color: #1a1a1a;
			margin: 0;
			text-transform: uppercase;
			letter-spacing: 0.5px;
		}

		&-clear-all {
			background: transparent;
			border: 2px solid #e8e8e8;
			border-radius: 8px;
			padding: 8px 16px;
			font-size: 14px;
			font-weight: 600;
			color: #666;
			cursor: pointer;
			transition: all 0.2s ease;
			text-decoration: none;
			display: inline-flex;
			align-items: center;
			gap: 6px;

			&:hover {
				border-color: var(--wlc-accent, #DB002F);
				color: var(--wlc-accent, #DB002F);
				background: rgba(219, 0, 47, 0.05);
			}

			&:active {
				transform: translateY(1px);
			}
		}

		&-list {
			display: flex;
			flex-wrap: wrap;
			gap: 10px;
			align-items: center;
		}
	}

	&__active-filter-tag {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: rgba(219, 0, 47, 0.08);
		border: 1px solid rgba(219, 0, 47, 0.2);
		border-radius: 20px;
		padding: 8px 14px;
		font-size: 14px;
		line-height: 1.4;
		transition: all 0.2s ease;

		&:hover {
			background: rgba(219, 0, 47, 0.12);
			border-color: rgba(219, 0, 47, 0.3);
		}
	}

	&__active-filter-label {
		font-weight: 600;
		color: var(--wlc-accent, #DB002F);
	}

	&__active-filter-value {
		color: #1a1a1a;
		font-weight: 500;
	}

	&__active-filter-remove {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 18px;
		height: 18px;
		padding: 0;
		margin-left: 4px;
		background: transparent;
		border: none;
		border-radius: 50%;
		cursor: pointer;
		color: #666;
		transition: all 0.2s ease;
		flex-shrink: 0;

		&:hover {
			background: rgba(219, 0, 47, 0.1);
			color: var(--wlc-accent, #DB002F);
			transform: rotate(90deg);
		}

		&:active {
			transform: rotate(90deg) scale(0.9);
		}

		svg {
			width: 12px;
			height: 12px;
		}
	}

	&__searchbox {
		position: relative;
		width: 100%;

		&-form {
			display: flex;
			align-items: center;
			position: relative;
			background: #fff;
			border-radius: 16px;
			box-shadow: 0 4px 12px rgba(0,0,0,0.08);
			border: 2px solid #f0f0f0;
			transition: all 0.3s ease;
			overflow: hidden;

			&:focus-within {
				border-color: var(--wlc-accent, #DB002F);
				box-shadow: 0 4px 20px rgba(219, 0, 47, 0.15);
			}
		}
	}

	&__input {
		width: 100%;
		padding: 18px 24px;
		font-size: 18px;
		border: none;
		background: transparent;
		outline: none;
		color: #1a1a1a;
		font-weight: 500;

		&::placeholder {
			color: #999;
			font-weight: 400;
		}
	}

	&__searchbox-submit,
	&__searchbox-reset {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 20px;
		background: transparent;
		border: none;
		cursor: pointer;
		color: #666;
		transition: color 0.2s ease;
		font-size: 20px;

		&:hover {
			color: var(--wlc-accent, #DB002F);
		}

		svg {
			width: 20px;
			height: 20px;
		}
	}

	&__layout {
		display: grid;
		grid-template-columns: 300px 1fr;
		gap: 32px;
		align-items: start;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;

		@media (max-width: 1024px) {
			grid-template-columns: 260px 1fr;
			gap: 24px;
		}

		@media (max-width: 768px) {
			grid-template-columns: 1fr;
			gap: 24px;
		}
	}

	&__layout.is-no-filters {
		grid-template-columns: minmax(0, 1fr);
	}

	&__filters {
		position: sticky;
		top: 24px;
		overflow-y: auto;

		&::-webkit-scrollbar {
			width: 6px;
		}

		&::-webkit-scrollbar-track {
			background: transparent;
		}

		&::-webkit-scrollbar-thumb {
			background: #ddd;
			border-radius: 3px;

			&:hover {
				background: #ccc;
			}
		}
	}

	&__filters-inner {
		background: #fff;
		border-radius: 16px;
		padding: 24px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.04);
		border: 1px solid #f0f0f0;
	}

	&__results {
		min-width: 0; // Prevent grid overflow
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	&__results-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 24px;
		padding-bottom: 16px;
		border-bottom: 1px solid #f0f0f0;
	}

	&__stats {
		font-size: 15px;
		color: #666;
		font-weight: 500;
	}

	&__sort {
		// Sort dropdown will be injected by view.js
	}

	&__results-inner {
		min-height: 200px;

		&.is-grid {
			display: grid !important;
			gap: var(--wlc-gap, 16px) !important;
		}

		&.is-list {
			display: flex !important;
			flex-direction: column !important;
			gap: var(--wlc-gap, 16px) !important;
		}
	}

	&__pagination {
		margin-top: 40px;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;

		// Custom pagination list
		&-list {
			display: flex;
			flex-wrap: wrap;
			gap: 12px;
			justify-content: center;
			align-items: center;
			list-style: none;
			margin: 0;
			padding: 0;
		}

		// Pagination items container
		&-items {
			display: flex;
			flex-wrap: wrap;
			gap: 12px;
			justify-content: center;
			align-items: center;
			list-style: none;
			margin: 0;
			padding: 0;
		}

		// Individual pagination item
		&-item {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			margin: 0;

			// Selected/Active page
			&--selected {
				.wp-block-wlc-algolia-search-page__pagination-link {
					border-color: var(--wlc-accent, #DB002F) !important;
					background: var(--wlc-accent, #DB002F) !important;
					color: #fff !important;
					box-shadow: 0 4px 16px rgba(219, 0, 47, 0.3) !important;
					cursor: default;
					font-weight: 700;
					transform: scale(1.05);
				}
			}

			// Disabled item
			&--disabled {
				.wp-block-wlc-algolia-search-page__pagination-link {
					opacity: 0.4;
					cursor: not-allowed;
					pointer-events: none;
				}
			}
		}

		// Pagination link/button
		&-link {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			min-width: 48px;
			height: 48px;
			padding: 0 16px;
			border: 2px solid #e8e8e8;
			border-radius: 14px;
			background: #fff;
			color: #1a1a1a;
			font-size: 15px;
			font-weight: 600;
			text-decoration: none;
			cursor: pointer;
			transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
			box-shadow: 0 2px 4px rgba(0,0,0,0.04);
			position: relative;
			user-select: none;

			&:hover:not([aria-disabled="true"]) {
				border-color: var(--wlc-accent, #DB002F);
				background: #fff;
				color: var(--wlc-accent, #DB002F);
				transform: translateY(-2px);
				box-shadow: 0 4px 12px rgba(219, 0, 47, 0.15);
			}

			&[aria-disabled="true"] {
				opacity: 0.4;
				cursor: not-allowed;
				pointer-events: none;
			}
		}

		// Also support default React InstantSearch classes as fallback
		.ais-Pagination {
			display: flex !important;
			flex-wrap: wrap !important;
			gap: 12px !important;
			justify-content: center !important;
			align-items: center !important;
			list-style: none !important;
			margin: 0 !important;
			padding: 0 !important;
		}

		.ais-Pagination-item {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			margin: 0 !important;

			&--selected {
				.ais-Pagination-link {
					border-color: var(--wlc-accent, #DB002F) !important;
					background: var(--wlc-accent, #DB002F) !important;
					color: #fff !important;
					box-shadow: 0 4px 16px rgba(219, 0, 47, 0.3) !important;
					font-weight: 700 !important;
					transform: scale(1.05) !important;
				}
			}

			&--disabled {
				.ais-Pagination-link {
					opacity: 0.4 !important;
					cursor: not-allowed !important;
					pointer-events: none !important;
				}
			}
		}

		.ais-Pagination-link {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			min-width: 48px !important;
			height: 48px !important;
			padding: 0 16px !important;
			border: 2px solid #e8e8e8 !important;
			border-radius: 14px !important;
			background: #fff !important;
			color: #1a1a1a !important;
			font-size: 15px !important;
			font-weight: 600 !important;
			text-decoration: none !important;
			cursor: pointer !important;
			transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
			box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
			user-select: none !important;

			&:hover:not([aria-disabled="true"]) {
				border-color: var(--wlc-accent, #DB002F) !important;
				background: #fff !important;
				color: var(--wlc-accent, #DB002F) !important;
				transform: translateY(-2px) !important;
				box-shadow: 0 4px 12px rgba(219, 0, 47, 0.15) !important;
			}

			&[aria-disabled="true"] {
				opacity: 0.4 !important;
				cursor: not-allowed !important;
				pointer-events: none !important;
			}

			// Active page by aria-label
			&[aria-label*="current"],
			&[aria-label*="Current"],
			&[aria-current="page"] {
				border-color: var(--wlc-accent, #DB002F) !important;
				background: var(--wlc-accent, #DB002F) !important;
				color: #fff !important;
				box-shadow: 0 4px 16px rgba(219, 0, 47, 0.3) !important;
				font-weight: 700 !important;
				transform: scale(1.05) !important;
			}
		}
	}

	&__empty {
		text-align: center;
		padding: 60px 20px;
		color: #999;
		font-size: 16px;
	}
}

// Override WordPress content width constraints for parent containers
.max-w-content .wp-block-wlc-algolia-search-page,
.is-layout-constrained .wp-block-wlc-algolia-search-page,
.wp-block-group__inner-container .wp-block-wlc-algolia-search-page,
:where(.wp-block-group.has-background) .wp-block-wlc-algolia-search-page {
	max-width: 100% !important;
	width: 100% !important;
}

// Premium result card styles
.wlc-algolia-builder__hit {
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;

	&:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(0,0,0,0.12);
		border-color: var(--wlc-accent, #DB002F);
	}

	.wlc-algolia-builder__image {
		display: block;
		width: 100%;
		aspect-ratio: 1 / 1;
		overflow: hidden;
		background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
		position: relative;
		margin: 0;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			display: block;
			transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		}

		&:hover img {
			transform: scale(1.08);
		}
	}

	.wlc-algolia-builder__content {
		padding: 20px;
		display: flex;
		flex-direction: column;
		flex-grow: 1;
		row-gap: 14px;
	}

	.wlc-algolia-builder__title {
		margin: 0;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.3;
		color: #1a1a1a;

		a {
			color: inherit;
			text-decoration: none;
			display: inline-block;
			transition: color 0.2s ease;
			position: relative;

			&::after {
				content: '';
				position: absolute;
				bottom: -2px;
				left: 0;
				right: 0;
				height: 2px;
				background: var(--wlc-accent, #DB002F);
				transform: scaleX(0);
				transform-origin: left;
				transition: transform 0.3s ease;
			}

			&:hover {
				color: var(--wlc-accent, #DB002F);

				&::after {
					transform: scaleX(1);
				}
			}
		}
	}

	.wlc-algolia-builder__excerpt {
		margin: 0;
		color: #666;
		font-size: 14px;
		line-height: 1.6;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		flex-grow: 1;
	}

	.wlc-algolia-builder__meta {
		display: flex;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
		color: #666;
		font-size: 13px;
	}

	.wlc-algolia-builder__field-row {
		margin-bottom: 0;
		display: flex;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
	}

	.wlc-algolia-builder__field {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		margin-bottom: 0;
		font-size: 14px;
		color: #1e1e1e;

		&.is-price {
			font-size: clamp(22px, 2.2vw, 28px);
			font-weight: 800;
			color: var(--wlc-accent, #DB002F);
			letter-spacing: -0.5px;
			line-height: 1.2;
			margin: 0;
			width: 100%;
			min-width: 0;
			gap: 0;
		}

		&.is-sku {
			font-size: 12px;
			color: #888;
			font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

			code {
				background: #f8f8f8;
				padding: 4px 8px;
				border-radius: 6px;
				border: 1px solid #e8e8e8;
			}
		}

		&.is-stock {
			font-size: 13px;
			color: #666;
		}

		&.is-rating {
			.wlc-algolia-builder__value {
				display: block;
				font-size: 14px;
			}
		}

		&.is-badge {
			.wlc-algolia-builder__badge {
				display: inline-flex;
				align-items: center;
				padding: 6px 12px;
				border-radius: 20px;
				font-size: 11px;
				font-weight: 700;
				text-transform: uppercase;
				letter-spacing: 0.8px;
				box-shadow: 0 2px 4px rgba(0,0,0,0.1);

				&.is-in-stock {
					background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
					color: #155724;
				}

				&.is-out-of-stock {
					background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
					color: #721c24;
				}

				&.is-on-backorder {
					background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
					color: #856404;
				}
			}
		}
	}

	.wlc-algolia-builder__label {
		font-weight: 600;
		color: #888;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	.wlc-algolia-builder__row {
		display: flex;
		gap: 16px;
		font-size: 13px;
		color: #666;
		margin-bottom: 0;
	}

	.wlc-algolia-builder__value {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.wlc-algolia-builder__field.is-price .wlc-algolia-builder__value {
		display: block;
		min-width: 0;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
		line-height: 1.15;
	}

	.wlc-algolia-builder__rating {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.wlc-algolia-builder__rating-stars {
		display: inline-flex;
		align-items: center;
		gap: 1px;
		line-height: 1;
	}

	.wlc-algolia-builder__rating-star {
		font-size: 18px;
		line-height: 1;

		&.is-filled {
			color: var(--wlc-accent, #DB002F);
		}

		&.is-empty {
			color: #d6d6d6;
		}
	}

	.wlc-algolia-builder__rating-count {
		font-size: 14px;
		font-weight: 600;
		color: #767676;
	}

	.wlc-algolia-builder__cta {
		margin-top: auto;
		padding-top: 0;
	}

	.wlc-algolia-builder__availability {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 14px 24px;
		border-radius: 12px;
		box-sizing: border-box;
		font-size: 15px;
		font-weight: 700;
		line-height: 1;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		width: 100%;
		border: 2px solid transparent;
		position: relative;
		text-decoration: none;

		&.is-out-of-stock {
			color: #721c24;
			background: #f8d7da;
			border-color: #f5c6cb;
		}

		&.is-on-backorder {
			color: #856404;
			background: #fff3cd;
			border-color: #ffeaa7;
		}
	}

	.wlc-algolia-builder__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 14px 24px;
		border-radius: 12px;
		border: 2px solid var(--wlc-accent, #DB002F);
		background: var(--wlc-accent, #DB002F);
		color: #fff;
		text-decoration: none;
		font-size: 15px;
		line-height: 1;
		font-weight: 700;
		cursor: pointer;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		width: 100%;
		box-sizing: border-box;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		position: relative;
		overflow: hidden;

		&::before {
			content: '';
			position: absolute;
			top: 50%;
			left: 50%;
			width: 0;
			height: 0;
			border-radius: 50%;
			background: rgba(255,255,255,0.3);
			transform: translate(-50%, -50%);
			transition: width 0.6s ease, height 0.6s ease;
		}

		&:not(.is-secondary) {
			&:hover {
				filter: brightness(0.95);
				transform: translateY(-2px);
				box-shadow: 0 8px 16px rgba(219, 0, 47, 0.3);

				&::before {
					width: 300px;
					height: 300px;
				}
			}

			&:active {
				transform: translateY(0);
			}
		}

		&.is-secondary {
			background: #fff;
			color: var(--wlc-accent, #DB002F);

			&:hover {
				background: var(--wlc-accent, #DB002F);
				color: #fff;
				transform: translateY(-2px);
				box-shadow: 0 8px 16px rgba(219, 0, 47, 0.2);
			}
		}
	}
}

// Grid layout - responsive columns
.wp-block-wlc-algolia-search-page__results-inner.is-grid {
	.wlc-algolia-builder__hit.is-no-image .wlc-algolia-builder__content {
		flex-grow: 0;
		margin-top: auto;
	}

	@media (max-width: 640px) {
		grid-template-columns: 1fr !important;
	}

	@media (min-width: 641px) and (max-width: 1024px) {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

// List layout adjustments
.wp-block-wlc-algolia-search-page__results-inner.is-list {
	.wlc-algolia-builder__hit {
		display: grid;
		grid-template-columns: clamp(160px, 22vw, 220px) 1fr;
		gap: 0;
		align-items: stretch;
		padding: 0;
		overflow: hidden;

		.wlc-algolia-builder__image {
			width: 100%;
			height: 100%;
			min-height: 100%;
			aspect-ratio: auto;
			margin: 0;
			border-radius: 0;
			background: #f6f6f6;

			a {
				display: block;
				height: 100%;
			}

			img {
				height: 100%;
				object-fit: cover;
			}
		}

		.wlc-algolia-builder__content {
			padding: 24px;
		}

		&.is-no-image {
			.wlc-algolia-builder__content {
				grid-column: 2;
			}
		}

		@media (max-width: 640px) {
			grid-template-columns: 1fr;

			.wlc-algolia-builder__image {
				height: auto;
				min-height: 0;
				aspect-ratio: 16 / 10;
			}

			.wlc-algolia-builder__image a,
			.wlc-algolia-builder__image img {
				height: 100%;
			}

			&.is-no-image .wlc-algolia-builder__content {
				grid-column: 1;
			}
		}
	}
}

// React InstantSearch component styles
.wp-block-wlc-algolia-search-page__filter {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f0f0f0;

	&:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}
}

.wp-block-wlc-algolia-search-page__filter-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.wp-block-wlc-algolia-search-page__facet-search {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	transition: all 0.2s ease;

	&:focus {
		outline: none;
		border-color: var(--wlc-accent, #DB002F);
		box-shadow: 0 0 0 3px rgba(219, 0, 47, 0.1);
	}

	&::placeholder {
		color: #999;
	}
}

.wp-block-wlc-algolia-search-page__facet-search-wrap {
	position: relative;
	margin-bottom: 14px;
}

.wp-block-wlc-algolia-search-page__facet-search-wrap .wp-block-wlc-algolia-search-page__facet-search {
	padding-right: 34px;
}

.wp-block-wlc-algolia-search-page__facet-search-clear {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	color: #666;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: none;
	outline: none;

	&:hover {
		background: transparent;
		color: #666;
		box-shadow: none;
	}

	&:focus,
	&:focus-visible,
	&:active {
		background: transparent;
		color: #666;
		box-shadow: none;
		outline: none;
	}
}

.wp-block-wlc-algolia-search-page__filter-empty {
	font-size: 14px;
	color: #999;
	font-style: italic;
	padding: 16px 0;
	text-align: center;
}

.wp-block-wlc-algolia-search-page__price-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.wp-block-wlc-algolia-search-page__filter--date .wp-block-wlc-algolia-search-page__price-range {
	grid-template-columns: repeat( 2, minmax( 0, 120px ) );
}

.wp-block-wlc-algolia-search-page__price-range-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	color: #666;
	font-weight: 600;

	input {
		width: 100%;
		padding: 10px 12px;
		border: 2px solid #e8e8e8;
		border-radius: 8px;
		font-size: 14px;
		background: #fff;
		transition: all 0.2s ease;

		&:focus {
			outline: none;
			border-color: var(--wlc-accent, #DB002F);
			box-shadow: 0 0 0 3px rgba(219, 0, 47, 0.1);
		}
	}
}

.wp-block-wlc-algolia-search-page__filter--date .wp-block-wlc-algolia-search-page__price-range-field input[type='date'] {
	min-height: 42px;
	appearance: none;
	-webkit-appearance: none;
	background-color: #f2f2f2;
	color: #43454b;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	border: 0;
	box-shadow: inset 0 1px 1px rgba( 0, 0, 0, 0.125 );
}

.wp-block-wlc-algolia-search-page__filter--date .wp-block-wlc-algolia-search-page__price-range-field input[type='date']:focus {
	outline: none;
	border: 0;
	box-shadow: inset 0 1px 1px rgba( 0, 0, 0, 0.125 );
}

.wp-block-wlc-algolia-search-page__filter--date .wp-block-wlc-algolia-search-page__price-range-field input[type='date']::-webkit-calendar-picker-indicator {
	opacity: 0.8;
	cursor: pointer;
}

@media ( max-width: 480px ) {
	.wp-block-wlc-algolia-search-page__filter--date .wp-block-wlc-algolia-search-page__price-range {
		grid-template-columns: 1fr;
	}
}

.wp-block-wlc-algolia-search-page__filter-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 320px;
	overflow-y: auto;
	padding-right: 4px;
	margin-left: 0;

	&::-webkit-scrollbar {
		width: 6px;
	}

	&::-webkit-scrollbar-track {
		background: transparent;
	}

	&::-webkit-scrollbar-thumb {
		background: #ddd;
		border-radius: 3px;

		&:hover {
			background: #ccc;
		}
	}
}

.wp-block-wlc-algolia-search-page__filter-item {
	display: block;
	padding: 10px 0;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	color: #1e1e1e;
	border-radius: 6px;
	padding-left: 8px;
	padding-right: 8px;

	&:hover {
		background: #f8f8f8;
		color: var(--wlc-accent, #DB002F);
	}

	label {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
	}

	input[type="checkbox"] {
		margin: 0;
		width: 18px;
		height: 18px;
		cursor: pointer;
		accent-color: var(--wlc-accent, #DB002F);
		flex-shrink: 0;
	}

	span {
		flex: 1;
		line-height: 1.5;
		font-weight: 500;
		margin-left: 8px; // Add spacing between checkbox and text
	}

	small {
		font-size: 13px;
		color: #999;
		font-weight: 600;
		background: #f5f5f5;
		padding: 2px 8px;
		border-radius: 12px;
	}
}

.wp-block-wlc-algolia-search-page__filter-item--hierarchical {
	padding: 6px 0;

	&:hover {
		background: transparent;
	}
}

.wp-block-wlc-algolia-search-page__filter-items--nested {
	max-height: none;
	overflow: visible;
	padding-right: 0;
	padding-left: 20px;
	margin-top: 4px;
}

.wp-block-wlc-algolia-search-page__filter-item-placeholder {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
