/* UK (cocd 44) listing: filter sidebar + results. Uses the site's fonts and colours. */

.ukcf {
	padding-top: 10px;
}

.ukcf .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------- Sidebar ---------- */

.ukcf-sidebar {
	padding-right: 24px;
}

.ukcf-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-bottom: 2px solid #000;
	padding: 6px 0 10px;
}

.ukcf-title {
	font-family: "Roboto", sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #000;
}

.ukcf-reset {
	background: none;
	border: 0;
	padding: 0;
	font-size: 14px;
	color: #000;
	text-decoration: underline;
	cursor: pointer;
}

.ukcf-section {
	border-bottom: 1px solid #e5e5e5;
}

.ukcf-section-title {
	margin: 0;
	font-size: inherit;
}

.ukcf-section-toggle {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: 0;
	padding: 14px 0;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	text-align: left;
	cursor: pointer;
}

.ukcf-section-toggle:after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
	transform: rotate(-135deg);
	transition: transform 0.15s;
}

.ukcf-section:not(.is-open) .ukcf-section-toggle:after {
	transform: rotate(45deg);
}

.ukcf-section:not(.is-open) .ukcf-section-body {
	display: none;
}

.ukcf-section-body {
	padding-bottom: 14px;
}

.ukcf-list,
.ukcf-tree,
.ukcf-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ukcf-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 400;
	color: #222;
	cursor: pointer;
}

.ukcf-opt input[type="checkbox"] {
	flex: none;
	width: 15px;
	height: 15px;
	margin: 0;
	cursor: pointer;
	accent-color: #000;
}

.ukcf-opt input[disabled] {
	cursor: default;
}

.ukcf-opt input[disabled] + .ukcf-opt-label {
	color: #777;
}

.ukcf-opt-label {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.ukcf-count {
	flex: none;
	color: #888;
	font-size: 13px;
}

.ukcf-extra {
	display: none;
}

.ukcf-section.is-more .ukcf-extra {
	display: block;
}

.ukcf-more {
	background: none;
	border: 0;
	padding: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: underline;
	cursor: pointer;
}

.ukcf-empty {
	margin: 0;
	font-size: 13px;
	color: #888;
}

/* Region tree */
.ukcf-node-row {
	display: flex;
	align-items: center;
}

.ukcf-expand,
.ukcf-expand-spacer {
	flex: none;
	width: 22px;
	height: 22px;
	margin-right: 4px;
}

.ukcf-expand {
	padding: 0;
	border: 0;
	background: none;
	font-size: 16px;
	line-height: 22px;
	color: #000;
	cursor: pointer;
}

.ukcf-expand:before {
	content: "+";
}

.ukcf-node.is-expanded > .ukcf-node-row .ukcf-expand:before {
	content: "\2212";
}

.ukcf-children {
	display: none;
	padding-left: 26px;
}

.ukcf-node.is-expanded > .ukcf-children {
	display: block;
}

.ukcf-opt-virtual {
	cursor: default;
	color: #555;
	font-style: italic;
}

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

.ukcf-price-inputs label {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: #666;
}

.ukcf-price-inputs input {
	display: block;
	width: 100%;
	height: 34px;
	margin-top: 3px;
	padding: 4px 8px;
	border: 1px solid #cbd6dd;
	border-radius: 0;
	font-size: 14px;
	color: #000;
	-moz-appearance: textfield;
}

.ukcf-price-inputs input::-webkit-outer-spin-button,
.ukcf-price-inputs input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ukcf-price-sep {
	padding-bottom: 7px;
}

.ukcf-range {
	position: relative;
	height: 22px;
	margin: 14px 2px 4px;
}

.ukcf-range-track {
	position: absolute;
	top: 9px;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 2px;
	background: #ddd;
}

.ukcf-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 2px;
	background: #000;
}

.ukcf-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 22px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.ukcf-range input[type="range"]::-webkit-slider-runnable-track {
	background: none;
}

.ukcf-range input[type="range"]::-webkit-slider-thumb {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #000;
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
}

.ukcf-range input[type="range"]::-moz-range-thumb {
	width: 17px;
	height: 17px;
	border: none;
	border-radius: 50%;
	background: #000;
	pointer-events: auto;
	cursor: pointer;
}

.ukcf-price-apply {
	margin-top: 12px;
	padding: 6px 18px;
	border: 0;
	background-color: #950115;
	color: #fff;
	font-size: 14px;
}

