/* ==========================================================================
   PrintShape design system — by dijitul
   Dark industrial theme + 3DPrint Lite widget skin.
   Loaded after theme + plugin styles; overrides both.
   ========================================================================== */

:root {
	--ps-ink: #0B1213;
	--ps-ink-2: #0E1617;
	--ps-panel: #121C1D;
	--ps-panel-2: #172324;
	--ps-line: rgba(255, 255, 255, 0.08);
	--ps-line-2: rgba(255, 255, 255, 0.14);
	--ps-text: #F2F5F4;
	--ps-muted: #A9BAB7;
	--ps-faint: #6E8280;
	--ps-orange: #FE8917;
	--ps-orange-2: #FFB36B;
	--ps-orange-dark: #C96603;
	--ps-glow: rgba(254, 137, 23, 0.14);
	--ps-ok: #47D18C;
	--ps-radius: 14px;
	--ps-radius-sm: 10px;
	--ps-mono: "Fira Code", ui-monospace, Consolas, monospace;
	--ps-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
	background-color: var(--ps-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--ps-orange); color: #161009; }

/* Scroll anchoring under sticky header */
[id] { scroll-margin-top: 90px; }

/* --------------------------------------------------------------------------
   Utility primitives used by page markup
   -------------------------------------------------------------------------- */

.ps-eyebrow {
	font-family: var(--ps-mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ps-orange);
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 1rem;
}
.ps-eyebrow::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 2px;
	background: var(--ps-orange);
	border-radius: 2px;
}

.ps-section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem); position: relative; }
.ps-section-inner { max-width: 1160px; margin: 0 auto; }
.ps-section-wide { max-width: 1360px; margin: 0 auto; }

.ps-section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.ps-section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.75rem; color: #fff; }
.ps-section-head p { color: var(--ps-muted); font-size: 1.0625rem; margin: 0; }

.ps-panel {
	background: linear-gradient(180deg, var(--ps-panel-2), var(--ps-panel));
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
}

/* Alternating section background */
.ps-section-alt {
	background:
		radial-gradient(700px 300px at 85% 0%, rgba(254, 137, 23, 0.05), transparent 60%),
		var(--ps-ink-2);
	border-top: 1px solid var(--ps-line);
	border-bottom: 1px solid var(--ps-line);
}

/* Card grid */
.ps-grid { display: grid; gap: 1.1rem; }
.ps-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ps-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
	.ps-grid-3, .ps-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ps-grid-2, .ps-grid-3, .ps-grid-4 { grid-template-columns: 1fr; }
}

.ps-card {
	background: linear-gradient(180deg, var(--ps-panel-2), var(--ps-panel));
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	padding: 1.6rem 1.5rem;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ps-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem; color: #fff; letter-spacing: -0.01em; }
.ps-card p { color: var(--ps-muted); font-size: 0.975rem; line-height: 1.6; margin: 0; }
a.ps-card { text-decoration: none; display: block; }
a.ps-card:hover, .ps-card:hover {
	transform: translateY(-3px);
	border-color: rgba(254, 137, 23, 0.45);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(254, 137, 23, 0.12);
}
.ps-card .ps-card-icon {
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: var(--ps-glow);
	border: 1px solid rgba(254, 137, 23, 0.3);
	color: var(--ps-orange);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}
.ps-card .ps-card-link {
	display: inline-block;
	margin-top: 0.9rem;
	font-family: var(--ps-mono);
	font-size: 0.8rem;
	color: var(--ps-orange);
	letter-spacing: 0.05em;
}

/* Numbered step cards */
.ps-step { position: relative; overflow: hidden; }
.ps-step .ps-step-num {
	font-family: var(--ps-mono);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--ps-orange);
	background: var(--ps-glow);
	border: 1px solid rgba(254, 137, 23, 0.3);
	border-radius: 8px;
	display: inline-flex;
	padding: 0.25rem 0.6rem;
	margin-bottom: 1rem;
}
.ps-step::after {
	content: attr(data-num);
	position: absolute;
	right: -0.5rem; bottom: -2.2rem;
	font-family: var(--ps-mono);
	font-size: 7rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.03);
	pointer-events: none;
	line-height: 1;
}

