.maxtel-3d-launch[hidden], .maxtel-3d-dialog [hidden] { display: none !important; }
.woocommerce-product-gallery .maxtel-3d-launch { --maxtel-3d-launch-height: 32px; position: absolute; z-index: 5; right: 16px; top: calc(var(--maxtel-product-gallery-height, 380px) + 8px - var(--maxtel-3d-launch-height)); display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: var(--maxtel-3d-launch-height); min-height: var(--maxtel-3d-launch-height); padding: 4px 9px; border: 1px solid #fff; border-radius: 8px; color: #fff; background: #0969b5; box-shadow: 0 2px 8px #124b852b; cursor: pointer; line-height: 1.2; font-family: inherit; font-size: 12px; font-weight: 600; transition: background .16s, box-shadow .16s; }
.maxtel-3d-launch svg { width: 16px; height: 16px; flex-shrink: 0; }
.woocommerce-product-gallery .maxtel-3d-launch:hover { background: #07538f; box-shadow: 0 3px 10px #124b8540; }
.maxtel-3d-launch:focus-visible, .maxtel-3d-dialog :is(button, input, select):focus-visible { outline: 3px solid #ffb73c; outline-offset: 3px; }
html.maxtel-3d-open { overflow: hidden; scrollbar-gutter: stable; }
.maxtel-3d-dialog { box-sizing: border-box; width: min(1080px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #d3e1ef; border-radius: 22px; color: #18354e; background: #fff; box-shadow: 0 24px 100px #09253d55; overflow: hidden; font-family: inherit; }
.maxtel-3d-dialog::backdrop { background: rgb(9 26 44 / 72%); }
.maxtel-3d-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow-y: auto; }
.maxtel-3d-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.maxtel-3d-dialog button { font-family: inherit; cursor: pointer; }
.maxtel-3d-toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 10px 2px; flex-shrink: 0; border-bottom: 1px solid #e4edf4; }
.maxtel-3d-dialog :is(.maxtel-3d-toolbar, .maxtel-3d-assembly, .maxtel-3d-pan) button { min-height: 44px; padding: 8px 12px; border: 1px solid #c9dce9; border-radius: 8px; background: #fff; color: #194767; font-size: 12px; font-weight: 600; line-height: 1.3; }
.maxtel-3d-dialog .maxtel-3d-toolbar button { min-height: 32px; padding: 4px 9px; border-radius: 6px; }
.maxtel-3d-dialog .maxtel-3d-toolbar .maxtel-3d-close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-left: auto; padding: 0; border-color: transparent; border-radius: 50%; background: #f4f8fc; color: #173853; font-size: 21px; line-height: 1; }
.maxtel-3d-toolbar .maxtel-3d-close:hover { background: #e5eff8; }
.maxtel-3d-toolbar button[data-3d-action="structure"] { color: #fff; background: #0969b5; border-color: #0969b5; }
.maxtel-3d-toolbar button[aria-pressed="true"], .maxtel-3d-toolbar button[aria-expanded="true"] { box-shadow: 0 0 0 2px #69b9f3; background: #e9f5ff; color: #064977; }
.maxtel-3d-dialog button:disabled { opacity: .4; cursor: default; }
.maxtel-3d-product-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 10px; flex-shrink: 0; border-bottom: 1px solid #dbe8f1; background: #f3f8fc; }
.maxtel-3d-product-actions button { min-height: 32px; padding: 5px 10px; border: 1px solid #c9dce9; border-radius: 6px; color: #194767; background: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; }
.maxtel-3d-product-actions button[aria-pressed="true"] { background: #0969b5; border-color: #0969b5; color: #fff; }
.maxtel-3d-product-actions [data-3d-restore] { margin-left: auto; }
.maxtel-3d-variant { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #194767; font-size: 12px; font-weight: 600; }
.maxtel-3d-variant select { width: auto; min-width: 90px; min-height: 32px; margin: 0; padding: 5px 26px 5px 8px; border: 1px solid #c9dce9; border-radius: 6px; background-color: #fff; color: #194767; font: inherit; }
.maxtel-3d-variant button { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; }
.maxtel-3d-swatch { display: inline-block; width: 16px; height: 16px; border: 1px solid #78858e; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff40; }
.maxtel-3d-assembly { display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(170px, 230px); align-items: center; gap: 8px 12px; flex-shrink: 0; padding: 4px 12px; background: #f3f8fc; border-bottom: 1px solid #dbe8f1; }
.maxtel-3d-assembly-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.maxtel-3d-assembly-actions { display: flex; gap: 6px; }
.maxtel-3d-assembly label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.maxtel-3d-assembly output { display: inline-block; min-width: 36px; margin-left: 5px; color: #0767ad; font-variant-numeric: tabular-nums; }
.maxtel-3d-assembly input[type="range"] { flex: 1; min-width: 40px; height: 44px; margin: 0; accent-color: #0969b5; cursor: pointer; }
.maxtel-3d-parts { display: flex; align-items: center; min-width: 0; }
.maxtel-3d-parts select { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 8px 28px 8px 10px; border: 1px solid #c9dce9; border-radius: 8px; color: #194767; background-color: #fff; font: inherit; font-size: 12px; }
.maxtel-3d-assembly p { grid-column: 1 / -1; margin: 4px 0; font-size: 12px; color: #567187; }
.maxtel-3d-pan { position: absolute; bottom: 16px; left: 16px; display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; z-index: 1; }
.maxtel-3d-pan button { box-shadow: 0 2px 10px #163c5720; }
.maxtel-3d-pan [data-3d-action="pan-up"] { grid-area: 1 / 2; }
.maxtel-3d-pan [data-3d-action="pan-left"] { grid-area: 2 / 1; }
.maxtel-3d-pan [data-3d-action="pan-right"] { grid-area: 2 / 3; }
.maxtel-3d-pan [data-3d-action="pan-down"] { grid-area: 3 / 2; }
.maxtel-3d-canvas.is-picking { cursor: crosshair; }
.maxtel-3d-canvas.is-picking model-viewer { pointer-events: auto; }
.maxtel-3d-stage { --maxtel-3d-background: radial-gradient(ellipse at 45% 35%, #596b7d, #293947); position: relative; flex: 1; min-height: 200px; background: var(--maxtel-3d-background); overflow: hidden; }
.maxtel-3d-stage.is-studio { background: var(--maxtel-3d-background); }
.maxtel-3d-canvas { position: absolute; inset: 0; }
.maxtel-3d-canvas model-viewer { display: block; width: 100%; height: 100%; --progress-bar-height: 0; --poster-color: transparent; }
.maxtel-3d-status { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 24px; text-align: center; background: #f3f7fbf2; }
.maxtel-3d-status p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: #284c68; }
.maxtel-3d-status progress { width: min(240px, 65%); height: 6px; accent-color: #1672ba; }
.maxtel-3d-spinner { width: 34px; height: 34px; border: 3px solid #d4e4f1; border-top-color: #1274bd; border-radius: 50%; animation: maxtel-3d-spin 1s linear infinite; }
.maxtel-3d-retry { padding: 11px 20px; min-height: 44px; border: 0; border-radius: 9px; color: #fff; background: #0969b5; font-weight: 600; }
.maxtel-3d-footer { display: flex; justify-content: center; align-items: center; padding: 2px 10px; border-top: 1px solid #e4edf4; flex-shrink: 0; }
.maxtel-3d-controls { display: flex; gap: 4px; }
.maxtel-3d-controls button { min-width: 32px; min-height: 32px; padding: 4px 8px; border: 1px solid #d4e2ed; border-radius: 6px; background: #fff; color: #194767; font-size: 18px; line-height: 1; }
.maxtel-3d-controls button:last-child { font-size: 12px; font-weight: 600; }
.maxtel-3d-controls button:hover:enabled { background: #eef6fc; border-color: #87b8dd; }
.maxtel-3d-controls button:disabled { opacity: .4; cursor: default; }
@keyframes maxtel-3d-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
	html.maxtel-3d-open { scrollbar-gutter: auto; }
	.maxtel-3d-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
	.maxtel-3d-toolbar { padding: max(8px, env(safe-area-inset-top)) 6px 2px; }
	.maxtel-3d-dialog .maxtel-3d-toolbar [data-3d-action] { flex: 1; padding: 6px 4px; font-size: 11px; }
	.maxtel-3d-assembly { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; padding: 4px 8px; }
	.maxtel-3d-assembly-row { grid-column: 1 / -1; }
	.maxtel-3d-assembly-actions { gap: 4px; }
	.maxtel-3d-footer { padding: 2px 8px max(2px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px), (pointer: coarse) {
	.woocommerce-product-gallery .maxtel-3d-launch { --maxtel-3d-launch-height: 44px; }
	.maxtel-3d-dialog .maxtel-3d-toolbar button { min-height: 44px; }
	.maxtel-3d-dialog .maxtel-3d-toolbar .maxtel-3d-close { flex-basis: 44px; width: 44px; height: 44px; }
	.maxtel-3d-controls button { min-width: 44px; min-height: 44px; }
	.maxtel-3d-product-actions { gap: 8px; }
	.maxtel-3d-product-actions button { min-height: 44px; }
	.maxtel-3d-variant select { min-height: 44px; }
}
@media (max-height: 600px) and (min-width: 641px) { .maxtel-3d-dialog { height: 100dvh; width: 100vw; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .maxtel-3d-spinner { animation: none; } .maxtel-3d-launch { transition: none; } }
.maxtel-3d-preview-note { margin: 0; padding: 8px 12px; color: #694b06; background: #fff7df; font-size: 12px; line-height: 1.5; flex-shrink: 0; }

.maxtel-3d-stage.is-outdoor24 { background: var(--maxtel-3d-background); }

.maxtel-3d-stage.is-outdoor12 { background: var(--maxtel-3d-background); }

.maxtel-3d-stage.is-outdoor8 { background: var(--maxtel-3d-background); }

.maxtel-inline-notes{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6}.maxtel-inline-notes[hidden],.maxtel-inline-point[hidden]{display:none!important}.maxtel-inline-notes svg{position:absolute;inset:0;width:100%;height:100%}.maxtel-inline-notes path{fill:none;stroke:#087f9d;stroke-width:1.4;filter:drop-shadow(0 1px 1px white)}.maxtel-inline-note{position:absolute;width:175px;border:1px solid #b4ceda;border-left:3px solid #087f9d;border-radius:6px;padding:6px 9px;background:#fffffff2;text-align:left;color:#183649;pointer-events:auto;cursor:pointer}.maxtel-inline-note strong{display:block;font:600 12px system-ui}.maxtel-inline-note span{display:block;font:10px/1.35 system-ui;color:#536d7c;margin-top:3px}.maxtel-inline-point{width:26px;height:26px;padding:0;border:2px solid white;border-radius:50%;background:#087f9d;color:white;font:600 12px system-ui;box-shadow:0 1px 5px #18364955;cursor:pointer}.maxtel-inline-note.selected,.maxtel-inline-point.selected{background:#fff1df;color:#8f4a06;border-color:#e77b23}.maxtel-inline-notes path.selected{stroke:#e77b23;stroke-width:2}@media(max-width:850px){.maxtel-inline-note{width:130px;padding:5px 7px}.maxtel-inline-note strong{font-size:10px}.maxtel-inline-note span{display:none}.maxtel-inline-note.selected span{display:block}}@media(max-width:520px){.maxtel-inline-note{width:105px}.maxtel-inline-point{width:23px;height:23px;font-size:10px}}

/* Technical callouts and late reveal, matching the supplied axial reference. */
.maxtel-inline-notes{opacity:0;transition:opacity .45s ease}.maxtel-inline-notes.is-visible{opacity:1}
.maxtel-inline-note{background:transparent;border:0;border-radius:0;padding:3px 6px;color:#eaf4fb;box-shadow:none;text-shadow:0 1px 3px #102b40}
.maxtel-inline-note strong{font-weight:500;letter-spacing:.2px}.maxtel-inline-note span{color:#bdceda}
.maxtel-inline-notes path{stroke:#abc6d5;stroke-width:.8;filter:none}
.maxtel-inline-point{width:18px;height:18px;font-size:9px;border-width:1px;background:#294455b8;border-color:#c5dfec;box-shadow:none}
.maxtel-inline-note.selected,.maxtel-inline-point.selected{background:transparent;color:#8de5ff;border-color:#8de5ff}
.maxtel-inline-notes path.selected{stroke:#8de5ff;stroke-width:1.2}

.maxtel-3d-stage.is-rack { --maxtel-3d-background: radial-gradient(ellipse at 45% 30%, #73899d, #354b61); }

/* Render privately until the camera and studio have settled. */
.maxtel-3d-stage.is-loading .maxtel-3d-canvas { opacity: 0; pointer-events: none; }
.maxtel-3d-stage.is-loading .maxtel-3d-status { background: var(--maxtel-3d-background); color: #eef6fc; }
.maxtel-3d-stage.is-loading .maxtel-3d-spinner { border-color: #c4d6e655; border-top-color: #eef6fc; }
