/* Wiesi Seat Studio – Konfigurator */
.wss {
	--wss-accent: #2475c9;
	--wss-ink: #111418;
	--wss-muted: #6b7280;
	--wss-line: #e3e6ea;
	--wss-card: #ffffff;
	--wss-soft: #f4f5f7;
	--wss-stage: linear-gradient(160deg, #f3f4f6 0%, #dfe2e7 100%);
	--wss-radius: 16px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
	gap: 28px;
	align-items: start;
	max-width: 1320px;
	margin: 0 auto 40px;
	color: var(--wss-ink);
	font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.4;
	font-size: 15px;
}
#wss *, #wss *::before, #wss *::after { box-sizing: border-box; }
.wss--dark {
	--wss-ink: #f3f4f6;
	--wss-muted: #9ca3af;
	--wss-line: #2b3038;
	--wss-card: #15181d;
	--wss-soft: #1d2128;
	--wss-stage: radial-gradient(120% 90% at 50% 20%, #2a2f37 0%, #101215 100%);
}
#wss button { width: auto; max-width: none; float: none; font-family: inherit; font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: inherit; cursor: pointer; margin: 0; min-height: 0; box-shadow: none; text-decoration: none; }
#wss button:focus-visible, #wss input:focus-visible, #wss h3:focus-visible { outline: 2px solid var(--wss-accent); outline-offset: 2px; }

/* ---- Bühne / Vorschau ---- */
#wss .wss__stage { position: sticky; top: 24px; }
#wss .wss__preview {
	position: relative;
	background: var(--wss-stage);
	border-radius: var(--wss-radius);
	overflow: hidden;
}
#wss .wss__canvas { position: relative; width: 100%; height: 100%; }
#wss .wss__preview canvas { width: 100%; height: 100%; display: block; }
#wss .wss__hotspots { position: absolute; inset: 0; pointer-events: none; }
#wss .wss__hot {
	position: absolute; transform: translate(-50%, -50%);
	width: 30px; height: 30px; border-radius: 50%;
	border: 2px solid #fff; background: var(--wss-accent); color: #fff !important;
	font-weight: 700; font-size: 13px; line-height: 1; padding: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
	pointer-events: auto;
	animation: wss-pulse 2.4s ease-out infinite;
}
@keyframes wss-pulse { 0% { box-shadow: 0 0 0 0 rgba(36,117,201,.55); } 70% { box-shadow: 0 0 0 12px rgba(36,117,201,0); } 100% { box-shadow: 0 0 0 0 rgba(36,117,201,0); } }
@media (prefers-reduced-motion: reduce) { #wss .wss__hot { animation: none; } }
#wss .wss__loading {
	position: absolute; inset: auto 0 14px 0; text-align: center;
	font-size: 13px; color: var(--wss-muted);
}
#wss .wss__loading[hidden] { display: none; }
#wss .wss__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
#wss .wss__chip {
	display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto; column-gap: 8px;
	text-align: left; padding: 8px 10px; border: 1px solid var(--wss-line); border-radius: 10px;
	background: var(--wss-card);
}
#wss .wss__chip i { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; align-self: center; border: 1px solid rgba(0,0,0,.15); }
#wss .wss__chip b { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
#wss .wss__chip span { font-size: 13px; color: var(--wss-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wss .wss__disclaimer { font-size: 12px; color: var(--wss-muted); margin: 8px 2px 0; }

/* ---- Panel ---- */
#wss .wss__panel { background: var(--wss-card); border: 1px solid var(--wss-line); border-radius: var(--wss-radius); padding: 22px; }
#wss .wss__title { font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .01em; }
#wss .wss__subtitle { margin: 0 0 8px; color: var(--wss-muted); font-size: 15px; }
#wss .wss__from { font-size: 15px; color: var(--wss-muted); margin-bottom: 16px; }
#wss .wss__from strong { color: var(--wss-ink); font-size: 22px; margin-left: 4px; }

#wss .wss__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-bottom: 18px; }
#wss .wss__tab {
	display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline;
	text-align: left; padding: 8px 10px; border-radius: 10px;
	border: 1px solid var(--wss-line); background: var(--wss-soft);
	min-width: 0;
}
#wss .wss__tab small { grid-row: 1 / span 2; font-size: 11px; color: var(--wss-muted); font-weight: 700; }
#wss .wss__tab b { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wss .wss__tab span { font-size: 12px; color: var(--wss-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wss .wss__tab[aria-selected="true"] { background: var(--wss-ink); border-color: var(--wss-ink); color: var(--wss-card); }
#wss .wss__tab[aria-selected="true"] small, #wss .wss__tab[aria-selected="true"] span { color: inherit; opacity: .75; }
#wss .wss__tab.is-error { border-color: #d92d20; box-shadow: inset 0 0 0 1px #d92d20; }

