/**
 * Vlaggenlijn Studio — designer.
 *
 * Standalone stylesheet: the designer renders on its own page shell, so no
 * theme CSS is loaded and nothing here has to fight for specificity.
 */

:root {
	--vd-ink: #14171c;
	--vd-ink-soft: #3d434f;
	--vd-muted: #6c727f;
	--vd-line: #e4e7ec;
	--vd-line-strong: #cfd4dc;
	--vd-bg: #f6f7f9;
	--vd-card: #ffffff;
	--vd-accent: #5a9b97;
	--vd-accent-dark: #47827e;
	--vd-accent-soft: #eaf4f3;
	--vd-danger: #c0392b;
	--vd-radius: 12px;
	--vd-radius-sm: 8px;
	--vd-shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 8px 24px -12px rgba(20, 23, 28, .18);
	--vd-top-h: 60px;
	--vd-stage-h: 250px;
	--vd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--vd-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--vd-ink);
	background: var(--vd-bg);
	-webkit-font-smoothing: antialiased;
	overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; }
a { color: var(--vd-accent-dark); }

/* Icon default. Inline <svg> without width/height falls back to 300x150, which
   is how the back arrow blew up. Type-selector specificity (0,0,1) means every
   class-based icon rule below still wins, so this is a floor, not an override. */
svg { width: 16px; height: 16px; flex: 0 0 auto; }

:focus-visible {
	outline: 2px solid var(--vd-accent);
	outline-offset: 2px;
}

.vd-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* =========================================================================
   Top bar
   ====================================================================== */

.vd-top {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--vd-top-h);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 16px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--vd-line);
}

.vd-top__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 9px;
	border-radius: 99px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	color: var(--vd-ink-soft);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.vd-top__back:hover { border-color: var(--vd-accent); color: var(--vd-accent-dark); }

.vd-top__title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vd-top__title span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--vd-muted);
}

.vd-top__spacer { flex: 1 1 auto; }

.vd-top__tools { display: flex; align-items: center; gap: 6px; }

.vd-icon-btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	cursor: pointer;
	color: var(--vd-ink-soft);
}

.vd-icon-btn:hover:not(:disabled) { border-color: var(--vd-accent); color: var(--vd-accent-dark); }
.vd-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.vd-icon-btn svg { width: 18px; height: 18px; }

.vd-price-pill {
	display: none;
	align-items: baseline;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 99px;
	background: var(--vd-accent-soft);
	color: var(--vd-accent-dark);
	font-weight: 700;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vd-price-pill small { font-size: 11px; font-weight: 600; opacity: .75; }

.vd-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 99px;
	background: var(--vd-accent);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, transform .1s ease;
}

.vd-cta:hover { background: var(--vd-accent-dark); }
.vd-cta:active { transform: translateY(1px); }
.vd-cta:disabled { opacity: .55; cursor: progress; }

/* =========================================================================
   Stage — the bunting preview
   ====================================================================== */

.vd-stage {
	position: sticky;
	top: var(--vd-top-h);
	z-index: 30;
	background:
		radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef1f3 70%, #e7ebee 100%);
	border-bottom: 1px solid var(--vd-line);
	padding: 14px 0 10px;
}

.vd-stage__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 20px 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.vd-line {
	--vd-flag-w: 78px;
	--vd-flag-h: 122px;
	--vd-cord: #ffffff;
	--vd-letter: #000;
	--vd-shadowcol: transparent;
	--vd-letterfont: Arial, Helvetica, sans-serif;
	position: relative;
	width: max-content;
	min-width: 100%;
	padding-top: 16px;
}

.vd-line__cord {
	position: absolute;
	top: 6px;
	left: -40px;
	right: -40px;
	height: 6px;
	border-radius: 6px;
	background: var(--vd-cord);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(0, 0, 0, .12);
}

.vd-line__flags {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 3px;
}

