/* Shop filters on category and search results pages (Lafu_Search_Filters, search-filters.js). */
/* The sheet has its own colours: a dark theme's light text on labels and titles must not reach it. */
.lafu-f-sheet :where(h2, h3, legend, label, span, p, a, input, select) {
	color: inherit;
}

.lafu-f {
	--lafu-f-accent: #4b3be0;
	--lafu-f-text: inherit;
	--lafu-f-muted: #595959;
	--lafu-f-line: #d6d6db;
	--lafu-f-bg: #fff;
	--lafu-f-soft: #f3f3f7;
	--lafu-f-ink: #1d1d1f;
	--lafu-f-on-accent: #fff;
	--lafu-f-chip: #e7e5fb;
	--lafu-f-radius: 10px;
	font-size: 15px;
}

.lafu-f .screen-reader-text,
.lafu-f-slot .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Bar above the products: filter button, chips, count. */
.lafu-f-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.lafu-f-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.lafu-f-open[hidden],
.lafu-f-close[hidden],
.lafu-f-foot[hidden],
.lafu-f-apply[hidden] {
	display: none;
}

.lafu-f-badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--lafu-f-accent);
	color: var(--lafu-f-on-accent);
	font-size: 13px;
}

.lafu-f-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lafu-f-chip,
.lafu-f-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
}

.lafu-f-chip {
	border: 1px solid var(--lafu-f-accent);
	background: var(--lafu-f-soft);
}

.lafu-f-chip__label {
	color: var(--lafu-f-muted);
}

.lafu-f-chip__x {
	font-size: 18px;
	line-height: 1;
}

.lafu-f-clear {
	text-decoration: underline;
}

.lafu-f-chip:hover,
.lafu-f-chip:focus-visible {
	background: var(--lafu-f-chip);
}

.lafu-f-live {
	margin: 0 0 0 auto;
	color: var(--lafu-f-muted);
	font-size: 14px;
}

.lafu-f.is-loading [data-lafu-region-products],
.lafu-f.is-loading ~ .products,
.lafu-f.is-loading .products {
	opacity: 0.55;
	transition: opacity 0.15s;
}

/* The filters. */
.lafu-f-panel {
	margin: 0;
}

.lafu-f-group {
	min-width: 0;
	margin: 0 0 20px;
	padding: 0 0 16px;
	border: 0;
	border-bottom: 1px solid var(--lafu-f-line);
}

.lafu-f-legend {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
}

.lafu-f-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lafu-f-values li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 3px 0;
}

.lafu-f-values input[type="checkbox"],
.lafu-f-values input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lafu-f-accent);
	cursor: pointer;
}

.lafu-f-values label {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	cursor: pointer;
}

.lafu-f-values input:disabled + label {
	color: var(--lafu-f-muted);
	cursor: default;
}

