/*
 * Seamless Hold Discovery - structural styles only.
 * Reference-accurate Shop styling is applied in the Shop integration run.
 * Palette tokens are exposed so that run can restyle without touching markup.
 */

.shd {
	--shd-primary: #A24522;
	--shd-secondary: #4E341B;
	--shd-text: #1C1106;
	--shd-accent: #846447;
	--shd-ivory: #FBF8F3;
	--shd-cream: #F3EDE5;
	--shd-border: #E5DCD2;
	color: var(--shd-text);
	font-size: 15px;
	line-height: 1.5;
}

.shd *,
.shd *::before,
.shd *::after {
	box-sizing: border-box;
}

.shd-filters__heading {
	margin: 0 0 12px;
	font-weight: 600;
}

.shd-facet {
	border: 0;
	border-top: 1px solid var(--shd-border);
	margin: 0;
	padding: 16px 0;
}

.shd-facet:first-of-type {
	border-top: 0;
}

.shd-facet__title {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-weight: 600;
}

.shd-facet__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shd-facet__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
}

.shd-facet__item[hidden] {
	display: none;
}

.shd-facet__label {
	display: flex;
	flex: 1 1 auto;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	cursor: pointer;
}

.shd-facet__count {
	color: var(--shd-accent);
	font-size: 0.85em;
}

.shd-facet__search,
.shd-facet__input,
.shd-search__input {
	border: 1px solid var(--shd-border);
	background: var(--shd-ivory);
	color: var(--shd-text);
	padding: 7px 10px;
	width: 100%;
	font: inherit;
}

.shd-facet__search {
	margin-bottom: 10px;
}

.shd-facet__more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--shd-primary);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.shd-filters__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--shd-border);
}

.shd-filters__apply {
	border: 1px solid var(--shd-primary);
	background: var(--shd-primary);
	color: var(--shd-ivory);
	padding: 9px 18px;
	font: inherit;
	cursor: pointer;
}

.shd-filters__clear,
.shd-active__clear {
	color: var(--shd-secondary);
	text-decoration: underline;
}

.shd-active {
	margin-bottom: 16px;
}

.shd-active__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.shd-active__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--shd-border);
	background: var(--shd-cream);
	color: var(--shd-text);
	padding: 5px 10px;
	text-decoration: none;
}

.shd-active__label {
	color: var(--shd-accent);
}

.shd-active__remove {
	color: var(--shd-primary);
	font-weight: 700;
	line-height: 1;
}

.shd-search {
	display: flex;
	gap: 8px;
}

.shd-search__submit {
	border: 1px solid var(--shd-primary);
	background: var(--shd-primary);
	color: var(--shd-ivory);
	padding: 8px 16px;
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.shd .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* ---- Collapsible facet shell (native <details>, no JS required) ---- */

details.shd-facet > summary.shd-facet__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	list-style: none;
}

details.shd-facet > summary.shd-facet__title::-webkit-details-marker {
	display: none;
}

.shd-facet__chevron {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-135deg);
	transition: transform .15s ease;
}

details.shd-facet:not([open]) .shd-facet__chevron {
	transform: rotate(45deg);
}

/* ---- Price: one coherent range control ---- */

/*
 * The rail is the visual spine of the facet. Without the script it is an
 * inert bar sitting above the two real query fields, which continue to
 * submit shd_min_price and shd_max_price on their own. With the script the
 * same rail carries two handles that write into those fields, so what the
 * shopper drags and what the server filters on are the same values.
 *
 * Specificity note. The Elementor global kit styles every text-like field
 * through
 *
 *     .elementor-kit-6 input:not([type="button"]):not([type="submit"])
 *
 * which is one class, two attribute selectors and a type - enough to beat a
 * bare .shd-facet__number and to repaint both the value fields and the
 * invisible range handles as 14px-padded bordered boxes. Every rule below
 * that touches an input is therefore anchored on four classes plus the type,
 * which clears that rule without !important and without disturbing the kit
 * styling that the rest of the rail legitimately relies on.
 */