.vd-flag {
	position: relative;
	flex: 0 0 auto;
	width: var(--vd-flag-w);
	height: var(--vd-flag-h);
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	filter: drop-shadow(0 5px 6px rgba(20, 23, 28, .17));
	transition: transform .14s ease;
}

.vd-flag:hover { transform: translateY(2px); }

.vd-flag__body {
	position: absolute;
	inset: 0;
	background: transparent;
}

.vd-flag__fabric {
	position: absolute;
	inset: 0;
	background: #dfe3e8 center/cover no-repeat;
}

/* 2026-10-29: the "schaduwrand" outlines the letters/symbols, not the flag. */
.has-shadow .vd-flag__letter {
	--vd-o: max(1.5px, calc(var(--vd-flag-w) * .03));
	text-shadow:
		var(--vd-o) 0 0 var(--vd-shadowcol),
		calc(var(--vd-o) * -1) 0 0 var(--vd-shadowcol),
		0 var(--vd-o) 0 var(--vd-shadowcol),
		0 calc(var(--vd-o) * -1) 0 var(--vd-shadowcol),
		var(--vd-o) var(--vd-o) 0 var(--vd-shadowcol),
		calc(var(--vd-o) * -1) var(--vd-o) 0 var(--vd-shadowcol),
		var(--vd-o) calc(var(--vd-o) * -1) 0 var(--vd-shadowcol),
		calc(var(--vd-o) * -1) calc(var(--vd-o) * -1) 0 var(--vd-shadowcol),
		0 2px 3px rgba(0, 0, 0, .18);
}

.vd-line--triangle .vd-flag__body,
.vd-line--triangle .vd-flag__fabric {
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.vd-flag--empty .vd-flag__fabric {
	background:
		repeating-linear-gradient(45deg, #e9edf1 0 6px, #dfe4ea 6px 12px);
}

.vd-flag__letter {
	position: absolute;
	left: 0;
	right: 0;
	top: 20%;
	text-align: center;
	font-family: var(--vd-letterfont);
	font-weight: 800;
	font-size: calc(var(--vd-flag-w) * .52);
	line-height: 1;
	color: var(--vd-letter);
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	pointer-events: none;
	user-select: none;
}

.vd-line--rectangle .vd-flag__letter {
	top: 50%;
	transform: translateY(-50%);
}

.vd-flag__num {
	position: absolute;
	left: 50%;
	bottom: -18px;
	transform: translateX(-50%);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	color: var(--vd-muted);
	pointer-events: none;
}

.vd-line--triangle .vd-flag__num { bottom: -16px; }

.vd-flag__ring {
	position: absolute;
	inset: -5px -4px -6px;
	border: 2px solid var(--vd-accent);
	border-radius: 6px;
	opacity: 0;
	transition: opacity .12s ease;
	pointer-events: none;
}

.vd-flag.is-active .vd-flag__ring { opacity: 1; }
.vd-flag.is-active { transform: translateY(3px); }

.vd-stage__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 4px 16px 0;
	flex-wrap: wrap;
}

.vd-count {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	border-radius: 99px;
	padding: 3px;
}

.vd-count button {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 99px;
	background: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: var(--vd-ink-soft);
}

.vd-count button:hover:not(:disabled) { background: var(--vd-accent-soft); color: var(--vd-accent-dark); }
.vd-count button:disabled { opacity: .3; cursor: not-allowed; }

.vd-count__value {
	min-width: 74px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.vd-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 99px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--vd-ink-soft);
	cursor: pointer;
	white-space: nowrap;
}

.vd-chip:hover { border-color: var(--vd-accent); color: var(--vd-accent-dark); }
.vd-chip--muted { color: var(--vd-muted); font-weight: 500; }

/* =========================================================================
   Body layout
   ====================================================================== */

.vd-body {
	display: grid;
	grid-template-columns: minmax(320px, 380px) 1fr;
	gap: 0;
	align-items: start;
}

.vd-panel {
	padding: 20px;
	min-width: 0;
}

