/* Rexperts Solar Designer */
.rsd {
	--rsd-brand: #123b32;
	--rsd-brand-text: #ffffff;
	--rsd-accent: #d3ef78;
	--rsd-panel: #0f1d2b;
	--rsd-ink: #123b32;
	--rsd-muted: #576b64;
	--rsd-line: #dbe4de;
	--rsd-bg: #ffffff;
	--rsd-soft: #edf3ed;
	--rsd-ok: #1e7b4f;
	--rsd-warn: #8a5a00;
	--rsd-err: #b42318;
	--rsd-radius: 18px;
	--rsd-map-h: 560px;
	color: var(--rsd-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}
.rsd *, .rsd *::before, .rsd *::after { box-sizing: border-box; }
.rsd [hidden] { display: none !important; }

.rsd-head { margin-bottom: 20px; }
.rsd-title { margin: 0 0 6px; }
.rsd-intro { margin: 0 0 16px; color: var(--rsd-muted); }
.rsd-label { display: block; font-weight: 600; margin-bottom: 6px; }
.rsd-search-slot { max-width: 640px; }
.rsd-ac { width: 100%; color-scheme: light; }
.rsd-search-row { display: flex; gap: 8px; }
.rsd-input, .rsd select, .rsd input[type="number"], .rsd-modal input:not([type="checkbox"]), .rsd-modal textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #c9ced8;
	border-radius: 8px;
	font: inherit;
	color: inherit;
	background: #fff;
}
.rsd-input:focus, .rsd select:focus, .rsd input:focus, .rsd textarea:focus {
	outline: 2px solid var(--rsd-brand);
	outline-offset: 1px;
}

.rsd-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
	scroll-margin-top: 80px;
}
.rsd-map-wrap { position: relative; }
.rsd-map {
	height: var(--rsd-map-h);
	border-radius: var(--rsd-radius);
	overflow: hidden;
	background: #20252e;
}
.rsd-map.rsd-picking { cursor: crosshair; outline: 3px solid var(--rsd-brand); }
.rsd-map-legend {
	position: absolute;
	left: 12px;
	bottom: 12px;
	right: 60px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding: 8px 12px;
	background: rgba(20, 24, 33, 0.82);
	color: #fff;
	font-size: 13px;
	border-radius: 8px;
	pointer-events: none;
}
.rsd-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rsd-sw { display: inline-block; width: 12px; height: 18px; border: 1px solid #fff; border-radius: 2px; }
.rsd-sw-on { background: var(--rsd-panel); border-color: var(--rsd-accent); }
.rsd-sw-off { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.rsd-hint { opacity: 0.85; }

.rsd-panel {
	border: 1px solid var(--rsd-line);
	border-radius: var(--rsd-radius);
	background: var(--rsd-bg);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.rsd-status { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--rsd-soft); }
.rsd-status:empty { display: none; }
.rsd-status-ok { background: #ecf7f1; color: var(--rsd-ok); }
.rsd-status-warn { background: #fff6e5; color: var(--rsd-warn); }
.rsd-status-error { background: #fdecea; color: var(--rsd-err); }
.rsd-error { color: var(--rsd-err); }

.rsd-controls { display: flex; flex-direction: column; gap: 16px; }
.rsd-field { display: flex; flex-direction: column; gap: 6px; }
.rsd-field label { font-weight: 600; font-size: 15px; }
.rsd-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rsd-row output { font-weight: 700; font-size: 20px; }
.rsd-small { font-size: 13px; color: var(--rsd-muted); margin: 0; }
.rsd input[type="range"] { width: 100%; accent-color: var(--rsd-brand); }
.rsd-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.rsd-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rsd-brand); flex: none; }

.rsd-sel {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px;
	padding: 8px 10px;
	margin: 8px 0;
	border-radius: 8px;
	background: rgba(245, 183, 0, 0.15);
	border: 1px solid #f5b700;
	font-size: 14px;
}

.rsd-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-weight: 600;
}

.rsd-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--rsd-brand);
	color: var(--rsd-brand-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s;
}
.rsd-btn:hover { filter: brightness(1.25); }
.rsd-btn:disabled { opacity: 0.6; cursor: wait; }
.rsd-btn-sm { width: auto; padding: 11px 18px; }

.rsd-results { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--rsd-line); padding-top: 16px; }
.rsd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsd-stat { background: var(--rsd-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.rsd-stat-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rsd-stat-l { font-size: 12px; color: var(--rsd-muted); }
.rsd-price { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 12px; background: var(--rsd-brand); color: #fff; }
.rsd-price .rsd-small, .rsd-price .rsd-price-l { color: #d2dfd4; }
.rsd-price-l { font-size: 13px; font-weight: 600; color: var(--rsd-muted); }
.rsd-price-v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rsd-savings { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rsd-savings div { display: flex; justify-content: space-between; gap: 8px; }
.rsd-savings dt { color: var(--rsd-muted); }
.rsd-savings dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rsd-disclaimer { font-size: 12px; color: var(--rsd-muted); margin: 0; }

.rsd-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: rsd-spin 0.8s linear infinite;
}
@keyframes rsd-spin { to { transform: rotate(360deg); } }

.rsd-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 14, 22, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.rsd-modal-box {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: var(--rsd-ink);
	border-radius: var(--rsd-radius);
	padding: 24px;
}
.rsd-modal-box h3 { margin: 0 0 6px; }
.rsd-modal-x {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--rsd-muted);
}
.rsd-modal form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.rsd-modal form > label:not(.rsd-check) { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.rsd-modal .rsd-check { font-size: 14px; }
.rsd-modal .rsd-check a { color: inherit; }
.rsd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rsd-form-msg { font-size: 14px; }
.rsd-form-msg:empty { display: none; }

@media (max-width: 900px) {
	.rsd-body { grid-template-columns: 1fr; }
	.rsd-map { height: min(var(--rsd-map-h), 70vh); }
}
@media (max-width: 480px) {
	.rsd-panel { padding: 14px; }
	.rsd-map-legend { right: 12px; font-size: 12px; }
	.rsd-price-v { font-size: 22px; }
}

/* Guard against site-wide resets (e.g. img{max-width:100%}) that break Google Maps tiles. */
.rsd .rsd-map img { max-width: none !important; }
.rsd p { margin-bottom: 0; }
.rsd h2, .rsd h3 { letter-spacing: -0.03em; }