/* Tick list */
ul.ps-ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
ul.ps-ticks.ps-ticks-row { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
ul.ps-ticks li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ps-muted); font-size: 0.975rem; }
ul.ps-ticks li::before {
	content: "✓";
	flex: none;
	width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(71, 209, 140, 0.12);
	border: 1px solid rgba(71, 209, 140, 0.35);
	color: var(--ps-ok);
	font-size: 0.7rem;
	font-weight: 700;
	margin-top: 0.1rem;
}

/* Chips */
.ps-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ps-chip {
	font-family: var(--ps-mono);
	font-size: 0.85rem;
	color: var(--ps-text);
	background: var(--ps-panel-2);
	border: 1px solid var(--ps-line-2);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
a.ps-chip:hover { border-color: var(--ps-orange); color: var(--ps-orange); }
.ps-chip .ps-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.5em; vertical-align: 1px; }

/* Buttons (shared with wp button element) */
.ps-btn, .wp-element-button, .wp-block-button__link {
	font-weight: 700;
	letter-spacing: 0.01em;
}
.ps-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	background: var(--ps-orange);
	color: #161009 !important;
	border: 1px solid transparent;
	border-radius: var(--ps-radius-sm);
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 6px 22px rgba(254, 137, 23, 0.28);
}
.ps-btn:hover { background: var(--ps-orange-2); transform: translateY(-1px); }
.ps-btn.ps-btn-ghost {
	background: transparent;
	color: var(--ps-text) !important;
	border-color: var(--ps-line-2);
	box-shadow: none;
}
.ps-btn.ps-btn-ghost:hover { border-color: var(--ps-orange); color: var(--ps-orange) !important; }
.ps-btn.ps-btn-lg { padding: 1rem 1.9rem; font-size: 1.0625rem; border-radius: 12px; }

/* Reveal on scroll */
.ps-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ps-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ps-reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.ps-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(11, 18, 19, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ps-line);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.ps-header.is-scrolled { background: rgba(11, 18, 19, 0.92); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.ps-header .wp-block-site-logo img { max-height: 44px; width: auto; }
.ps-header .wp-block-navigation a {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ps-text);
}
.ps-header .wp-block-navigation a:hover { color: var(--ps-orange); }
.ps-header .ps-btn { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* Mobile nav overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--ps-ink) !important;
}
.wp-block-navigation__responsive-container.is-menu-open a { color: var(--ps-text) !important; font-size: 1.25rem; }
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg { fill: var(--ps-text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ps-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
	background:
		radial-gradient(900px 460px at 70% -10%, rgba(254, 137, 23, 0.13), transparent 60%),
		radial-gradient(700px 400px at 8% 110%, rgba(254, 137, 23, 0.06), transparent 55%),
		var(--ps-ink);
}
/* Blueprint grid + printed layer-lines texture, pure CSS */
.ps-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
	mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
	pointer-events: none;
}
.ps-hero-inner { position: relative; max-width: 1160px; margin: 0 auto; text-align: center; }
.ps-hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: #fff;
	margin: 0 auto 1.2rem;
	max-width: 850px;
}
.ps-hero h1 .ps-accent { color: var(--ps-orange); }
.ps-hero .ps-hero-sub {
	color: var(--ps-muted);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	max-width: 640px;
	margin: 0 auto 1.75rem;
	line-height: 1.6;
}
.ps-hero .ps-ticks-row { justify-content: center; margin-bottom: 0.5rem; }

/* Stat strip under hero */
.ps-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 2.5rem auto 0; max-width: 900px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden; }
.ps-stat { flex: 1 1 200px; padding: 1.2rem 1rem; text-align: center; background: rgba(255, 255, 255, 0.02); border-right: 1px solid var(--ps-line); }
.ps-stat:last-child { border-right: 0; }
.ps-stat .ps-stat-num { font-family: var(--ps-mono); font-size: 1.5rem; font-weight: 700; color: var(--ps-orange); display: block; }
.ps-stat .ps-stat-label { font-size: 0.8rem; color: var(--ps-faint); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) {
	.ps-stats { display: grid; grid-template-columns: 1fr 1fr; }
	.ps-stat { border-bottom: 1px solid var(--ps-line); }
	.ps-stat:nth-child(even) { border-right: 0; }
	.ps-stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Materials marquee */
.ps-marquee { overflow: hidden; border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); background: var(--ps-ink-2); padding: 0.9rem 0; }
.ps-marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: ps-marquee 30s linear infinite; }
.ps-marquee span { font-family: var(--ps-mono); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--ps-faint); text-transform: uppercase; white-space: nowrap; }
.ps-marquee span b { color: var(--ps-orange); font-weight: 500; }
@keyframes ps-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ps-marquee-track { animation: none; } }

