/* Pergola Tente configurator, styled to match visionartaluminium.com:
   Satoshi type, champagne gold accent, near black surfaces, soft neutrals. */

.pergola-tente-wrap {
	--pt-gold: #b79b6f;
	--pt-gold-dark: #a0865a;
	--pt-gold-soft: rgba(183, 155, 111, 0.12);
	--pt-ink: #171717;
	--pt-ink-2: #262626;
	--pt-muted: #737373;
	--pt-muted-2: #a3a3a3;
	--pt-line: #e5e5e5;
	--pt-line-2: #d4d4d4;
	--pt-bg: #ffffff;
	--pt-soft: #f5f5f5;
	--pt-dark: #171717;
	--pt-height: 640px;
	position: relative;
	width: 100%;
	background: var(--pt-bg);
	border: 1px solid var(--pt-line);
	border-radius: 4px;
	overflow: hidden;
	color: var(--pt-ink-2);
	font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: 0 20px 60px rgba(15, 15, 15, 0.08);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.pergola-tente-wrap * { box-sizing: border-box; }

/* Boot loader */
.pt-boot-loader, .pt-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: var(--pt-height);
	gap: 16px;
	color: var(--pt-muted);
	background: var(--pt-soft);
}
.pt-spinner {
	width: 40px; height: 40px;
	border: 2px solid var(--pt-line-2);
	border-top-color: var(--pt-gold);
	border-radius: 50%;
	animation: pt-spin 0.8s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-error { padding: 40px; text-align: center; color: #b3352f; min-height: 200px; display: flex; align-items: center; justify-content: center; }

/* In theme, content area filling render. */
.pt-fill-wrap {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	max-width: none !important;
	width: 100%;
	margin: 0;
}
.pt-fill-wrap .pt-shell { height: var(--pt-height); }
.pt-fill-wrap .pt-body { flex: 1 1 auto; min-height: 0; }

body.pergola-tente-page .site-content .container,
body.pergola-tente-page #content .container,
body.pergola-tente-page .content-area,
body.pergola-tente-page #primary,
body.pergola-tente-page .site-main,
body.pergola-tente-page .cm-container,
body.pergola-tente-page .cm-row,
body.pergola-tente-page #cm-primary,
body.pergola-tente-page .cm-posts {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
/* Remove the top gap the theme places above the content area. */
body.pergola-tente-page #cm-content,
body.pergola-tente-page .cm-content,
body.pergola-tente-page .site-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.pergola-tente-page .entry-title,
body.pergola-tente-page .page-title,
body.pergola-tente-page .entry-header,
body.pergola-tente-page .page-header,
body.pergola-tente-page .cm-entry-title,
body.pergola-tente-page .cm-entry-header,
body.pergola-tente-page .cm-page-title,
body.pergola-tente-page .widget-area,
body.pergola-tente-page #secondary { display: none !important; }
body.pergola-tente-page .entry-content,
body.pergola-tente-page .cm-entry-summary,
body.pergola-tente-page .entry-summary { margin: 0 !important; padding: 0 !important; }

/* ---------------- Model picker ---------------- */
.pt-brandbar { display: flex; align-items: center; padding: 22px 30px; background: var(--pt-dark); }
.pt-brandbar-lg { justify-content: center; }
.pt-brand-logo { max-height: 34px; width: auto; }
.pt-brand-name { font-weight: 700; letter-spacing: 4px; font-size: 19px; text-transform: uppercase; color: #fff; }

/* The picker matches the configurator screen height and scrolls internally
   with the same subtle thin scrollbar. */
.pt-picker {
	height: var(--pt-height);
	display: flex;
	flex-direction: column;
	background: var(--pt-soft);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(23, 23, 23, 0.18) transparent;
}
.pt-picker::-webkit-scrollbar { width: 6px; }
.pt-picker::-webkit-scrollbar-track { background: transparent; }
.pt-picker::-webkit-scrollbar-thumb { background: rgba(23, 23, 23, 0.12); border-radius: 999px; }
.pt-picker::-webkit-scrollbar-thumb:hover { background: rgba(23, 23, 23, 0.26); }
.pt-picker .pt-brandbar { position: sticky; top: 0; z-index: 2; flex-shrink: 0; }
.pt-picker-title { text-align: center; font-size: 34px; margin: 44px 20px 8px; font-weight: 700; letter-spacing: -0.02em; color: var(--pt-ink); }
.pt-picker-sub { text-align: center; color: var(--pt-muted); margin: 0 20px 34px; font-size: 15px; }
.pt-picker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
	padding: 0 40px 64px;
	max-width: 1240px;
	margin: 0 auto;
	width: 100%;
}
.pt-model-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 16px;
	padding: 0 0 22px;
	cursor: pointer;
	text-align: left;
	transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
	overflow: hidden;
	font: inherit;
	color: inherit;
	box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}
.pt-model-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -18px rgba(15, 15, 15, 0.22);
	border-color: rgba(0, 0, 0, 0.07);
}
.pt-model-thumb {
	height: 224px;
	background: #fff;
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
	color: var(--pt-ink);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transition: transform .5s cubic-bezier(.2,.7,.3,1);
	transform-origin: center 70%;
}
.pt-model-card:hover .pt-model-thumb { transform: scale(1.045); }
.pt-model-thumb.has-preview .pt-model-icon { display: none; }
.pt-model-name { font-weight: 600; font-size: 17px; padding: 18px 22px 0; letter-spacing: -0.015em; color: var(--pt-ink); }
.pt-model-summary {
	color: var(--pt-muted); font-size: 13.5px; padding: 7px 22px 0; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pt-model-cta {
	color: var(--pt-gold); font-weight: 600; padding: 14px 22px 0; font-size: 11.5px;
	text-transform: uppercase; letter-spacing: .14em; margin-top: auto;
	transition: letter-spacing .25s ease;
}
.pt-model-card:hover .pt-model-cta { letter-spacing: .18em; }
.pt-empty { text-align: center; color: var(--pt-muted); padding: 40px; }

/* ---------------- Shell ---------------- */
.pt-shell { display: flex; flex-direction: column; min-height: var(--pt-height); background: var(--pt-bg); }
.pt-topbar {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	height: 64px; padding: 0 22px;
	background: linear-gradient(180deg, #17181b 0%, #101114 100%);
	border-bottom: 1px solid rgba(183, 155, 111, 0.28);
	position: relative;
}
.pt-topbar::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(183,155,111,.65) 50%, transparent 100%);
	pointer-events: none;
}
.pt-topbar-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-topbar-right { justify-content: flex-end; }
.pt-topbrand { display: flex; align-items: center; justify-content: center; min-width: 0; }
.pt-topbrand .pt-brand-name {
	color: #fff; font-size: 15px; font-weight: 600;
	letter-spacing: 0.34em; text-transform: uppercase; white-space: nowrap;
	padding-left: 0.34em; /* optically recentre the letterspaced word */
}
.pt-topbrand .pt-brand-logo { filter: brightness(0) invert(1); height: 30px; width: auto; }
.pt-back-link {
	display: inline-flex; align-items: center; gap: 8px;
	color: rgba(255,255,255,0.62); text-decoration: none;
	font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
	padding: 8px 10px 8px 6px; border-radius: 8px;
	transition: color .18s ease;
}
.pt-back-link:hover { color: var(--pt-gold); }
.pt-back-link svg { transition: transform .18s ease; }
.pt-back-link:hover svg { transform: translateX(-3px); }
.pt-top-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: transparent; border: 1px solid rgba(255,255,255,0.18);
	color: rgba(255,255,255,0.75); cursor: pointer;
	transition: border-color .18s, color .18s, background .18s;
}
.pt-top-icon:hover { border-color: var(--pt-gold); color: var(--pt-gold); background: rgba(183,155,111,0.08); }
.pt-change-model {
	background: transparent; border: 1px solid rgba(183,155,111,0.55); border-radius: 999px;
	padding: 9px 20px; cursor: pointer; color: var(--pt-gold); font: inherit; font-size: 11.5px; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase;
	transition: background .18s, border-color .18s, color .18s;
}
.pt-change-model:hover { background: var(--pt-gold); border-color: var(--pt-gold); color: #14150f; }

.pt-body { display: flex; flex: 1; min-height: 0; }

/* Sidebar: scrolling content with a fixed footer for nav and price. */
.pt-sidebar {
	width: 360px;
	min-width: 360px;
	border-right: 1px solid var(--pt-line);
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--pt-bg);
}
/* Fixed compact header: step title + optional step action (reset). */
.pt-sidebar-head {
	flex: 0 0 auto;
	padding: 14px 26px 12px;
	border-bottom: 1px solid var(--pt-line);
	background: var(--pt-bg);
}
.pt-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pt-head-actions .pt-reset { margin: 0; padding: 0; }

