/*
 * Virtual Store 3D – front-end styles.
 * Everything is scoped under .vs3d-* and driven by CSS custom properties,
 * so Elementor style controls (or your own CSS) can override the look.
 */

.vs3d-ui {
	--vs3d-ink: #1d1d1b;
	--vs3d-muted: #6b6a66;
	--vs3d-surface: rgba(250, 249, 246, 0.94);
	--vs3d-line: rgba(29, 29, 27, 0.12);
	--vs3d-accent: #1d1d1b;
	--vs3d-accent-ink: #ffffff;
	--vs3d-focus: #2563eb;
	--vs3d-danger: #b42318;
	--vs3d-ok: #1a7f4b;
	--vs3d-radius: 14px;
	--vs3d-font: inherit;
	--vs3d-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
	font-family: var(--vs3d-font);
	color: var(--vs3d-ink);
	box-sizing: border-box;
}
.vs3d-ui *,
.vs3d-ui *::before,
.vs3d-ui *::after {
	box-sizing: border-box;
}

.vs3d-sr,
.vs3d-sr.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Visible focus everywhere. */
.vs3d-ui :focus-visible,
.vs3d-canvas:focus-visible {
	outline: 2px solid var(--vs3d-focus);
	outline-offset: 2px;
}
.vs3d-canvas:focus-visible {
	outline-offset: -4px;
}

/* ------------------------------------------------------------------ */
/* Store shell                                                         */
/* ------------------------------------------------------------------ */
.vs3d-store {
	position: relative;
	width: 100%;
	min-height: 420px;
	overflow: hidden;
	background: var(--vs3d-bg, #e4e2dc);
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
}
.vs3d-store--viewport {
	height: 100vh;
	height: 100dvh;
}
.vs3d-stage {
	position: absolute;
	inset: 0;
}
.vs3d-canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.vs3d-canvas.is-dragging {
	cursor: grabbing;
}
.vs3d-store--lock .vs3d-canvas {
	touch-action: none;
}

.vs3d-status {
	position: absolute;
	left: 50%;
	bottom: 5.5rem;
	transform: translateX(-50%);
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: var(--vs3d-surface);
	font-size: 0.8125rem;
	box-shadow: var(--vs3d-shadow);
	z-index: 6;
	max-width: calc(100% - 2rem);
	text-align: center;
}
.vs3d-store--3d .vs3d-status:not(.vs3d-sr) {
	bottom: 5.5rem;
}

/* Brand mark: compact, centred. */
.vs3d-brand {
	position: absolute;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: none;
	text-align: center;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	max-width: 50%;
}
.vs3d-brand__logo {
	display: block;
	max-height: 28px;
	width: auto;
	max-width: 160px;
}

/* Top bar: help/list left, cart right. */
.vs3d-bar {
	position: absolute;
	inset: 0 0 auto 0;
	display: flex;
	justify-content: space-between;
	padding: calc(0.75rem + env(safe-area-inset-top, 0px)) calc(0.75rem + env(safe-area-inset-right, 0px)) 0 calc(0.75rem + env(safe-area-inset-left, 0px));
	pointer-events: none;
	z-index: 7;
}
.vs3d-bar__side {
	display: flex;
	gap: 0.5rem;
	pointer-events: auto;
}

.vs3d-iconbtn,
.vs3d-cartbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--vs3d-line);
	border-radius: 999px;
	background: var(--vs3d-surface);
	color: var(--vs3d-ink);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	box-shadow: var(--vs3d-shadow);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.vs3d-iconbtn:hover,
.vs3d-cartbtn:hover {
	transform: translateY(-1px);
}
.vs3d-iconbtn:active,
.vs3d-cartbtn:active {
	transform: translateY(0);
}
.vs3d-iconwrap {
	display: inline-flex;
}
.vs3d-icon {
	display: block;
}
.vs3d-cartbtn__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--vs3d-accent);
	color: var(--vs3d-accent-ink);
	font-size: 0.6875rem;
	font-weight: 700;
}
.vs3d-cartbtn__count[hidden] {
	display: none;
}
.vs3d-cartwidget {
	display: inline-block;
}

