/* Leopard 3D Modular addon - frontend styles */

/* Frosted-glass buttons (build / cancel / done / finishes / edit / fresh) */
.lmm-build-btn,
.lmm-cancel-btn,
.lmm-done-btn,
.lmm-finish-btn,
.lmm-edit-btn,
.lmm-fresh-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 5px;
	background: rgba(30, 30, 34, 0.32) !important;
	-webkit-backdrop-filter: blur(3px) saturate(3);
	backdrop-filter: blur(3px) saturate(3);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	transition: background 0.18s ease, transform 0.18s ease, opacity 0.25s ease;
}

.lmm-cancel-btn:hover,
.lmm-done-btn:hover,
.lmm-finish-btn:hover,
.lmm-edit-btn:hover,
.lmm-fresh-btn:hover {
	background: rgba(30, 30, 34, 0.5) !important;
}

/* Post-"Done" buttons: bottom-left, above the carousel */
.lmm-postdone {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2147483647;
	display: flex;
	gap: 8px;
	pointer-events: none;
}

.lmm-postdone .lmm-edit-btn,
.lmm-postdone .lmm-fresh-btn {
	pointer-events: auto;
}

/* Build CTA gets a green-tinted glass + an infinite glossy shine sweep. */
.lmm-build-btn {
	background: rgb(0 53 5 / 32%) !important;
	position: relative;
	overflow: hidden;
}

.lmm-build-btn:hover {
	background: rgb(0 53 5 / 48%) !important;
}

.lmm-build-btn::after {
	content: '';
	position: absolute;
	top: -20%;
	left: -160%;
	width: 55%;
	height: 140%;
	pointer-events: none;
	background: linear-gradient(
		115deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.08) 30%,
		rgba(255, 255, 255, 0.5) 50%,
		rgba(255, 255, 255, 0.08) 70%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-22deg);
	animation: lmm-shine 3.4s ease-in-out infinite;
}

@keyframes lmm-shine {
	0% { left: -160%; }
	55%, 100% { left: 160%; }
}

.lmm-finish-btn.active {
	background: rgba(52, 199, 89, 0.5) !important;
	border-color: rgba(52, 199, 89, 0.8);
	/* Minimal shadow to signal the selected/active state. */
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 10px rgba(52, 199, 89, 0.4);
}

.lmm-finish-btn .lmm-brush-ic {
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 14c-2 0-3 2-3 5 3 0 5-1 5-3M16 3l5 5-9 9-5-1-1-5z\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 14c-2 0-3 2-3 5 3 0 5-1 5-3M16 3l5 5-9 9-5-1-1-5z\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
}

/* Bottom-left actions: a column (finishes on top, cancel+done row below) */
.lmm-actions {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2147483647;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	pointer-events: none;
}

.lmm-actions-row {
	display: flex;
	gap: 8px;
}

.lmm-actions .lmm-cancel-btn,
.lmm-actions .lmm-done-btn,
.lmm-actions .lmm-finish-btn {
	pointer-events: auto;
}

/* Module list panel (bottom-right glass) */
.lmm-modlist {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2147483640;
	min-width: 140px;
	max-width: 60%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(30, 30, 34, 0.34);
	-webkit-backdrop-filter: blur(3px) saturate(3);
	backdrop-filter: blur(3px) saturate(3);
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	pointer-events: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.lmm-modlist-title {
	font-weight: 700;
	margin-bottom: 4px;
	opacity: 0.85;
}

.lmm-modlist-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
}

.lmm-modlist-total {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-weight: 700;
	text-align: right;
}