#wss .wss__stephead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
#wss .wss__stephead small { color: var(--wss-muted); font-weight: 700; }
#wss .wss__stephead h3 { margin: 0; font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 24px; text-transform: uppercase; }
#wss .wss__hint { font-size: 13px; color: var(--wss-muted); margin: 2px 0 10px; }
#wss .wss__hint--step { margin-bottom: 14px; }
#wss .wss__zone { padding: 14px 0; border-top: 1px solid var(--wss-line); }
#wss .wss__zone:first-of-type { border-top: 0; padding-top: 4px; }
#wss .wss__zname { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
#wss .wss__zname small { text-transform: none; letter-spacing: 0; color: var(--wss-muted); font-weight: 500; }
#wss .wss__grp { margin: 8px 0 4px; }
#wss .wss__lab { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
#wss .wss__lab span { color: var(--wss-muted); }

#wss .wss__seg { display: flex; flex-wrap: wrap; gap: 6px; }
#wss .wss__seg button {
	flex: 1 1 auto; min-width: 92px; padding: 10px 12px; border-radius: 10px;
	border: 1px solid var(--wss-line); background: var(--wss-card);
	font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 1px;
}
#wss .wss__seg button small { font-weight: 500; font-size: 11px; color: var(--wss-muted); }
#wss .wss__seg button[aria-pressed="true"] { border-color: var(--wss-ink); box-shadow: inset 0 0 0 1px var(--wss-ink); }
#wss .wss__seg button:disabled { opacity: .4; cursor: not-allowed; }

#wss .wss__sws { display: flex; flex-wrap: wrap; gap: 9px; }
#wss .wss__sw {
	width: 36px; height: 36px; border-radius: 50%; padding: 0;
	border: 1px solid rgba(0,0,0,.18); position: relative;
	transition: transform .12s ease;
}
#wss .wss__sw:hover { transform: scale(1.08); }
#wss .wss__sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--wss-card), 0 0 0 4px var(--wss-ink); }

#wss .wss__models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
#wss .wss__model { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--wss-line); background: var(--wss-card); font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
#wss .wss__model small { color: var(--wss-muted); }
#wss .wss__model[aria-pressed="true"] { border-color: var(--wss-ink); box-shadow: inset 0 0 0 1px var(--wss-ink); font-weight: 600; }

#wss .wss__input { width: 100%; padding: 11px 12px; border: 1px solid var(--wss-line); border-radius: 10px; background: var(--wss-card); color: var(--wss-ink); font: inherit; font-size: 16px; }

#wss .wss__stepnav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
#wss .wss__back, #wss .wss__next { padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
#wss .wss__back { background: transparent; border: 1px solid var(--wss-line); }
#wss .wss__next { margin-left: auto; background: var(--wss-ink); color: var(--wss-card) !important; border: 1px solid var(--wss-ink); }

#wss .wss__sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
#wss .wss__sum dt { color: var(--wss-muted); }
#wss .wss__sum dd { margin: 0; font-weight: 600; }
#wss .wss__sum dd small { color: var(--wss-muted); font-weight: 500; }
#wss .wss__todo { margin: 14px 0 0; padding: 12px 14px; background: #fff4e5; border-radius: 10px; list-style: none; color: #8a4b00; }
#wss .wss__link { background: none; border: 0; padding: 0; text-decoration: underline; text-align: left; color: inherit !important; }

/* ---- Warenkorb ---- */
#wss .wss__cart { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--wss-line); }
#wss .wss__total { font-size: 13px; margin-bottom: 12px; }
#wss .wss__row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--wss-muted); }
#wss .wss__row--sum { color: var(--wss-ink); font-size: 18px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--wss-line); }
#wss .wss__error { color: #d92d20; font-size: 14px; margin: 0 0 10px; }
#wss .wss__buy {
	width: 100%; padding: 15px 18px; border-radius: 12px; border: 0;
	background: var(--wss-accent); color: #fff !important;
	font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em;
}
#wss .wss__buy:hover { filter: brightness(1.08); }
#wss .wss__buy:disabled { opacity: .6; }
#wss .wss__badges { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--wss-muted); }
#wss .wss__badges li::before { content: "✓"; color: var(--wss-accent); font-weight: 700; margin-right: 8px; }

