/* Neo Visualizer. Colours and fonts come from the page: the accent is the
   Elementor kit's accent colour, and every neutral is mixed from the text
   colour, so the widget suits light and dark sections alike. The accent's
   fallback must be a fixed colour: currentColor would turn into the white
   button text wherever it is used as a background. */
.neo-viz {
	--nv-accent: var(--e-global-color-accent, #1f1f1f);
	--nv-on-accent: #fff;
	--nv-radius: 8px;
	--nv-line: color-mix(in srgb, currentColor 18%, transparent);
	--nv-soft: color-mix(in srgb, currentColor 6%, transparent);
	--nv-pos: 50%;
	display: grid;
	gap: 40px;
	max-width: 960px;
	margin-inline: auto;
	text-align: left;
}

.neo-viz *,
.neo-viz *::before,
.neo-viz *::after {
	box-sizing: border-box;
}

.neo-viz [hidden] {
	display: none !important;
}

.neo-viz__form {
	display: grid;
	gap: 40px;
}

.neo-viz__step {
	display: grid;
	gap: 16px;
	min-width: 0;
}

/* Steps 2 and 3 and the button under them. They wait, greyed out, until the
   visitor's details are in; the script lifts this when they are. */
.neo-viz__rest {
	display: grid;
	gap: inherit;
	min-width: 0;
	transition: opacity 0.2s;
}

.neo-viz__rest.is-locked {
	opacity: 0.4;
	filter: grayscale(1);
	pointer-events: none;
	user-select: none;
}

.neo-viz__who {
	display: grid;
	gap: 16px;
}

/* A step's heading: a small "Step 1" line over the title. The first build
   put the number in a filled circle beside the title, which sat off-centre
   against a serif heading. */
.neo-viz__head {
	display: grid;
	gap: 6px;
}

.neo-viz .neo-viz__eyebrow {
	margin: 0;
	color: var(--nv-step, inherit);
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.neo-viz .neo-viz__title {
	margin: 0;
}

.neo-viz__small {
	margin: 0;
	font-size: 0.875em;
	opacity: 0.8;
}

.neo-viz__label {
	font-size: 0.875em;
	font-weight: 600;
}

/* For screen readers only. */
.neo-viz__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Buttons. A site's Elementor kit and theme style every <button>, hover and
   focus included, and their rules outrank a single class. So each button here
   is written under .neo-viz and spelled out in all three states: whatever the
   site sets (fill, text colour, border, corners, shadow, padding, type), these
   set back. Without this, an unpicked tab took the site's filled button look
   and the colour swatches swelled to the site's button padding. */
.neo-viz .neo-viz__tab,
.neo-viz .neo-viz__swatch,
.neo-viz .neo-viz__button,
.neo-viz .neo-viz__info,
.neo-viz .neo-viz__link {
	margin: 0;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	transition: none;
	cursor: pointer;
	appearance: none;
}

.neo-viz .neo-viz__tab,
.neo-viz .neo-viz__tab:hover,
.neo-viz .neo-viz__tab:focus,
.neo-viz .neo-viz__swatch,
.neo-viz .neo-viz__swatch:hover,
.neo-viz .neo-viz__swatch:focus,
.neo-viz .neo-viz__button,
.neo-viz .neo-viz__button:hover,
.neo-viz .neo-viz__button:focus,
.neo-viz .neo-viz__info,
.neo-viz .neo-viz__info:hover,
.neo-viz .neo-viz__info:focus,
.neo-viz .neo-viz__link,
.neo-viz .neo-viz__link:hover,
.neo-viz .neo-viz__link:focus {
	box-shadow: none;
}

/* Fields */
.neo-viz__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.neo-viz__fields > .neo-viz__check,
.neo-viz__fields > .neo-viz__small {
	grid-column: 1 / -1;
}

.neo-viz__field {
	display: grid;
	gap: 8px;
	margin: 0;
	font-weight: 600;
}

/* Fields look like fields on any background: a filled box with dark text
   unless the widget's Field colours say otherwise. Four classes deep so a
   kit's or theme's own input rules, hover and focus included, cannot change
   them halfway. */
.neo-viz .neo-viz__form .neo-viz__field .neo-viz__input,
.neo-viz .neo-viz__form .neo-viz__field .neo-viz__input:hover,
.neo-viz .neo-viz__form .neo-viz__field .neo-viz__input:focus {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 13px 16px;
	border: 1px solid var(--nv-field-line, color-mix(in srgb, var(--nv-field-text, #1f1f1f) 30%, transparent));
	border-radius: var(--nv-radius);
	background-color: var(--nv-field, #fff);
	box-shadow: none;
	color: var(--nv-field-text, #1f1f1f);
	font: inherit;
	/* The size of the text around it, and never under 16px: below that a
	   phone zooms the page when the field is tapped. */
	font-size: max(16px, 1em);
	font-weight: 400;
	line-height: 1.4;
	transition: none;
}

.neo-viz .neo-viz__form .neo-viz__field .neo-viz__input:focus {
	border-color: var(--nv-accent);
	outline: 2px solid var(--nv-accent);
	outline-offset: 1px;
}

/* The select's arrow, drawn in the field's own text colour. */
.neo-viz .neo-viz__form .neo-viz__field select.neo-viz__input,
.neo-viz .neo-viz__form .neo-viz__field select.neo-viz__input:hover,
.neo-viz .neo-viz__form .neo-viz__field select.neo-viz__input:focus {
	padding-right: 44px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	appearance: none;
	cursor: pointer;
}

/* The note a visitor can add when they send a preview on. */
.neo-viz .neo-viz__form .neo-viz__field textarea.neo-viz__input,
.neo-viz .neo-viz__form .neo-viz__field textarea.neo-viz__input:hover,
.neo-viz .neo-viz__form .neo-viz__field textarea.neo-viz__input:focus {
	display: block;
	min-height: 104px;
	resize: vertical;
}

.neo-viz__fields--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neo-viz__field--wide {
	grid-column: 1 / -1;
}

.neo-viz__field--inline {
	position: relative;
	flex: 0 1 360px;
	max-width: 360px;
}

/* A tick box and its words. A site's kit often sets labels to a line height
   of 1, which left the box hanging below the words. So the line height is
   set here, and the box is centred on the first line whatever the text size. */
.neo-viz .neo-viz__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	line-height: 1.4;
	cursor: pointer;
}

.neo-viz .neo-viz__check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: calc((1.4em - 20px) / 2) 0 0;
	font: inherit;
	accent-color: var(--nv-accent);
}

.neo-viz__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.neo-viz .neo-viz__link,
.neo-viz .neo-viz__link:hover,
.neo-viz .neo-viz__link:focus {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
}

.neo-viz .neo-viz__link {
	justify-self: start;
	min-height: 0;
	font-size: 0.875em;
}

.neo-viz__done {
	margin: 0;
}

/* Photo */
.neo-viz__drop {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 240px;
	margin: 0;
	padding: 16px;
	border: 2px dashed var(--nv-line);
	border-radius: var(--nv-radius);
	background: var(--nv-soft);
	text-align: center;
	cursor: pointer;
	overflow: hidden;
}

.neo-viz__drop.is-dragging,
.neo-viz__drop:focus-within {
	border-color: var(--nv-accent);
}

.neo-viz__drop input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.neo-viz__drop img {
	display: block;
	max-width: 100%;
	max-height: 420px;
	border-radius: calc(var(--nv-radius) / 2);
}

.neo-viz__drop-text {
	display: grid;
	gap: 4px;
}

.neo-viz__drop.has-photo .neo-viz__drop-text {
	margin-top: 12px;
	font-size: 0.875em;
}

/* Products, options and swatches */
.neo-viz__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.neo-viz .neo-viz__tab,
.neo-viz .neo-viz__tab:hover,
.neo-viz .neo-viz__tab:focus {
	border: 1px solid var(--nv-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
}

.neo-viz .neo-viz__tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.neo-viz .neo-viz__tab:hover,
.neo-viz .neo-viz__tab:focus {
	background: var(--nv-soft);
}

.neo-viz .neo-viz__tab[aria-pressed="true"],
.neo-viz .neo-viz__tab[aria-pressed="true"]:hover,
.neo-viz .neo-viz__tab[aria-pressed="true"]:focus {
	border-color: var(--nv-accent);
	background: var(--nv-accent);
	color: var(--nv-on-accent);
}

/* Option choices: a tile each, its icon over its name. The tiles of every
   option sit on the same columns, so the groups line up down the page. The
   picked tile is ringed and tinted, not filled: a row of filled pills read
   as a wall of buttons. */
.neo-viz__chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 8px;
}

.neo-viz__chip {
	position: relative;
	display: grid;
	margin: 0;
}

.neo-viz__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 6px;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	font-size: 0.875em;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
}

.neo-viz__chip:hover .neo-viz__tile {
	background: var(--nv-soft);
}

.neo-viz__chip input:checked + .neo-viz__tile {
	border-color: var(--nv-accent);
	background: color-mix(in srgb, var(--nv-accent) 8%, transparent);
	box-shadow: inset 0 0 0 1px var(--nv-accent);
}

.neo-viz__icon {
	flex: none;
	width: 28px;
	height: 28px;
	opacity: 0.75;
}

.neo-viz__chip input:checked + .neo-viz__tile .neo-viz__icon {
	color: var(--nv-accent);
	opacity: 1;
}

/* A title with its "i", and the note the "i" opens. */
.neo-viz__ask {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 28px;
}

.neo-viz .neo-viz__info,
.neo-viz .neo-viz__info:hover,
.neo-viz .neo-viz__info:focus {
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
}

.neo-viz .neo-viz__info {
	display: inline-grid;
	place-items: center;
	width: 28px;
	min-width: 0;
	height: 28px;
	min-height: 0;
	line-height: 1;
	opacity: 0.7;
}

.neo-viz .neo-viz__info:hover,
.neo-viz .neo-viz__info:focus,
.neo-viz .neo-viz__info[aria-expanded="true"] {
	opacity: 1;
}

.neo-viz .neo-viz__info[aria-expanded="true"],
.neo-viz .neo-viz__info[aria-expanded="true"]:hover,
.neo-viz .neo-viz__info[aria-expanded="true"]:focus {
	color: var(--nv-accent);
}

.neo-viz__info-icon {
	width: 20px;
	height: 20px;
}

.neo-viz .neo-viz__help {
	max-width: 64ch;
	margin: 0;
	padding: 8px 12px;
	border-radius: calc(var(--nv-radius) / 2);
	background: var(--nv-soft);
	font-size: 0.875em;
}

/* Products: a card each, with the site's photo of the product or, when it
   has none, the product's pattern. */
.neo-viz__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.neo-viz__card {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	margin: 0;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	overflow: hidden;
	cursor: pointer;
}

.neo-viz__card:hover {
	background: var(--nv-soft);
}

.neo-viz__card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.neo-viz__card-art {
	--nv-u: 2.5px;
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #e3e0d9;
}

.neo-viz .neo-viz__card-art img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
}

.neo-viz__card-name {
	display: block;
	padding: 10px 12px 12px;
	font-weight: 600;
	line-height: 1.3;
}

/* The picked card: an accent ring, and a tick so it is not colour alone. */
.neo-viz__card:has(input:checked) {
	border-color: var(--nv-accent);
	box-shadow: 0 0 0 2px var(--nv-accent);
}

.neo-viz__card:has(input:checked)::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--nv-accent);
}

.neo-viz__card:has(input:checked)::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 14px;
	right: 15px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--nv-on-accent);
	border-bottom: 2px solid var(--nv-on-accent);
	transform: rotate(-45deg);
}