/* --------------------------------------------------------------------------
   Materials table
   -------------------------------------------------------------------------- */

.ps-mat-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden; font-size: 0.95rem; }
.ps-mat-table th {
	text-align: left;
	font-family: var(--ps-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ps-faint);
	background: var(--ps-panel);
	padding: 0.9rem 1.1rem;
	border-bottom: 1px solid var(--ps-line);
	font-weight: 500;
}
.ps-mat-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--ps-line); color: var(--ps-muted); vertical-align: top; }
.ps-mat-table tr:last-child td { border-bottom: 0; }
.ps-mat-table td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
.ps-mat-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.ps-table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   FAQ (native details/summary)
   -------------------------------------------------------------------------- */

.ps-faq { display: flex; flex-direction: column; gap: 0.8rem; max-width: 820px; }
.ps-faq details {
	background: linear-gradient(180deg, var(--ps-panel-2), var(--ps-panel));
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius-sm);
	overflow: hidden;
	transition: border-color 0.2s;
}
.ps-faq details[open] { border-color: rgba(254, 137, 23, 0.4); }
.ps-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	font-weight: 700;
	color: #fff;
	font-size: 1rem;
}
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after {
	content: "+";
	font-family: var(--ps-mono);
	color: var(--ps-orange);
	font-size: 1.3rem;
	font-weight: 400;
	flex: none;
	transition: transform 0.25s;
}
.ps-faq details[open] summary::after { transform: rotate(45deg); }
.ps-faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ps-muted); font-size: 0.975rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.ps-cta {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
	background:
		radial-gradient(600px 300px at 50% 120%, rgba(254, 137, 23, 0.18), transparent 65%),
		var(--ps-ink-2);
	border-top: 1px solid var(--ps-line);
}
.ps-cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.ps-cta p { color: var(--ps-muted); max-width: 560px; margin: 0 auto 1.75rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ps-footer { background: var(--ps-ink-2); border-top: 1px solid var(--ps-line); padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 1.5rem; font-size: 0.925rem; }
.ps-footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .ps-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ps-footer-grid { grid-template-columns: 1fr; } }
.ps-footer h4 { font-family: var(--ps-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ps-faint); margin: 0 0 1rem; font-weight: 500; }
.ps-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ps-footer a { color: var(--ps-muted); text-decoration: none; transition: color 0.15s; }
.ps-footer a:hover { color: var(--ps-orange); }
.ps-footer .ps-footer-brand p { color: var(--ps-muted); max-width: 300px; margin: 0.9rem 0 0; line-height: 1.6; }
.ps-footer .ps-footer-brand img { max-height: 40px; width: auto; }
.ps-footer-bottom {
	max-width: 1160px;
	margin: 2.5rem auto 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--ps-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	color: var(--ps-faint);
	font-size: 0.85rem;
}
.ps-footer-bottom a { color: var(--ps-faint); }

/* --------------------------------------------------------------------------
   Generic page title band (Terms/Privacy/Blog)
   -------------------------------------------------------------------------- */

