/* Повзунок ціни. Розмітку будує price-filter.js.
   Дві ручки — це два <input type="range"> один поверх одного: сам input
   прозорий для миші, кліки ловлять тільки ручки. */

.sh-pf {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 250px;
	padding: 6px 2px 2px;
}

.widget_price_filter .sh-pf {
	min-width: 0;
}

.sh-pf-slider {
	position: relative;
	height: 26px;
}

.sh-pf-rail,
.sh-pf-fill {
	position: absolute;
	top: 11px;
	height: 4px;
	border-radius: 2px;
}

.sh-pf-rail {
	left: 0;
	right: 0;
	background: var(--sh-brd, #e4e7ee);
}

.sh-pf-fill {
	background: var(--sh-ink, #14203a);
}

.sh-pf-h {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 26px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.sh-pf-h:focus {
	outline: none;
}

.sh-pf-h::-webkit-slider-runnable-track {
	background: none;
	border: 0;
}

.sh-pf-h::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border: 2px solid var(--sh-ink, #14203a);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(20, 32, 58, .2);
	cursor: pointer;
}

.sh-pf-h::-moz-range-track {
	background: none;
	border: 0;
}

.sh-pf-h::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border: 2px solid var(--sh-ink, #14203a);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.sh-pf-h-min {
	z-index: 3;
}

.sh-pf-h-max {
	z-index: 4;
}

.sh-pf-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sh-pf-field {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--sh-brd, #e4e7ee);
	border-radius: 10px;
	background: #fff;
}

.sh-pf-field:focus-within {
	border-color: var(--sh-ink, #14203a);
}

.sh-pf-word {
	flex: none;
	font-size: 12px;
	color: var(--sh-muted, #8b93a5);
}

/* Тема задає полям свою висоту, рамку й фон — тут поле вже всередині рамки. */
.sh-pf .sh-pf-in {
	width: 100%;
	min-width: 0;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--sh-ink, #14203a);
	-moz-appearance: textfield;
}

.sh-pf .sh-pf-in::-webkit-outer-spin-button,
.sh-pf .sh-pf-in::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sh-pf-acts {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sh-pf .sh-pf-go {
	flex: 1;
	min-height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 12px;
	background: var(--sh-ink, #14203a);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background .15s;
}

.sh-pf .sh-pf-go:hover {
	background: var(--sh-accent, #2f6bf3);
	color: #fff;
}

.sh-pf .sh-pf-reset {
	flex: none;
	color: var(--sh-muted, #8b93a5);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sh-pf .sh-pf-reset:hover {
	color: var(--sh-ink, #14203a);
}