.neo-viz__card:has(input:focus-visible) {
	outline: 2px solid var(--nv-accent);
	outline-offset: 2px;
}

.neo-viz__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.neo-viz__chip input:focus-visible + .neo-viz__tile,
.neo-viz .neo-viz__tab:focus-visible,
.neo-viz .neo-viz__swatch:focus-visible,
.neo-viz .neo-viz__button:focus-visible,
.neo-viz .neo-viz__info:focus-visible,
.neo-viz .neo-viz__link:focus-visible {
	outline: 2px solid var(--nv-accent);
	outline-offset: 2px;
}

/* Two columns of options where there is room for four tiles in each. */
.neo-viz__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 24px 32px;
	margin-top: 8px;
}

.neo-viz__option {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
}

.neo-viz__fabrics {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.neo-viz__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

/* The colour that is picked, named under the squares. */
.neo-viz .neo-viz__picked {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 1.5em;
	margin: 0;
	font-weight: 600;
}

.neo-viz .neo-viz__picked strong {
	font-weight: inherit;
}

.neo-viz__swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 8px;
	max-height: 268px;
	padding: 4px;
	overflow-y: auto;
}

/* The colour itself is set on each swatch by the script. */
.neo-viz .neo-viz__swatch,
.neo-viz .neo-viz__swatch:hover,
.neo-viz .neo-viz__swatch:focus {
	padding: 0;
	border: 1px solid var(--nv-line);
	border-radius: calc(var(--nv-radius) / 2);
}