.ps-title-band { padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(700px 300px at 60% -30%, rgba(254, 137, 23, 0.1), transparent 60%), var(--ps-ink); border-bottom: 1px solid var(--ps-line); }
.ps-title-band h1 { max-width: 1160px; margin: 0 auto; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; color: #fff; }

/* ==========================================================================
   3DPRINT LITE WIDGET SKIN
   ========================================================================== */

/* Panel that page markup wraps the shortcode in */
.ps-widget-shell {
	position: relative;
	background: linear-gradient(180deg, var(--ps-panel-2), var(--ps-panel));
	border: 1px solid var(--ps-line-2);
	border-radius: 20px;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: var(--ps-shadow), 0 0 80px rgba(254, 137, 23, 0.05);
}
.ps-widget-shell::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 20px;
	padding: 1px;
	background: linear-gradient(135deg, rgba(254, 137, 23, 0.5), transparent 35%, transparent 70%, rgba(254, 137, 23, 0.25));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* Layout: viewer left, configurator right */
.p3dlite-container {
	display: grid !important;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
	color: var(--ps-text);
	font-family: inherit;
}
@media (max-width: 900px) { .p3dlite-container { grid-template-columns: 1fr; } }

.p3dlite-images { width: auto !important; float: none !important; margin: 0 !important; }
.p3dlite-details { width: auto !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 1rem; }

/* ---- Viewer / dropzone ---- */
#p3dlite-viewer {
	position: relative;
	border: 2px dashed var(--ps-line-2) !important;
	border-radius: var(--ps-radius) !important;
	background:
		radial-gradient(400px 200px at 50% 0%, rgba(254, 137, 23, 0.06), transparent 70%),
		var(--ps-ink) !important;
	overflow: hidden;
	transition: border-color 0.25s, box-shadow 0.25s;
	min-height: 320px;
}
#p3dlite-viewer:hover, #p3dlite-viewer.ps-dragover {
	border-color: var(--ps-orange) !important;
	box-shadow: 0 0 0 4px var(--ps-glow);
}
#p3dlite-viewer.ps-has-model { border-style: solid !important; border-color: var(--ps-line-2) !important; }
#p3dlite-cv { width: 100% !important; height: auto !important; display: block; }

/* Upload prompt inside the viewer */
#p3dlite-model-message { color: var(--ps-muted) !important; }
.p3dlite-model-message { color: var(--ps-muted) !important; font-size: 0.95rem; padding: 0 1rem; }
#p3dlite-model-message-upload { font-weight: 600; color: var(--ps-text) !important; }
#p3dlite-model-message-upload-icon {
	filter: invert(62%) sepia(51%) saturate(2532%) hue-rotate(346deg) brightness(101%) contrast(99%);
	opacity: 0.9;
	width: 42px;
	margin-bottom: 0.6rem;
}

/* Upload button */
#p3dlite-pickfiles.progress-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	background: var(--ps-orange) !important;
	color: #161009 !important;
	font-weight: 800 !important;
	font-size: 1.05rem !important;
	font-family: inherit !important;
	border: none !important;
	border-radius: var(--ps-radius-sm) !important;
	padding: 1rem 1.5rem !important;
	margin: 0 0 1rem !important;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
	box-shadow: 0 6px 24px rgba(254, 137, 23, 0.3);
	text-transform: none !important;
}
#p3dlite-pickfiles.progress-button:hover { background: var(--ps-orange-2) !important; transform: translateY(-1px); }
#p3dlite-pickfiles.progress-button::before { content: "⬆"; font-size: 1.1em; }

/* Unit + info rows */
.p3dlite-info { color: var(--ps-muted) !important; font-size: 0.9rem; }
.p3dlite-info b { color: var(--ps-text); font-weight: 600; }

