/**
 * 3D customiser (studio page) — phone layout, design 9 "Floating chips".
 *
 * Full-screen model, glass header (home · name + price · cart), colour
 * chips floating on the model, a glass options card and a step dock at
 * the bottom. Only active on phones: customizer-mobile.js adds
 * body.sky9 under 861px and removes it above, so desktop is untouched.
 * Kept in its own file so customizer.css is never edited. Loaded late
 * (after any theme CSS) so these phone rules win.
 */
/* Hidden everywhere until the phone layout switches them on. */
body:not(.sky9) #sky9-dock,
body:not(.sky9) #sky9-chips,
body:not(.sky9) #sky9-title { display: none !important; }
#sky9-chips { display: none; }

/* The Skye Logo is chosen in the Colour step (its card or its row), so
   its own step never shows in the menu -- hidden from the first paint, so
   the menu does not jump when the page finishes loading. */
#devexhub-3d-customiser-steps .devexhub-3d-customiser-step-btn[data-step-target="logo"] { display: none !important; }

/* Desktop: the "saved design is back" notice floats over the model
   instead of pushing the step menu down while the page loads. */
@media (min-width: 861px) {
	#devexhub-3d-customiser-panel #devexhub-3d-customiser-resume-banner {
		position: fixed !important;
		left: 50%;
		top: 96px;
		transform: translateX(-50%);
		z-index: 50;
		width: max-content;
		max-width: 520px;
		margin: 0 !important;
	}
	#devexhub-3d-customiser-panel #devexhub-3d-customiser-resume-banner.is-leaving { transform: translate(-50%, -6px); }
}

/* Phones: keep the page hidden for the moment before the phone layout
   switches on, so the desktop layout does not flash first. Shown anyway
   after 4 seconds, whatever happens. */
@media (max-width: 860px) {
	body:not(.sky9) .devexhub-3d-studio-shell { visibility: hidden; animation: sky9Reveal 0s linear 4s forwards; }
}
@keyframes sky9Reveal { to { visibility: visible; } }

/* Desktop: three choices in a style row (Sleeves: None / 3/4 / Full) fit
   the width of two. */
.dx-opt2-choices:has(> .dx-opt2-choice:nth-child(3)) { grid-auto-columns: 66px; }