#wss.wss--failed .wss__preview::after { content: "Vorschau gerade nicht verfügbar"; position: absolute; color: var(--wss-muted); font-size: 14px; }

/* ---- Produktseite: Standard-Galerie/Kaufbutton ausblenden (klassische + Block-Themes) ---- */
.wss-product div.product .woocommerce-product-gallery,
.wss-product div.product .summary .price,
.wss-product div.product .summary form.cart,
.wss-product div.product .summary .product_meta,
.wss-product .wp-block-woocommerce-product-image-gallery,
.wss-product .wp-block-woocommerce-product-price,
.wss-product .wp-block-add-to-cart-form,
.wss-product .wp-block-woocommerce-add-to-cart-form,
.wss-product .wp-block-woocommerce-product-meta,
.wss-product .elementor-widget-woocommerce-product-add-to-cart,
.wss-product .elementor-widget-woocommerce-product-price,
.wss-product .elementor-widget-woocommerce-product-images { display: none !important; }
.wss-product div.product .summary { width: 100% !important; float: none !important; }

/* ---- Handy ---- */
@media (max-width: 899px) {
	.wss { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	#wss .wss__stage { position: static; }
	#wss.wss--wide .wss__stage { position: sticky; top: 0; z-index: 5; background: var(--wss-card); padding-bottom: 6px; }
	#wss .wss__preview { border-radius: 12px; }
	#wss .wss__chips { display: flex; overflow-x: auto; scrollbar-width: none; }
	#wss .wss__chip { flex: 0 0 auto; min-width: 118px; }
	#wss .wss__disclaimer { display: none; }
	#wss .wss__panel { padding: 16px; }
	#wss .wss__steps { display: flex; overflow-x: auto; scrollbar-width: none; }
	#wss .wss__tab { flex: 0 0 auto; min-width: 104px; }
	#wss .wss__hot { width: 26px; height: 26px; font-size: 12px; }
}

/* ---- Robustheit gegen Theme-/Elementor-Stile ---- */
#wss h2, #wss h3, #wss h4 { color: inherit; letter-spacing: normal; }
#wss h3:focus { outline: none; }
#wss button:hover, #wss button:focus { color: inherit; background-image: none; }
#wss .wss__tab:hover, #wss .wss__tab:focus { background: var(--wss-soft); border-color: var(--wss-line); color: inherit; }
#wss .wss__tab[aria-current="step"], #wss .wss__tab[aria-current="step"]:hover { background: var(--wss-ink); border-color: var(--wss-ink); color: var(--wss-card); }
#wss .wss__tab[aria-current="step"] small, #wss .wss__tab[aria-current="step"] span { color: inherit; opacity: .75; }
#wss .wss__seg button:hover, #wss .wss__model:hover, #wss .wss__chip:hover { background: var(--wss-soft); }
#wss .wss__next:hover, #wss .wss__next:focus { background: var(--wss-ink); color: var(--wss-card); }
#wss .wss__buy:hover, #wss .wss__buy:focus { background: var(--wss-accent); color: #fff; }
#wss .wss__input { border: 1px solid var(--wss-line); background: var(--wss-card); color: var(--wss-ink); font-size: 16px; box-shadow: none; height: auto; }
#wss ol.wss__steps { list-style: none; margin: 0 0 18px; padding: 0; }
#wss ol.wss__steps li { margin: 0; padding: 0; display: flex; }
#wss ol.wss__steps li .wss__tab { width: 100%; }
#wss .wss__sw { width: 40px; height: 40px; border-color: var(--wss-line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
#wss .wss__sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px var(--wss-card), 0 0 0 4px var(--wss-ink); }
#wss .wss__hot::before { content: ""; position: absolute; inset: -9px; }
#wss .wss__edit { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--wss-muted); }
#wss .wss__add { margin: 4px 0 0; }
#wss .wss__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
@media (max-width: 899px) {
	#wss ol.wss__steps { display: flex; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	#wss ol.wss__steps li { flex: 0 0 auto; }
	#wss.wss--wide .wss__stage { top: var(--wss-sticky-top, 0px); }
}
#wss > * { min-width: 0; }
#wss canvas { max-width: 100%; }
#wss .wss__buy, #wss ol.wss__steps li .wss__tab { width: 100%; }
#wss .wss__model { width: 100%; }
