/* Christian Phone Cases – Product Filters */

.cpc-filters {
	--cpc-text: #000;
	--cpc-muted: #737373;
	--cpc-line: rgba(0, 0, 0, 0.1);
	--cpc-radius: 20px;
	width: 100%;
	transition: opacity 0.2s ease;
}

.cpc-filters.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.cpc-filters__form {
	margin: 0;
}

/* Groups */
.cpc-filter {
	border-top: 0.8px solid var(--cpc-line);
	padding: 15px 0;
}

.cpc-filter__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cpc-text);
}

.cpc-filter__title::-webkit-details-marker {
	display: none;
}

.cpc-filter__title::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.cpc-filter[open] > .cpc-filter__title::after {
	transform: rotate(-135deg) translateY(-2px);
}

.cpc-filter__body {
	padding-top: 12px;
}

/* Radio / checkbox options */
.cpc-filter__options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cpc-filter__options li {
	margin: 0;
	padding: 0;
}

.cpc-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.4;
	color: var(--cpc-muted);
}

.cpc-option input {
	margin: 0;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #000;
	cursor: pointer;
}

.cpc-option input:checked ~ .cpc-option__label {
	color: var(--cpc-text);
	font-weight: 500;
}

.cpc-option__count {
	margin-left: auto;
	font-size: 13px;
	color: var(--cpc-muted);
}

.cpc-option:hover .cpc-option__label {
	color: var(--cpc-text);
}

/* Colour swatches */
.cpc-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--cpc-swatch, #d9d9d9);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Phone model dropdown */
.cpc-select {
	width: 100%;
	height: 42px;
	padding: 0 32px 0 12px;
	border: 0.8px solid rgb(221, 222, 223);
	border-radius: 10px;
	background-color: #fff;
	font-size: 15px;
	color: var(--cpc-text);
	cursor: pointer;
}

.cpc-select:disabled {
	color: var(--cpc-muted);
	background-color: #f5f5f5;
	cursor: not-allowed;
}

/* Price */
.cpc-price {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px;
}

.cpc-price__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 70px;
	min-width: 0;
	font-size: 13px;
	color: var(--cpc-muted);
}

.cpc-price__input {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 10px;
	border: 0.8px solid rgb(221, 222, 223);
	border-radius: 10px;
	background: #fff;
}

.cpc-price__symbol {
	color: var(--cpc-muted);
	margin-right: 4px;
}

.cpc-price__input input {
	width: 100%;
	min-width: 0;
	border: 0;
	padding: 0;
	background: transparent;
	font-size: 15px;
	color: var(--cpc-text);
	-moz-appearance: textfield;
}

.cpc-price__input input::-webkit-outer-spin-button,
.cpc-price__input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cpc-price__input input:focus {
	outline: none;
}

.cpc-price__input:focus-within {
	border-color: #000;
}

.cpc-price__sep {
	padding-bottom: 10px;
	color: var(--cpc-muted);
}

.cpc-price__apply,
.cpc-filters__apply,
.cpc-filters__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 15px;
	border: 0;
	border-radius: var(--cpc-radius);
	background: #000;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	text-decoration: none;
	cursor: pointer;
}

.cpc-price__apply {
	flex: 1 0 100%;
}

.cpc-filters__reset {
	margin-top: 5px;
}

.cpc-filters__reset:hover,
.cpc-filters__reset:focus,
.cpc-price__apply:hover,
.cpc-filters__apply:hover {
	background: #333;
	color: #fff;
}

.cpc-filter__title:focus-visible,
.cpc-option input:focus-visible,
.cpc-select:focus-visible,
.cpc-filters__reset:focus-visible,
.cpc-price__apply:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}