.pt-sidebar-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 16px 26px 16px;
	display: flex;
	flex-direction: column;
	/* Thin, barely there scrollbar. */
	scrollbar-width: thin;
	scrollbar-color: rgba(23, 23, 23, 0.15) transparent;
}
.pt-sidebar-scroll::-webkit-scrollbar { width: 6px; }
.pt-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.pt-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(23, 23, 23, 0.12); border-radius: 999px; }
.pt-sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(23, 23, 23, 0.26); }
.pt-sidebar-foot {
	flex: 0 0 auto;
	padding: 12px 22px 13px;
	border-top: 1px solid var(--pt-line);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	position: relative;
}
.pt-sidebar-foot::before {
	content: ""; position: absolute; left: 0; right: 40%; top: -1px; height: 1px;
	background: linear-gradient(90deg, rgba(183,155,111,.55) 0%, transparent 100%);
	pointer-events: none;
}
.pt-side-title { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.02em; color: var(--pt-ink); position: relative; padding-left: 14px; }
.pt-side-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--pt-gold); }
.pt-side-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--pt-muted); margin: 16px 0 10px; font-weight: 700; }
.pt-side-sub:first-child { margin-top: 0; }
.pt-sales-note { color: var(--pt-muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.5; }

.pt-reset {
	background: none; border: none; color: var(--pt-gold); cursor: pointer;
	font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.pt-reset:hover { color: var(--pt-gold-dark); }

/* Dimension control, minimalist */
.pt-dim { padding: 13px 0; }
.pt-dim + .pt-dim { border-top: 1px solid var(--pt-line); }
.pt-dim-top { margin-bottom: 9px; }
.pt-dim-label { font-weight: 600; font-size: 12.5px; color: var(--pt-ink); text-transform: uppercase; letter-spacing: .06em; }
.pt-dim-row { display: flex; align-items: center; gap: 8px; }
.pt-step-btn {
	width: 32px; height: 32px; border: 1px solid var(--pt-line); background: var(--pt-bg);
	border-radius: 999px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--pt-muted);
	display: flex; align-items: center; justify-content: center; padding: 0;
	transition: border-color .15s, color .15s; flex-shrink: 0;
}
.pt-step-btn:hover { border-color: var(--pt-gold); color: var(--pt-gold); }
.pt-dim-valwrap { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 5px; border: 1px solid var(--pt-line); border-radius: 8px; padding: 8px 6px; transition: border-color .15s; }
.pt-dim-valwrap:focus-within { border-color: var(--pt-gold); }
.pt-dim-input { width: 56px; border: none; text-align: center; font-size: 16px; font-weight: 700; font-family: inherit; color: var(--pt-ink); background: transparent; -moz-appearance: textfield; padding: 0; }
.pt-dim-input::-webkit-outer-spin-button, .pt-dim-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pt-dim-unit { color: var(--pt-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

.pt-slider {
	-webkit-appearance: none; appearance: none;
	width: 100%; height: 3px; border-radius: 4px; background: var(--pt-line-2);
	margin: 12px 0 5px; cursor: pointer;
}
.pt-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--pt-gold); cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pt-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--pt-gold); cursor: pointer; border: 3px solid #fff; }
.pt-dim-scale { display: flex; justify-content: space-between; color: var(--pt-muted-2); font-size: 11px; }

/* Colors, compact horizontal chips */
.pt-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-swatch {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 12px;
	padding: 13px 14px; min-height: 58px; cursor: pointer;
	background: var(--pt-bg); text-align: left; font: inherit; color: inherit;
	transition: border-color .18s, box-shadow .18s, transform .18s;
	box-shadow: 0 1px 2px rgba(15, 15, 15, 0.03);
}
.pt-swatch:hover { border-color: rgba(0, 0, 0, 0.18); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15, 15, 15, 0.18); }
.pt-swatch.active { border-color: var(--pt-gold); box-shadow: 0 0 0 3px var(--pt-gold-soft), 0 6px 16px -8px rgba(15, 15, 15, 0.14); }
.pt-swatch-dot {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.14);
	box-shadow: inset 0 0 0 3px #fff, inset 0 1px 3px rgba(0, 0, 0, 0.14);
}
.pt-swatch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-swatch-name { font-weight: 600; font-size: 13px; color: var(--pt-ink); line-height: 1.25; }
.pt-swatch-code { font-size: 10.5px; color: var(--pt-muted); letter-spacing: .06em; text-transform: uppercase; }
.pt-swatch-check {
	position: absolute; top: 8px; right: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 17px; height: 17px; border-radius: 50%;
	background: var(--pt-gold); color: #fff;
	opacity: 0; transform: scale(0.5);
	transition: opacity .18s ease, transform .18s ease;
}
.pt-swatch.active .pt-swatch-check { opacity: 1; transform: scale(1); }
.pt-swatch-price { font-size: 11px; color: var(--pt-muted); line-height: 1.1; margin-left: auto; }
.pt-included { color: var(--pt-gold-dark); font-weight: 600; }

