.fpv-root {
	--fpv-rows: 4;
	--fpv-zoom-cell: 86px;
	--fpv-strip-cell: 40px;
	margin: 0 0 8px;
	scroll-margin-top: 120px;
}

.fpv-brands {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 8px;
}

.fpv-brand {
	display: block;
	border: 1px solid #e7e8ea;
	border-radius: 8px;
	padding: 16px;
	text-decoration: none;
	color: #212B36;
	background: #fff;
}

.fpv-brand img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	background: #f4f5f6;
}

.fpv-brand-name {
	display: block;
	margin-top: 10px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
	min-height: 2.5em;
}

.fpv-root.is-open .fpv-brands {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0;
	margin-bottom: 16px;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;
	cursor: grab;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.fpv-root.is-open .fpv-brands::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.fpv-root.is-open .fpv-brand {
	flex: 0 0 132px;
	padding: 0;
	overflow: hidden;
	-webkit-user-drag: none;
	user-select: none;
}

.fpv-root.is-open .fpv-brand img {
	width: 100%;
	height: 78px;
	margin: 0;
	aspect-ratio: auto;
	border-radius: 0;
	object-fit: cover;
}

.fpv-root.is-open .fpv-brand-name {
	font-size: 13px;
	line-height: 1.25;
	margin: 0;
	padding: 6px 6px 8px;
	min-height: 2.5em;
}

.fpv-root.is-open a.fpv-brand,
.fpv-root.is-open a.fpv-brand:hover,
.fpv-root.is-open a.fpv-brand.is-active,
.fpv-root.is-open a.fpv-brand.is-active:hover,
.fpv-root.is-open a.fpv-brand.is-active .fpv-brand-name,
.fpv-root.is-open a.fpv-brand.is-active:hover .fpv-brand-name {
	text-decoration: none;
}

.fpv-root.is-open a.fpv-brand:not(.is-active) .fpv-brand-name,
.fpv-root.is-open a.fpv-brand:not(.is-active):hover .fpv-brand-name {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fpv-brand.is-active {
	background: #1485CE;
	border-color: #1485CE;
	color: #fff;
}

.fpv-brand.is-active .fpv-brand-name {
	color: #fff;
}

.fpv-subs {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.fpv-root.is-ral .fpv-subs {
	display: flex;
}

.fpv-subs a.fpv-sub,
.fpv-subs a.fpv-sub:hover,
.fpv-subs a.fpv-sub:focus,
button.fpv-sub {
	display: inline-flex;
	align-items: center;
	height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #d6dde3;
	border-radius: 0;
	background: #fff;
	color: #212B36;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
}

.fpv-sub.is-active,
.fpv-sub.is-active:hover {
	background: #1485CE;
	border-color: #1485CE;
	color: #fff;
	text-decoration: none;
}

.fpv-root:not(.is-open) .fpv-work {
	display: none;
}

.fpv-work.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.fpv-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin: 0 0 12px;
}

.fpv-searchline {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 48px;
	padding: 0 10px 0 8px;
	border: 1px solid #cfd6dc;
	border-radius: 8px;
	background: #fff;
}

.fpv-searchline:focus-within {
	outline: 2px solid rgba(20, 133, 206, 0.35);
	border-color: #1485CE;
}

.fpv-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	max-width: 46%;
	height: 28px;
	padding: 0 4px 0 10px;
	background: #1485CE;
	color: #fff;
	font-size: 14px;
	line-height: 1;
}

.fpv-tag[hidden] {
	display: none;
}

.fpv-tag-x {
	width: 22px;
	height: 22px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.fpv-modes {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

button.fpv-mode {
	height: 36px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #d6dde3;
	border-radius: 0;
	background: #fff;
	color: #212B36;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
}

.fpv-mode.is-active {
	background: #1485CE;
	border-color: #1485CE;
	color: #fff;
}

.fpv-search {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 6px;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	color: #212B36;
	background: transparent;
}

.fpv-search:focus {
	outline: none;
}

.fpv-stats {
	display: flex;
	gap: 12px;
	color: #637381;
	font-size: 14px;
	min-height: 20px;
}

.fpv-strip-wrap {
	position: relative;
	margin: 0 0 16px;
}

.fpv-strip {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--fpv-rows, 4), minmax(0, 1fr));
	grid-template-columns: repeat(var(--fpv-cols, 48), minmax(0, 1fr));
	grid-auto-columns: minmax(0, 1fr);
	gap: 0;
	width: 100%;
	max-width: calc(var(--fpv-cols, 48) * var(--fpv-strip-cell, 40px));
	height: auto;
	aspect-ratio: var(--fpv-cols, 48) / var(--fpv-rows, 4);
	padding: 0;
	box-sizing: border-box;
	border-radius: 0;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	touch-action: pan-x;
	cursor: default;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.fpv-strip::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.fpv-strip a {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	border-radius: 0;
	-webkit-user-drag: none;
	user-select: none;
}

.fpv-strip.is-filtering a:not(.is-match) {
	opacity: 0.22;
}

.fpv-strip.is-filtering a.is-match {
	opacity: 1;
	box-shadow: inset 0 0 0 2px #fff;
	z-index: 1;
}

.fpv-brands.is-dragging,
.fpv-strip.is-dragging,
.fpv-zoom.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.fpv-strip a.is-active {
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #212B36;
	z-index: 2;
}

.fpv-marker {
	position: absolute;
	top: 100%;
	width: 0;
	height: 0;
	margin-top: 2px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #212B36;
	transform: translateX(-50%);
	pointer-events: none;
}

.fpv-stage {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}

.fpv-zoom-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
	min-width: 0;
	min-height: 0;
}

.fpv-zoom {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--fpv-rows, 4), minmax(0, 1fr));
	grid-auto-columns: var(--fpv-zoom-cell, 86px);
	gap: 1px;
	flex: 1 1 auto;
	align-self: stretch;
	min-width: 0;
	min-height: 0;
	height: auto;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0;
	box-sizing: border-box;
	touch-action: pan-x;
	cursor: grab;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	align-content: stretch;
}