.lafu-f-n {
	margin-left: auto;
	color: var(--lafu-f-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.lafu-f-logo {
	flex: none;
	width: 40px;
	height: 20px;
	object-fit: contain;
}

.lafu-f-group.is-short:not(.is-finding) .lafu-f-extra {
	display: none;
}

.lafu-f-all,
.lafu-f-more-btn {
	margin-top: 6px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--lafu-f-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.lafu-f-all[hidden],
.lafu-f-more-btn[hidden],
.lafu-f-find[hidden],
.lafu-f-range[hidden] {
	display: none;
}

.lafu-f-more-btn {
	margin: 0 0 16px;
}

.lafu-f-find {
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	margin: 0 0 8px;
	padding: 0 10px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
	font: inherit;
}

/* Themes style search fields with more weight (WoodMart: no border, white placeholder). */
.lafu-f-panel input.lafu-f-find[type="search"] {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
}

.lafu-f-panel input.lafu-f-find[type="search"]::placeholder {
	color: currentColor;
	opacity: 0.7;
}

.lafu-f-picks ul,
.lafu-f-cats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lafu-f-picks a,
.lafu-f-cats a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 999px;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
}

.lafu-f-picks a[aria-current="page"] {
	border-color: var(--lafu-f-accent);
	background: var(--lafu-f-soft);
	font-weight: 600;
}

.lafu-f-cats .lafu-f-n {
	margin-left: 0;
}

/* Sliders: two native range inputs on one track. */
.lafu-f-range {
	--lafu-a: 0%;
	--lafu-b: 100%;
	position: relative;
	height: 32px;
	margin: 4px 10px 8px;
}

.lafu-f-range::before,
.lafu-f-range::after {
	content: "";
	position: absolute;
	top: 14px;
	height: 4px;
	border-radius: 2px;
}

.lafu-f-range::before {
	right: 0;
	left: 0;
	background: var(--lafu-f-line);
}

.lafu-f-range::after {
	right: calc(100% - var(--lafu-b));
	left: var(--lafu-a);
	background: var(--lafu-f-accent);
}

.lafu-f-range input[type="range"] {
	position: absolute;
	z-index: 1;
	top: 0;
	left: -10px;
	width: calc(100% + 20px);
	height: 32px;
	margin: 0;
	background: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.lafu-f-range input[type="range"]::-webkit-slider-runnable-track {
	height: 32px;
	background: none;
}

.lafu-f-range input[type="range"]::-moz-range-track {
	height: 32px;
	background: none;
}

.lafu-f-range input[type="range"]::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	margin-top: 4px;
	border: 2px solid var(--lafu-f-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	pointer-events: auto;
	cursor: grab;
	appearance: none;
	-webkit-appearance: none;
}

.lafu-f-range input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 2px solid var(--lafu-f-accent);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: grab;
}

.lafu-f-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 3px solid var(--lafu-f-accent);
	outline-offset: 2px;
}

.lafu-f-range input[type="range"]:focus-visible::-moz-range-thumb {
	outline: 3px solid var(--lafu-f-accent);
	outline-offset: 2px;
}

.lafu-f-range__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.lafu-f-range__fields label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--lafu-f-muted);
	font-size: 13px;
}

.lafu-f-range__box {
	display: flex;
	align-items: center;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
	background: var(--lafu-f-bg);
}

.lafu-f-range__box input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 40px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--lafu-f-text);
	font: inherit;
	font-size: 15px;
}

.lafu-f-unit {
	padding: 0 8px 0 0;
	color: var(--lafu-f-muted);
}

.lafu-f-apply {
	margin: 0;
}

/* The drawer: shown inline without script; a dialog when the script runs. */
.lafu-f-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lafu-f-title {
	margin: 0 0 12px;
	font-size: 18px;
}

.lafu-f-ready .lafu-f-drawer:not(.is-open) .lafu-f-title,
.lafu-f-slot .lafu-f-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.lafu-f-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--lafu-f-soft);
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.lafu-f--drawer .lafu-f-drawer[hidden] {
	display: none;
}

.lafu-f-drawer.is-open {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: stretch;
	background: rgba(0, 0, 0, 0.45);
}

.lafu-f-drawer.is-open .lafu-f-sheet {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(420px, 100%);
	max-height: 100%;
	padding: 16px 20px 0;
	overflow: auto;
	background: var(--lafu-f-bg);
	color: var(--lafu-f-ink);
	animation: lafu-f-in-side 0.2s ease-out;
	overscroll-behavior: contain;
}

.lafu-f-drawer.is-open .lafu-f-panel {
	flex: 1;
}

.lafu-f-foot {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 -20px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--lafu-f-line);
	background: var(--lafu-f-bg);
}

.lafu-f-reset {
	color: inherit;
	text-decoration: underline;
}

.lafu-f-show {
	flex: 1;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--lafu-f-radius);
	background: var(--lafu-f-accent);
	color: var(--lafu-f-on-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.lafu-f-show[aria-busy="true"] {
	cursor: progress;
}

html.lafu-f-locked,
html.lafu-f-locked body {
	overflow: hidden;
}

@media (max-width: 899px) {
	/* Phones: a bottom sheet. */
	.lafu-f-drawer.is-open {
		align-items: flex-end;
	}

	.lafu-f-drawer.is-open .lafu-f-sheet {
		width: 100%;
		max-height: 88vh;
		border-radius: 16px 16px 0 0;
		animation-name: lafu-f-in-up;
	}

	.lafu-f-live {
		width: 100%;
		margin: 0;
		order: 3;
	}
}

@keyframes lafu-f-in-side {
	from {
		transform: translateX(-24px);
		opacity: 0;
	}
}

@keyframes lafu-f-in-up {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lafu-f-drawer.is-open .lafu-f-sheet {
		animation: none;
	}
}

.lafu-f-slot .lafu-f-panel {
	margin: 0 0 24px;
}

.lafu-f-intro {
	margin: 0 0 16px;
}

.lafu-f-area.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s;
}