/* No min-height here: at 0 the rows of the scrolling grid squash flat. */
.neo-viz .neo-viz__swatch {
	display: block;
	width: auto;
	min-width: 0;
	aspect-ratio: 1;
}

.neo-viz .neo-viz__swatch[aria-checked="true"] {
	outline: 2px solid var(--nv-accent);
	outline-offset: 2px;
}

/* Popular choices: a small star in the accent colour, in the corner of the
   swatch and beside the words that explain it. */
.neo-viz .neo-viz__swatch {
	position: relative;
}

.neo-viz .neo-viz__swatch.is-popular::before,
.neo-viz .neo-viz__swatch.is-popular::after,
.neo-viz__star::before,
.neo-viz__star::after {
	content: "";
	position: absolute;
}

.neo-viz .neo-viz__swatch.is-popular::before,
.neo-viz__star::before {
	top: 3px;
	right: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--nv-accent);
	box-shadow: 0 0 0 1.5px rgb(255 255 255 / 85%);
}

.neo-viz .neo-viz__swatch.is-popular::after,
.neo-viz__star::after {
	top: 6px;
	right: 6px;
	width: 10px;
	height: 10px;
	background: var(--nv-on-accent);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.neo-viz__popular {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875em;
}

.neo-viz__star {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
}

.neo-viz__star::before {
	top: 0;
	right: 0;
}

.neo-viz__star::after {
	top: 3px;
	right: 3px;
}

/* Textures. A swatch is one flat colour from the fabric list; these draw the
   product's build over it (pleats, vanes, slats, a weave) in light and shade
   only, so they suit any colour. Drawn in CSS: no photograph or swatch image
   is used. --nv-u is the size of one unit of the pattern, so the same pattern
   can fill a small swatch or a product card. The selector carries three
   classes so a site's button hover cannot wipe the pattern. */
.neo-viz {
	--nv-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .34 0 0 0 -.11'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)'/%3E%3C/svg%3E");
	--nv-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='96'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .55' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0 0 0 -.24'/%3E%3C/filter%3E%3Crect width='160' height='96' filter='url(%23n)'/%3E%3C/svg%3E");
	--nv-hi: rgb(255 255 255 / 30%);
	--nv-lo: rgb(0 0 0 / 16%);
	--nv-none: rgb(255 255 255 / 0%);
}

.neo-viz .neo-viz__swatch.neo-viz__tex {
	--nv-u: 1px;
}

/* Honeycomb: crisp, even pleats. */
.neo-viz .neo-viz__tex[data-texture="pleat"] {
	background-image: var(--nv-grain), linear-gradient(180deg, var(--nv-hi), var(--nv-none) 45%, rgb(0 0 0 / 10%) 90%, rgb(0 0 0 / 24%));
	background-size: 96px 96px, 100% calc(var(--nv-u) * 8);
}

/* Cellular roller: soft, rounded cells. */
.neo-viz .neo-viz__tex[data-texture="curve"] {
	background-image: var(--nv-grain), linear-gradient(180deg, rgb(0 0 0 / 12%), var(--nv-hi) 40%, var(--nv-none) 70%, rgb(0 0 0 / 14%));
	background-size: 96px 96px, 100% calc(var(--nv-u) * 13);
}

/* Sheer shadings: soft fabric vanes floating between two sheers. Each vane
   is one smooth curve of light, with a thin glow of sheer between vanes and
   fine sheer threads over the whole. No flat bands or hard edges: the first
   design had both and read as a banded shade. */
.neo-viz .neo-viz__tex[data-texture="vane"] {
	background-image:
		repeating-linear-gradient(90deg, rgb(255 255 255 / 10%) 0, rgb(255 255 255 / 10%) calc(var(--nv-u) * 0.5), transparent calc(var(--nv-u) * 0.5), transparent calc(var(--nv-u) * 1.5)),
		linear-gradient(180deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 36%) 7%, rgb(0 0 0 / 9%) 17%, rgb(255 255 255 / 0%) 34%, rgb(255 255 255 / 20%) 60%, rgb(255 255 255 / 4%) 84%, rgb(0 0 0 / 15%) 96%, rgb(0 0 0 / 5%) 100%);
	background-size: auto, 100% calc(var(--nv-u) * 13);
}