/* ---------- Results column ---------- */

.ukcf-search {
	display: flex;
	margin-bottom: 14px;
}

.ukcf-search input {
	flex: 1;
	min-width: 0;
	height: 34px;
	padding: 4px 10px;
	border: 1px solid #cbd6dd;
	border-right: 0;
	border-radius: 0;
	font-size: 15px;
}

.ukcf-search button {
	width: 44px;
	height: 34px;
	border: 0;
	background: #000;
	color: #fff;
}

.ukcf-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.ukcf-summary {
	flex: 1;
	min-width: 160px;
	font-size: 15px;
	color: #222;
}

.ukcf-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ukcf-controls select.form-control {
	width: auto;
	min-width: 190px;
	height: 34px;
	border-radius: 0;
}

.ukcf-view {
	display: flex;
	gap: 4px;
}

.ukcf-view-btn {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #cbd6dd;
	background: #fff;
	color: #999;
	font-size: 16px;
}

.ukcf-view-btn.active {
	border-color: #000;
	color: #000;
}

.ukcf-open {
	display: none;
	margin-left: 0;
}

.ukcf-open img {
	width: 16px;
}

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

.ukcf-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 2px 3px 10px;
	border: 1px solid #ddd;
	background: #f4f4f4;
	font-size: 13px;
	color: #000;
}

.ukcf-chip-x {
	padding: 3px 7px;
	border: 0;
	background: none;
	font-size: 11px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}

.ukcf-clear-all {
	font-size: 13px;
}

.ukcf-main #listgrid_view {
	transition: opacity 0.15s;
}

.ukcf-main.is-loading #listgrid_view {
	opacity: 0.45;
	pointer-events: none;
}

.ukcf-error {
	padding: 30px 0;
	color: #950115;
}

.ukcf .listImg img.ukcf-noimg {
	object-fit: contain;
	opacity: 0.35;
}

.ukcf-drawer-head,
.ukcf-drawer-foot,
.ukcf-backdrop {
	display: none;
}

/* ---------- Mobile: sidebar becomes a drawer ---------- */

@media (max-width: 767px) {
	.ukcf-open {
		display: flex;
	}

	.ukcf-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100001;
		width: 88%;
		max-width: 380px;
		padding: 0 16px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.2s, visibility 0.2s;
	}

	body.ukcf-drawer-open {
		overflow: hidden;
	}

	body.ukcf-drawer-open .ukcf-sidebar {
		transform: none;
		visibility: visible;
	}

	body.ukcf-drawer-open .ukcf-backdrop {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		background: rgba(0, 0, 0, 0.45);
	}

	.ukcf-drawer-head {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 1;
		justify-content: space-between;
		align-items: center;
		padding: 12px 0;
		background: #fff;
		font-family: "Roboto", sans-serif;
		font-size: 18px;
		font-weight: 500;
	}

	.ukcf-drawer-close {
		border: 0;
		background: none;
		font-size: 28px;
		line-height: 1;
	}

	.ukcf-drawer-foot {
		display: block;
		position: sticky;
		bottom: 0;
		padding: 12px 0;
		background: #fff;
	}

	.ukcf-drawer-done {
		width: 100%;
		height: 44px;
		border: 0;
		background-color: #950115;
		color: #fff;
		font-size: 16px;
	}

	.ukcf-summary {
		order: 3;
		flex-basis: 100%;
	}

	.ukcf-controls {
		flex: 1;
		justify-content: flex-end;
	}

	.ukcf-controls select.form-control {
		min-width: 0;
		max-width: 200px;
	}
}

.ukcf-card-meta {
	margin-top: 2px;
	font-size: 13px;
	color: #666;
}

@media (max-width: 767px) {
	.ukcf-sidebar .ukcf-title {
		visibility: hidden;
	}
}

/* Producer facet search + producer link on results */
.ukcf-facet-search {
	display: block;
	width: 100%;
	height: 32px;
	margin: 0 0 8px;
	padding: 4px 8px;
	border: 1px solid #cbd6dd;
	border-radius: 0;
	font-size: 14px;
}

.ukcf-producer-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	color: #950115;
	text-decoration: underline;
}

.ukcf-producer-link:hover,
.ukcf-producer-link:focus {
	color: #000;
}

.listBox .ukcf-producer-link {
	margin: 2px 0 0;
	font-size: 13px;
}