@media (prefers-reduced-motion: reduce) {
	.lafu-f-area.is-loading {
		transition: none;
	}
}

/* Until the script runs the filters stay out of the way, so the products do not jump. */
.lafu-f:not(.lafu-f-ready) .lafu-f-drawer {
	display: none;
}

/* Dark sites: the same parts in dark colours. The variables sit on both the bar and the sheet. */
.lafu-f-slot {
	--lafu-f-accent: #4b3be0;
	--lafu-f-muted: #595959;
	--lafu-f-line: #d6d6db;
	--lafu-f-bg: #fff;
	--lafu-f-soft: #f3f3f7;
	--lafu-f-on-accent: #fff;
	--lafu-f-chip: #e7e5fb;
	--lafu-f-ink: inherit;
	margin: 0 0 24px;
}

.lafu-f--dark {
	--lafu-f-accent: #a39bff;
	--lafu-f-on-accent: #111;
	--lafu-f-ink: #f2f2f4;
	--lafu-f-muted: #b4b4bc;
	--lafu-f-line: rgba(255, 255, 255, 0.2);
	--lafu-f-bg: #1c1c20;
	--lafu-f-soft: rgba(255, 255, 255, 0.08);
	--lafu-f-chip: rgba(255, 255, 255, 0.14);
}

.lafu-f-drawer.lafu-f--dark .lafu-f-sheet input[type="number"],
.lafu-f-drawer.lafu-f--dark .lafu-f-sheet .lafu-f-select,
.lafu-f-drawer.lafu-f--dark .lafu-f-range__box {
	background: transparent;
	color: inherit;
}

.lafu-f--dark .lafu-f-range input[type="range"]::-webkit-slider-thumb {
	background: #1c1c20;
}

.lafu-f--dark .lafu-f-range input[type="range"]::-moz-range-thumb {
	background: #1c1c20;
}

/* Black logos stay readable on a dark sheet. */
.lafu-f--dark .lafu-f-logo {
	box-sizing: content-box;
	padding: 2px 4px;
	border-radius: 4px;
	background: #fff;
}

/* Groups that open and close. */
.lafu-f-group > .lafu-f-legend {
	width: 100%;
	padding: 0;
}

.lafu-f-legend .lafu-f-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: inherit;
	cursor: pointer;
}

.lafu-f-toggle .lafu-f-chev {
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s;
}

.lafu-f-group.is-closed .lafu-f-chev {
	transform: rotate(-45deg);
}

.lafu-f-group.is-closed > .lafu-f-body {
	display: none;
}

/* Histogram above a slider. */
.lafu-f-hist {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 44px;
	margin: 4px 10px -6px;
}

.lafu-f-hist[hidden] {
	display: none;
}

.lafu-f-hist i {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 100%;
	cursor: pointer;
}

.lafu-f-hist i::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: var(--lafu-h, 0%);
	border-radius: 2px 2px 0 0;
	background: var(--lafu-f-line);
	transition: height 0.15s, opacity 0.1s;
}

.lafu-f-hist i.is-in::after {
	background: var(--lafu-f-accent);
	opacity: 0.55;
}

.lafu-f-hist i:hover::after {
	background: var(--lafu-f-accent);
	opacity: 1;
}

.lafu-f-hist i[data-n="0"] {
	cursor: default;
}

.lafu-f-tip {
	position: fixed;
	z-index: 100001;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--lafu-f-ink);
	color: var(--lafu-f-bg);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
}

.lafu-f-tip[hidden] {
	display: none;
}

/* Choices shown as buttons or links. */
.lafu-f-values--pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lafu-f-values--pills li {
	position: relative;
	display: block;
	min-height: 0;
	margin: 0;
}