/* Options, compact rows */
.pt-options { display: flex; flex-direction: column; gap: 8px; }
.pt-opt {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border: 1px solid var(--pt-line); border-radius: 9px; padding: 11px 14px; transition: border-color .15s, background .15s;
}
.pt-opt.active { border-color: var(--pt-gold); background: var(--pt-gold-soft); }
.pt-opt-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-opt-name { font-weight: 600; font-size: 13.5px; color: var(--pt-ink); line-height: 1.25; }
.pt-opt-price { color: var(--pt-muted); font-size: 11.5px; }

.pt-toggle {
	width: 44px; height: 25px; border-radius: 999px; background: var(--pt-line-2); border: none;
	cursor: pointer; position: relative; flex-shrink: 0; transition: background .2s; padding: 0;
}
.pt-toggle.on { background: var(--pt-gold); }
.pt-toggle-knob { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pt-toggle.on .pt-toggle-knob { left: 22px; }

.pt-counter { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pt-count-btn {
	width: 30px; height: 30px; border: 1px solid var(--pt-line-2); border-radius: 999px; background: var(--pt-bg);
	cursor: pointer; font-size: 16px; line-height: 1; color: var(--pt-ink); padding: 0;
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	transition: border-color .15s, color .15s;
}
.pt-count-btn:hover { border-color: var(--pt-gold); color: var(--pt-gold); }
.pt-count-val { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.pt-empty-opt { color: var(--pt-muted); }

/* Compact single row footer: price left, navigation right. */
.pt-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-foot-price { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.pt-foot-price-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--pt-muted); font-weight: 600; }
.pt-foot-price-value { font-size: 22px; font-weight: 700; color: var(--pt-ink); letter-spacing: -0.02em; }
.pt-foot-price-value::first-letter { color: var(--pt-gold-dark); }

.pt-nav { display: flex; gap: 8px; }
.pt-btn { border: none; border-radius: 999px; padding: 12px 22px; cursor: pointer; font: inherit; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; flex: 1; transition: background .18s, color .18s, opacity .15s, box-shadow .18s, transform .18s; }
.pt-btn-primary { background: var(--pt-gold); color: #14150f; box-shadow: 0 8px 20px -10px rgba(160, 134, 90, 0.7); }
.pt-btn-primary:hover { background: var(--pt-gold-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(160, 134, 90, 0.8); }
.pt-btn-ghost { background: transparent; color: var(--pt-muted); border: 1px solid var(--pt-line-2); }
.pt-btn-ghost:hover { border-color: var(--pt-ink); color: var(--pt-ink); }
.pt-btn:disabled { opacity: .4; cursor: not-allowed; }
.pt-btn-block { width: 100%; flex: none; margin-top: 10px; }

/* In the footer row the buttons hug their content instead of filling. */
.pt-foot-row .pt-nav { flex: 0 1 auto; }
.pt-foot-row { align-items: center; }
.pt-foot-row .pt-btn { flex: 0 0 auto; padding: 11px 22px; font-size: 11.5px; }
.pt-foot-row .pt-btn-primary { flex: 1 1 auto; max-width: 220px; margin-left: auto; }

/* Stage */
.pt-stage { position: relative; flex: 1; min-width: 0; background: linear-gradient(180deg, #f0f0f0 0%, #e2e2e2 100%); }
.pt-canvas { position: absolute; inset: 0; }
.pt-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.pt-stage-hint {
	position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
	background: rgba(16,17,20,.55); color: rgba(255,255,255,.85);
	padding: 6px 16px; border-radius: 999px; font-size: 10px;
	letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.08);
	animation: pt-hint-fade 0.6s ease 5s forwards;
}
@keyframes pt-hint-fade { to { opacity: 0; } }

/* Context panel bottom-right */
.pt-context-panel {
	position: absolute; right: 20px; bottom: 20px; width: 262px;
	background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,0.06); border-radius: 16px;
	padding: 16px 18px; box-shadow: 0 22px 50px -18px rgba(15,15,15,.4);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pt-ctx-block + .pt-ctx-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pt-line); }
.pt-ctx-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--pt-ink); }
.pt-ctx-val { color: var(--pt-gold); }
.pt-ctx-hint { color: var(--pt-muted); font-size: 12px; margin: 8px 0 0; }
.pt-wall-row { display: flex; gap: 6px; }
.pt-wall-btn { flex: 1; height: 36px; border: 1px solid var(--pt-line-2); background: var(--pt-bg); border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--pt-muted); transition: all .15s; }
.pt-wall-btn.active { background: var(--pt-gold); color: var(--pt-ink); border-color: var(--pt-gold); }