/* Unit segmented control */
.ps-unit-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: var(--ps-ink);
	border: 1px solid var(--ps-line-2);
	border-radius: 8px;
	overflow: hidden;
	margin-left: 0.5rem;
}
.ps-unit-wrap label {
	padding: 0.35rem 0.9rem;
	font-family: var(--ps-mono);
	font-size: 0.8rem;
	cursor: pointer;
	color: var(--ps-faint);
	transition: background 0.15s, color 0.15s;
	margin: 0 !important;
}
.ps-unit-wrap input { position: absolute; opacity: 0; pointer-events: none; }
.ps-unit-wrap label.is-active { background: var(--ps-orange); color: #161009; font-weight: 600; }

/* File list + errors */
#p3dlite-filelist { font-family: var(--ps-mono); font-size: 0.8rem; color: var(--ps-muted); }
#p3dlite-filelist div { padding: 0.4rem 0.75rem; background: var(--ps-ink); border: 1px solid var(--ps-line); border-radius: 8px; margin: 0.4rem 0; }
#p3dlite-error-message.error { color: #ff7d6b !important; font-size: 0.9rem; }
#p3dlite-console { background: transparent; border: 0; color: var(--ps-faint); font-family: var(--ps-mono); font-size: 0.78rem; }

/* ---- Model stats: table → chip grid ---- */
.p3dlite-stats { width: 100%; border-collapse: separate; border-spacing: 0.35rem; margin: 0.25rem -0.35rem; }
.p3dlite-stats tr { display: inline-block; }
.p3dlite-stats td {
	display: inline-block;
	font-size: 0.78rem;
	color: var(--ps-faint);
	padding: 0.3rem 0.15rem;
}
.p3dlite-stats td:first-child { color: var(--ps-faint); }
.p3dlite-stats td:last-child { font-family: var(--ps-mono); color: var(--ps-text); }
.p3dlite-stats span { color: var(--ps-orange); font-family: var(--ps-mono); }

/* ---- Configurator side ---- */

/* Step labels injected by printshape.js */
.ps-widget-step {
	font-family: var(--ps-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ps-faint);
	margin: 0.4rem 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.ps-widget-step::after { content: ""; flex: 1; height: 1px; background: var(--ps-line); }
.ps-widget-step b { color: var(--ps-orange); font-weight: 600; }

/* Price display */
#price-wrapper { order: 10; }
#price-container {
	background: var(--ps-ink);
	border: 1px solid rgba(254, 137, 23, 0.35);
	border-radius: var(--ps-radius-sm);
	padding: 1rem 1.25rem;
}
#price-container p.price { margin: 0 !important; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
#price-container p.price b { color: var(--ps-muted); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
#price-container .amount {
	font-family: var(--ps-mono);
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--ps-orange) !important;
}
#price-container .amount:empty::before { content: "—"; color: var(--ps-faint); }

/* Printer dropdown (stellarnav) */
.p3dlite-details .stellarnav { background: transparent; }
.p3dlite-details .stellarnav > ul.nav { background: transparent; }
.p3dlite-details .stellarnav .dd-title {
	display: block;
	background: var(--ps-ink) !important;
	color: var(--ps-text) !important;
	border: 1px solid var(--ps-line-2);
	border-radius: var(--ps-radius-sm);
	padding: 0.75rem 1rem !important;
	font-size: 0.95rem !important;
	font-family: inherit !important;
	position: relative;
}
.p3dlite-details .stellarnav .dd-title::after {
	content: "▾";
	position: absolute;
	right: 1rem;
	color: var(--ps-orange);
}
.p3dlite-details .stellarnav ul ul {
	background: var(--ps-panel-2) !important;
	border: 1px solid var(--ps-line-2);
	border-radius: var(--ps-radius-sm);
	overflow: hidden;
	box-shadow: var(--ps-shadow);
	z-index: 50;
}
.p3dlite-details .stellarnav ul ul li a { color: var(--ps-text) !important; padding: 0.7rem 1rem !important; font-family: inherit !important; }
.p3dlite-details .stellarnav ul ul li a:hover { background: rgba(254, 137, 23, 0.12) !important; color: var(--ps-orange) !important; }

/* Fieldsets (material/coating) */
.p3dlite-fieldset {
	border: 1px solid var(--ps-line) !important;
	border-radius: var(--ps-radius-sm) !important;
	padding: 0.9rem 1rem 1rem !important;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.015);
}
.p3dlite-fieldset legend {
	font-family: var(--ps-mono);
	font-size: 0.72rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ps-faint) !important;
	padding: 0 0.5rem;
	font-weight: 500;
}
#p3dlite-material-name { color: var(--ps-text) !important; }

/* Material colour swatches */
ul.p3dlite-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.6rem; }
ul.p3dlite-list li { margin: 0 !important; }
.p3dlite-color-item {
	width: 42px !important;
	height: 42px !important;
	border-radius: 10px !important;
	border: 2px solid var(--ps-line-2) !important;
	padding: 3px !important;
	background: var(--ps-ink) !important;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}
