/* ============================================================
   Chaloner Product Filter — sidebar styling
   Mirrors the BROWSE / FILTER BY PRICE reference design.
   ============================================================ */

.cpf-filter {
	font-family: inherit;
	color: #4a4a4a;
	max-width: 240px;
}

.cpf-block {
	margin-bottom: 40px;
}

.cpf-heading {
    position: relative;
    display: block;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b6b6b;
    margin: 0 0 20px;
    padding-bottom: 14px;
    font-weight: 600;
}

.cpf-cat-name {
	font-size: 13px !important;
}

/* Fixed-width gold accent under the heading — independent of text length,
   so longer headings (e.g. "Filter by Price") don't overflow it. */
.cpf-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background: #d8c9a8;
}

/* BROWSE category list ------------------------------------- */
.cpf-categories {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.cpf-categories .cpf-cat {
	margin: 0;
	border-bottom: 1px solid #ececec;
	list-style: none;
}

.cpf-categories .cpf-cat a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	color: #3a4a63;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cpf-categories .cpf-cat a:hover,
.cpf-categories .cpf-cat.is-active a {
	color: #b29a5e; /* gold */
}

.cpf-cat-count {
	color: #b0b0b0;
	font-size: 13px;
}

/* FILTER BY PRICE ------------------------------------------ */
.cpf-block--price .ui-slider,
.cpf-slider.ui-slider {
	position: relative;
	height: 6px;
	background: #d9d9d9;
	border: none;
	border-radius: 6px;
	margin: 18px 0 22px;
}

.cpf-slider .ui-slider-range {
	background: #9a9a9a;
	border-radius: 6px;
}

.cpf-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 16px;
	height: 16px;
	top: -5px;
	margin-left: -8px;
	background: #6b6b6b;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	outline: none;
	touch-action: none;
}

.cpf-slider .ui-slider-handle:hover,
.cpf-slider .ui-slider-handle.ui-state-active {
	background: #b29a5e;
}

.cpf-price-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.cpf-price-row .woocommerce-Price-amount.amount {
    color: #222 !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: bold !important;
    line-height: 20px;
}

/* Scoped + !important so the theme's default .button / link styles
   (which were turning this into a blue link) can't override it. */
.cpf-filter .cpf-submit,
.cpf-filter .cpf-submit.button,
.cpf-filter .cpf-submit:hover,
.cpf-filter .cpf-submit.button:hover {
	display: inline-block;
	flex: 0 0 auto;
	width: 100%;
	background: #6b6b6b !important;
	color: #fff !important;
	border: none !important;
	border-radius: 24px;
	padding: 9px 24px;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
}

/* No hover state — button stays solid grey. */
.cpf-filter .cpf-submit:after {
	display: none;
}

.cpf-price-label {
	font-size: 14px !important;
	color: #777;
	white-space: normal;
}

.cpf-price-label .cpf-amount {
	font-size: 14px !important;
	color: #2b2b2b;
	font-weight: 600;
}

/* On-sale + reset ------------------------------------------ */
.cpf-block--onsale {
	margin-top: -18px;
	margin-bottom: 28px;
}

.cpf-onsale {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #4a4a4a;
}

.cpf-reset a {
	font-size: 13px;
	color: #b29a5e;
	text-decoration: underline;
}

/* Loading state -------------------------------------------- */
.cpf-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