/* Side system markers over the 3D stage */
.pt-markers { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pt-marker {
	position: absolute; display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
	background: rgba(255,255,255,.95); border: 1.5px solid var(--pt-line-2);
	color: var(--pt-ink); font-size: 19px; font-weight: 600; line-height: 1;
	cursor: pointer; pointer-events: auto; box-shadow: 0 4px 14px rgba(15,15,15,.18);
	transition: border-color .15s, background .15s, color .15s; padding: 0;
}
.pt-marker:hover { border-color: var(--pt-gold); color: var(--pt-gold-dark); }
.pt-marker.selected { border-color: var(--pt-gold); box-shadow: 0 0 0 3px var(--pt-gold-soft), 0 4px 14px rgba(15,15,15,.18); }
.pt-marker.occupied { background: var(--pt-gold); border-color: var(--pt-gold); color: var(--pt-ink); font-size: 14px; }

/* Sub system cards */
.pt-sub-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pt-sub-card {
	display: flex; align-items: center; gap: 10px; text-align: left;
	border: 1px solid var(--pt-line); border-radius: 9px; padding: 10px 11px;
	background: var(--pt-bg); cursor: pointer; font: inherit; color: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.pt-sub-card:hover { border-color: var(--pt-gold); box-shadow: 0 0 0 2px var(--pt-gold-soft); }
.pt-sub-ico {
	width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--pt-gold-soft); color: var(--pt-gold-dark);
	font-weight: 700; font-size: 14px;
}
.pt-sub-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pt-sub-name { font-weight: 600; font-size: 12px; color: var(--pt-ink); line-height: 1.25; }
.pt-sub-price { font-size: 11px; color: var(--pt-muted); }

/* Per-side control rows in the context panel */
.pt-side-row { border-top: 1px solid var(--pt-line); padding: 10px 0 4px; }
.pt-side-row.selected .pt-side-row-name { color: var(--pt-gold-dark); }
.pt-side-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-side-row-name { font-weight: 600; font-size: 12.5px; color: var(--pt-ink); }
.pt-side-del {
	width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--pt-soft);
	color: #b3352f; cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pt-side-del:hover { background: #f3dedd; }
.pt-dir-row { display: flex; gap: 14px; margin: 7px 0 2px; }
.pt-dir-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pt-ink-2); cursor: pointer; }
.pt-dir-opt input { accent-color: var(--pt-gold); margin: 0; }
.pt-open-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pt-open-row .pt-slider { margin: 0; flex: 1; }
.pt-open-lab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--pt-muted); flex-shrink: 0; }