/* Floating bottom navigation. */
.vs3d-nav {
	position: absolute;
	left: 50%;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	display: flex;
	gap: 0.25rem;
	max-width: calc(100% - 1.5rem);
	padding: 0.3rem;
	overflow-x: auto;
	scrollbar-width: none;
	border: 1px solid var(--vs3d-line);
	border-radius: 999px;
	background: var(--vs3d-surface);
	box-shadow: var(--vs3d-shadow);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	z-index: 7;
}
.vs3d-nav::-webkit-scrollbar {
	display: none;
}
.vs3d-nav__btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--vs3d-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.vs3d-nav__btn:hover {
	background: rgba(29, 29, 27, 0.07);
}
.vs3d-nav__btn.is-active,
.vs3d-nav__btn[aria-current='true'] {
	background: var(--vs3d-accent);
	color: var(--vs3d-accent-ink);
}
/* Standalone nav widget */
.vs3d-navwidget {
	display: flex;
}
.vs3d-navwidget--floating .vs3d-nav--embedded,
.vs3d-navwidget--floating {
	padding: 0.3rem;
	border: 1px solid var(--vs3d-line);
	border-radius: 999px;
	background: var(--vs3d-surface);
	box-shadow: var(--vs3d-shadow);
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
}
.vs3d-navwidget--inline {
	gap: 0.25rem;
	flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Hotspots + hover tag                                                */
/* ------------------------------------------------------------------ */
.vs3d-hotspots {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 4;
}
.vs3d-hotspot {
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vs3d-hotspot[hidden] {
	display: none;
}
.vs3d-hotspot__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--vs3d-surface);
	border: 2px solid var(--vs3d-ink);
	box-shadow: 0 0 0 0 rgba(29, 29, 27, 0.35);
	animation: vs3d-pulse 2.4s ease-out infinite;
	transition: transform 0.15s ease;
}
.vs3d-hotspot:hover .vs3d-hotspot__dot,
.vs3d-hotspot:focus-visible .vs3d-hotspot__dot {
	transform: scale(1.35);
}
@keyframes vs3d-pulse {
	0% { box-shadow: 0 0 0 0 rgba(29, 29, 27, 0.35); }
	70% { box-shadow: 0 0 0 12px rgba(29, 29, 27, 0); }
	100% { box-shadow: 0 0 0 0 rgba(29, 29, 27, 0); }
}
.vs3d-tag {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.45rem 0.7rem;
	border-radius: 10px;
	background: var(--vs3d-ink);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.25;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: var(--vs3d-shadow);
}
.vs3d-tag[hidden] {
	display: none;
}
.vs3d-tag__price {
	opacity: 0.8;
}
.vs3d-hs {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
}
.vs3d-hs[hidden] {
	display: none;
}
.vs3d-hs .vs3d-hotspot {
	position: relative;
	transform: translate(-50%, -50%);
}
.vs3d-hs__pop {
	position: absolute;
	left: 18px;
	top: -26px;
	width: 220px;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: var(--vs3d-surface);
	box-shadow: var(--vs3d-shadow);
	font-size: 0.8125rem;
	line-height: 1.4;
	pointer-events: auto;
}
.vs3d-hs__pop[hidden] {
	display: none;
}
.vs3d-hs__pop p {
	margin: 0.25rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Dialogs: product panel, drawer, modal                               */
/* ------------------------------------------------------------------ */
.vs3d-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(20, 20, 18, 0.38);
	opacity: 0;
	transition: opacity 0.22s ease;
}
.vs3d-backdrop.is-open {
	opacity: 1;
}
.vs3d-backdrop[hidden],
.vs3d-dialog[hidden] {
	display: none;
}
.vs3d-dialog {
	opacity: 0;
	transition: opacity 0.22s ease, transform 0.25s ease;
	outline: none;
}
.vs3d-dialog.is-open {
	opacity: 1;
}