.vd-panel--controls {
	border-right: 1px solid var(--vd-line);
	background: var(--vd-card);
	min-height: calc(100vh - var(--vd-top-h));
}

.vd-panel--fabrics { padding-bottom: 80px; }

.vd-tabbar { display: none; }

/* =========================================================================
   Control blocks
   ====================================================================== */

.vd-block { margin: 0 0 22px; }

.vd-block__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vd-muted);
	margin: 0 0 8px;
}

.vd-hint {
	font-size: 12.5px;
	color: var(--vd-muted);
	margin: 6px 0 0;
}

.vd-input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--vd-line-strong);
	border-radius: var(--vd-radius-sm);
	background: #fff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.vd-input:focus { border-color: var(--vd-accent); outline: none; box-shadow: 0 0 0 3px var(--vd-accent-soft); }

.vd-symbols { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.vd-symbols button {
	width: 34px;
	height: 34px;
	border-radius: var(--vd-radius-sm);
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.vd-symbols button:hover { border-color: var(--vd-accent); background: var(--vd-accent-soft); }

.vd-options { display: flex; gap: 8px; flex-wrap: wrap; }

.vd-option {
	position: relative;
	flex: 1 1 0;
	min-width: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 11px 8px;
	border: 1.5px solid var(--vd-line-strong);
	border-radius: var(--vd-radius-sm);
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: border-color .12s ease, background .12s ease;
}

.vd-option:hover { border-color: var(--vd-accent); }

.vd-option.is-on {
	border-color: var(--vd-accent);
	background: var(--vd-accent-soft);
	color: var(--vd-accent-dark);
}

.vd-option__big { font-size: 15px; font-weight: 700; }
.vd-option__small { font-size: 11.5px; color: var(--vd-muted); }
.vd-option.is-on .vd-option__small { color: var(--vd-accent-dark); }

.vd-option__shape { width: 26px; height: 22px; background: currentColor; opacity: .85; }
.vd-option__shape--triangle { clip-path: polygon(0 0, 100% 0, 50% 100%); }

.vd-option__font { font-size: 20px; font-weight: 800; line-height: 1.1; }

/* colour picker button + grid */

.vd-colorbtn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 12px 8px 8px;
	border: 1px solid var(--vd-line-strong);
	border-radius: var(--vd-radius-sm);
	background: #fff;
	cursor: pointer;
	text-align: left;
}

.vd-colorbtn:hover { border-color: var(--vd-accent); }

.vd-colorbtn__dot {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	flex: 0 0 auto;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.vd-colorbtn__name { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.vd-colorbtn__hint { font-size: 12px; color: var(--vd-muted); }

.vd-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vd-swatch {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 7px;
	border: 0;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
	padding: 0;
}

.vd-swatch.is-on {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), 0 0 0 2px #fff, 0 0 0 4px var(--vd-accent);
}

/* switches */

.vd-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--vd-line);
	cursor: pointer;
}

.vd-switch:last-of-type { border-bottom: 0; }

.vd-switch__text { flex: 1 1 auto; }
.vd-switch__text strong { display: block; font-size: 14px; font-weight: 600; }
.vd-switch__text span { font-size: 12.5px; color: var(--vd-muted); }

.vd-switch__track {
	flex: 0 0 auto;
	width: 44px;
	height: 26px;
	border-radius: 99px;
	background: #d3d8de;
	position: relative;
	transition: background .15s ease;
}

.vd-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 99px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}

.vd-switch input { position: absolute; opacity: 0; pointer-events: none; }
.vd-switch input:checked + .vd-switch__track { background: var(--vd-accent); }
.vd-switch input:checked + .vd-switch__track::after { transform: translateX(18px); }

/* price breakdown */

.vd-price {
	border: 1px solid var(--vd-line);
	border-radius: var(--vd-radius);
	background: #fbfcfc;
	padding: 14px 16px;
}