/* Steps bar */
.pt-stepsbar {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	padding: 12px 16px; flex-wrap: wrap;
	background: linear-gradient(180deg, #101114 0%, #17181b 100%);
	border-top: 1px solid rgba(183, 155, 111, 0.28);
	position: relative;
}
.pt-stepsbar::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(183,155,111,.6) 50%, transparent 100%);
	pointer-events: none;
}
.pt-step {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	background: none; border: none; cursor: pointer; padding: 6px 18px 9px; border-radius: 10px;
	color: var(--pt-muted); font: inherit; min-width: 88px;
	position: relative; transition: color .18s ease;
}
.pt-step::after {
	content: ""; position: absolute; left: 26%; right: 26%; bottom: 0; height: 2px;
	border-radius: 2px; background: var(--pt-gold); transform: scaleX(0);
	transition: transform .22s ease;
}
.pt-step.active::after { transform: scaleX(1); }
.pt-step:hover { color: var(--pt-ink); }
.pt-step { color: rgba(255,255,255,0.45); }
.pt-step-dot { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.22); transition: all .18s; }
.pt-step-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.pt-step:hover { color: rgba(255,255,255,0.85); }
.pt-step.active { color: var(--pt-gold); }
.pt-step.active .pt-step-dot { border-color: var(--pt-gold); background: rgba(183,155,111,0.14); color: var(--pt-gold); }
.pt-step.done { color: rgba(255,255,255,0.8); }
.pt-step.done .pt-step-dot { background: var(--pt-gold); border-color: var(--pt-gold); color: #14150f; }

/* Overview / summary */
.pt-summary-list { list-style: none; padding: 0; margin: 0 0 16px; }
.pt-summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--pt-line); font-size: 13.5px; }
.pt-sum-k { color: var(--pt-muted); }
.pt-sum-v { font-weight: 600; text-align: right; color: var(--pt-ink); }
.pt-breakdown { background: var(--pt-soft); border-radius: 10px; padding: 14px 16px; }
.pt-bd-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12.5px; color: var(--pt-muted); }
.pt-bd-total { display: flex; justify-content: space-between; padding: 11px 0 0; margin-top: 7px; border-top: 1px solid var(--pt-line-2); font-weight: 700; font-size: 17px; color: var(--pt-ink); }
.pt-bd-total span:last-child { color: var(--pt-gold-dark); }