@media (max-width: 860px) {

	/* ---------- Page + stage ---------- */
	/* Same grey as the 3D scene (#f3f3f3), so the model has no box round it. */
	body.sky9,
	body.sky9 .devexhub-3d-studio-shell {
		background: #f3f3f3 !important;
	}
	body.sky9 .devexhub-3d-studio-shell {
		display: block !important;
		min-height: 100dvh;
	}
	body.sky9 .devexhub-3d-studio-stage {
		position: fixed !important;
		top: 50px !important; /* under the name pill: as much room for the model as possible */
		/* Full width, so a zoomed-in model is not cut off at the sides; the
		   opening view still keeps clear of the icons (fitModelToStage()). */
		left: 0 !important;
		right: 0 !important;
		bottom: var(--sky9-floor, 46dvh) !important;
		height: auto !important;
		background: transparent !important;
		z-index: 1;
	}
	body.sky9 #devexhub-3d-customiser-gallery,
	body.sky9 #devexhub-3d-customiser-canvas-wrap {
		height: 100% !important;
		background: transparent !important;
	}
	body.sky9 .dx-studio-mask { display: none !important; }

	/* ---------- Glass ---------- */
	body.sky9 .sky9-glass,
	body.sky9 #sky9-title,
	body.sky9 .dx-studio-tools .dx-studio-icon,
	body.sky9 #dx-studio-deck,
	body.sky9 #sky9-dock,
	body.sky9 .devexhub-3d-customiser-size-chart-link.sky-size-top {
		background: rgba(255, 255, 255, .82);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		border: 1px solid rgba(255, 255, 255, .95);
		box-shadow: 0 8px 24px rgba(4, 14, 73, .12);
	}

	/* ---------- Header: home · name + price · cart ---------- */
	body.sky9 .dx-studio-tools {
		position: fixed !important;
		top: 10px !important;
		right: 10px !important;
		left: auto !important;
		width: auto !important;
		max-width: none !important;
		height: auto !important;
		z-index: 30;
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
		box-sizing: border-box;
	}
	body.sky9 .dx-studio-tools .dx-studio-icon {
		flex: 0 0 44px;
		width: 44px !important;
		height: 44px !important;
		margin: 0 !important;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: #040e49;
	}
	body.sky9 .dx-studio-tools .dx-studio-icon svg { width: 20px; height: 20px; }
	/* Name + price: a glass pill top-left. */
	body.sky9 #sky9-title {
		position: fixed;
		top: 10px;
		left: 10px;
		z-index: 30;
		max-width: calc(100vw - 84px);
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 9px 14px;
		border-radius: 999px;
	}
	/* Phones: just the price (the product name is not needed here). */
	body.sky9 .sky9-title__name { display: none !important; }
	body.sky9 .sky9-title__price {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		font: 900 18px/1.2 Inter, sans-serif;
		color: #040e49;
		cursor: pointer;
	}
	body.sky9 .sky9-title__price svg { width: 14px; height: 14px; }

	/* Size chart: a third round icon under home and cart. */
	body.sky9.devexhub-3d-studio .devexhub-3d-customiser-size-chart-link.sky-size-top {
		position: fixed !important;
		inset: auto !important;
		top: 114px !important;
		right: 10px !important;
		left: auto !important;
		z-index: 30;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		font-size: 0 !important;
		color: transparent !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23040e49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8' width='19' height='8' rx='1.5'/%3E%3Cpath d='M6.5 8v3M10 8v4M13.5 8v3M17 8v4'/%3E%3C/svg%3E") !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		background-size: 22px 22px !important;
	}

	/* ---------- Floating colour chips ---------- */
	body.sky9.sky9-step-colour #sky9-chips {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		z-index: 20;
		pointer-events: none;
	}
	body.sky9 .sky9-chip {
		position: absolute;
		pointer-events: auto;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		max-width: 36vw;
		height: 32px;
		padding: 0 10px 0 4px;
		border-radius: 999px;
		color: #040e49;
		font: 700 11.5px/1 Montserrat, sans-serif;
		white-space: nowrap;
		cursor: pointer;
		transition: background .15s, color .15s, transform .15s;
	}
	body.sky9 .sky9-chip span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
	}
	body.sky9 .sky9-chip:active { transform: scale(.97); }
	body.sky9 .sky9-chip__sw {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		border: 2px solid #fff;
		box-shadow: 0 0 0 1px #d5d9e4;
		background-color: #eef0f5;
		background-size: cover;
		background-position: center;
	}
	body.sky9 .sky9-chip.is-empty .sky9-chip__sw {
		background: repeating-linear-gradient(45deg, #eef0f5 0 4px, #fff 4px 8px);
	}
	body.sky9 .sky9-chip.is-active {
		background: #040e49;
		border-color: #040e49;
		color: #fff;
		box-shadow: 0 8px 24px rgba(4, 14, 73, .28);
	}
	/* Row mode: a part is open, so the chips line up above the card. */
	body.sky9 .sky9-chips__row {
		position: absolute;
		left: 0;
		right: 0;
		display: flex;
		gap: 8px;
		padding: 0 12px 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		pointer-events: auto;
	}
	body.sky9 .sky9-chips__row::-webkit-scrollbar { display: none; }
	/* While chips glide: no blur (smooth on phones), moved on the GPU. */
	body.sky9 #sky9-chips.is-gliding .sky9-chip {
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		will-change: transform;
	}
	body.sky9 #sky9-chips.is-gliding .sky9-chip:not(.is-active) {
		background: rgba(255, 255, 255, .97) !important;
	}
	/* While chips glide into / out of the row, don't clip or fade them. */
	body.sky9 .sky9-chips__row.is-gliding {
		overflow: visible !important;
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}
	/* Fade at the right edge: there are more parts to swipe to. */
	body.sky9 .sky9-chips__row {
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
		mask-image: linear-gradient(90deg, #000 82%, transparent);
		padding-right: 40px !important;
	}
	body.sky9 .sky9-chips__row .sky9-chip {
		position: static;
		flex: 0 0 auto;
		max-width: none;
		height: 34px;
	}
	body.sky9 .sky9-hint {
		position: absolute;
		left: 12px;
		top: 66px;
		margin: 0;
		font: 600 13px Montserrat, sans-serif;
		color: #4b5470;
	}

	/* ---------- Options card ---------- */
	body.sky9 #dx-studio-deck {
		position: fixed !important;
		left: 10px;
		right: 10px;
		bottom: calc(86px + env(safe-area-inset-bottom, 0px));
		top: auto !important;
		z-index: 25 !important;
		height: var(--dx-sheet, 31dvh) !important;
		max-height: calc(100dvh - 220px);
		margin: 0 !important;
		padding: 14px 12px 10px !important;
		border-radius: 22px !important;
		box-sizing: border-box;
	}
	body.sky9.sky9-step-finalize #dx-studio-deck {
		bottom: calc(146px + env(safe-area-inset-bottom, 0px));
		height: var(--dx-sheet, 44dvh) !important;
	}
	/* Drag handle: a bigger, darker bar and a taller strip to grab (the
	   card's content starts lower so the strip never covers Done / X). */
	body.sky9 .dx-sheet-grip { top: 0 !important; height: 30px !important; touch-action: none; }
	body.sky9 .dx-sheet-grip::before { width: 52px !important; height: 6px !important; background: #9aa1b3 !important; }
	body.sky9 .dx-sheet-grip:active::before,
	body.sky9 #dx-studio-deck.is-dragging .dx-sheet-grip::before { background: #040e49 !important; }
	body.sky9 #dx-studio-deck { padding-top: 28px !important; }

	/* The step name becomes the card's title; the dock does the moving. */
	body.sky9 #dx-studio-stepper {
		justify-content: space-between !important;
		gap: 8px;
		margin: 0 0 8px !important;
		padding: 0 2px;
	}
	body.sky9 #dx-studio-step-prev,
	body.sky9 #dx-studio-step-next { display: none !important; }
	body.sky9 .dx-studio-stepper__label {
		display: flex !important;
		align-items: baseline;
		justify-content: space-between;
		width: 100%;
		margin: 0 !important;
	}
	body.sky9 #dx-studio-step-name {
		font: 900 16px/1.2 Inter, sans-serif !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: #040e49;
	}
	body.sky9 #dx-studio-step-count {
		font: 600 13px Montserrat, sans-serif !important;
		font-style: normal !important;
		color: #4b5470;
	}
	body.sky9 #dx-studio-step-count::before { content: "Step "; }

	/* ---------- Add to cart: only on the Finish step ---------- */
	body.sky9 .dx-studio-mobile-actions { display: none !important; }
	body.sky9.sky9-step-finalize .dx-studio-mobile-actions {
		display: flex !important;
		position: fixed !important;
		left: 10px;
		right: 10px;
		bottom: calc(86px + env(safe-area-inset-bottom, 0px));
		z-index: 26 !important;
		gap: 8px;
		height: 52px;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
	}
	body.sky9.sky9-step-finalize .dx-studio-mobile-actions > * {
		height: 52px !important;
		border-radius: 16px !important;
		margin: 0 !important;
	}
	body.sky9.sky9-step-finalize .dx-studio-mobile-actions > :not(.dx-studio-mobile-btn--primary) {
		flex: 0 0 52px !important;
		width: 52px !important;
		background: #fff !important;
		border: 1px solid #d5d9e4 !important;
		color: #040e49 !important;
	}
	body.sky9.sky9-step-finalize .dx-studio-mobile-actions svg { stroke: #040e49; }
	body.sky9.sky9-step-finalize .dx-studio-mobile-btn--primary {
		flex: 1 1 auto !important;
		background: #040e49 !important;
		border-color: #040e49 !important;
		color: #fff !important;
		font: 700 15px Montserrat, sans-serif !important;
		letter-spacing: .02em !important;
	}

	/* ---------- Step dock ---------- */
	body.sky9 #sky9-dock {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		z-index: 40;
		display: flex;
		gap: 2px;
		padding: 5px;
		border-radius: 24px;
		box-sizing: border-box;
	}
	body.sky9 .sky9-dock__btn {
		position: relative;
		/* auto, not 0: a long label ("Graphics", "Crystal") gets the
		   room it needs instead of being cut to "Grap..." on phones. */
		flex: 1 1 auto;
		min-width: 0;
		height: 58px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		margin: 0;
		padding: 0 3px;
		border: 0;
		border-radius: 18px;
		background: none;
		color: #4b5470;
		font: 600 12px/1 Montserrat, sans-serif;
		letter-spacing: 0;
		text-transform: none;
		cursor: pointer;
	}
	body.sky9 .sky9-dock__btn svg { width: 21px; height: 21px; flex: 0 0 auto; }
	body.sky9 .sky9-dock__btn span {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	body.sky9 .sky9-dock__btn.is-active { background: #040e49; color: #fff; }
	body.sky9 .sky9-dock__btn.is-finish { background: #fdc502; color: #040e49; font-weight: 700; }
	body.sky9 .sky9-dock__btn.is-finish.is-active { box-shadow: inset 0 0 0 2px #040e49; }
	body.sky9 .sky9-dock__btn.is-needed::after {
		content: "";
		position: absolute;
		top: 7px;
		right: calc(50% - 17px);
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: #d92d20;
		box-shadow: 0 0 0 2px #fff;
	}
	body.sky9 .sky9-dock__btn.is-done:not(.is-active):not(.is-finish) { color: #13623a; }


	/* =================================================================
	   Less text, smaller card, bigger model (closer to the design 9 sample)
	   ================================================================= */

	/* Helper lines and repeated headings: the chips and dock already say it. */
	body.sky9 .dx-opt2-hint,
	body.sky9 .devexhub-3d-customiser-colour-filter-label,
	body.sky9 .devexhub-3d-customiser-material-title,
	body.sky9 .dx-presets__or,
	body.sky9 #dx-presets h4 { display: none !important; }

	/* Saved-design notice: a small toast over the model, not a row in the card. */
	body.sky9 #devexhub-3d-customiser-resume-banner {
		position: fixed !important;
		left: 50%;
		top: 62px;
		transform: translateX(-50%);
		z-index: 35;
		width: max-content;
		max-width: calc(100vw - 24px);
		margin: 0 !important;
		box-shadow: 0 8px 24px rgba(4, 14, 73, .18);
	}
	body.sky9.sky9-banner-gone #devexhub-3d-customiser-resume-banner { display: none !important; }

	/* Style step: one compact line per choice — name on the left, the two
	   pictures on the right. */
	body.sky9 .dx-opt2-list { gap: 0 !important; }
	body.sky9 .dx-opt2-row {
		display: flex !important;
		align-items: center;
		gap: 10px;
		margin: 0 !important;
		padding: 8px 2px !important;
		border: 0 !important;
		border-bottom: 1px solid #e6e8ef !important;
		border-radius: 0 !important;
		background: none !important;
		box-shadow: none !important;
	}
	body.sky9 .dx-opt2-row:last-child { border-bottom: 0 !important; }
	body.sky9 .dx-opt2-head { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
	body.sky9 .dx-opt2-title {
		font: 800 14px/1.25 Inter, sans-serif !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: #040e49;
	}
	body.sky9 .dx-opt2-choices {
		flex: 0 0 auto;
		display: flex !important;
		gap: 8px !important;
		grid-template-columns: none !important;
	}
	body.sky9 .dx-opt2-choice {
		width: 76px !important;
		min-width: 0 !important;
		padding: 0 !important;
		border-radius: 14px !important;
	}
	body.sky9 .dx-opt2-pic {
		height: 64px !important;
		min-height: 0 !important;
		border-radius: 12px !important;
	}
	body.sky9 .dx-opt2-pic img { width: 100% !important; height: 100% !important; object-fit: cover; }
	body.sky9 .dx-opt2-tick { top: 4px !important; right: 4px !important; transform: scale(.8); }
	body.sky9 .dx-opt2-actions {
		padding: 8px 0 0 !important;
		margin: 0 !important;
		background: linear-gradient(rgba(255,255,255,0), #fff 30%) !important;
	}
	body.sky9 .dx-opt2-actions button { min-height: 46px !important; height: 46px !important; border-radius: 14px !important; }

	/* Colour step, no part open: colourways in one row you swipe. */
	body.sky9 .dx-presets__grid {
		display: flex !important;
		gap: 8px !important;
		overflow-x: auto;
		margin: 0 -12px !important;
		padding: 2px 12px 6px !important;
		scrollbar-width: none;
		grid-template-columns: none !important;
	}
	body.sky9 .dx-presets__grid::-webkit-scrollbar { display: none; }
	body.sky9 .dx-preset { flex: 0 0 132px !important; min-width: 0 !important; }
	body.sky9 .dx-preset__pick { padding: 10px !important; min-height: 0 !important; gap: 6px !important; }
	body.sky9 .dx-preset__name { font-size: 13px !important; line-height: 1.25 !important; }
	body.sky9 .dx-preset__price { font-size: 12px !important; }
	body.sky9 .sky9-colour-help {
		margin: 4px 0 0;
		font: 600 13px/1.35 Montserrat, sans-serif;
		color: #4b5470;
	}

	/* Colour step, a part open: swatches in a tidy grid, Save / Cancel small. */
	body.sky9 .devexhub-3d-customiser-zone-detail-head { margin: 0 0 6px !important; padding: 0 !important; background: none !important; }
	body.sky9 #devexhub-3d-customiser-zone-detail-title {
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
		font: 800 14px/1.25 Inter, sans-serif !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: #040e49 !important;
		text-align: left !important;
	}
	body.sky9 .devexhub-3d-customiser-colour-filter { margin: 0 0 6px !important; }
	body.sky9 .devexhub-3d-customiser-colour-circles {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 8px !important;
		overflow-x: auto;
		padding: 3px 2px 4px !important;
		scrollbar-width: none;
	}
	body.sky9 .devexhub-3d-customiser-colour-circles::-webkit-scrollbar { display: none; }
	body.sky9 .devexhub-3d-customiser-colour-circle {
		flex: 0 0 36px !important;
		width: 36px !important;
		height: 36px !important;
	}
	body.sky9 .devexhub-3d-customiser-material-heading {
		margin: 6px 0 4px !important;
		font: 700 12px Montserrat, sans-serif !important;
		letter-spacing: .04em !important;
		color: #6b7390 !important;
	}
	/* Swatches sit side by side from the left, close together (the names
	   are screen-reader only, so a wide grid cell left big gaps). */
	body.sky9 .devexhub-3d-customiser-swatch-grid {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
		gap: 10px !important;
		grid-template-columns: none !important;
	}
	body.sky9 .devexhub-3d-customiser-swatch-card {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 4px !important;
		min-height: 0 !important;
		padding: 4px 2px !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
		text-align: center !important;
	}
	body.sky9 .devexhub-3d-customiser-swatch-dot {
		width: 52px !important;
		height: 52px !important;
		border-radius: 50% !important;
		margin: 0 !important;
		box-shadow: inset 0 0 0 1px rgba(4, 14, 73, .12);
	}
	body.sky9 .devexhub-3d-customiser-swatch-card.is-active .devexhub-3d-customiser-swatch-dot {
		box-shadow: 0 0 0 3px #fff, 0 0 0 5px #040e49 !important;
	}
	body.sky9 .devexhub-3d-customiser-swatch-label {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font: 600 12px/1.2 Montserrat, sans-serif !important;
		color: #040e49 !important;
	}
	body.sky9 .devexhub-3d-customiser-swatch-price { font: 600 12px Montserrat, sans-serif !important; color: #6b7390 !important; }
	body.sky9 .devexhub-3d-customiser-swatch-price.sky9-included { display: none !important; }
	body.sky9 .devexhub-3d-customiser-zone-actions {
		position: sticky;
		bottom: 0;
		display: flex !important;
		gap: 8px !important;
		margin: 6px 0 0 !important;
		padding: 6px 0 0 !important; /* 6px + 40px buttons = 46px bar */
		background: #fff !important; /* solid, so swatches never show behind the buttons */
	}
	body.sky9 .devexhub-3d-customiser-zone-action-btn {
		flex: 1 1 0 !important;
		height: 40px !important;
		min-height: 0 !important;
		padding: 0 12px !important;
		border-radius: 12px !important;
		font: 700 14px Montserrat, sans-serif !important;
	}
	body.sky9 .devexhub-3d-customiser-zone-action-done {
		background: #040e49 !important;
		border-color: #040e49 !important;
		color: #fff !important;
	}

	/* Card height follows the job: just the colourways when no part is
	   open (more room for the model), a little taller while picking a
	   colour. A height the shopper dragged (--dx-sheet) still wins. */
	body.sky9 .dx-studio-deck__panel { overflow-x: hidden !important; }

	/* Logged-in admins: the WordPress admin bar would cover the header. */
	body.sky9 #wpadminbar { display: none !important; }
	html:has(body.sky9) { margin-top: 0 !important; }

	/* Every step: while its card is open there is no dock under it; Done
	   closes the card and brings the dock back (only the model + dock). */
	body.sky9:not(.sky9-card-closed) #sky9-dock { display: none !important; }
	body.sky9:not(.sky9-card-closed) #dx-studio-deck {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		height: var(--dx-sheet, 36dvh) !important;
	}
	body.sky9.sky9-step-colour:not(.sky9-card-closed) #dx-studio-deck { height: var(--dx-sheet, 46dvh) !important; }
	body.sky9.sky9-step-finalize:not(.sky9-card-closed) #dx-studio-deck {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		height: var(--dx-sheet, 50dvh) !important;
	}
	body.sky9.sky9-step-finalize:not(.sky9-card-closed) .dx-studio-mobile-actions {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}
	body.sky9.sky9-card-closed #dx-studio-deck { display: none !important; }
	/* A closed card leaves only the model and the dock: no colour chips,
	   no Add to Cart bar (Finish opens them again). */
	body.sky9.sky9-card-closed #sky9-chips,
	body.sky9.sky9-card-closed .dx-studio-mobile-actions { display: none !important; }

	/* Our Done button, on the card's title row (Style has its own Done,
	   and a part's colours have Cancel / Save). */
	body.sky9 .dx-studio-stepper__label { flex: 1 1 auto; width: auto !important; }
	body.sky9 .sky9-done {
		flex: 0 0 auto;
		height: 36px;
		margin: 0 0 0 4px;
		padding: 0 18px;
		border: 0;
		border-radius: 999px;
		background: #040e49;
		color: #fff;
		font: 700 14px/1 Montserrat, sans-serif;
		letter-spacing: 0;
		text-transform: none;
		cursor: pointer;
	}
	body.sky9:has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) .sky9-done { display: none; }
	/* Style uses the same Done / X at the top as every step, not its own
	   bottom buttons. */
	body.sky9 .dx-opt-style-actions,
	body.sky9 .dx-style-actions { display: none !important; }

	/* Close (X) beside Done. */
	body.sky9 .sky9-close {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		margin: 0 0 0 6px;
		padding: 0;
		border: 1.5px solid #d5d9e4;
		border-radius: 50%;
		background: #fff;
		color: #040e49;
		cursor: pointer;
	}
	body.sky9 .sky9-close:active { background: #eef0f5; }
	body.sky9:has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) .sky9-close { display: none; }

	/* Smooth scrolling and dragging: a plain white card (a blurred glass
	   card this size is heavy for phones to repaint while it scrolls). */
	body.sky9 #dx-studio-deck {
		background: #fff !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		will-change: height;
	}
	body.sky9 .dx-studio-deck__panel {
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scroll-behavior: smooth;
	}

	/* Colour step: the list of parts is back in the card, compact. */
	body.sky9.sky9-step-colour #devexhub-3d-customiser-zone-tabs {
		display: flex !important;
		flex-direction: column;
		gap: 6px;
		margin: 10px 0 0 !important;
	}
	body.sky9.sky9-step-colour .devexhub-3d-customiser-zone-row {
		min-height: 48px !important;
		margin: 0 !important;
		padding: 8px 12px !important;
		border-radius: 12px !important;
	}
	body.sky9.sky9-step-colour .devexhub-3d-customiser-zone-row-label { font-size: 13px !important; letter-spacing: .02em !important; }
	body.sky9.sky9-step-colour .devexhub-3d-customiser-zone-row-value { font-size: 13px !important; }

	/* The picked colour's name (swatches are pictures only): one slim line. */
	body.sky9 #devexhub-3d-customiser-zone-preview {
		position: sticky;
		bottom: 51px !important; /* just above the 46px Cancel / Save bar */
		box-shadow: 0 5px 0 #fff, 0 -6px 0 #fff; /* white in the gaps, so swatches never peek through */
		z-index: 1;
		margin: 8px 0 0 !important;
		padding: 7px 12px !important;
		border-radius: 10px !important;
	}
	body.sky9 #devexhub-3d-customiser-zone-preview-name { font: 700 13px Montserrat, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
	body.sky9 #devexhub-3d-customiser-zone-preview-type { display: none !important; }
	body.sky9 #devexhub-3d-customiser-zone-preview-price { margin-left: auto; font: 600 13px Montserrat, sans-serif !important; }

	/* =================================================================
	   Client round 1 (27 Oct)
	   ================================================================= */

	/* Style: words in boxes instead of pictures (quick to read and tap). */
	body.sky9 .dx-opt2-pic,
	body.sky9 .dx-opt2-tick { display: none !important; }
	body.sky9 .dx-opt2-choice {
		width: auto !important;
		min-width: 96px !important;
		height: 44px !important;
		padding: 0 14px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		border: 1.5px solid #d5d9e4 !important;
		border-radius: 999px !important;
		background: #fff !important;
		box-shadow: none !important;
	}
	body.sky9 .dx-opt2-choice.is-active {
		background: #040e49 !important;
		border-color: #040e49 !important;
	}
	body.sky9 .dx-opt2-label {
		display: block !important;
		position: static !important;
		width: auto !important;
		height: auto !important;
		clip: auto !important;
		clip-path: none !important;
		overflow: visible !important;
		margin: 0 !important;
		padding: 0 !important;
		white-space: nowrap;
		font: 700 13px/1 Montserrat, sans-serif !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: #040e49 !important;
	}
	body.sky9 .dx-opt2-choice.is-active .dx-opt2-label { color: #fff !important; }
	/* Same-width buttons in every row, so the columns line up. */
	body.sky9 .dx-opt2-choices {
		display: grid !important;
		grid-auto-flow: column;
		grid-auto-columns: 112px;
		gap: 8px !important;
		justify-content: end;
	}
	/* Three choices (Sleeves: None / 3/4 / Full): narrower buttons, same
	   overall width as a two-button row. */
	body.sky9 .dx-opt2-choices:has(> .dx-opt2-choice:nth-child(3)) { grid-auto-columns: 72px; }
	body.sky9 .dx-opt2-choice {
		width: 100% !important;
		min-width: 0 !important;
		padding: 0 6px !important;
	}

	/* Done: grey until the step is finished, then green with a tick. */
	body.sky9 .sky9-done {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: #e6e8ef;
		color: #4b5470;
	}
	body.sky9 .sky9-done.is-ready { background: #16a34a; color: #fff; }
	body.sky9 .sky9-done:not(.is-ready) { cursor: default; }
	body.sky9 .dx-opt-apply {
		background: #16a34a !important;
		border-color: #16a34a !important;
		color: #fff !important;
	}

	/* Colour: first two boxes, Preset colours / Custom colours. */
	#sky9-col-choose,
	.sky9-col-back { display: none; }
	body.sky9.sky9-step-colour.sky9-col-choose #sky9-col-choose {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 2px 0 6px;
	}
	body.sky9 .sky9-col-opt {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		min-height: 124px;
		margin: 0;
		padding: 14px;
		border: 1.5px solid #d5d9e4;
		border-radius: 16px;
		background: #fff;
		color: #040e49;
		text-align: left;
		cursor: pointer;
	}
	body.sky9 .sky9-col-opt:active { border-color: #040e49; }
	body.sky9 .sky9-col-opt b { font: 800 15px/1.2 Inter, sans-serif; }
	body.sky9 .sky9-col-opt small { font: 500 12px/1.35 Montserrat, sans-serif; color: #4b5470; }
	body.sky9 .sky9-col-dots { display: flex; margin-top: auto; padding-top: 8px; }
	body.sky9 .sky9-col-dots i {
		width: 26px;
		height: 26px;
		margin-left: -7px;
		border: 2px solid #fff;
		border-radius: 50%;
		background-color: #eef0f5;
		background-size: cover;
		background-position: center;
		box-shadow: 0 0 0 1px #d5d9e4;
	}
	body.sky9 .sky9-col-dots i:first-child { margin-left: 0; }
	body.sky9.sky9-step-colour.sky9-col-choose #dx-presets,
	body.sky9.sky9-step-colour.sky9-col-choose #devexhub-3d-customiser-zone-menu,
	body.sky9.sky9-step-colour.sky9-col-preset #devexhub-3d-customiser-zone-menu,
	body.sky9.sky9-step-colour.sky9-col-custom #dx-presets { display: none !important; }
	body.sky9.sky9-step-colour.sky9-col-preset .sky9-col-back,
	body.sky9.sky9-step-colour.sky9-col-custom .sky9-col-back {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 36px;
		margin: 0 0 8px;
		padding: 0;
		border: 0;
		background: none;
		color: #040e49;
		font: 700 13px Montserrat, sans-serif;
		cursor: pointer;
	}
	body.sky9 .sky9-col-back span { font-size: 22px; line-height: 1; }
	/* Preset colours: a tidy 2-column list. */
	body.sky9.sky9-col-preset .dx-presets__grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		overflow: visible !important;
		margin: 0 !important;
		padding: 0 !important;
		-webkit-mask-image: none;
		mask-image: none;
	}
	body.sky9.sky9-col-preset .dx-preset { flex: none !important; }
	/* While a part's colours are open, only Cancel / Save lead out. */
	body.sky9:has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) #sky9-col-choose,
	body.sky9:has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) .sky9-col-back { display: none !important; }

	/* Text: what is still needed on a line, and what is done. */
	body.sky9 .devexhub-3d-customiser-text-line__fonts::before {
		content: "Font";
		display: block;
		flex: 0 0 100%;
		grid-column: 1 / -1;
		width: 100%;
		margin: 0 0 2px;
		font: 700 12px Montserrat, sans-serif;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: #4b5470;
	}
	body.sky9 .sky9-need-font .devexhub-3d-customiser-text-line__fonts::before { content: "Font *"; color: #b42318; }
	body.sky9 .sky9-ok-font .devexhub-3d-customiser-text-line__fonts::before { content: "Font \2713"; color: #15803d; }
	body.sky9 .sky9-need-method .js-line-method .devexhub-3d-customiser-text-color-label::after,
	body.sky9 .sky9-need-colour .js-line-crystal .devexhub-3d-customiser-text-color-label::after,
	body.sky9 .sky9-need-colour .js-line-ink .js-ink-label::after { content: " *"; color: #b42318; }
	body.sky9 .sky9-ok-method .js-line-method .devexhub-3d-customiser-text-color-label::after,
	body.sky9 .sky9-ok-colour .js-line-crystal .devexhub-3d-customiser-text-color-label::after,
	body.sky9 .sky9-ok-colour .js-line-ink .js-ink-label::after { content: " \2713"; color: #15803d; }
	body.sky9 .sky9-line-done .devexhub-3d-customiser-text-line__said::after {
		content: "  \2713  Done";
		color: #15803d;
		font-weight: 700;
	}
	body.sky9 .sky9-line-todo .devexhub-3d-customiser-text-line__said::after {
		content: "  \00B7  Not finished";
		color: #b42318;
		font-weight: 700;
	}
	body.sky9 .sky9-flash { animation: sky9-flash 1.1s ease-out 1; border-radius: 12px; }
	@keyframes sky9-flash {
		0%, 60% { box-shadow: 0 0 0 3px rgba(217, 45, 32, .55); }
		100% { box-shadow: 0 0 0 3px rgba(217, 45, 32, 0); }
	}

	/* Short message at the bottom. */
	#sky9-toast {
		position: fixed;
		left: 50%;
		bottom: 22px;
		z-index: 99;
		width: max-content;
		max-width: calc(100vw - 32px);
		padding: 12px 18px;
		border-radius: 14px;
		background: #040e49;
		color: #fff;
		font: 600 14px/1.35 Montserrat, sans-serif;
		box-shadow: 0 10px 30px rgba(4, 14, 73, .25);
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, 10px);
		transition: opacity .2s ease, transform .2s ease;
	}
	#sky9-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

	/* ---------- Layers above everything ---------- */
	body.sky9 #dx-studio-summary { z-index: 60 !important; }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
	body.sky9 .sky9-chip { transition: none; }
}


/* Desktop: the Colour step's first two boxes, Preset colours / Custom
   colours, the same as on phones (customizer-mobile.js builds them). */
@media (min-width: 861px) {
	#sky9-col-choose,
	.sky9-col-back { display: none; }
	/* One under the other: the desktop menu is too narrow for two. */
	body:not(.sky9).sky9-col-choose #sky9-col-choose {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		margin: 4px 0 8px;
	}
	body:not(.sky9).sky9-col-choose .devexhub-3d-customiser-step-panel[data-step="colour"] > .devexhub-3d-customiser-panel-section > h4,
	body:not(.sky9).sky9-col-preset .devexhub-3d-customiser-step-panel[data-step="colour"] > .devexhub-3d-customiser-panel-section > h4 { display: none !important; }
	body:not(.sky9) .sky9-col-opt {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		min-height: 0;
		margin: 0;
		padding: 14px 12px;
		border: 1.5px solid #d5d9e4;
		border-radius: 16px;
		background: #fff;
		color: #040e49;
		text-align: left;
		cursor: pointer;
		transition: border-color .15s, box-shadow .15s;
	}
	body:not(.sky9) .sky9-col-opt:hover { border-color: #040e49; box-shadow: 0 2px 10px rgba(4,14,73,.08); }
	body:not(.sky9) .sky9-col-opt b { font: 800 14px/1.2 Inter, sans-serif; }
	body:not(.sky9) .sky9-col-opt small { font: 500 12px/1.35 Montserrat, sans-serif; color: #4b5470; }
	body:not(.sky9) .sky9-col-dots { display: flex; margin-top: auto; padding-top: 8px; }
	body:not(.sky9) .sky9-col-dots i {
		width: 24px;
		height: 24px;
		margin-left: -7px;
		border: 2px solid #fff;
		border-radius: 50%;
		background-color: #eef0f5;
		background-size: cover;
		background-position: center;
		box-shadow: 0 0 0 1px #d5d9e4;
	}
	body:not(.sky9) .sky9-col-dots i:first-child { margin-left: 0; }
	body:not(.sky9).sky9-col-choose #dx-presets,
	body:not(.sky9).sky9-col-choose #devexhub-3d-customiser-zone-menu,
	body:not(.sky9).sky9-col-preset #devexhub-3d-customiser-zone-menu,
	body:not(.sky9).sky9-col-custom #dx-presets,
	body:not(.sky9) #dx-presets .dx-presets__or,
	body:not(.sky9) #dx-presets .dx-presets__custom-title,
	body:not(.sky9) #dx-presets .dx-presets__or ~ .dx-presets__lead { display: none !important; }
	body:not(.sky9).sky9-col-preset .sky9-col-back,
	body:not(.sky9).sky9-col-custom .sky9-col-back {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 32px;
		margin: 0 0 8px;
		padding: 0;
		border: 0;
		background: none;
		color: #040e49;
		font: 700 13px Montserrat, sans-serif;
		cursor: pointer;
	}
	body:not(.sky9) .sky9-col-back span { font-size: 22px; line-height: 1; }
	/* A part's name in one line (customizer-mobile.js shrinks long ones). */
	body:not(.sky9) #devexhub-3d-customiser-zone-detail-title {
		padding: 10px 8px;
		font-size: 14px;
		letter-spacing: .06em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	body:not(.sky9):has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) #sky9-col-choose,
	body:not(.sky9):has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) .sky9-col-back { display: none !important; }
}