/* Add-to-cart success checkmark (fades out after a few seconds) */
.lmm-added::after {
	content: '\2713';
	margin-left: 8px;
	font-weight: 700;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.lmm-added-fade::after {
	opacity: 0;
}

/* Add-to-cart "adding…" spinner (works even if the theme lacks .loading) */
.single_add_to_cart_button.lmm-loading,
button[name="add-to-cart"].lmm-loading {
	opacity: 0.75;
	pointer-events: none;
	position: relative;
}

.lmm-loading::after {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 8px;
	vertical-align: -0.15em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: lmm-spin 0.7s linear infinite;
}

@keyframes lmm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Modular layout price on the product page */
.lmm-price {
	display: block !important;
	margin: 10px 0 14px;
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

/* "Build your layout" CTA: bottom-left, above the carousel/tabs */
.lmm-build-btn {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2147483647;
	pointer-events: auto !important;
	isolation: isolate;
}

.lmm-build-btn::before {
	content: '';
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 7l9-4 9 4-9 4-9-4zm0 5l9 4 9-4M3 17l9 4 9-4\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 7l9-4 9 4-9 4-9-4zm0 5l9 4 9-4M3 17l9 4 9-4\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
}

.lmm-build-btn.lmm-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
}

/* Entrance: stay hidden+shifted-left until the model loads, then slide-fade in. */
.lmm-build-btn.lmm-build-pre {
	opacity: 0;
	transform: translateX(-44px);
	pointer-events: none;
}

.lmm-build-btn.lmm-build-enter {
	animation: lmm-build-slidein 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes lmm-build-slidein {
	from {
		opacity: 0;
		transform: translateX(-44px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Bottom-left actions bar (Cancel + Done) */
.lmm-actions {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2147483647;
	display: flex;
	gap: 8px;
	pointer-events: none;
}

.lmm-actions .lmm-cancel-btn,
.lmm-actions .lmm-done-btn {
	pointer-events: auto;
}

/* Modules folder icon (animated GIF set in admin) */
.lmm-modules-icon {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.lmm-modules-folder.open .leopard-3d-folder-icon {
	outline: 2px solid #34c759;
}

/* High-end attention effect on the CLOSED modules folder: a thin border with a
   slowly rotating gold/green gradient and a soft glow. */
@property --lmm-folder-ang {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

.lmm-modules-folder {
	position: relative;
}

.lmm-modules-folder:not(.open) .lmm-modules-icon {
	position: relative;
	z-index: 1;
}

.lmm-modules-folder:not(.open)::before {
	content: '';
	position: absolute;
	inset: -3px;
	z-index: 0;
	border-radius: 11px;
	background: conic-gradient(
		from var(--lmm-folder-ang),
		#d9b25a, #34c759, #edd9a8, #1e7a3a, #d9b25a
	);
	animation: lmm-folder-spin 3.4s linear infinite;
	filter: drop-shadow(0 0 6px rgba(217, 178, 90, 0.55)) drop-shadow(0 0 10px rgba(52, 199, 89, 0.35));
	pointer-events: none;
}

/* Inner cutout so only a thin rotating ring shows around the icon. */
.lmm-modules-folder:not(.open)::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.001);
	box-shadow: 0 0 0 2px rgba(20, 20, 22, 0.0) inset;
	pointer-events: none;
}

@keyframes lmm-folder-spin {
	to {
		--lmm-folder-ang: 360deg;
	}
}

/* Fallback for browsers without @property: rotate the gradient element itself. */
@supports not (background: conic-gradient(from var(--lmm-folder-ang), red, blue)) {
	.lmm-modules-folder:not(.open)::before {
		background: conic-gradient(#d9b25a, #34c759, #edd9a8, #1e7a3a, #d9b25a);
		animation: lmm-folder-rotate 3.4s linear infinite;
	}
	@keyframes lmm-folder-rotate {
		to {
			transform: rotate(360deg);
		}
	}
}

/* Modules folder: make sure it shows + wraps when open */
.lmm-modules-folder .lmm-modules-swatches.open,
.lmm-modules-folder.open .lmm-modules-swatches {
	display: inline-flex !important;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 100%;
}

/* Larger tab area while the modules folder is open (scoped to the modules
   carousel only, so other tabs/materials are never affected). */
.leopard-3d-fs-carousel.lmm-modules-expanded {
	max-height: 62vh;
	overflow-y: auto;
	flex-wrap: wrap;
	transition: max-height 0.3s ease;
}

/* Desktop, PRODUCT PAGE (inline) modules carousel: grow to FIT all the modules
   (wrap into rows) instead of one overflowing row. */
@media (min-width: 768px) {
	.leopard-3d-inline-swatches .leopard-3d-fs-carousel.lmm-modules-expanded {
		display: block !important;
		max-height: none !important;
		height: auto !important;
		overflow: visible !important;
	}

	.leopard-3d-inline-swatches .leopard-3d-fs-carousel.lmm-modules-expanded .lmm-modules-folder {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* The items wrap within the panel width instead of running off the side. */
	.leopard-3d-inline-swatches .leopard-3d-fs-carousel.lmm-modules-expanded .lmm-modules-swatches.open {
		display: flex !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		max-width: 100% !important;
		max-height: none !important;
		overflow: visible !important;
	}
}

/* Shrink the animated modules-group icon to half size while the folder is open. */
/* Half-size folder icon while open — shrink the BOX (not via transform) so it
   doesn't leave empty space around the icon, and drop the host's "expanded"
   lift that adds a gap on top. */
.lmm-modules-folder.open .lmm-modules-icon {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	transform: none !important;
}

/* Desktop, product page: when a MATERIAL folder is open, wrap the row so the
   open folder takes row 1 (full width) and the other folders flow onto row 2. */
@media (min-width: 768px) {
	.leopard-3d-inline-swatches .leopard-3d-fs-carousel.lmm-wrap-folders {
		flex-wrap: wrap !important;
		row-gap: 14px;
		align-items: flex-start;
	}

	/* Open folder occupies the whole first row, so every other folder wraps to
	   row 2 even while its items are still collapsed (then the items open in).
	   Lay it out as a COLUMN so the items wrap BELOW the icon (never over it). */
	.leopard-3d-inline-swatches .leopard-3d-fs-carousel.lmm-wrap-folders .leopard-3d-group-folder.lmm-open-first {
		order: -1;
		flex: 0 0 100%;
		width: 100%;
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.leopard-3d-inline-swatches .leopard-3d-group-folder.lmm-open-first .leopard-3d-group-swatches.open {
		flex-wrap: wrap;
		white-space: normal;
		width: 100%;
		margin-left: 0;
		animation: lmm-mat-itemsin 0.6s ease both;
	}
}

/* Same open-folder treatment inside the mobile fullscreen sheet. */
.lmm-mcar .leopard-3d-fs-carousel.lmm-wrap-folders .leopard-3d-group-folder.lmm-open-first {
	order: -1;
	flex: 0 0 100%;
	width: 100%;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.lmm-mcar .leopard-3d-group-folder.lmm-open-first .leopard-3d-group-swatches.open {
	flex-wrap: wrap;
	white-space: normal;
	width: 100%;
	margin-left: 0;
	animation: lmm-mat-itemsin 0.6s ease both;
}

@keyframes lmm-mat-itemsin {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Bigger thumbnails for modules (override the inline 60px rule) */
.lmm-modules-folder.open .lmm-modules-swatches .leopard-3d-fs-item,
.leopard-3d-inline-swatches .lmm-modules-folder.open .lmm-modules-swatches .leopard-3d-fs-item {
	width: 104px !important;
	height: 104px !important;
	min-width: 104px !important;
	min-height: 104px !important;
	background-size: cover !important;
	background-position: center !important;
	transition: width 0.25s ease, height 0.25s ease;
}

/* "Select a module" prompt — frosted-glass pill, centered */
.lmm-prompt {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 24;
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 34px 26px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(30, 30, 34, 0.32);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	pointer-events: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile fullscreen: keep the prompt above the carousel + arrow handle. */
@media (max-width: 768px) {
	.lmm-mcar .lmm-prompt {
		top: 28%;
		z-index: 100002;
		max-width: calc(100% - 32px);
	}
}

/* In-canvas confirm dialog */
.lmm-confirm {
	position: absolute;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	pointer-events: auto;
}

.lmm-confirm-box {
	max-width: 80%;
	padding: 18px 20px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(28, 28, 32, 0.6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #fff;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lmm-confirm-msg {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
}

.lmm-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.lmm-confirm-actions button {
	padding: 8px 16px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.lmm-confirm-no {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.lmm-confirm-yes {
	background: #ff3b30;
	color: #fff;
	border-color: #ff3b30;
}

/* Floating connector markers (DOM overlay, projected to screen) */
.lmm-markers-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 26;
}

.lmm-marker {
	position: absolute;
	left: 0;
	top: 0;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 0;
	transform: translate(-50%, -50%);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	pointer-events: auto;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	overflow: hidden;
	/* Refraction: blur + strong saturation behind the glass sphere. */
	-webkit-backdrop-filter: blur(3px) saturate(3);
	backdrop-filter: blur(3px) saturate(3);
	animation: lmm-float 2.6s ease-in-out infinite;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lmm-marker .lmm-marker-glyph {
	display: block;
	transform: translateY(-1px) scale(0.92);
	/* "Engraved into the glass": dark above + light below, plus a faint blur and
	   reduced opacity so the glyph reads as if suspended INSIDE the sphere. */
	opacity: 0.9;
	filter: blur(0.4px);
	text-shadow:
		0 -1px 1px rgba(0, 0, 0, 0.45),
		0 1px 1px rgba(255, 255, 255, 0.55),
		0 0 4px rgba(255, 255, 255, 0.3);
}

/* Plus: ~90% transparent WHITE glass sphere, light 2px refraction, GREEN plus. */
.lmm-plus,
.lmm-plus:hover,
.lmm-plus:focus {
	background: radial-gradient(circle at 34% 28%,
		rgba(255, 255, 255, 0.18) 0%,
		rgba(255, 255, 255, 0.12) 45%,
		rgba(255, 255, 255, 0.08) 100%) !important;
	-webkit-backdrop-filter: blur(2px) saturate(3);
	backdrop-filter: blur(2px) saturate(3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18),
		inset -2px -3px 7px rgba(255, 255, 255, 0.2), inset 3px 4px 9px rgba(255, 255, 255, 0.45);
}

.lmm-plus .lmm-marker-glyph {
	color: #0a7a2a;
	font-weight: 900;
	font-size: 28px;
}

/* Cross: more transparent red glass, 2px blur, a touch SMALLER than the plus. */
.lmm-cross,
.lmm-cross:hover,
.lmm-cross:focus {
	width: 32px;
	height: 32px;
	background: radial-gradient(circle at 34% 28%,
		rgba(255, 220, 218, 0.42) 0%,
		rgba(255, 110, 100, 0.28) 20%,
		rgba(255, 45, 35, 0.24) 58%,
		rgba(170, 20, 14, 0.28) 100%) !important;
	color: #fff !important;
	-webkit-backdrop-filter: blur(2px) saturate(3);
	backdrop-filter: blur(2px) saturate(3);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 14px rgba(255, 60, 50, 0.45),
		inset -3px -4px 8px rgba(90, 10, 8, 0.28), inset 3px 4px 9px rgba(255, 255, 255, 0.45);
}

/* Brush marker (per-module finishes) — neutral glass sphere with a brush icon */
.lmm-brush,
.lmm-brush:hover,
.lmm-brush:focus {
	background: radial-gradient(circle at 34% 28%,
		rgba(255, 255, 255, 0.6) 0%,
		rgba(180, 200, 255, 0.32) 20%,
		rgba(80, 120, 220, 0.3) 60%,
		rgba(40, 70, 150, 0.34) 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), 0 0 16px rgba(90, 130, 230, 0.5),
		inset -3px -4px 8px rgba(20, 40, 90, 0.35), inset 3px 4px 9px rgba(255, 255, 255, 0.5);
}

.lmm-brush .lmm-marker-glyph {
	width: 18px;
	height: 18px;
	background: #fff;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 14c-2 0-3 2-3 5 3 0 5-1 5-3M16 3l5 5-9 9-5-1-1-5z\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 14c-2 0-3 2-3 5 3 0 5-1 5-3M16 3l5 5-9 9-5-1-1-5z\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linejoin=\"round\"/></svg>");
}

/* Specular highlight to sell the "glass sphere" look. */
.lmm-marker::before {
	content: '';
	position: absolute;
	left: 22%;
	top: 16%;
	width: 34%;
	height: 26%;
	border-radius: 50%;
	background: radial-gradient( circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70% );
	pointer-events: none;
}

/* Hover: slightly darker + stop the floating animation (no black). */
.lmm-marker:hover {
	filter: brightness(0.88);
	animation-play-state: paused;
}

.lmm-marker.lmm-selected {
	transform: translate(-50%, -50%) scale(1.3);
	border-color: #fff;
	z-index: 2;
}

/* While a plus is selected: freeze all floating + shrink the others to half. */
.lmm-markers-layer.lmm-has-selection .lmm-marker {
	animation: none;
}

.lmm-markers-layer.lmm-has-selection .lmm-marker:not(.lmm-selected) {
	transform: translate(-50%, -50%) scale(0.5);
	opacity: 0.8;
}

@keyframes lmm-float {
	0%, 100% { margin-top: 0; }
	50% { margin-top: -5px; }
}

/* Disabled (incompatible) module options */
.leopard-3d-fs-item.lmm-disabled {
	filter: grayscale(1);
	opacity: 0.45;
	cursor: not-allowed;
}

/* Dimensions button icon */
.lmm-dim-btn .lmm-dim-icon {
	display: block;
	width: 22px;
	height: 22px;
	margin: auto;
	background: currentColor;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 17h18M5 17v-3m4 3v-5m4 5v-7m4 7v-9\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 17h18M5 17v-3m4 3v-5m4 5v-7m4 7v-9\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>");
}

.lmm-dim-btn.active {
	background: #34c759 !important;
	color: #fff;
}

/* Hover: tint the dimensions + capture icons dark green (icons use currentColor). */
.lmm-dim-btn:hover,
.lmm-capture-btn:hover {
	color: #0a5d2a;
}

/* Camera capture button icon */
.lmm-capture-btn .lmm-capture-icon {
	display: block;
	width: 22px;
	height: 22px;
	margin: auto;
	background: currentColor;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M4 8h3l1.5-2h7L17 8h3a1 1 0 011 1v9a1 1 0 01-1 1H4a1 1 0 01-1-1V9a1 1 0 011-1z\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linejoin=\"round\"/><circle cx=\"12\" cy=\"13\" r=\"3.2\" fill=\"none\" stroke=\"black\" stroke-width=\"2\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M4 8h3l1.5-2h7L17 8h3a1 1 0 011 1v9a1 1 0 01-1 1H4a1 1 0 01-1-1V9a1 1 0 011-1z\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linejoin=\"round\"/><circle cx=\"12\" cy=\"13\" r=\"3.2\" fill=\"none\" stroke=\"black\" stroke-width=\"2\"/></svg>");
}

/* Dimensions notice — centered, frosted, fades out */
.lmm-dim-notice {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) translateY(10px);
	z-index: 2147483646;
	max-width: 80%;
	text-align: center;
	padding: 16px 22px;
	border-radius: 12px;
	background: rgba(20, 20, 22, 0.32);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.lmm-dim-notice.show {
	opacity: 1;
	transform: translate(-50%, -50%);
}

/*
 * Fullscreen tab labels: the host gives dark text a white drop-shadow, which
 * still washes out over a dark 3D scene. Replace it with a crisp 4-way white
 * halo (a soft text-outline) so the label stays legible on ANY background while
 * keeping the light, frosted look — no heavy chip, no design change.
 */
.leopard-3d-css-fullscreen .leopard-3d-fs-tab,
.leopard-3d-configurator:fullscreen .leopard-3d-fs-tab {
	text-shadow:
		0 0 2px rgba(255, 255, 255, 0.95),
		1px 1px 2px rgba(255, 255, 255, 0.85),
		-1px -1px 2px rgba(255, 255, 255, 0.85),
		0 0 6px rgba(255, 255, 255, 0.6) !important;
}

/* The active tab carries the most weight — give it a slightly denser frosted
   base so its darker text reads cleanly. */
.leopard-3d-css-fullscreen .leopard-3d-fs-tab.active,
.leopard-3d-configurator:fullscreen .leopard-3d-fs-tab.active {
	background: rgba(255, 255, 255, 0.32) !important;
	-webkit-backdrop-filter: blur(4px) saturate(1.4);
	backdrop-filter: blur(4px) saturate(1.4);
}

/* Mobile fullscreen modular carousel: a draggable bottom sheet with an arrow
   handle. The translateY transform + the followers' bottom are driven by JS. */
.lmm-mcar .leopard-3d-fs-swatches {
	will-change: transform;
	padding-top: 0 !important;
	/* The sheet must always sit ON TOP — it never goes under anything. */
	z-index: 100001 !important;
}

/* Followers sit just BELOW the sheet: when positioned above the sheet's top
   they're visible; when the sheet rises over them they tuck behind it. */
.lmm-mcar .lmm-build-btn,
.lmm-mcar .lmm-actions,
.lmm-mcar .lmm-postdone,
.lmm-mcar .lmm-modlist {
	z-index: 100000 !important;
}

/* The carousel rises to the capture button; let swatches WRAP into multiple
   rows (like desktop) and scroll if taller than the available space. */
.lmm-mcar .leopard-3d-fs-carousel {
	flex-wrap: wrap !important;
	max-height: none !important;
}

.lmm-mcar .leopard-3d-fs-panels {
	max-height: 70vh;
	overflow-y: auto;
}

/* Open folders (modules + materials) lay out VERTICALLY in the mobile sheet:
   icon on top, items wrap below — no horizontal overflow chaos. */
.lmm-mcar .lmm-modules-folder.open,
.lmm-mcar .leopard-3d-group-folder.lmm-mat-open {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

.lmm-mcar .lmm-modules-folder.open .lmm-modules-swatches.open,
.lmm-mcar .leopard-3d-group-folder.lmm-mat-open .leopard-3d-group-swatches.open {
	display: flex !important;
	flex-wrap: wrap !important;
	white-space: normal !important;
	width: 100% !important;
	max-width: 100% !important;
}

.lmm-carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 36px;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	cursor: pointer;
	/* Transparent frosted glass, matching the scene buttons. */
	background: rgba(30, 30, 34, 0.28);
	-webkit-backdrop-filter: blur(4px) saturate(3);
	backdrop-filter: blur(4px) saturate(3);
	border-radius: 12px 12px 0 0;
	touch-action: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
}

/* Never let the tapped/focused/active state paint the handle solid black. */
.lmm-carousel-arrow:focus,
.lmm-carousel-arrow:focus-visible,
.lmm-carousel-arrow:active,
.lmm-carousel-arrow:hover {
	background: rgba(30, 30, 34, 0.28);
	outline: none;
}

.lmm-carousel-chevron {
	display: block;
	width: 18px;
	height: 18px;
	background: #fff;
	transition: transform 0.3s ease;
	-webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6 15l6-6 6 6\" fill=\"none\" stroke=\"white\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>");
	mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6 15l6-6 6 6\" fill=\"none\" stroke=\"white\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>");
}

/* Base chevron points up (pull up). When the sheet is up, flip it to point down. */
.lmm-carousel-arrow.up .lmm-carousel-chevron {
	transform: rotate(180deg);
}

/* Module summary minimize/expand (mobile sheet followers) */
.lmm-modlist-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.lmm-modlist-toggle {
	display: none;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 5px;
	position: relative;
}

.lmm-modlist-toggle::before {
	content: '';
	position: absolute;
	left: 4px;
	right: 4px;
	top: 50%;
	height: 2px;
	background: #fff;
	transform: translateY(-50%);
}

.lmm-modlist.lmm-collapsed .lmm-modlist-toggle::after {
	content: '';
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 50%;
	width: 2px;
	background: #fff;
	transform: translateX(-50%);
}

.lmm-modlist.lmm-collapsed .lmm-modlist-body {
	display: none;
}

/* Mobile: size the module swatches to fit exactly THREE columns. */
@media (max-width: 768px) {
	.lmm-mcar .lmm-modules-folder.open .lmm-modules-swatches.open .leopard-3d-fs-item {
		width: calc((100% - 20px) / 3) !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 1 / 1;
		background-size: cover !important;
		background-position: center !important;
	}
}

/* Mobile fullscreen: keep modular action buttons stacked in ONE column,
   and show the module-summary minimize toggle. */
@media (max-width: 768px) {
	.leopard-3d-css-fullscreen .lmm-actions,
	.leopard-3d-css-fullscreen .lmm-actions-row,
	.leopard-3d-css-fullscreen .lmm-postdone,
	.leopard-3d-configurator:fullscreen .lmm-actions,
	.leopard-3d-configurator:fullscreen .lmm-actions-row,
	.leopard-3d-configurator:fullscreen .lmm-postdone {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	.lmm-mcar .lmm-modlist-toggle {
		display: block;
	}
}

/* Toast */
.lmm-toast {
	position: absolute;
	left: 50%;
	bottom: 64px;
	transform: translateX(-50%) translateY(10px);
	z-index: 2147483647;
	padding: 10px 16px;
	border-radius: 10px;
	background: rgba(20, 20, 22, 0.92);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.lmm-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* =====================================================================
   SEO / education accordion ("Customize in 3D & view in AR")
   Server-rendered under the specs accordion; styled to sit alongside it.
   ===================================================================== */
.lmm-info-accordion {
	margin: 12px 0;
	border: none;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Match the core specs accordion's responsive show/hide. */
@media (max-width: 768px) {
	.lmm-info-accordion-desktop {
		display: none !important;
	}
}
@media (min-width: 769px) {
	.lmm-info-accordion-mobile {
		display: none !important;
	}
}

/* Brand palette: white / black / gray / greige / muted green (+ tiny gold).
   --lmm-green: muted sage   --lmm-greige: warm grey-beige   --lmm-gold: accent */
.lmm-info-accordion {
	--lmm-ink: #2b2b2b;
	--lmm-gray: #6f7076;
	--lmm-greige: #b8b1a4;
	--lmm-greige-soft: #e7e3da;
	--lmm-green: #7e8b72;
	--lmm-gold: #b9a16a;
}

.lmm-info-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 35px;
	padding: 10px 12px;
	cursor: pointer;
	user-select: none;
	/* Same neutral grey as the specs accordion header. */
	color: #333;
	background: #dedede;
	transition: background-color 0.2s ease;
}

.lmm-info-accordion-header:hover {
	background: #d4d4d4;
}

.lmm-info-accordion-label {
	font-weight: inherit;
	font-size: 14px;
	letter-spacing: 0.2px;
	color: #333;
}

.lmm-info-accordion-icon {
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: #555;
	transition: transform 0.3s ease;
}

.lmm-info-accordion.is-open .lmm-info-accordion-icon {
	transform: rotate(135deg);
}

.lmm-info-accordion-content {
	max-height: 0;
	overflow: hidden;
	background: #f5f5f3;
	transition: max-height 0.55s ease-in-out;
}

.lmm-info-accordion.is-open .lmm-info-accordion-content {
	max-height: 1400px;
}

.lmm-info-accordion-inner {
	padding: 16px 15px 18px;
}

.lmm-info-lead {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lmm-ink);
	font-weight: 500;
}

/* Feature cards */
.lmm-info-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

@media (min-width: 560px) {
	.lmm-info-cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

.lmm-info-card {
	background: #fff;
	border: 1px solid var(--lmm-greige-soft);
	border-radius: 10px;
	padding: 14px 10px;
	text-align: center;
	overflow: visible;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lmm-info-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(60, 62, 52, 0.12);
	border-color: var(--lmm-green);
}

.lmm-info-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--lmm-green);
	margin-bottom: 8px;
}

.lmm-info-ic svg {
	width: 100%;
	height: 100%;
	display: block;
}

.lmm-info-card h4 {
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: inherit;
	color: var(--lmm-ink);
}

.lmm-info-card p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--lmm-gray);
}

/* ---- Real-time 3D: rotating CSS cube (tilt + spin on separate layers) ---- */
.lmm-info-ic-cube {
	overflow: visible;
	perspective: 220px;
	perspective-origin: center center;
}

.lmm-cube-tilt {
	display: block;
	width: 26px;
	height: 26px;
	transform-style: preserve-3d;
	transform: rotateX(-22deg);
}

.lmm-cube {
	display: block;
	position: relative;
	width: 26px;
	height: 26px;
	transform-style: preserve-3d;
	transform-origin: center center;
	animation: lmm-cube-spin 7s linear infinite;
}

.lmm-cube-face {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border: 1.5px solid var(--lmm-green);
	background: rgba(126, 139, 114, 0.12);
	backface-visibility: hidden;
}

.lmm-cube-front { transform: rotateY(0deg) translateZ(13px); }
.lmm-cube-back { transform: rotateY(180deg) translateZ(13px); }
.lmm-cube-right { transform: rotateY(90deg) translateZ(13px); background: rgba(126, 139, 114, 0.2); }
.lmm-cube-left { transform: rotateY(-90deg) translateZ(13px); background: rgba(126, 139, 114, 0.2); }
.lmm-cube-top { transform: rotateX(90deg) translateZ(13px); background: rgba(126, 139, 114, 0.28); }
.lmm-cube-bottom { transform: rotateX(-90deg) translateZ(13px); }

@keyframes lmm-cube-spin {
	from { transform: rotateY(0deg); }
	to { transform: rotateY(360deg); }
}

/* Other icon animations (respect reduced motion). */
.lmm-info-ic-swatches rect { animation: lmm-info-pop 3.2s ease-in-out infinite; }
.lmm-info-ic-swatches rect:nth-child(2) { animation-delay: 0.25s; }
.lmm-info-ic-swatches rect:nth-child(3) { animation-delay: 0.5s; }
.lmm-info-ic-swatches rect:nth-child(4) { animation-delay: 0.75s; }
/* A small gold accent swatch in the otherwise sage palette. */
.lmm-info-ic-swatches rect:nth-child(3) { fill: var(--lmm-gold); }

/* Non-modular "choose your size/option" icon (stacked bars). */
.lmm-info-ic-options rect { animation: lmm-info-pop 3.2s ease-in-out infinite; }
.lmm-info-ic-options rect:nth-child(2) { animation-delay: 0.2s; }
.lmm-info-ic-options rect:nth-child(3) { animation-delay: 0.4s; }
.lmm-info-ic-options rect:nth-child(2) { fill: var(--lmm-gold); }

/* Non-modular "made to order": an actual 3D rotating brilliant-cut diamond.
   Octagonal: a flat table on top, 8 shallow crown facets out to the girdle
   (widest, near the top), then 8 deep pavilion facets converging to a sharp
   point at the bottom. Spins on its central vertical axis. */
.lmm-info-ic-made {
	overflow: visible;
	perspective: 300px;
	perspective-origin: center center;
}
.lmm-diamond-tilt {
	display: block;
	width: 46px;
	height: 46px;
	transform-style: preserve-3d;
	/* Lift so the girdle (centre of the faces) sits visually centred, and tip
	   forward so the table + front facets read as 3D. */
	transform: translateY(-9px) rotateX(-18deg);
}
.lmm-diamond {
	display: block;
	position: relative;
	width: 46px;
	height: 46px;
	transform-style: preserve-3d;
	transform-origin: center center;
	animation: lmm-diamond-spin 8s linear infinite;
}
.lmm-dia-face {
	position: absolute;
	left: 50%;
	top: 50%;
	backface-visibility: visible;
}

/* The 8 radial directions (shared by crown + pavilion facets). */
.lmm-dia-i1 { --ry: 0deg; }
.lmm-dia-i2 { --ry: 45deg; }
.lmm-dia-i3 { --ry: 90deg; }
.lmm-dia-i4 { --ry: 135deg; }
.lmm-dia-i5 { --ry: 180deg; }
.lmm-dia-i6 { --ry: 225deg; }
.lmm-dia-i7 { --ry: 270deg; }
.lmm-dia-i8 { --ry: 315deg; }

/* Flat octagonal table, laid horizontal at the top of the crown. */
.lmm-dia-table {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	margin-top: -11px;
	background: rgba(241, 246, 237, 0.98);
	clip-path: polygon(29.29% 0, 70.71% 0, 100% 29.29%, 100% 70.71%, 70.71% 100%, 29.29% 100%, 0 70.71%, 0 29.29%);
	transform: translateY(-9px) rotateX(90deg);
}

/* Crown facets: trapezoids (wide at the girdle, narrow at the table edge).
   Flat per-facet shades — light — with slight per-facet variation so the gem
   reads 3D and twinkles as it spins. */
.lmm-dia-crown {
	width: 16.84px;
	height: 12.96px;
	margin-left: -8.42px;
	margin-top: -12.96px;
	transform-origin: 50% 100%;
	transform: rotateY(var(--ry)) translateZ(20.33px) rotateX(46deg);
	clip-path: polygon(3.86px 0, 12.97px 0, 16.84px 12.96px, 0 12.96px);
	background: rgba(216, 225, 208, 0.96);
}
.lmm-dia-crown.lmm-dia-i2 { background: rgba(226, 205, 152, 0.96); } /* small gold facet */
.lmm-dia-crown.lmm-dia-i4 { background: rgba(204, 215, 196, 0.95); }
.lmm-dia-crown.lmm-dia-i6 { background: rgba(228, 235, 222, 0.97); }
.lmm-dia-crown.lmm-dia-i8 { background: rgba(198, 210, 190, 0.95); }

/* Pavilion facets: tall triangles from the girdle to the bottom point.
   Kept a touch darker than the crown so the lower half still reads as the
   underside, but much lighter overall. */
.lmm-dia-pav {
	width: 16.84px;
	height: 36.24px;
	margin-left: -8.42px;
	margin-top: 0;
	transform-origin: 50% 0;
	transform: rotateY(var(--ry)) translateZ(20.33px) rotateX(-34.1deg);
	clip-path: polygon(0 0, 16.84px 0, 8.42px 36.24px);
	background: rgba(176, 189, 164, 0.96);
}
.lmm-dia-pav.lmm-dia-i2 { background: rgba(188, 200, 176, 0.94); }
.lmm-dia-pav.lmm-dia-i4 { background: rgba(166, 180, 154, 0.96); }
.lmm-dia-pav.lmm-dia-i6 { background: rgba(184, 196, 172, 0.95); }
.lmm-dia-pav.lmm-dia-i8 { background: rgba(160, 174, 148, 0.96); }

@keyframes lmm-diamond-spin {
	from { transform: rotateY(0deg); }
	to { transform: rotateY(360deg); }
}

/* Modules: two pieces that drift apart, then snap together like magnets. */
.lmm-info-ic-modules .lmm-mod-a,
.lmm-info-ic-modules .lmm-mod-b {
	transform-box: fill-box;
	transform-origin: center;
}
.lmm-info-ic-modules .lmm-mod-a { animation: lmm-mod-snap-a 2.6s ease-in-out infinite; }
.lmm-info-ic-modules .lmm-mod-b { animation: lmm-mod-snap-b 2.6s ease-in-out infinite; }

.lmm-info-ic-ar svg { animation: lmm-info-float 3.4s ease-in-out infinite; }

@keyframes lmm-info-pop {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}
/* Left piece slides out, then meets the right piece in the middle and holds. */
@keyframes lmm-mod-snap-a {
	0%, 12% { transform: translateX(-3.5px); }
	42%, 70% { transform: translateX(2px); }
	100% { transform: translateX(-3.5px); }
}
@keyframes lmm-mod-snap-b {
	0%, 12% { transform: translateX(3.5px); }
	42%, 70% { transform: translateX(-2px); }
	100% { transform: translateX(3.5px); }
}
@keyframes lmm-info-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
	.lmm-cube,
	.lmm-diamond,
	.lmm-info-ic-swatches rect,
	.lmm-info-ic-options rect,
	.lmm-info-ic-modules .lmm-mod-a,
	.lmm-info-ic-modules .lmm-mod-b,
	.lmm-info-ic-ar svg {
		animation: none !important;
	}
}

/* Steps */
.lmm-info-steps {
	margin: 0 0 14px;
	padding-left: 20px;
	display: grid;
	gap: 6px;
}

.lmm-info-steps li {
	font-size: 13px;
	line-height: 1.45;
	color: #3a3a38;
}

.lmm-info-steps li::marker {
	color: var(--lmm-gold);
	font-weight: 600;
}

.lmm-info-seo {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--lmm-gray);
}

/* Keep the pet-friendly folder badge over the folder ICON when the folder is
   open. The badge is positioned with left:26% relative to the folder, but an
   open folder becomes full-width — which flings the badge far to the right.
   Pin it back over the (top-left) icon, matching the closed-state look. */
.leopard-3d-group-folder.lmm-mat-open .leopard-3d-folder-pet-friendly-icon,
.leopard-3d-group-folder.lmm-open-first .leopard-3d-folder-pet-friendly-icon {
	left: 18px !important;
	top: -14px !important;
}

