/* Kalkulator kosztów ogrzewania pelletem — style widżetu. Scope: .ekp-calc */
.ekp-calc {
	--ekp-accent: #2e7d32;
	--ekp-border: #d8d8d8;
	max-width: 560px;
	margin: 1.5rem 0;
	padding: 1.25rem;
	border: 1px solid var(--ekp-border);
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.5;
}

.ekp-calc .ekp-tabs {
	display: flex;
	gap: .5rem;
	margin-bottom: 1rem;
}

.ekp-calc .ekp-tab {
	flex: 1;
	padding: .6rem .75rem;
	border: 1px solid var(--ekp-border);
	border-radius: 8px;
	background: #f5f5f5;
	cursor: pointer;
	font: inherit;
	color: #333;
}

.ekp-calc .ekp-tab.is-active {
	background: var(--ekp-accent);
	border-color: var(--ekp-accent);
	color: #fff;
	font-weight: 600;
}

.ekp-calc .ekp-tab:focus-visible {
	outline: 2px solid var(--ekp-accent);
	outline-offset: 2px;
}

.ekp-calc .ekp-panel {
	display: grid;
	gap: .85rem;
}

.ekp-calc .ekp-hidden {
	display: none;
}

.ekp-calc .ekp-label {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-weight: 600;
}

.ekp-calc .ekp-label input,
.ekp-calc .ekp-label select {
	padding: .55rem .6rem;
	border: 1px solid var(--ekp-border);
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
}

.ekp-calc .ekp-label small {
	font-weight: 400;
	color: #666;
	font-size: .85rem;
}

.ekp-calc .ekp-result {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ekp-border);
}

.ekp-calc .ekp-result:empty {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.ekp-calc .ekp-cost {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--ekp-accent);
}

.ekp-calc .ekp-cost span {
	font-size: .95rem;
	font-weight: 400;
	color: #666;
}

.ekp-calc .ekp-breakdown {
	list-style: none;
	margin: .75rem 0 0;
	padding: 0;
	display: grid;
	gap: .35rem;
}

.ekp-calc .ekp-cta {
	display: inline-block;
	margin-top: .35rem;
	color: var(--ekp-accent);
	font-weight: 600;
	text-decoration: none;
}

.ekp-calc .ekp-cta:hover {
	text-decoration: underline;
}

.ekp-calc .ekp-note {
	margin: .9rem 0 0;
	font-size: .82rem;
	color: #777;
}

@media (max-width: 480px) {
	.ekp-calc {
		padding: 1rem;
	}
	.ekp-calc .ekp-tabs {
		flex-direction: column;
	}
	.ekp-calc .ekp-cost {
		font-size: 1.5rem;
	}
}