/* Side drawer (cart). */
.vs3d-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: min(420px, 100vw);
	background: #faf9f6;
	color: var(--vs3d-ink);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
	transform: translateX(24px);
}
.vs3d-drawer.is-open {
	transform: none;
}
.vs3d-drawer__head,
.vs3d-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--vs3d-line);
}
.vs3d-drawer__title,
.vs3d-modal__head h2 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}
.vs3d-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0.5rem 1.25rem;
}
.vs3d-drawer__status {
	margin: 0;
	padding: 0 1.25rem;
	color: var(--vs3d-danger);
	font-size: 0.8125rem;
}
.vs3d-drawer__status:empty {
	display: none;
}
.vs3d-drawer__foot {
	display: grid;
	gap: 0.6rem;
	padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--vs3d-line);
}
.vs3d-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
}
.vs3d-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}
.vs3d-lines__empty {
	padding: 2rem 0;
	color: var(--vs3d-muted);
	text-align: center;
}
.vs3d-line {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 0.85rem;
	padding: 0.9rem 2rem 0.9rem 0;
	border-bottom: 1px solid var(--vs3d-line);
}
.vs3d-line img,
.vs3d-lines__ph {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: #e4e2dc;
}
.vs3d-line__name {
	margin: 0;
	font-weight: 600;
	font-size: 0.9375rem;
}
.vs3d-line__name a {
	color: inherit;
	text-decoration: none;
}
.vs3d-line__meta {
	margin: 0.15rem 0 0;
	color: var(--vs3d-muted);
	font-size: 0.8125rem;
}
.vs3d-line__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.5rem;
}
.vs3d-line__remove {
	position: absolute;
	top: 0.6rem;
	right: 0;
	min-width: 32px;
	min-height: 32px;
	padding: 0;
	box-shadow: none;
	border: 0;
	background: transparent;
}

.vs3d-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--vs3d-line);
	border-radius: 999px;
	background: #fff;
}
.vs3d-stepper__btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: inherit;
	border-radius: 50%;
	cursor: pointer;
}
.vs3d-stepper__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.vs3d-stepper__val,
.vs3d-stepper__input {
	min-width: 2rem;
	width: 3rem;
	text-align: center;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: inherit;
	-moz-appearance: textfield;
}
.vs3d-stepper__val {
	width: auto;
	padding: 0 0.25rem;
}
.vs3d-stepper__input::-webkit-outer-spin-button,
.vs3d-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Buttons. */
.vs3d-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0 1.4rem;
	border: 1px solid var(--vs3d-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--vs3d-accent);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.vs3d-btn--primary {
	background: var(--vs3d-accent);
	color: var(--vs3d-accent-ink);
}
.vs3d-btn--ghost {
	border-color: var(--vs3d-line);
	color: var(--vs3d-ink);
}
.vs3d-btn--block {
	width: 100%;
}
.vs3d-btn:disabled,
.vs3d-btn[aria-disabled='true'] {
	opacity: 0.45;
	cursor: not-allowed;
}
.vs3d-btn:not(:disabled):hover {
	opacity: 0.88;
}
.vs3d-note {
	margin: 0;
	color: var(--vs3d-muted);
	font-size: 0.8125rem;
}
.vs3d-link {
	color: var(--vs3d-ink);
	font-size: 0.875rem;
}

/* Centered modal (help, list). */
.vs3d-modal {
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	width: min(520px, calc(100vw - 1.5rem));
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	border-radius: calc(var(--vs3d-radius) + 6px);
	background: #faf9f6;
	color: var(--vs3d-ink);
	box-shadow: var(--vs3d-shadow);
	transform: translate(-50%, calc(-50% + 14px));
}
.vs3d-modal.is-open {
	transform: translate(-50%, -50%);
}
.vs3d-modal--wide {
	width: min(980px, calc(100vw - 1.5rem));
}
.vs3d-modal__body {
	overflow-y: auto;
	padding: 1.1rem 1.25rem 1.4rem;
}
.vs3d-help__list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vs3d-help__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	line-height: 1.45;
}
.vs3d-help__ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(29, 29, 27, 0.07);
}
.vs3d-helpwidget .vs3d-help__list li {
	display: list-item;
}
.vs3d-helpwidget .vs3d-help__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}
.vs3d-helpwidget .vs3d-help__list {
	list-style: disc;
	padding-left: 1.2rem;
	gap: 0.4rem;
}