/* Soft horizontal folds. */
.neo-viz .neo-viz__tex[data-texture="fold"] {
	background-image: var(--nv-grain), linear-gradient(180deg, var(--nv-hi), var(--nv-none) 55%, rgb(0 0 0 / 8%) 82%, rgb(0 0 0 / 26%));
	background-size: 96px 96px, 100% calc(var(--nv-u) * 17);
}

/* Sheer drapery folds, top to bottom. */
.neo-viz .neo-viz__tex[data-texture="drape"] {
	background-image: var(--nv-grain), linear-gradient(90deg, var(--nv-lo), var(--nv-hi) 45%, var(--nv-none) 70%, var(--nv-lo));
	background-size: 96px 96px, calc(var(--nv-u) * 13) 100%;
}

/* Vertical vanes with a clean edge. */
.neo-viz .neo-viz__tex[data-texture="vertical"] {
	background-image: linear-gradient(90deg, var(--nv-hi), var(--nv-none) 60%, rgb(0 0 0 / 6%) 88%, rgb(0 0 0 / 34%) 90%);
	background-size: calc(var(--nv-u) * 11) 100%;
}

/* Wide flat panels with a seam between. */
.neo-viz .neo-viz__tex[data-texture="panel"] {
	background-image: var(--nv-grain), linear-gradient(90deg, rgb(0 0 0 / 30%) 0, rgb(0 0 0 / 30%) 4%, rgb(255 255 255 / 16%) 4%, var(--nv-none) 30%);
	background-size: 96px 96px, calc(var(--nv-u) * 26) 100%;
}