.p3dlite-color-item .color-sample {
	width: 100% !important;
	height: 100% !important;
	border-radius: 6px !important;
	border: 0 !important;
	margin: 0 !important;
}
.p3dlite-color-item:hover { transform: translateY(-2px); border-color: var(--ps-muted) !important; }
.p3dlite-color-item.p3dlite-active {
	border-color: var(--ps-orange) !important;
	box-shadow: 0 0 0 3px var(--ps-glow);
}
ul.p3dlite-colors li.p3dlite-active div { border: 0 !important; }
.p3dlite-inactive-color-item { opacity: 0.25; pointer-events: none; }

/* Coating list items (text + swatch) */
ul.p3dlite-list li.p3dlite-tooltip:not(.p3dlite-color-item) {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--ps-ink);
	border: 1px solid var(--ps-line-2);
	border-radius: 999px;
	padding: 0.4rem 0.95rem !important;
	font-size: 0.875rem;
	color: var(--ps-text);
	cursor: pointer;
	transition: border-color 0.15s;
}
ul.p3dlite-list li.p3dlite-tooltip:not(.p3dlite-color-item):hover { border-color: var(--ps-orange); }
ul.p3dlite-list li.p3dlite-tooltip:not(.p3dlite-color-item).p3dlite-active { border-color: var(--ps-orange); background: rgba(254, 137, 23, 0.1); color: var(--ps-orange); }
ul.p3dlite-list li.p3dlite-tooltip:not(.p3dlite-color-item) .color-sample { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ps-line-2); display: inline-block; }

/* Selected material name display */
#p3dlite-material-name span { color: var(--ps-orange); }