.lafu-f-values--pills input[type="checkbox"],
.lafu-f-values--pills input[type="radio"],
.lafu-f-values--links input[type="checkbox"],
.lafu-f-values--links input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.lafu-f-values--pills label {
	display: inline-flex;
	gap: 6px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
}

.lafu-f-values--pills .lafu-f-n {
	margin-left: 0;
}

.lafu-f-values--pills input:checked + label {
	border-color: var(--lafu-f-accent);
	background: var(--lafu-f-chip);
	font-weight: 600;
}

.lafu-f-values--pills input:focus-visible + label,
.lafu-f-values--links input:focus-visible + label {
	outline: 3px solid var(--lafu-f-accent);
	outline-offset: 2px;
}

.lafu-f-values--links input:checked + label {
	color: var(--lafu-f-accent);
	font-weight: 600;
}

.lafu-f-select {
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
	font: inherit;
}

/* Top bar: each filter is a button with its choices in a panel under it. */
.lafu-f-panel.is-top {
	display: flex;
	flex-wrap: wrap;
	flex-basis: 100%;
	gap: 8px;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	color: var(--lafu-f-ink);
}

.lafu-f-panel.is-top .lafu-f-more {
	display: contents;
}

.lafu-f-panel.is-top .lafu-f-more-btn {
	display: none;
}

.lafu-f-panel.is-top .lafu-f-group {
	position: relative;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lafu-f-line);
	border-radius: 8px;
}

.lafu-f-panel.is-top .lafu-f-group > .lafu-f-legend {
	float: left;
	width: auto;
	margin: 0;
	font-size: 14px;
}

.lafu-f-panel.is-top .lafu-f-toggle {
	width: auto;
	min-height: 38px;
	padding: 0 12px;
	white-space: nowrap;
}

