/* WC Extras — Product Filters / Sort / Count (structural layout only;
   colors, typography, and spacing are generated by Elementor from each
   widget's Style tab controls). */

.wc-extras-filters {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wc-extras-filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wc-extras-filter-group__title {
	font-weight: 600;
	margin: 0 0 4px;
}

.wc-extras-filter-group__options {
	display: grid;
	grid-template-columns: repeat( var( --wc-extras-filter-columns, 1 ), 1fr );
	gap: 6px;
}

.wc-extras-filter-group__options--inline {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.wc-extras-filter-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-sizing: border-box;
	border-style: solid;
	border-width: 0;
	border-color: transparent;
	position: relative;
}

/* Inline List reads as a row of tappable tags, not checkbox+label pairs —
   hide the checkbox visually while keeping it in the DOM (and therefore
   still keyboard-focusable and screen-reader accessible via the
   surrounding <label>), and give each tag a default pill look so the
   checked/unchecked state is still clearly visible without a checkbox. */
.wc-extras-filter-group__options--inline .wc-extras-filter-option {
	padding: 6px 14px;
	border-width: 1px;
	border-color: #e4e4e4;
	border-radius: 20px;
}

.wc-extras-filter-group__options--inline .wc-extras-filter-option input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.wc-extras-filter-group__options--inline .wc-extras-filter-option:has( input:checked ) {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
}

.wc-extras-filter-option input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 1.5px solid #c3c4c7;
	border-radius: 2px;
	background-color: #ffffff;
	cursor: pointer;
	box-sizing: border-box;
}

.wc-extras-filter-option input[type="checkbox"]:checked {
	background-color: var( --wc-extras-checkbox-fill, #1a1a1a );
	border-color: var( --wc-extras-checkbox-fill, #1a1a1a );
}

.wc-extras-filter-group select[multiple] {
	width: 100%;
	min-height: 90px;
}

.wc-extras-price-filter {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wc-extras-price-slider {
	position: relative;
	height: 32px;
	display: flex;
	align-items: center;
}

.wc-extras-price-slider__track,
.wc-extras-price-slider__range {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 2px;
	pointer-events: none;
}

.wc-extras-price-slider__input {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.wc-extras-price-slider__input:focus {
	outline: none;
}

/* Only the draggable thumb itself should capture pointer events — the
   invisible track area of each overlaid <input> must not, or the top
   input would block clicks/drags meant for the one underneath. */
.wc-extras-price-slider__input::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.wc-extras-price-slider__input::-moz-range-thumb {
	pointer-events: auto;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.wc-extras-price-slider__input::-webkit-slider-runnable-track,
.wc-extras-price-slider__input::-moz-range-track {
	background: transparent;
	border: none;
}

.wc-extras-price-filter__values {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wc-extras-price-filter__separator {
	opacity: 0.6;
}

.wc-extras-clear-filters {
	display: inline-block;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
}

.wc-extras-sort {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
}

.wc-extras-sort__label {
	white-space: nowrap;
	flex-shrink: 0;
}

.wc-extras-sort__select {
	cursor: pointer;
}

.wc-extras-count {
	display: block;
}

.wc-extras-ajax-loading .wc-extras-count,
.wc-extras-ajax-loading .wc-extras-active-filters {
	opacity: 0.4;
	transition: opacity 0.15s ease;
}

.wc-extras-swatch-placeholder {
	padding: 20px;
	text-align: center;
	color: #888;
	border: 1px dashed #ccc;
	border-radius: 4px;
}