/* ---- Request form ---- */
.p3dlite_form { display: flex; flex-direction: column; gap: 0.75rem; }
#add-cart-wrapper { margin: 0 !important; }
.variations_button.p3dlite-info { display: flex; flex-direction: column; gap: 0.75rem; }
.variations_button br { display: none; }
.price-request-field {
	width: 100% !important;
	background: var(--ps-ink) !important;
	border: 1px solid var(--ps-line-2) !important;
	border-radius: var(--ps-radius-sm) !important;
	color: var(--ps-text) !important;
	font-family: inherit !important;
	font-size: 0.95rem !important;
	padding: 0.8rem 1rem !important;
	margin: 0 !important;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.price-request-field::placeholder { color: var(--ps-faint) !important; }
.price-request-field:focus {
	outline: none !important;
	border-color: var(--ps-orange) !important;
	box-shadow: 0 0 0 3px var(--ps-glow);
}
input[type="number"].price-request-field { -moz-appearance: textfield; }

.p3dlite_form button[type="submit"].button.alt {
	float: none !important;
	width: 100%;
	background: var(--ps-orange) !important;
	color: #161009 !important;
	border: none !important;
	border-radius: var(--ps-radius-sm) !important;
	padding: 1rem 1.5rem !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	font-family: inherit !important;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.2s, transform 0.15s !important;
	box-shadow: 0 6px 24px rgba(254, 137, 23, 0.3);
}
.p3dlite_form button[type="submit"].button.alt:hover { background: var(--ps-orange-2) !important; transform: translateY(-1px); }

.p3dlite-mail-success { color: var(--ps-ok) !important; font-weight: 600; }
.p3dlite-mail-error { color: #ff7d6b !important; font-weight: 600; }

/* Quote loading spinner row */
#p3dlite-quote-loading { text-align: center; }

/* Tooltips (tippy light theme → dark) */
.tippy-box[data-theme~="light"] {
	background: var(--ps-panel-2);
	color: var(--ps-text);
	border: 1px solid var(--ps-line-2);
	box-shadow: var(--ps-shadow);
}
.tippy-box[data-theme~="light"] .tippy-arrow { color: var(--ps-panel-2); }
.p3dlite-tooltip-info { color: var(--ps-text); }
.p3dlite-tooltip-description { color: var(--ps-muted); font-size: 0.85rem; }

/* Hide plugin's inline "powered by"/misc leftovers if any */
.p3dlite-container .p3d-powered { display: none !important; }

/* --------------------------------------------------------------------------
   Gravity Forms dark skin
   -------------------------------------------------------------------------- */

.gform_wrapper label.gfield_label { color: var(--ps-text) !important; font-weight: 600 !important; font-size: 0.925rem !important; }
.gform_wrapper .gfield input:not([type="submit"]),
.gform_wrapper .gfield textarea,
.gform_wrapper .gfield select {
	background: var(--ps-ink) !important;
	border: 1px solid var(--ps-line-2) !important;
	border-radius: var(--ps-radius-sm) !important;
	color: var(--ps-text) !important;
	padding: 0.75rem 1rem !important;
	font-family: inherit !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.gform_wrapper .gfield input:focus, .gform_wrapper .gfield textarea:focus {
	outline: none !important;
	border-color: var(--ps-orange) !important;
	box-shadow: 0 0 0 3px var(--ps-glow);
}
.gform_wrapper .gfield_description, .gform_wrapper .ginput_counter, .gform_wrapper legend.gfield_label, .gform_wrapper .gform_fileupload_rules { color: var(--ps-faint) !important; }
.gform_wrapper input[type="submit"], .gform_wrapper .gform_button {
	background: var(--ps-orange) !important;
	color: #161009 !important;
	border: none !important;
	border-radius: var(--ps-radius-sm) !important;
	font-weight: 800 !important;
	padding: 0.9rem 1.9rem !important;
	cursor: pointer;
	transition: background 0.2s !important;
}
.gform_wrapper input[type="submit"]:hover { background: var(--ps-orange-2) !important; }
.gform_wrapper .gfield_required { color: var(--ps-orange) !important; }

/* --------------------------------------------------------------------------
   Misc / legacy content safety
   -------------------------------------------------------------------------- */

.entry-content a:not(.ps-btn):not(.ps-card):not(.ps-chip):not(.wp-block-button__link) { color: var(--ps-orange-2); }
.entry-content a:not(.ps-btn):hover { color: var(--ps-orange); }

/* Turnstile widget centering */
.cf-turnstile { margin: 0.5rem 0; }

/* Long dropdown lists (37 materials) scroll */
.p3dlite-details .stellarnav ul ul { max-height: 320px; overflow-y: auto; }
.p3dlite-details .stellarnav ul ul li a small { color: var(--ps-faint); }

/* --------------------------------------------------------------------------
   PrintShape Checkout (Stripe pay-now)
   -------------------------------------------------------------------------- */

.ps-pay-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
#ps-pay-btn {
	width: 100%;
	background: var(--ps-orange);
	color: #161009;
	border: none;
	border-radius: var(--ps-radius-sm);
	padding: 1.05rem 1.5rem;
	font-size: 1.1rem;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.2s, transform 0.15s, opacity 0.2s;
	box-shadow: 0 6px 24px rgba(254, 137, 23, 0.3);
}
#ps-pay-btn:hover:not(:disabled) { background: var(--ps-orange-2); transform: translateY(-1px); }
#ps-pay-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.ps-pay-note { margin: 0; text-align: center; font-size: 0.8rem; color: var(--ps-faint); font-family: var(--ps-mono); }
.ps-pay-error { margin: 0; text-align: center; color: #ff7d6b; font-size: 0.9rem; font-weight: 600; }

/* Quote form becomes the secondary path */
.p3dlite_form button[type="submit"].button.alt {
	background: transparent !important;
	color: var(--ps-text) !important;
	border: 1px solid var(--ps-line-2) !important;
	box-shadow: none;
	font-weight: 700 !important;
}
.p3dlite_form button[type="submit"].button.alt:hover { border-color: var(--ps-orange) !important; color: var(--ps-orange) !important; background: transparent !important; }

/* Order confirmed page */
.ps-confirm { text-align: center; max-width: 560px; margin: 0 auto; padding: 2rem 0 3rem; }
.ps-confirm h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.ps-confirm p { color: var(--ps-muted); line-height: 1.65; }
.ps-confirm-ref { font-family: var(--ps-mono); font-size: 1.2rem; color: var(--ps-orange); letter-spacing: 0.05em; }
.ps-confirm-badge {
	width: 64px; height: 64px; margin: 0 auto 1.25rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; font-size: 1.8rem; font-weight: 700;
	background: rgba(71, 209, 140, 0.12); border: 2px solid var(--ps-ok); color: var(--ps-ok);
}
.ps-confirm .ps-btn { margin-top: 0.75rem; }