.vd-price__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
	padding: 3px 0;
	color: var(--vd-ink-soft);
}

.vd-price__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.vd-price__row--muted { color: var(--vd-muted); }

.vd-price__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1.5px solid var(--vd-ink);
	font-size: 17px;
	font-weight: 800;
}

.vd-price__total span:last-child { font-variant-numeric: tabular-nums; }
.vd-price__note { font-size: 11.5px; color: var(--vd-muted); margin: 6px 0 0; }

/* =========================================================================
   Selected-flag editor
   ====================================================================== */

.vd-selected {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	margin: 0 0 16px;
	border: 1px solid var(--vd-accent);
	background: var(--vd-accent-soft);
	border-radius: var(--vd-radius);
}

.vd-selected__title { font-size: 13px; font-weight: 700; color: var(--vd-accent-dark); }
.vd-selected__meta { font-size: 12.5px; color: var(--vd-ink-soft); }

.vd-selected__body { flex: 1 1 auto; min-width: 0; }
.vd-selected__body > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vd-selected__letter {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	border: 1px solid var(--vd-line-strong);
	border-radius: var(--vd-radius-sm);
	background: #fff;
}

/* =========================================================================
   Fabric picker
   ====================================================================== */

.vd-fabrics__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}

.vd-fabrics__head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.vd-search {
	position: relative;
	flex: 1 1 200px;
	max-width: 320px;
	margin-left: auto;
}

.vd-search input {
	width: 100%;
	padding: 9px 12px 9px 34px;
	border: 1px solid var(--vd-line-strong);
	border-radius: 99px;
	background: #fff;
	font-size: 14px;
}

.vd-search input:focus { border-color: var(--vd-accent); outline: none; box-shadow: 0 0 0 3px var(--vd-accent-soft); }

.vd-search svg {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	color: var(--vd-muted);
	pointer-events: none;
}

.vd-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }

.vd-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin: 0 0 14px;
	scrollbar-width: thin;
}

.vd-tab {
	flex: 0 0 auto;
	padding: 7px 14px;
	border-radius: 99px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-ink-soft);
	cursor: pointer;
	white-space: nowrap;
}

.vd-tab:hover { border-color: var(--vd-accent); }

.vd-tab.is-on {
	background: var(--vd-accent);
	border-color: var(--vd-accent);
	color: #fff;
}

.vd-tab small { opacity: .7; font-weight: 500; margin-left: 4px; }

.vd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 12px;
}

.vd-swatchcard {
	position: relative;
	border: 0;
	padding: 0;
	background: none;
	cursor: pointer;
	text-align: left;
}

.vd-swatchcard__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	background: #e5e9ed center/cover no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
	transition: transform .14s ease, box-shadow .14s ease;
}

.vd-swatchcard:hover .vd-swatchcard__img {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 18px -8px rgba(20, 23, 28, .4);
}

.vd-swatchcard.is-used .vd-swatchcard__img {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 2px #fff, 0 0 0 4px var(--vd-accent);
}

.vd-swatchcard__name {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.35;
	color: var(--vd-ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vd-swatchcard__count {
	position: absolute;
	top: 6px;
	left: 6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--vd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: none;
	align-items: center;
	justify-content: center;
}

.vd-swatchcard.is-used .vd-swatchcard__count { display: inline-flex; }

.vd-swatchcard__zoom {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	border-radius: 99px;
	border: 0;
	background: rgba(255, 255, 255, .92);
	color: var(--vd-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .12s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.vd-swatchcard:hover .vd-swatchcard__zoom,
.vd-swatchcard__zoom:focus-visible { opacity: 1; }
.vd-swatchcard__zoom svg { width: 14px; height: 14px; }

.vd-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--vd-muted);
	font-size: 14px;
}

/* =========================================================================
   Modals / toast
   ====================================================================== */

.vd-modal {
	border: 0;
	padding: 0;
	border-radius: var(--vd-radius);
	box-shadow: 0 24px 60px -20px rgba(20, 23, 28, .5);
	max-width: min(92vw, 460px);
	width: 100%;
	background: #fff;
	color: var(--vd-ink);
}

.vd-modal::backdrop { background: rgba(20, 23, 28, .5); backdrop-filter: blur(2px); }

.vd-modal__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 10px;
}

.vd-modal__head h3 { margin: 0; font-size: 16px; font-weight: 700; flex: 1 1 auto; }
.vd-modal__body { padding: 0 18px 18px; }

.vd-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 0 18px 18px;
}