.shd.shd-filters .shd-facet--price .shd-facet__price {
	display: block;
}

.shd.shd-filters .shd-facet--price .shd-facet__rail {
	position: relative;
	height: 4px;
	margin: 8px 8px 18px;
	border-radius: 2px;
	background: var(--shd-border);
}

.shd.shd-filters .shd-facet--price .shd-facet__rail-fill {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 2px;
	background: var(--shd-primary);
}

.shd.shd-filters .shd-facet--price .shd-facet__range {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.shd.shd-filters .shd-facet--price .shd-facet__money {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	padding: 0 8px;
	border: 1px solid var(--shd-border);
	border-radius: 3px;
	background: #FFFFFF;
	color: var(--shd-secondary);
	font-family: Manrope, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 30px;
}

.shd.shd-filters .shd-facet--price .shd-facet__money:focus-within {
	border-color: var(--shd-primary);
}

.shd.shd-filters .shd-facet--price .shd-facet__cur {
	flex: 0 0 auto;
	color: var(--shd-accent);
	font-weight: 400;
}

.shd.shd-filters .shd-facet--price input.shd-facet__number {
	width: 44px;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--shd-secondary);
	font-family: Manrope, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 30px;
	-moz-appearance: textfield;
}

.shd.shd-filters .shd-facet--price input.shd-facet__number::-webkit-outer-spin-button,
.shd.shd-filters .shd-facet--price input.shd-facet__number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shd.shd-filters .shd-facet--price input.shd-facet__number:focus {
	outline: none;
	border: 0;
	background: transparent;
}

.shd.shd-filters .shd-facet--price input.shd-facet__number:focus-visible {
	outline: 2px solid var(--shd-primary);
	outline-offset: 3px;
}

.shd.shd-filters .shd-facet--price input.shd-facet__number::placeholder {
	color: #9C8A76;
	font-weight: 400;
	opacity: 1;
}

/* ---- Dual handles, added by the script only ---- */

.shd.shd-filters .shd-facet--price input.shd-facet__handle {
	position: absolute;
	top: 50%;
	left: -8px;
	width: calc(100% + 16px);
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle:focus {
	outline: none;
	border: 0;
	background: transparent;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle::-webkit-slider-runnable-track {
	height: 22px;
	border: 0;
	background: transparent;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle::-moz-range-track {
	height: 22px;
	border: 0;
	background: transparent;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	margin-top: 4px;
	width: 14px;
	height: 14px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--shd-primary);
	box-shadow: 0 0 0 1px var(--shd-primary);
	cursor: pointer;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--shd-primary);
	box-shadow: 0 0 0 1px var(--shd-primary);
	cursor: pointer;
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px var(--shd-text);
}

.shd.shd-filters .shd-facet--price input.shd-facet__handle:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 2px var(--shd-text);
}

@media (max-width: 1024px) {
	.shd.shd-filters .shd-facet--price .shd-facet__money {
		line-height: 40px;
		font-size: 14px;
	}

	.shd.shd-filters .shd-facet--price input.shd-facet__number {
		width: 50px;
		font-size: 14px;
		line-height: 40px;
	}

	.shd.shd-filters .shd-facet--price .shd-facet__rail {
		margin: 10px 10px 20px;
	}

	.shd.shd-filters .shd-facet--price input.shd-facet__handle {
		left: -10px;
		width: calc(100% + 20px);
	}

	.shd.shd-filters .shd-facet--price input.shd-facet__handle::-webkit-slider-thumb {
		margin-top: 2px;
		width: 18px;
		height: 18px;
	}

	.shd.shd-filters .shd-facet--price input.shd-facet__handle::-moz-range-thumb {
		width: 18px;
		height: 18px;
	}
}
/* ---- Compact search submit ---- */

.shd-search__submit--icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.shd-search__submit--icon .shd-search__submit-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