.fpv-zoom.is-filtering .fpv-cell:not(.is-match) {
	opacity: 0.38;
}

.fpv-cell {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	text-decoration: none;
	color: #212B36;
	background: transparent;
	border: 0;
	padding: 0;
	-webkit-user-drag: none;
	user-select: none;
}

.fpv-cell-swatch {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.fpv-cell.is-active .fpv-cell-swatch,
.fpv-cell.is-match .fpv-cell-swatch {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px #fff, 0 0 0 4px #1485CE;
}

.fpv-cell-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	padding: 2px 3px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.88);
	font-size: 10px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fpv-cell.is-active .fpv-cell-label,
.fpv-cell:hover .fpv-cell-label {
	display: block;
}

.fpv-cell.is-match .fpv-cell-label,
.fpv-cell.is-active .fpv-cell-label {
	color: #1485CE;
	font-weight: 700;
}

.fpv-nav {
	flex: 0 0 36px;
	align-self: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #d6dde3;
	background: #fff;
	color: #212B36;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.fpv-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.fpv-card-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.fpv-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	border: 1px solid #e7e8ea;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	min-height: 0;
}

.fpv-card-arrow {
	width: 0;
	height: 0;
	margin: 10px auto 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 13px solid #1485CE;
}

.fpv-card-fill {
	flex: 1 1 auto;
	min-height: 180px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.fpv-card-body {
	padding: 14px 16px 16px;
}

.fpv-card-name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #212B36;
}

.fpv-card-extra {
	margin-top: 4px;
	color: #637381;
	font-size: 15px;
}

.fpv-card-hex {
	margin-top: 6px;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #637381;
}

.fpv-range {
	margin-top: 8px;
	color: #637381;
	font-size: 13px;
	min-height: 18px;
}

.fpv-desc {
	margin-top: 16px;
	max-width: 920px;
	font-size: 16px;
	line-height: 1.55;
	color: #212B36;
}

.fpv-desc p {
	margin: 0 0 10px;
}

.fpv-empty {
	padding: 12px 0 4px;
	color: #637381;
}

.fpv-products {
	margin: 36px 0 8px;
}

.fpv-products-title {
	margin: 0 0 20px;
}

.fpv-page:not(.is-open) .fpv-after {
	display: none;
}

@media (max-width: 1100px) {
	.fpv-brands {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.fpv-stage {
		grid-template-columns: 240px minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.fpv-brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.fpv-brand {
		padding: 10px;
	}
	.fpv-brand-name {
		font-size: 14px;
	}
	.fpv-stage {
		grid-template-columns: 1fr;
	}
	.fpv-card-fill {
		min-height: 140px;
	}
	.fpv-root.is-open .fpv-brand {
		flex-basis: 112px;
	}
	.fpv-strip {
		height: auto;
	}
	.fpv-root {
		--fpv-zoom-cell: 72px;
	}
}