/* A plain roller fabric: a fine, even weave. */
.neo-viz .neo-viz__tex[data-texture="weave"] {
	background-image: var(--nv-grain), repeating-linear-gradient(0deg, rgb(0 0 0 / 9%) 0, rgb(0 0 0 / 9%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 3)), repeating-linear-gradient(90deg, rgb(255 255 255 / 16%) 0, rgb(255 255 255 / 16%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 3));
	background-size: 96px 96px, auto, auto;
}

/* A screen fabric: an open mesh. */
.neo-viz .neo-viz__tex[data-texture="screen"] {
	background-image: repeating-linear-gradient(0deg, rgb(0 0 0 / 20%) 0, rgb(0 0 0 / 20%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 4)), repeating-linear-gradient(90deg, rgb(0 0 0 / 20%) 0, rgb(0 0 0 / 20%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 4)), linear-gradient(135deg, rgb(255 255 255 / 22%), var(--nv-none) 60%);
}

/* Banded: a solid band, then a sheer one. */
.neo-viz .neo-viz__tex[data-texture="band"] {
	background-image: var(--nv-grain), linear-gradient(180deg, var(--nv-none) 0%, var(--nv-none) 48%, rgb(0 0 0 / 12%) 50%, rgb(255 255 255 / 55%) 52%, rgb(255 255 255 / 55%) 98%, rgb(0 0 0 / 12%) 100%);
	background-size: 96px 96px, 100% calc(var(--nv-u) * 15);
}

