/* Blech-Konfigurator: eigenstaendiges Stylesheet, nutzt aber bewusst
   dieselben Klassennamen wie configurator.css (.stbk-panel, .stbk-tile,
   .stbk-geo-card etc.), damit beide Konfiguratoren optisch aus einem Guss
   wirken. Kein Konflikt, da laut class-assets.php/class-plate-assets.php
   nie beide Stylesheets gleichzeitig auf derselben Seite laden. */

.stbk-plate-configurator {
	--stbk-accent: #1e69b8;
	--stbk-accent-bg: #eaf2fa;
	--stbk-border: #e0e0e0;
	--stbk-text: #222222;
	--stbk-text-muted: #555555;
	--stbk-text-faint: #808080;
	--stbk-surface: #fff;
	--stbk-surface-alt: #f7f7f7;

	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 20px;
	margin-bottom: 32px;
	align-items: start;
	font-family: inherit;
}

@media (max-width: 900px) {
	.stbk-plate-configurator {
		grid-template-columns: 1fr;
	}
}

.stbk-plate-configurator .stbk-panel {
	background: var(--stbk-surface);
	border: 1px solid var(--stbk-border);
	border-radius: 14px;
	padding: 20px;
}

.stbk-plate-configurator .stbk-panel-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.stbk-plate-configurator .stbk-panel-title {
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.3;
}
.stbk-plate-configurator .stbk-panel-subtitle {
	font-size: 12px;
	color: var(--stbk-text-muted);
	margin-top: 2px;
}

.stbk-plate-configurator .stbk-canvas-wrap {
	position: relative;
	background: linear-gradient(180deg, #fafaf7, #f0efe9);
	border: 1px solid var(--stbk-border);
	border-radius: 10px;
	height: 400px;
	overflow: hidden;
}
.stbk-plate-configurator .stbk-canvas {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
	touch-action: none;
}

.stbk-plate-configurator .stbk-material-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--stbk-border);
	border-radius: 100px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--stbk-text);
}
.stbk-plate-configurator .stbk-material-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #4b5259;
	flex: none;
}

.stbk-plate-configurator .stbk-geo-card {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stbk-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 12px;
	min-width: 190px;
}
.stbk-plate-configurator .stbk-geo-title {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--stbk-text-faint);
	text-transform: uppercase;
	margin-bottom: 8px;
}
.stbk-plate-configurator .stbk-geo-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0;
	color: var(--stbk-text-muted);
}
.stbk-plate-configurator .stbk-geo-row strong {
	color: var(--stbk-text);
	font-family: monospace;
	font-weight: 600;
}

@media (max-width: 900px) {
	.stbk-plate-configurator .stbk-viewer-panel {
		position: static;
	}
}
.stbk-plate-configurator .stbk-viewer-panel {
	position: sticky;
	top: 96px;
}

.stbk-plate-configurator .stbk-section {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--stbk-border);
}
.stbk-plate-configurator .stbk-section:last-of-type {
	border-bottom: none;
}
.stbk-plate-configurator .stbk-section-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--stbk-text-faint);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.stbk-plate-dims-row {
	display: flex;
	gap: 14px;
	margin-bottom: 12px;
}
.stbk-plate-dims-row label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85em;
	color: var(--stbk-text-muted);
}
.stbk-plate-dims-row input {
	padding: 8px 10px;
	border: 1.5px solid var(--stbk-border);
	border-radius: 8px;
	font-size: 1em;
}

.stbk-tile-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.stbk-tile {
	position: relative;
	background: var(--stbk-surface);
	border: 1.5px solid var(--stbk-border);
	border-radius: 10px;
	padding: 12px 10px;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--stbk-text);
}
.stbk-tile:hover {
	border-color: var(--stbk-text-faint);
}
.stbk-tile.is-active {
	border-color: var(--stbk-accent);
	background: var(--stbk-accent-bg);
}
.stbk-tile-label {
	font-weight: 700;
	font-size: 13.5px;
}
.stbk-tile-sub {
	font-size: 11px;
	color: var(--stbk-text-muted);
}
.stbk-tile.is-active .stbk-tile-sub {
	color: var(--stbk-accent);
}
.stbk-tile-check {
	position: absolute;
	top: 8px;
	right: 8px;
	color: var(--stbk-accent);
	display: flex;
}

.stbk-plate-hole-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-bottom: 8px;
}
.stbk-plate-hole-row label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.78em;
	color: var(--stbk-text-muted);
	flex: 1;
}
.stbk-plate-hole-row input,
.stbk-plate-hole-row select {
	padding: 6px 8px;
	border: 1px solid var(--stbk-border);
	border-radius: 6px;
	width: 100%;
}
.stbk-plate-hole-row input:disabled {
	background: var(--stbk-surface-alt);
	color: var(--stbk-text-faint);
}
.stbk-plate-hole-remove {
	border: none;
	background: none;
	color: #a9273a;
	cursor: pointer;
	font-size: 1.1em;
	padding: 6px 4px;
}

.stbk-plate-add-hole {
	border: 1.5px dashed var(--stbk-border);
	background: none;
	border-radius: 8px;
	padding: 8px 12px;
	width: 100%;
	cursor: pointer;
	color: var(--stbk-accent);
	font-weight: 600;
}
.stbk-plate-add-hole:hover {
	border-color: var(--stbk-accent);
	background: var(--stbk-accent-bg);
}

.stbk-plate-price-card {
	background: var(--stbk-accent-bg);
	border-radius: 10px;
	padding: 14px 16px;
}
.stbk-plate-price-total {
	font-size: 1.5em;
	font-weight: 800;
	color: var(--stbk-text);
}
.stbk-plate-price-breakdown {
	font-size: 0.8em;
	color: var(--stbk-text-muted);
	margin-top: 4px;
}
