/*
 * ATS Product Filters — front-end styles.
 *
 * Colours are exposed as CSS variables at :root so the panel can be re-themed
 * without touching this file. The values below are the ATS design system's
 * dark palette; they mirror the Elementor global colours of the same names.
 */

:root {
	--waf-primary: #1E6FD9;       /* accent blue — apply button, active bar, checkboxes */
	--waf-primary-hover: #14509E; /* deeper blue for hover/active states */
	--waf-text: #F4F5F6;          /* primary text on the dark panel */
	--waf-heading: #F4F5F6;
	--waf-muted: #8A9098;         /* meta labels and counts */
	--waf-border: #262A2F;        /* the site-wide hairline */
	--waf-bg: #101215;            /* card/panel surface */
	--waf-bg-alt: #14161A;        /* inputs and raised rows */
	--waf-radius: 0px;            /* the design system is square-cornered */
}

.waf-panel {
	background: var(--waf-bg);
	border: 1px solid var(--waf-border);
	border-radius: var(--waf-radius);
	padding: 20px;
	max-width: 320px;
	font-family: inherit;
	position: relative;
}

.waf-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.waf-panel__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--waf-text);
	margin: 0;
}

.waf-clear-all {
	background: none;
	border: none;
	padding: 0;
	color: var(--waf-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.waf-clear-all:hover { text-decoration: underline; }

.waf-section {
	border-top: 1px solid var(--waf-border);
	padding: 16px 0;
}
.waf-section:first-of-type { padding-top: 6px; }

.waf-section__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--waf-text);
	margin: 0 0 12px;
}

.waf-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--waf-text);
	cursor: pointer;
	padding: 6px 0;
}
.waf-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--waf-primary);
	flex-shrink: 0;
}
.waf-count {
	color: var(--waf-muted);
	font-size: 13px;
}

/* Price */
.waf-price-display {
	font-size: 15px;
	font-weight: 700;
	color: var(--waf-primary);
	margin-bottom: 16px;
}

.waf-slider {
	position: relative;
	height: 4px;
	background: transparent;
	margin: 0 9px 22px;
}
.waf-slider__track {
	position: absolute;
	top: 0; left: -9px; right: -9px;
	height: 4px;
	border-radius: 4px;
	background: var(--waf-border);
}
.waf-slider__range {
	position: absolute;
	top: 0; height: 4px;
	border-radius: 4px;
	background: var(--waf-primary);
}
.waf-slider__handle {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	margin-left: -9px;
	border-radius: 50%;
	background: var(--waf-primary);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--waf-primary);
	cursor: grab;
	touch-action: none;
}
.waf-slider__handle:active { cursor: grabbing; }

.waf-price-inputs {
	display: flex;
	gap: 12px;
}
.waf-price-inputs label {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1px solid var(--waf-border);
	border-radius: 8px;
	padding: 8px 10px;
	gap: 4px;
}
.waf-price-inputs span { color: var(--waf-muted); font-size: 14px; }
.waf-price-input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 14px;
	color: var(--waf-text);
	-moz-appearance: textfield;
}
.waf-price-input::-webkit-outer-spin-button,
.waf-price-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Search box */
.waf-section--search { border-top: none; padding-top: 0; padding-bottom: 16px; }
.waf-search-box {
	position: relative;
}
.waf-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--waf-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--waf-text);
}
.waf-search-shortcode { font-size: 14px; }

/* Taxonomy checkbox lists (Category + Compatibility share this markup) */
.waf-tax-search {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--waf-border);
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--waf-text);
}
/* No inner scroller: the list shows every category and the page scrolls
   normally. A 260px scroll box hid most of the catalogue behind a scrollbar. */
.waf-tax-list {
	max-height: none;
	overflow-y: visible;
}
.waf-tax-item.waf-hidden { display: none; }

/* Apply button */
.waf-apply-btn {
	width: 100%;
	background: var(--waf-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 6px;
	transition: background .15s ease;
}
.waf-apply-btn:hover { background: var(--waf-primary-hover); }
.waf-apply-btn:disabled { opacity: .6; cursor: default; }

/* Diagnostic notice shown when the Grid Container CSS Selector matches nothing */
.waf-target-warning {
	margin: 10px 0 0;
	padding: 10px 12px;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #7a1f22;
	font-size: 13px;
	border-radius: 6px;
	line-height: 1.4;
}

/* Loading overlay */
.waf-panel.is-loading .waf-loading,
.waf-grid-loading {
	display: block;
}
.waf-loading {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.5);
	border-radius: var(--waf-radius);
}

/* Target grid dimmed while an ajax request is in flight */
.waf-target-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s ease;
}

@media (max-width: 782px) {
	.waf-panel { max-width: 100%; }
}

/* --- ATS theme additions ------------------------------------------------ */

.waf-panel input[type='text'],
.waf-panel input[type='search'],
.waf-panel input[type='number'],
.waf-panel select {
	background: var(--waf-bg-alt);
	border: 1px solid var(--waf-border);
	color: var(--waf-text);
	border-radius: var(--waf-radius);
}

.waf-panel input::placeholder {
	color: var(--waf-muted);
}

.waf-panel a {
	color: var(--waf-text);
}

.waf-panel a:hover {
	color: var(--waf-primary);
}

/* Category rows read as a list of hairline-separated links, matching the
   site's card interiors. */
.waf-panel li + li {
	border-top: 1px solid var(--waf-border);
}


/* --- Theme reset ---------------------------------------------------------
   Hello Elementor styles bare <button> elements, which was giving the panel's
   Clear All and Apply controls the theme's fill and border. Scope a reset so
   the panel keeps its own look. */

.waf-panel button {
	font-family: inherit;
	letter-spacing: inherit;
	box-shadow: none;
	text-transform: none;
}

.waf-panel .waf-clear-all {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	color: var(--waf-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.waf-panel .waf-apply-btn {
	background: var(--waf-primary);
	color: #fff;
	border: none;
	border-radius: var(--waf-radius);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 16px;
}

.waf-panel .waf-apply-btn:hover {
	background: var(--waf-primary-hover);
	color: #fff;
}

/* Section headings pick up the site's mono label treatment. */
.waf-panel__title,
.waf-section__title {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--waf-text);
}

/* Checkbox rows */
.waf-panel label {
	color: var(--waf-text);
	font-size: 13.5px;
}

.waf-panel .waf-count {
	color: var(--waf-muted);
}