.lafu-f-panel.is-top .lafu-f-body {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	left: 0;
	box-sizing: border-box;
	width: 300px;
	max-height: 60vh;
	padding: 14px;
	overflow: auto;
	border: 1px solid var(--lafu-f-line);
	border-radius: var(--lafu-f-radius);
	background: var(--lafu-f-bg);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.lafu-f.lafu-f--dark {
	--lafu-f-text: var(--lafu-f-ink);
}

.lafu-f {
	flex-basis: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.lafu-f-toggle .lafu-f-chev,
	.lafu-f-hist i::after {
		transition: none;
	}
}

/* The theme's button that opens its own filter sidebar: these filters have their own. */
body.lafu-f-replaces .wd-show-sidebar-btn.wd-action-btn {
	display: none;
}

/* Dark sites: native controls in dark, and the theme's bright button style stays out. */
.lafu-f--dark {
	color-scheme: dark;
}

.lafu-f--dark .lafu-f-values input[type="checkbox"],
.lafu-f--dark .lafu-f-values input[type="radio"],
.lafu-f--dark .lafu-f-group input[type="checkbox"],
.lafu-f--dark .lafu-f-group input[type="radio"] {
	border-color: var(--lafu-f-muted);
	background-color: transparent;
	accent-color: var(--lafu-f-accent);
}

.lafu-f--dark .lafu-f-sheet button.lafu-f-close,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all,
.lafu-f--dark .lafu-f-sheet button.lafu-f-more-btn,
.lafu-f--dark button.lafu-f-open {
	border: 1px solid var(--lafu-f-line);
	background: var(--lafu-f-soft);
	color: var(--lafu-f-ink);
}

/* The button that applies the choices stands out in every theme. */
.lafu-f-drawer .lafu-f-foot button.lafu-f-show {
	background: var(--lafu-f-accent);
	color: var(--lafu-f-on-accent);
}

.lafu-f--dark .lafu-f-range__box input[type="number"] {
	border: 0;
	box-shadow: none;
}

/* Themes paint buttons on hover, focus and press (WoodMart: white): the group toggle stays plain. */
.lafu-f-group .lafu-f-legend button.lafu-f-toggle,
.lafu-f-group .lafu-f-legend button.lafu-f-toggle:hover,
.lafu-f-group .lafu-f-legend button.lafu-f-toggle:focus,
.lafu-f-group .lafu-f-legend button.lafu-f-toggle:active {
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	transform: none;
}

.lafu-f-group .lafu-f-legend button.lafu-f-toggle:focus-visible {
	outline: 2px solid var(--lafu-f-accent);
	outline-offset: 2px;
}

.lafu-f--dark .lafu-f-sheet button.lafu-f-close:hover,
.lafu-f--dark .lafu-f-sheet button.lafu-f-close:focus,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all:hover,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all:focus,
.lafu-f--dark .lafu-f-sheet button.lafu-f-more-btn:hover,
.lafu-f--dark .lafu-f-sheet button.lafu-f-more-btn:focus,
.lafu-f--dark button.lafu-f-open:hover,
.lafu-f--dark button.lafu-f-open:focus {
	background: var(--lafu-f-chip);
	color: var(--lafu-f-ink);
}

.lafu-f-drawer .lafu-f-foot button.lafu-f-show:hover,
.lafu-f-drawer .lafu-f-foot button.lafu-f-show:focus {
	background: var(--lafu-f-accent);
	color: var(--lafu-f-on-accent);
	opacity: 0.9;
}

/* A theme's rounded box around a fieldset: only the line between the groups stays. */
.lafu-f-panel fieldset.lafu-f-group {
	border-width: 0 0 1px;
	border-style: solid;
	border-color: var(--lafu-f-line);
	border-radius: 0;
	box-shadow: none;
}

.lafu-f-panel.is-top fieldset.lafu-f-group {
	border-width: 1px;
	border-radius: 8px;
}

/* Even rhythm: the same space around every group, open or closed. */
.lafu-f-panel fieldset.lafu-f-group {
	margin: 0;
	padding: 10px 0;
}

.lafu-f-panel fieldset.lafu-f-group > .lafu-f-legend {
	margin: 0;
}

.lafu-f-group > .lafu-f-body {
	padding: 6px 0 8px;
}

.lafu-f-panel.is-top fieldset.lafu-f-group {
	padding: 0;
}

.lafu-f-panel.is-top .lafu-f-group > .lafu-f-body {
	padding: 14px;
}

/* Choice and its text on one line, whatever the theme does to inputs. */
.lafu-f-values li {
	align-items: center;
}

.lafu-f-values input[type="checkbox"],
.lafu-f-values input[type="radio"] {
	margin-top: 0;
	margin-bottom: 0;
}

/* Numbers start where their label starts. */
.lafu-f-range__box input[type="number"] {
	text-align: left;
}

/* Show all is a quiet link, not a second big button. */
.lafu-f-group button.lafu-f-all,
.lafu-f-group button.lafu-f-all:hover,
.lafu-f-group button.lafu-f-all:focus,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all:hover,
.lafu-f--dark .lafu-f-sheet button.lafu-f-all:focus {
	min-height: 32px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-transform: none;
}

.lafu-f-panel .lafu-f-range__box input[type="number"].lafu-f-num,
.lafu-f-panel .lafu-f-range__box input[type="number"] {
	padding-left: 12px;
}

.lafu-f-sheet button.lafu-f-close {
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: 8px;
}

.lafu-f-group > .lafu-f-body .lafu-f-values {
	margin-top: 0;
}

/* Themes style every input and button: these controls look the same on all of them. */
.lafu-f-range input[type="range"],
.lafu-f-range input[type="range"]:hover,
.lafu-f-range input[type="range"]:focus {
	width: calc(100% + 20px) !important;
	max-width: none !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.lafu-f-range__box input,
.lafu-f-range__box input:hover,
.lafu-f-range__box input:focus {
	flex: 1 1 auto;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 40px !important;
	margin: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.lafu-f-range__box:focus-within {
	border-color: var(--lafu-f-accent);
	box-shadow: 0 0 0 1px var(--lafu-f-accent);
}

button.lafu-f-close,
button.lafu-f-close:hover,
button.lafu-f-close:focus,
.lafu-f-sheet button.lafu-f-close,
.lafu-f-sheet button.lafu-f-close:hover,
.lafu-f-sheet button.lafu-f-close:focus {
	border: 0 !important;
	background: var(--lafu-f-soft) !important;
	box-shadow: none !important;
	color: var(--lafu-f-text) !important;
}

button.lafu-f-close:focus-visible {
	outline: 2px solid var(--lafu-f-accent);
	outline-offset: 2px;
}
