.vcs {
	--vcs-ink: #3b2f27;
	--vcs-muted: #7a6b60;
	--vcs-accent: #6e4f3a;
	--vcs-line: rgba(59, 47, 39, .16);
	--vcs-card: #fffdf9;
	--vcs-color: #73d42b;
	box-sizing: border-box;
	max-width: 1180px;
	margin: 32px auto;
	color: var(--vcs-ink);
	font-family: inherit;
}
.vcs *, .vcs *::before, .vcs *::after { box-sizing: border-box; }
.vcs :focus-visible { outline: 3px solid var(--vcs-accent); outline-offset: 3px; }

.vcs-head { text-align: center; margin-bottom: 28px; }
.vcs-title { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; color: var(--vcs-accent); }
.vcs-sub { margin: 0; font-size: 17px; color: var(--vcs-muted); }

.vcs-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* the tile */
.vcs-tile { margin: 0; }
.vcs-tile-face {
	position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin: 0 auto;
	border-radius: 8px; overflow: hidden; background: var(--vcs-color);
	box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 18px 40px rgba(59,47,39,.22), 0 3px 8px rgba(59,47,39,.14);
	transition: background-color .18s ease;
}
.vcs-tile-face::after { /* glaze */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(135deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 46%, rgba(0,0,0,.06) 100%);
}
.vcs-flower { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: opacity .14s ease, transform .3s ease; }
.vcs-swap .vcs-flower { opacity: 0; transform: scale(.97); }
.vcs-flower-name { text-align: center; margin-top: 14px; font-size: 18px; font-weight: 600; color: var(--vcs-accent); min-height: 1.4em; }

.vcs-flowers { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 10px; margin-top: 10px; scroll-snap-type: x proximity; }
.vcs-flowers button {
	flex: none; width: 72px; height: 72px; padding: 4px; border-radius: 8px; cursor: pointer; scroll-snap-align: start;
	background: var(--vcs-color); border: 2px solid transparent; box-shadow: 0 1px 4px rgba(59,47,39,.18);
	transition: transform .15s ease, border-color .15s ease, background-color .18s ease;
}
.vcs-flowers button:hover { transform: translateY(-2px); }
.vcs-flowers button[aria-checked="true"] { border-color: var(--vcs-accent); }
.vcs-flowers img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vcs-flowers[hidden] { display: none; }

/* controls */
.vcs-right { background: var(--vcs-card); border: 1px solid var(--vcs-line); border-radius: 12px; padding: clamp(18px, 3vw, 28px); }
.vcs-wheel-wrap { position: relative; width: 100%; max-width: 300px; margin: 0 auto 20px; aspect-ratio: 1 / 1; }
.vcs-wheel { width: 100%; height: 100%; display: block; border-radius: 50%; cursor: crosshair; touch-action: none; box-shadow: 0 4px 18px rgba(59,47,39,.2); }
.vcs-dot {
	position: absolute; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
	border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.3);
}
.vcs-label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--vcs-muted); margin: 0 0 8px; }
.vcs-light {
	--vcs-light-mid: #73d42b;
	-webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; margin: 0 0 22px; cursor: pointer;
	background: linear-gradient(90deg, #0d0d0d, var(--vcs-light-mid), #fafafa); border: 1px solid var(--vcs-line);
}
.vcs-light::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--vcs-ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.vcs-light::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--vcs-ink); }

.vcs-result { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-bottom: 14px; }
.vcs-swatch { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--vcs-line); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.vcs-hex-label { font-size: 14px; font-weight: 600; color: var(--vcs-muted); }
.vcs-hex {
	width: 100%; max-width: 220px; font-size: 30px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--vcs-ink);
	border: 0; border-bottom: 2px dashed var(--vcs-line); background: transparent; padding: 2px 0; border-radius: 0;
}
.vcs-hex:focus { border-bottom-color: var(--vcs-accent); outline: none; }