/* A woven textile: uneven threads across, finer ones down. */
.neo-viz .neo-viz__tex[data-texture="woven"] {
	background-image: var(--nv-grain), var(--nv-wood), repeating-linear-gradient(180deg, rgb(0 0 0 / 12%) 0, rgb(0 0 0 / 12%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 4)), repeating-linear-gradient(180deg, rgb(255 255 255 / 18%) 0, rgb(255 255 255 / 18%) calc(var(--nv-u) * 2), transparent calc(var(--nv-u) * 2), transparent calc(var(--nv-u) * 7)), repeating-linear-gradient(90deg, rgb(0 0 0 / 8%) 0, rgb(0 0 0 / 8%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 5));
	background-size: 96px 96px, 160px 96px, auto, auto, auto;
}

/* Woven wood: reeds across, tied with threads. */
.neo-viz .neo-viz__tex[data-texture="reed"] {
	background-image: var(--nv-wood), repeating-linear-gradient(90deg, rgb(0 0 0 / 22%) 0, rgb(0 0 0 / 22%) calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 1), transparent calc(var(--nv-u) * 17)), repeating-linear-gradient(180deg, rgb(0 0 0 / 26%) 0, rgb(0 0 0 / 26%) calc(var(--nv-u) * 1), rgb(255 255 255 / 20%) calc(var(--nv-u) * 1), var(--nv-none) calc(var(--nv-u) * 3), var(--nv-none) calc(var(--nv-u) * 5)), repeating-linear-gradient(180deg, rgb(0 0 0 / 10%) 0, rgb(0 0 0 / 10%) calc(var(--nv-u) * 4), transparent calc(var(--nv-u) * 4), transparent calc(var(--nv-u) * 11));
	background-size: 160px 96px, auto, auto, auto;
}

/* Wood slats, with grain along them. */
.neo-viz .neo-viz__tex[data-texture="slat"] {
	background-image: var(--nv-wood), linear-gradient(180deg, var(--nv-hi), var(--nv-none) 30%, rgb(0 0 0 / 8%) 84%, rgb(0 0 0 / 42%) 86%, rgb(0 0 0 / 42%));
	background-size: 160px 96px, 100% calc(var(--nv-u) * 10);
}

/* Shutter louvers: wider, smooth, with a deeper shadow. */
.neo-viz .neo-viz__tex[data-texture="louver"] {
	background-image: linear-gradient(180deg, rgb(255 255 255 / 34%), var(--nv-none) 35%, rgb(0 0 0 / 10%) 80%, rgb(0 0 0 / 46%) 84%, rgb(0 0 0 / 46%));
	background-size: 100% calc(var(--nv-u) * 16);
}