/* Product panel (inside the store). */
.vs3d-panel {
	position: absolute;
	z-index: 20;
	display: flex;
	flex-direction: column;
	background: var(--vs3d-surface);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: var(--vs3d-ink);
	box-shadow: var(--vs3d-shadow);
	overflow: hidden;
	right: 1rem;
	top: 4.5rem;
	bottom: 5.5rem;
	width: min(380px, calc(100% - 2rem));
	border-radius: calc(var(--vs3d-radius) + 4px);
	transform: translateX(24px);
}
.vs3d-panel.is-open {
	transform: none;
}
.vs3d-panel .vs3d-close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
}
.vs3d-panel__body {
	flex: 1;
	overflow-y: auto;
	display: block;
}
.vs3d-panel__img,
.vs3d-panel__swatch {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #e4e2dc;
}
.vs3d-panel__info {
	display: grid;
	gap: 0.65rem;
	padding: 1rem 1.25rem 1.4rem;
}
.vs3d-panel__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}
.vs3d-panel__desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #3a3a37;
}
.vs3d-panel__status {
	margin: 0;
	font-size: 0.875rem;
	color: var(--vs3d-ok);
}
.vs3d-panel__status:empty {
	display: none;
}
.vs3d-price {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}
.vs3d-price del {
	margin-right: 0.35rem;
	font-weight: 400;
	color: var(--vs3d-muted);
}
.vs3d-badge {
	display: inline-block;
	width: fit-content;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--vs3d-accent);
	color: var(--vs3d-accent-ink);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vs3d-stock {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
}
.vs3d-stock.is-in {
	color: var(--vs3d-ok);
}
.vs3d-stock.is-low {
	color: #b54708;
}
.vs3d-stock.is-out {
	color: var(--vs3d-danger);
}
.vs3d-form {
	display: grid;
	gap: 0.75rem;
}
.vs3d-field {
	display: grid;
	gap: 0.3rem;
}
.vs3d-field label {
	font-size: 0.8125rem;
	font-weight: 600;
}
.vs3d-select {
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--vs3d-line);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
}
.vs3d-error {
	display: grid;
	gap: 0.5rem;
	color: var(--vs3d-danger);
}