.vcs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.vcs-btn {
	font: inherit; font-size: 15px; min-height: 42px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
	background: transparent; color: var(--vcs-ink); border: 1.5px solid var(--vcs-line); transition: border-color .15s, background-color .15s;
}
.vcs-btn:hover { border-color: var(--vcs-accent); background: rgba(110,79,58,.06); }

.vcs-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.vcs-preset { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0; border: 2px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); transition: transform .15s; }
.vcs-preset:hover { transform: scale(1.08); }
.vcs-preset[aria-pressed="true"] { outline: 3px solid var(--vcs-accent); outline-offset: 2px; }

.vcs-note { font-size: 15px; line-height: 1.55; color: var(--vcs-muted); margin: 0 0 16px; }
.vcs-order {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
	background: var(--vcs-accent); color: #fff; font-weight: 600; text-decoration: none;
}
.vcs-order:hover { color: #fff; filter: brightness(1.08); }
.vcs-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--vcs-accent); }

@media (max-width: 820px) {
	.vcs-body { grid-template-columns: 1fr; }
	.vcs-tile-face { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
	.vcs * { transition: none !important; }
}

/* add to cart */
.vcs-cart { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--vcs-line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vcs-cart-what { flex: 1 1 100%; font-weight: 600; color: var(--vcs-ink); }
.vcs-cart-price { font-size: 22px; font-weight: 700; color: var(--vcs-ink); margin-right: 6px; }
.vcs-qty { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--vcs-muted); }
.vcs-qty input { width: 72px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--vcs-line); border-radius: 10px; font: inherit; font-size: 17px; color: var(--vcs-ink); background: #fff; }
.vcs-add { min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--vcs-accent); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.vcs-add:hover { filter: brightness(1.08); }

/* background keep / remove */
.vcs-bgctl { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.vcs-bgctl > span { font-size: 14px; font-weight: 600; color: var(--vcs-muted); }
.vcs-bgctl button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--vcs-line); background: transparent; font: inherit; font-size: 15px; cursor: pointer; color: var(--vcs-ink); }
.vcs-bgctl button[aria-pressed="true"] { background: var(--vcs-accent); border-color: var(--vcs-accent); color: #fff; }
.vcs-bgctl .vcs-bgundo[hidden] { display: none; }
.vcs-bghint { text-align: center; font-size: 14px; color: var(--vcs-muted); margin: 6px 0 0; }
.vcs-bghint[hidden] { display: none; }
.vcs-cutting .vcs-flower { cursor: crosshair; }

/* flipping through and browsing */
.vcs-tile { position: relative; }
.vcs-step { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
	background: rgba(255,255,255,.9); color: var(--vcs-ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 2; }
.vcs-step:hover { background: #fff; }
.vcs-step svg, .vcs-scroll svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vcs-step-prev { left: -14px; } .vcs-step-next { right: -14px; }
.vcs-step[hidden] { display: none; }
.vcs-count { display: block; font-size: 14px; font-weight: 400; color: var(--vcs-muted); }
.vcs-strip { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.vcs-strip[hidden] { display: none; }
.vcs-strip .vcs-flowers { flex: 1; margin-top: 0; scrollbar-width: thin; }
.vcs-scroll { flex: none; width: 40px; height: 72px; border-radius: 10px; border: 1.5px solid var(--vcs-line); background: transparent; color: var(--vcs-ink); cursor: pointer; display: grid; place-items: center; }
.vcs-scroll:hover { border-color: var(--vcs-accent); }
.vcs-browse-row { text-align: center; margin: 12px 0 0; }
.vcs-browse-row[hidden] { display: none; }
.vcs-browse { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--vcs-accent); background: transparent; color: var(--vcs-accent); font: inherit; font-weight: 700; cursor: pointer; }
.vcs-browse:hover { background: var(--vcs-accent); color: #fff; }
.vcs-pick { position: fixed; inset: 0; z-index: 100001; background: #f6f1ea; display: none; flex-direction: column; color: #2b2420; font-family: inherit; }
.vcs-pick.is-open { display: flex; }
.vcs-pick-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 40px) 10px; border-bottom: 1px solid rgba(43,36,32,.14); }
.vcs-pick-bar h2 { margin: 0; font-size: 26px; flex: 1 1 auto; color: #6e4f3a; }
.vcs-pick-q { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(43,36,32,.2); font: inherit; width: min(320px, 100%); background: #fff; }
.vcs-pick-close { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #6e4f3a; background: #6e4f3a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vcs-pick-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 40px) 4px; }
.vcs-pick-chips[hidden] { display: none; }
.vcs-pick-chips button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(43,36,32,.25); background: transparent; font: inherit; font-size: 15px; cursor: pointer; }
.vcs-pick-chips button[aria-pressed="true"] { background: #2b2420; color: #f6f1ea; border-color: #2b2420; }
.vcs-pick-grid { list-style: none; margin: 0; padding: 16px clamp(16px, 4vw, 40px) 40px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; flex: 1; }
.vcs-pick-grid li[hidden] { display: none; }
.vcs-pick-grid button { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.vcs-pick-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--vcs-color, #fff); border-radius: 10px; padding: 8px; box-sizing: border-box; box-shadow: 0 6px 18px rgba(43,36,32,.12); transition: transform .15s; }
.vcs-pick-grid button:hover img { transform: translateY(-3px); }
.vcs-pick-grid button[aria-current="true"] img { outline: 3px solid #6e4f3a; outline-offset: 2px; }
.vcs-pick-grid span { font-size: 15px; line-height: 1.3; }
@media (max-width: 520px) { .vcs-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .vcs-step-prev { left: 4px; } .vcs-step-next { right: 4px; } }
.vcs-tile figcaption { text-align: center; margin-top: 14px; }
.vcs-tile figcaption .vcs-flower-name { display: block; margin: 0; min-height: 0; }
.vcs-pick { font-family: Mulish, "Gill Sans", "Trebuchet MS", sans-serif; }
.vcs-pick-bar h2 { font-family: Fraunces, Georgia, serif; font-weight: 400; }

/* paintings that keep their background fill the whole tile */
.vcs-tile-face.vcs-fill .vcs-flower { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcs-tile-face.vcs-fill::after { opacity: .6; }

/* thumbnails: no colored frames; paintings fill, see-through flowers sit on a soft neutral */
.vcs-flowers button { background: #fff; padding: 0; overflow: hidden; }
.vcs-flowers button img { object-fit: cover; }
.vcs-flowers button.is-clear { background: #efe8de; padding: 4px; }
.vcs-flowers button.is-clear img { object-fit: contain; }
.vcs-pick-grid img { background: #fff; padding: 0; object-fit: cover; }
.vcs-pick-grid img.is-clear { background: #efe8de; padding: 8px; object-fit: contain; }
.vcs-bgctl[hidden] { display: none; }
.vcs-bgamt-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 8px 0 0; font-size: 14px; color: var(--vcs-muted); }
.vcs-bgamt-row[hidden] { display: none; }
.vcs-bgamt { width: 160px; }

/* the wheel: no focus ring after a mouse click (keyboard users still get it) */
.vcs-wheel:focus:not(:focus-visible) { outline: none; }
.vcs-wheel:focus-visible { outline: 3px solid var(--vcs-accent); outline-offset: 4px; }
.vcs-wheel-wrap { cursor: crosshair; }

.vcs-dot { pointer-events: auto; cursor: grab; touch-action: none; }
.vcs-wheel-wrap { touch-action: none; user-select: none; -webkit-user-select: none; }

.vcs-add-print { background: transparent; color: var(--vcs-accent); border: 1.5px solid var(--vcs-accent); }
.vcs-add-print:hover { background: var(--vcs-accent); color: #fff; filter: none; }