/* Go */
.neo-viz__go {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.neo-viz .neo-viz__button,
.neo-viz .neo-viz__button:hover,
.neo-viz .neo-viz__button:focus {
	border: 1px solid var(--nv-accent);
	border-radius: var(--nv-radius);
	background: var(--nv-accent);
	color: var(--nv-on-accent);
	text-decoration: none;
}

.neo-viz .neo-viz__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	font-weight: 600;
	line-height: 1.2;
}

.neo-viz .neo-viz__button:hover,
.neo-viz .neo-viz__button:focus {
	opacity: 0.9;
}

.neo-viz .neo-viz__button[disabled] {
	opacity: 0.5;
	cursor: progress;
}

.neo-viz .neo-viz__button--quiet,
.neo-viz .neo-viz__button--quiet:hover,
.neo-viz .neo-viz__button--quiet:focus {
	border-color: var(--nv-line);
	background: transparent;
	color: inherit;
}

.neo-viz__status {
	min-height: 1.5em;
	margin: 0;
}

.neo-viz__progress {
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: var(--nv-soft);
	overflow: hidden;
}

.neo-viz__progress span {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: 2px;
	background: var(--nv-accent);
	animation: neo-viz-slide 1.4s ease-in-out infinite;
}

@keyframes neo-viz-slide {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(250%);
	}
}

/* Result */
.neo-viz__result {
	display: grid;
	gap: 16px;
	scroll-margin-top: 120px;
}

.neo-viz__result:focus {
	outline: none;
}

.neo-viz__compare {
	position: relative;
	width: 100%;
	border-radius: var(--nv-radius);
	background: var(--nv-soft);
	overflow: hidden;
	user-select: none;
}

.neo-viz__compare img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
}

/* The preview covers the right-hand side, from the handle onward. */
.neo-viz__compare img[data-viz="after"] {
	clip-path: inset(0 0 0 var(--nv-pos));
}

/* The example widget: the same slider on its own, as wide as its column. */
.neo-viz.neo-viz--example {
	gap: 10px;
	max-width: none;
	margin: 0;
}

.neo-viz__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--nv-pos);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 25%);
	pointer-events: none;
}

.neo-viz__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	/* Two small arrows, so the knob reads as something to drag. */
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 1px 6px rgb(0 0 0 / 35%);
	transform: translate(-50%, -50%);
}

.neo-viz__compare input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	opacity: 0;
	cursor: ew-resize;
}

.neo-viz__compare:focus-within .neo-viz__handle::after {
	outline: 2px solid var(--nv-accent);
	outline-offset: 2px;
}

.neo-viz__tag {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 60%);
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	pointer-events: none;
}

.neo-viz__tag--before {
	left: 12px;
}

.neo-viz__tag--after {
	right: 12px;
}

.neo-viz__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Sending a preview to the dealer: a panel that opens under the buttons. */
.neo-viz .neo-viz__send {
	gap: 20px;
	padding: 24px;
	border-radius: var(--nv-radius);
	background: var(--nv-soft);
}

.neo-viz .neo-viz__ask-next {
	display: grid;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.neo-viz .neo-viz__ask-next legend {
	margin: 0 0 12px;
	padding: 0;
	font-size: 1em;
	line-height: 1.4;
}

/* Notices */
.neo-viz__notice {
	display: grid;
	gap: 12px;
	padding: 24px;
	border-radius: var(--nv-radius);
	background: var(--nv-soft);
}

.neo-viz__notice ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 1.2em;
}

.neo-viz-setup {
	padding: 16px;
	border: 1px dashed currentColor;
}

@media (max-width: 767px) {
	.neo-viz,
	.neo-viz__form {
		gap: 32px;
	}

	.neo-viz__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.neo-viz__actions .neo-viz__button {
		width: 100%;
	}

	.neo-viz__go .neo-viz__button {
		width: 100%;
	}

	.neo-viz__notice,
	.neo-viz .neo-viz__send {
		padding: 20px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.neo-viz__rest {
		transition: none;
	}

	.neo-viz__progress span {
		animation: none;
		width: 100%;
		opacity: 0.5;
	}
}