/* =================================================================
   30 Oct: clearer Save, the colourway you started from, and a back
   button that looks like a button (phone and desktop).
   ================================================================= */
/* Save turns green as soon as the part has been changed. */
#devexhub-3d-customiser-zone-done.is-ready,
.devexhub-3d-studio #devexhub-3d-customiser-zone-done.is-ready,
body.sky9 #devexhub-3d-customiser-zone-done.is-ready {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(22, 163, 74, .35) !important;
	animation: dx-save-pop .35s ease;
}
#devexhub-3d-customiser-zone-done.is-ready:hover { background: #12873d !important; border-color: #12873d !important; }
@keyframes dx-save-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* "‹ Preset or custom colours": a real button. */
body.sky9-col-preset .sky9-col-back,
body.sky9-col-custom .sky9-col-back {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	min-height: 36px !important;
	margin: 0 0 12px !important;
	padding: 0 14px 0 10px !important;
	border: 1.5px solid #040e49 !important;
	border-radius: 999px !important;
	background: #eef1fb !important;
	color: #040e49 !important;
	font: 700 13px Montserrat, sans-serif !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
body.sky9-col-preset .sky9-col-back:hover,
body.sky9-col-custom .sky9-col-back:hover { background: #040e49 !important; color: #fff !important; }
.sky9-col-back span { font-size: 20px !important; line-height: 1 !important; margin-top: -2px; }

/* "Based on … Customised · Reset" shows only in Custom colours. */
body.sky9-col-choose #dx-preset-base,
body.sky9-col-preset #dx-preset-base,
body:has(#devexhub-3d-customiser-zone-detail:not([style*="none"])) #dx-preset-base { display: none !important; }

/* Every step's Save / Done goes green once something in the step changed. */
.devexhub-3d-customiser-done-btn.dx-changed:not([disabled]),
.devexhub-3d-studio .devexhub-3d-customiser-done-btn.dx-changed:not([disabled]),
body.sky9 .devexhub-3d-customiser-done-btn.dx-changed:not([disabled]) {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(22, 163, 74, .35) !important;
	animation: dx-save-pop .35s ease;
}
.devexhub-3d-customiser-done-btn.dx-changed:not([disabled]):hover { background: #12873d !important; border-color: #12873d !important; }

/* Phones 360px wide and under: step labels one size smaller so all
   seven fit in the dock. */
@media (max-width: 360px) {
	body.sky9 .sky9-dock__btn { font-size: 11px; }
}

/* Crystals: swatches in rows with a short vertical scroll (no long sideways scroll) */
body .devexhub-3d-customiser-colour-filter .devexhub-3d-customiser-colour-circles:has(> .devexhub-3d-customiser-crystal-colour){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;gap:12px 4px!important;overflow-x:hidden!important;overflow-y:auto!important;max-height:250px!important;padding:4px 2px!important;align-items:start;flex-wrap:wrap!important}
body .devexhub-3d-customiser-colour-filter .devexhub-3d-customiser-colour-circles > .devexhub-3d-customiser-crystal-colour{width:auto!important;min-width:0!important;flex:none!important;justify-self:center}