/* Quote form. Inputs use !important to stay clearly visible over theme styles. */
.pt-quote-form { margin-top: 22px; }
.pt-field { margin-bottom: 11px; }
.pt-field-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); }
.pt-quote-form input, .pt-quote-form textarea {
	width: 100% !important; box-sizing: border-box !important;
	border: 1px solid var(--pt-line-2) !important; border-radius: 8px !important;
	padding: 12px 14px !important; margin: 0 !important;
	font-family: inherit !important; font-size: 14px !important; line-height: 1.4 !important;
	color: var(--pt-ink) !important; background: #fafafa !important;
	box-shadow: none !important; -webkit-appearance: none; appearance: none;
}
.pt-quote-form textarea { min-height: 84px; resize: vertical; }
.pt-quote-form input::placeholder, .pt-quote-form textarea::placeholder { color: var(--pt-muted-2) !important; opacity: 1; }
.pt-quote-form input:focus, .pt-quote-form textarea:focus {
	outline: none !important; border-color: var(--pt-gold) !important; background: #fff !important;
	box-shadow: 0 0 0 3px var(--pt-gold-soft) !important;
}
.pt-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-form-msg { margin-top: 10px; font-size: 13px; }
.pt-form-msg-error { color: #b3352f; }
.pt-login-required { background: var(--pt-gold-soft); border: 1px solid var(--pt-gold); border-radius: 8px; padding: 12px; color: var(--pt-gold-dark); font-size: 13px; }

/* Success */
.pt-success { min-height: var(--pt-height); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 12px; background: var(--pt-soft); }
.pt-success-check { width: 74px; height: 74px; border-radius: 50%; background: var(--pt-gold); color: var(--pt-ink); font-size: 38px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.pt-success h2 { font-size: 28px; margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--pt-ink); }
.pt-success-msg { color: var(--pt-muted); max-width: 460px; }
.pt-success-ref { display: flex; align-items: center; gap: 18px; background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: 10px; padding: 14px 24px; margin: 14px 0 22px; font-size: 18px; }
.pt-success-ref strong { color: var(--pt-gold-dark); }

/* Medium screens: keep the side by side layout but tighten the sidebar. */
@media (max-width: 1040px) {
	.pt-sidebar { width: 320px; min-width: 320px; }
	.pt-sidebar-head { padding: 12px 20px 10px; }
	.pt-sidebar-scroll { padding: 14px 20px 14px; }
	.pt-sidebar-foot { padding: 10px 20px 12px; }
}

/* Small screens: stack the stage above the controls. */
@media (max-width: 720px) {
	.pt-body { flex-direction: column-reverse; }
	.pt-sidebar { width: 100%; min-width: 0; flex: 1 1 auto; min-height: 0; border-right: none; border-top: 1px solid var(--pt-line); }
	.pt-stage { flex: 0 0 auto; min-height: 300px; height: 300px; }
	.pt-context-panel { width: 210px; right: 12px; bottom: 12px; }
	.pt-step { min-width: 58px; padding: 6px 6px; }
	.pt-step-label { font-size: 10px; }
	.pt-picker-title { font-size: 26px; }
}

/* ---------------- Stage overlays: logo + share (reference layout) -------- */
.pt-stage-logo {
	position: absolute; top: 20px; left: 24px; z-index: 6;
	height: 34px; width: auto; max-width: 230px; object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 1px 6px rgba(255,255,255,0.6));
}
.pt-share-btn {
	position: absolute; top: 16px; right: 18px; z-index: 6;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,0.94); color: var(--pt-ink);
	border: 1px solid rgba(0,0,0,0.08); cursor: pointer;
	box-shadow: 0 8px 22px -8px rgba(0,0,0,0.28);
	transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.pt-share-btn:hover { transform: translateY(-2px); color: var(--pt-gold-dark); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.34); }