/* Embedded panel (showcase). */
.vs3d-panel--embedded {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Product grid: list dialog and no-WebGL fallback                      */
/* ------------------------------------------------------------------ */
.vs3d-grid__section + .vs3d-grid__section {
	margin-top: 1.75rem;
}
.vs3d-grid__section h2 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}
.vs3d-grid__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vs3d-card__btn {
	display: grid;
	gap: 0.35rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.vs3d-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 12px;
	background: #e4e2dc;
}
.vs3d-card__media img,
.vs3d-card__swatch {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vs3d-card__media .vs3d-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
}
.vs3d-card__name {
	font-weight: 600;
	font-size: 0.9rem;
}
.vs3d-card__price {
	font-size: 0.875rem;
	color: var(--vs3d-muted);
}
.vs3d-card__btn:hover .vs3d-card__media {
	box-shadow: 0 0 0 2px var(--vs3d-ink);
}
.vs3d-store--fallback .vs3d-stage {
	overflow-y: auto;
	padding: 4.5rem 1rem 6rem;
}
.vs3d-store--fallback .vs3d-fallback {
	max-width: 1100px;
	margin: 0 auto;
}
.vs3d-fallback__note {
	text-align: center;
	margin-bottom: 1rem;
}
.vs3d-static {
	position: absolute;
	inset: 0;
	overflow: auto;
	padding: 4.5rem 1rem 2rem;
	background: var(--vs3d-bg, #e4e2dc);
}
.vs3d-empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Showcase widget                                                     */
/* ------------------------------------------------------------------ */
.vs3d-showcase {
	position: relative;
	width: 100%;
	height: 520px;
	min-height: 280px;
	overflow: hidden;
	background: #e4e2dc;
	isolation: isolate;
}
.vs3d-showcase .vs3d-status {
	bottom: 1rem;
}
.vs3d-showcase .vs3d-panel--embedded {
	position: absolute;
	right: 1rem;
	top: 1rem;
	bottom: auto;
	max-height: calc(100% - 2rem);
	width: min(320px, calc(100% - 2rem));
}
.vs3d-showcase .vs3d-panel--embedded .vs3d-panel__img,
.vs3d-showcase .vs3d-panel--embedded .vs3d-panel__swatch {
	display: none;
}
.vs3d-showcase__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Trial Room                                                          */
/* ------------------------------------------------------------------ */
.vs3d-trial__body {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}
.vs3d-trial__form {
	display: grid;
	gap: 0.85rem;
}
.vs3d-trial__stage {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	min-height: 220px;
	padding: 0.5rem;
	border: 1px dashed var(--vs3d-line);
	border-radius: var(--vs3d-radius);
	background: rgba(29, 29, 27, 0.03);
}
.vs3d-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
}
.vs3d-fieldset legend {
	padding: 0;
	margin-bottom: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
}
.vs3d-radio,
.vs3d-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.45rem;
	min-height: 32px;
	font-size: 0.875rem;
	line-height: 1.35;
	cursor: pointer;
}
.vs3d-radio input,
.vs3d-check input {
	width: 20px;
	height: 20px;
	margin: 0.1rem 0 0;
	accent-color: var(--vs3d-accent);
}
.vs3d-input {
	width: 100%;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--vs3d-line);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
}
.vs3d-inline {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.vs3d-inline .vs3d-input {
	flex: 1;
	min-width: 0;
}
.vs3d-select--sm {
	width: auto;
	flex: 0 0 auto;
	min-height: 44px;
}
.vs3d-unit {
	font-size: 0.8125rem;
	color: var(--vs3d-muted);
}
.vs3d-file {
	font: inherit;
	font-size: 0.875rem;
}
.vs3d-error-text {
	margin: 0;
	color: var(--vs3d-danger);
	font-size: 0.8125rem;
}
.vs3d-error-text:empty {
	display: none;
}
.vs3d-rec {
	display: grid;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	border-radius: var(--vs3d-radius);
	background: rgba(29, 29, 27, 0.05);
}
.vs3d-rec__size {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}
.vs3d-trial__h3 {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
}
.vs3d-trial__ai {
	display: grid;
	gap: 0.6rem;
}
.vs3d-trial__canvaswrap {
	display: flex;
	justify-content: center;
	background: #d8d5ce;
	border-radius: 10px;
	overflow: hidden;
}
.vs3d-trial__canvas {
	display: block;
	max-width: 100%;
	max-height: 62vh;
	height: auto;
	width: auto;
	cursor: grab;
	touch-action: none;
}
.vs3d-trial__canvas.is-dragging {
	cursor: grabbing;
}
.vs3d-trial__result-img {
	display: block;
	max-width: 100%;
	max-height: 62vh;
	margin: 0 auto;
	border-radius: 10px;
}
.vs3d-trial__controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.6rem;
}
.vs3d-slider {
	display: grid;
	gap: 0.2rem;
	font-size: 0.8125rem;
	font-weight: 600;
}
.vs3d-slider input {
	width: 100%;
	min-height: 32px;
	accent-color: var(--vs3d-accent);
}
.vs3d-trial__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.vs3d-trialwidget {
	display: block;
}
@media (max-width: 760px) {
	.vs3d-trial__body {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 899px) {
	/* Product panel becomes a bottom sheet so the 3D product stays visible above it. */
	.vs3d-store .vs3d-panel {
		left: 0.5rem;
		right: 0.5rem;
		top: auto;
		bottom: 0.5rem;
		width: auto;
		max-height: 52%;
		transform: translateY(24px);
	}
	.vs3d-store .vs3d-panel.is-open {
		transform: none;
	}
	.vs3d-panel__img,
	.vs3d-panel__swatch {
		aspect-ratio: 16 / 7;
	}
	.vs3d-showcase .vs3d-panel--embedded {
		position: absolute;
		left: 0.5rem;
		right: 0.5rem;
		top: auto;
		bottom: 0.5rem;
		width: auto;
		max-height: 55%;
	}
}
@media (max-width: 599px) {
	.vs3d-brand {
		font-size: 0.8125rem;
		letter-spacing: 0.22em;
	}
	.vs3d-nav__btn {
		padding: 0 0.85rem;
	}
	.vs3d-status {
		bottom: 5rem;
	}
	.vs3d-hs__pop {
		width: 180px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.vs3d-ui *,
	.vs3d-ui *::before,
	.vs3d-ui *::after,
	.vs3d-dialog,
	.vs3d-backdrop {
		transition: none !important;
		animation: none !important;
	}
}

/* High-contrast / forced colours support. */
@media (forced-colors: active) {
	.vs3d-iconbtn,
	.vs3d-cartbtn,
	.vs3d-nav,
	.vs3d-panel,
	.vs3d-drawer,
	.vs3d-modal {
		border: 1px solid CanvasText;
	}
	.vs3d-nav__btn.is-active,
	.vs3d-nav__btn[aria-current='true'] {
		outline: 2px solid Highlight;
	}
}