.vd-btn {
	padding: 9px 16px;
	border-radius: 99px;
	border: 1px solid var(--vd-line-strong);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.vd-btn:hover { border-color: var(--vd-accent); color: var(--vd-accent-dark); }

.vd-btn--primary {
	background: var(--vd-accent);
	border-color: var(--vd-accent);
	color: #fff;
}

.vd-btn--primary:hover { background: var(--vd-accent-dark); border-color: var(--vd-accent-dark); color: #fff; }

.vd-preview__img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--vd-radius-sm);
	background: #eceef1 center/cover no-repeat;
}

.vd-preview__name { margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.vd-preview__group { font-size: 13px; color: var(--vd-muted); }

.vd-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 20px);
	z-index: 90;
	max-width: 90vw;
	padding: 11px 18px;
	border-radius: 99px;
	background: var(--vd-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.vd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.vd-toast.is-error { background: var(--vd-danger); }

/* =========================================================================
   Mobile
   ====================================================================== */

.vd-mobilebar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 45;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(12px);
	border-top: 1px solid var(--vd-line);
	align-items: center;
	gap: 12px;
}

.vd-mobilebar__price { flex: 1 1 auto; }
.vd-mobilebar__price strong { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-mobilebar__price span { font-size: 11.5px; color: var(--vd-muted); }

@media (min-width: 1000px) {
	.vd-price-pill { display: inline-flex; }
}

@media (max-width: 999px) {
	:root { --vd-stage-h: 210px; }

	.vd-line { --vd-flag-w: 62px; --vd-flag-h: 98px; }

	.vd-body { grid-template-columns: 1fr; }

	.vd-panel--controls {
		border-right: 0;
		min-height: 0;
		border-bottom: 1px solid var(--vd-line);
	}

	.vd-panel { padding: 16px; }
	.vd-panel--fabrics { padding-bottom: 110px; }

	.vd-tabbar {
		display: flex;
		position: sticky;
		top: calc(var(--vd-top-h) + var(--vd-stage-h));
		z-index: 25;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--vd-line);
	}

	.vd-tabbar button {
		flex: 1 1 0;
		padding: 13px 8px;
		border: 0;
		background: none;
		font-size: 14px;
		font-weight: 700;
		color: var(--vd-muted);
		cursor: pointer;
		border-bottom: 2px solid transparent;
	}

	.vd-tabbar button.is-on { color: var(--vd-accent-dark); border-bottom-color: var(--vd-accent); }

	.vd-panel.is-hidden { display: none; }

	.vd-mobilebar { display: flex; }

	.vd-top .vd-cta { display: none; }

	.vd-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
}

@media (max-width: 560px) {
	.vd-top__title span { display: none; }
	.vd-line { --vd-flag-w: 54px; --vd-flag-h: 86px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* 2026-10-29b: colour modal shows every colour name; shadow block sits under the letter colour. */

.vd-swatches--named {
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 12px 8px;
	max-height: 56vh;
	overflow: auto;
	padding: 4px;
}

.vd-swatches--named li { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.vd-swatches--named .vd-swatch { width: 40px; }
.vd-swatch__name { font-size: 11.5px; line-height: 1.25; color: var(--vd-muted); word-break: break-word; }

.vd-block--tight .vd-switch { padding-bottom: 4px; }
#vd-shadowblock { margin-top: -6px; }
