.fv-grid-widget,
.fv-energy-card,
.fv-energy-header-card,
.fv-production-card {
	--fv-color-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, #0f2a42));
	--fv-color-secondary: var(--e-global-color-secondary, var(--wp--preset--color--secondary, #7fafd9));
	--fv-color-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #0f2a42));
	--fv-color-accent: var(--e-global-color-accent, var(--wp--preset--color--accent, #0c4f8f));
	--fv-color-bg: var(--wp--preset--color--base, #ffffff);
	--fv-color-danger: #e53935;
	--fv-color-warning: #ffbe0b;
	--fv-color-border: #bfd0df;
	--fv-color-border-soft: #d9e5f1;
	--fv-color-surface: #f7f9fc;
	--fv-color-surface-alt: #f9fcff;
	--fv-color-muted: #6f8196;
	--fv-color-muted-2: #7c8fa4;
	height: auto;
	min-height: 0;
}

.fv-grid-widget {
	--fv-gap: 2px;
	--fv-cell-w: 14px;
	--fv-cell-h: 18px;
	--fv-radius: 3px;
	--fv-available: var(--fv-color-secondary);
	--fv-selected: var(--fv-color-accent);
	--fv-occupied: var(--fv-color-danger);
	--fv-hidden-border: var(--fv-color-border-soft);
	--fv-border: var(--fv-color-border);
	--fv-cell-bg: var(--fv-color-bg);
	--fv-grid-padding: 10px;
	--fv-grid-vh: 78vh;
	--fv-grid-max-h: 820px;
	--fv-grid-max-w: 980px;
	--fv-text: var(--fv-color-text);
	font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
	margin-top: 0;
	padding-top: 0;
}

.fv-grid-widget__intro {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
	text-align: center;
}

.fv-grid-widget__intro-title {
	margin: 0;
	color: var(--fv-color-secondary);
	font-size: clamp(16px, 2.1vw, 28px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.fv-grid-widget__intro-subtitle {
	margin: 0 auto;
	max-width: 34ch;
	color: var(--fv-color-text);
	font-size: clamp(12px, 1.2vw, 16px);
	line-height: 1.18;
	font-weight: 700;
}

.fv-grid-widget__wrap {
	display: grid;
	gap: 10px;
	color: var(--fv-text);
}

.fv-grid-widget__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.fv-grid-widget__map-image {
	display: none;
	width: 100%;
	height: auto;
	user-select: none;
	pointer-events: none;
}

.fv-grid-widget__grid-holder {
	position: relative;
	width: 100%;
}

.fv-grid-widget__panel {
	display: block;
	padding: 0;
	min-width: 0;
	max-width: 100%;
}

.fv-grid-widget__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fv-grid-widget__toolbar button {
	padding: 7px 12px;
	border: 1px solid var(--fv-color-border);
	border-radius: 999px;
	background: var(--fv-color-bg);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--fv-color-text);
	transition: all 0.2s ease;
}

.fv-grid-widget__toolbar button:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(9, 37, 61, 0.15);
}

.fv-grid-widget__toolbar button[aria-pressed="true"] {
	background: var(--fv-color-primary);
	color: var(--fv-color-bg);
	border-color: var(--fv-color-primary);
}

.fv-grid-widget__size-row input[type="range"] {
	width: 190px;
}

.fv-grid-widget__pill {
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--fv-color-border);
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--fv-color-bg);
	color: var(--fv-color-text);
}

.fv-grid-widget__small {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.86;
}

.fv-grid-widget__stats {
	font-size: 13px;
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--fv-color-border-soft);
	border-radius: 14px;
	background: var(--fv-color-bg);
}

.fv-grid-widget__statline {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.fv-grid-widget__separator {
	width: 100%;
	border: 0;
	height: 1px;
	background: var(--fv-color-border-soft);
	margin: 2px 0;
}

.fv-grid-widget__note {
	font-size: 12px;
	line-height: 1.35;
	opacity: 0.86;
}

.fv-grid-widget__grid {
	display: grid;
	gap: var(--fv-gap);
	border: 0;
	padding: calc(var(--fv-grid-padding) + 4px);
	border-radius: 18px;
	background: transparent;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: min(var(--fv-grid-vh), var(--fv-grid-max-h));
	overflow: auto;
	touch-action: none;
	position: relative;
	box-sizing: border-box;
	justify-content: center;
	align-content: start;
}

.fv-grid-widget--fit .fv-grid-widget__grid {
	overflow: hidden;
}

.fv-grid-widget--map .fv-grid-widget__stage {
	max-width: var(--fv-map-max-w, 1280px);
	margin: 0 auto;
}

.fv-grid-widget--map .fv-grid-widget__map-image {
	display: block;
}

.fv-grid-widget--map .fv-grid-widget__grid-holder {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.fv-grid-widget--map .fv-grid-widget__grid {
	position: absolute;
	top: var(--fv-map-grid-top, 16%);
	left: var(--fv-map-grid-left, 22%);
	width: var(--fv-map-grid-width, 56%);
	height: var(--fv-map-grid-height, 56%);
	max-width: none;
	max-height: none;
	padding: 4px;
	overflow: hidden;
	pointer-events: auto;
}

.fv-grid-widget__cell {
	width: var(--fv-cell-w);
	height: var(--fv-cell-h);
	border-radius: var(--fv-radius);
	border: 1px solid var(--fv-border);
	box-sizing: border-box;
	background: var(--fv-cell-bg);
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.fv-grid-widget__cell[data-state="available"] {
	background: var(--fv-available);
	background: color-mix(in srgb, var(--fv-available) 35%, var(--fv-color-bg));
}

.fv-grid-widget__cell[data-state="selected"] {
	background: var(--fv-selected);
}

.fv-grid-widget__cell[data-state="occupied"] {
	background: var(--fv-occupied);
	cursor: not-allowed;
}

.fv-grid-widget__cell[data-state="hidden"] {
	background: var(--fv-color-bg);
	border-color: transparent;
	cursor: default;
}

.fv-grid-widget__cell:hover {
	transform: scale(1.04);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

.fv-grid-widget__cell.is-preview {
	outline: 2px solid var(--fv-color-primary);
	outline-offset: -2px;
}

.fv-energy-header-card {
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	border-radius: 16px;
	overflow: hidden;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
	margin-top: 20px;
}

.fv-energy-card {
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	border-radius: 16px;
	overflow: hidden;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--fv-color-text);
	font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
	container-type: inline-size;
	margin-top: 20px;
	padding-top: 0;
}

.fv-energy-card__hero {
	background: var(--fv-color-secondary);
	padding: 16px 16px 14px;
	color: var(--fv-color-bg);
}

.fv-energy-card__logo {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: lowercase;
	overflow-wrap: anywhere;
}

.fv-energy-card__logo-img {
	display: block;
	width: 34px;
	max-width: 100%;
	height: auto;
}

.fv-energy-header-card .fv-energy-card__logo-img {
	width: 120px;
}

.fv-energy-card__hero-title {
	margin: 12px 0 6px;
	font-size: clamp(15px, 1.7vw, 24px);
	font-weight: 800;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.fv-energy-card__hero-subtitle {
	margin: 0;
	font-size: clamp(12px, 1.2vw, 18px);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.fv-energy-card__body {
	padding: 14px;
	display: grid;
	gap: 12px;
}

.fv-energy-card__package {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fv-energy-card__package-label {
	font-size: clamp(14px, 1.1vw, 20px);
	font-weight: 700;
	line-height: 1.2;
}

.fv-energy-card__package-value-wrap {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 1px;
}

.fv-energy-card__bolt {
	grid-row: 1 / 3;
	font-size: clamp(14px, 1.2vw, 22px);
	color: var(--fv-color-warning);
	line-height: 1;
}

.fv-energy-card__package-value {
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 800;
	line-height: 1;
	text-align: right;
}

.fv-energy-card__package-unit {
	font-size: clamp(14px, 1.5vw, 22px);
	font-weight: 800;
	line-height: 1.02;
	text-align: right;
}

.fv-energy-card__packages {
	margin: 0;
	font-size: clamp(12px, 0.85vw, 15px);
	line-height: 1.36;
	color: var(--fv-color-muted);
	overflow-wrap: anywhere;
}

.fv-energy-card__minimum {
	border: 1px solid var(--fv-color-border-soft);
	border-radius: 12px;
	padding: 10px 12px;
	background: var(--fv-color-bg);
	display: grid;
	gap: 6px;
}

.fv-energy-card__minimum-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: clamp(14px, 1vw, 18px);
	line-height: 1.25;
}

.fv-energy-card__minimum-row strong {
	font-size: clamp(16px, 1.2vw, 22px);
	font-weight: 800;
}

.fv-energy-card__minimum-status {
	font-size: clamp(12px, 0.8vw, 14px);
	font-weight: 600;
}

.fv-energy-card__minimum-status.is-ok {
	color: var(--fv-color-muted);
}

.fv-energy-card__minimum-status.is-ko {
	color: var(--fv-color-danger);
}

.fv-energy-card__progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: clamp(14px, 1vw, 18px);
}

.fv-energy-card__progress-head strong {
	font-size: clamp(14px, 1vw, 18px);
	font-weight: 700;
}

.fv-energy-card__progress-track {
	height: 10px;
	border-radius: 999px;
	background: var(--fv-color-border-soft);
	overflow: hidden;
}

.fv-energy-card__progress-bar {
	width: 0%;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--fv-color-primary) 0%, var(--fv-color-accent) 100%);
	transition: width 0.35s ease;
}

.fv-energy-card__cta-lead {
	margin: 0;
	text-align: center;
	font-size: clamp(15px, 1.1vw, 18px);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.fv-energy-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--fv-color-primary);
	color: var(--fv-color-bg);
	text-decoration: none;
	font-size: clamp(14px, 1.05vw, 18px);
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 12px 20px rgba(5, 28, 50, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fv-energy-card__cta:hover {
	transform: translateY(-1px);
	filter: brightness(0.92);
	box-shadow: 0 16px 26px rgba(5, 28, 50, 0.3);
}

.fv-energy-card__empty {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--fv-color-muted-2);
}

@container (max-width: 760px) {
	.fv-energy-card__hero {
		padding: 14px 12px 12px;
	}

	.fv-energy-card__body {
		padding: 12px;
		gap: 10px;
	}

	.fv-energy-card__package {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.fv-energy-card__package-value-wrap {
		align-self: flex-end;
	}

	.fv-energy-card__minimum-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

@container (max-width: 520px) {
	.fv-energy-card {
		border-radius: 12px;
	}

	.fv-energy-header-card {
		border-radius: 12px;
	}

	.fv-energy-card__logo {
		font-size: 24px;
	}

	.fv-energy-card__logo-img {
		width: 30px;
	}

	.fv-energy-header-card .fv-energy-card__logo-img {
		width: 96px;
	}

	.fv-energy-card__hero-title {
		font-size: 20px;
	}

	.fv-energy-card__hero-subtitle {
		font-size: 15px;
	}

	.fv-energy-card__package-value {
		font-size: 28px;
	}

	.fv-energy-card__package-unit {
		font-size: 18px;
	}
}

.fv-production-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	padding: 22px 24px;
	border-radius: 28px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--fv-color-text);
	font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
	margin-top: 20px;
}

.fv-production-card__col {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 10px;
}

.fv-production-card__title {
	margin: 0;
	font-size: clamp(16px, 1.5vw, 34px);
	line-height: 1.08;
	font-weight: 800;
}

.fv-production-gauge {
	position: relative;
	max-width: 340px;
}

.fv-production-gauge__svg {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
}

.fv-production-gauge__track {
	fill: none;
	stroke: var(--fv-color-border-soft);
	stroke-width: 17;
	stroke-linecap: round;
}

.fv-production-gauge__fill {
	fill: none;
	stroke: var(--fv-color-accent);
	stroke-width: 17;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.4s ease;
}

.fv-production-gauge__needle {
	stroke: var(--fv-color-primary);
	stroke-width: 3.2;
	stroke-linecap: round;
	transition: x2 0.35s ease, y2 0.35s ease;
}

.fv-production-gauge__hub {
	fill: var(--fv-color-primary);
}

.fv-production-gauge__labels {
	position: static;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--fv-color-muted);
	max-width: 340px;
	line-height: 1.15;
	white-space: nowrap;
}

.fv-production-card__power {
	font-size: clamp(24px, 2vw, 46px);
	line-height: 1.02;
	font-weight: 800;
}

.fv-production-card__updated {
	font-size: clamp(13px, 1vw, 18px);
	color: var(--fv-color-muted);
}

.fv-production-bars {
	height: 170px;
	border-radius: 14px;
	padding: 0;
	display: block;
	background: var(--fv-color-bg);
	overflow: hidden;
}

.fv-production-bars__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fv-production-bars__guide {
	fill: var(--fv-color-border-soft);
}

.fv-production-bars__bar {
	fill: var(--fv-color-accent);
}

.fv-production-card__total {
	font-size: clamp(20px, 1.6vw, 34px);
	line-height: 1.06;
	font-weight: 800;
	text-align: center;
}

.fv-production-card__empty {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fv-color-muted-2);
}

.fv-grid-widget__hidden {
	display: none !important;
}

@media (max-width: 991px) {
	.fv-energy-card__hero {
		padding: 14px 12px 12px;
	}

	.fv-energy-card__logo {
		font-size: 26px;
	}

	.fv-energy-card__body {
		padding: 12px;
		gap: 10px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-fv_pv_grid,
	.elementor-widget-fv_pv_energy_header,
	.elementor-widget-fv_pv_energy_listener,
	.elementor-widget-fv_pv_production_charts,
	.elementor-widget-fv_pv_grid .elementor-widget-container,
	.elementor-widget-fv_pv_energy_header .elementor-widget-container,
	.elementor-widget-fv_pv_energy_listener .elementor-widget-container,
	.elementor-widget-fv_pv_production_charts .elementor-widget-container {
		height: auto !important;
		min-height: 0 !important;
	}

	.elementor-widget-fv_pv_energy_listener .fv-energy-card,
	.elementor-widget-fv_pv_energy_listener .fv-energy-card__body {
		height: auto !important;
		min-height: 0 !important;
	}

	.elementor-widget-fv_pv_energy_listener,
	.elementor-widget-fv_pv_energy_listener .elementor-widget-container,
	.elementor-widget-fv_pv_energy_listener .fv-energy-card {
		width: 100% !important;
		max-width: 100% !important;
	}

	.fv-grid-widget__grid {
		max-width: 100%;
	}

	.fv-grid-widget__toolbar button {
		font-size: 12px;
	}

	.fv-energy-card {
		border-radius: 14px;
	}

	.fv-energy-header-card {
		border-radius: 14px;
	}

	.fv-energy-card__package {
		flex-direction: column;
		align-items: flex-start;
	}

	.fv-energy-card__package-value-wrap {
		align-self: flex-end;
	}

	.fv-production-card {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 16px;
		border-radius: 20px;
	}

	.fv-production-bars {
		height: 145px;
	}
}
