/*!
 * Carbon Footprint Calculator — module CSS (e2z-cfp- prefix).
 * Color scheme (spec): Primary #3F6212 (earthy lime-green), Secondary #1C1917,
 * Accent #0EA5E9, BG #F7FEE7.
 * Scope: .e2z-tool-carbon-footprint-calculator (framework shortcode wrapper).
 */

.e2z-tool-carbon-footprint-calculator,
.e2z-tool-carbon-footprint-calculator *,
.e2z-tool-carbon-footprint-calculator *::before,
.e2z-tool-carbon-footprint-calculator *::after {
	box-sizing: border-box;
}

.e2z-tool-carbon-footprint-calculator .e2z-cfp-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1C1917;
	width: 100%;
	margin: 0 auto;
	background: #F7FEE7;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(63, 98, 18, 0.14);
	overflow: hidden;
}

/* Monospace technical fields */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-mono,
.e2z-tool-carbon-footprint-calculator .e2z-cfp-stat-value,
.e2z-tool-carbon-footprint-calculator .e2z-cfp-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

/* Header */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #1C1917, #3F6212);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #0EA5E9;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-subtitle {
	font-size: 0.83rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-inputs-panel { flex: 3; min-width: 0; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-results-panel { flex: 2; min-width: 320px; }
}

.e2z-tool-carbon-footprint-calculator .e2z-cfp-inputs-panel,
.e2z-tool-carbon-footprint-calculator .e2z-cfp-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #D9F99D;
	box-shadow: 0 2px 8px rgba(63, 98, 18, 0.05);
	min-width: 0;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-section-title {
	font-size: 1rem;
	font-weight: 600;
	color: #3F6212;
	margin: 16px 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #ECFCCB;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-inputs-panel > .e2z-cfp-section-title:first-of-type { margin-top: 4px; }

/* Period toggle */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-period-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-toggle {
	display: inline-flex;
	background: #ECFCCB;
	padding: 4px;
	border-radius: 8px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-toggle-btn {
	min-height: 40px;
	padding: 8px 18px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #4D7C0F;
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-toggle-active {
	background: #3F6212;
	color: #fff;
}

/* Fields */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-field {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-row .e2z-cfp-field { margin-bottom: 0; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-label {
	font-size: 0.84rem;
	font-weight: 500;
	color: #4D7C0F;
	margin-bottom: 4px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-hint {
	font-size: 0.72rem;
	color: #A3B77E;
	margin-top: 5px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #D9F99D;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #1C1917;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-input:focus {
	outline: none;
	border-color: #0EA5E9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* Button */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #3F6212;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
	margin-top: 6px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-calc-btn:hover { filter: brightness(1.2); }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.55);
}

/* Results */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-empty-state {
	padding: 24px;
	text-align: center;
	color: #78716C;
	background: #FAFDF3;
	border-radius: 8px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #1C1917;
	border-bottom: 3px solid #0EA5E9;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #A3E635;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #BEF264;
	margin: 0;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	margin-top: 6px;
	background: #E0F2FE;
	color: #0369A1;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-badge-above { background: #FEE2E2; color: #B91C1C; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-badge-below { background: #DCFCE7; color: #15803D; }

.e2z-tool-carbon-footprint-calculator .e2z-cfp-result-block {
	background: #FAFDF3;
	border: 1px solid #ECFCCB;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-result-block h3 {
	font-size: 1rem;
	color: #1C1917;
	margin: 0 0 10px;
}

/* Breakdown bars */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #44403C;
	min-width: 92px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-track {
	flex: 1;
	height: 20px;
	background: #ECFCCB;
	border-radius: 10px;
	overflow: hidden;
	min-width: 60px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-fill {
	height: 100%;
	border-radius: 10px;
	background: #3F6212;
	transition: width 0.3s ease;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-fill-dom { background: #0EA5E9; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-val {
	font-size: 0.78rem;
	font-weight: 700;
	color: #3F6212;
	min-width: 84px;
	text-align: right;
	font-family: 'SF Mono', monospace;
}

.e2z-tool-carbon-footprint-calculator .e2z-cfp-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-stat {
	background: #fff;
	border: 1px solid #ECFCCB;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #78716C;
	margin: 0 0 3px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #3F6212;
	margin: 0;
	word-break: break-word;
}

.e2z-tool-carbon-footprint-calculator .e2z-cfp-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-note-info { background: #E0F2FE; color: #075985; border-left: 3px solid #0EA5E9; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-note-tip { background: #ECFCCB; color: #3F6212; border-left: 3px solid #65A30D; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-carbon-footprint-calculator .e2z-cfp-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-print-btn,
.e2z-tool-carbon-footprint-calculator .e2z-cfp-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.e2z-tool-carbon-footprint-calculator .e2z-cfp-print-btn { background: #1C1917; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-copy-btn { background: #3F6212; }
.e2z-tool-carbon-footprint-calculator .e2z-cfp-print-btn:hover,
.e2z-tool-carbon-footprint-calculator .e2z-cfp-copy-btn:hover { filter: brightness(1.3); }

.e2z-tool-carbon-footprint-calculator .e2z-cfp-disclaimer {
	font-size: 0.75rem;
	color: #A3B77E;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-carbon-footprint-calculator .e2z-cfp-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-title { font-size: 1.2rem; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-inputs-panel,
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-results-panel { padding: 14px; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-hero-value { font-size: 1.6rem; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-bar-label { min-width: 76px; font-size: 0.74rem; }
}
@media (max-width: 360px) {
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-header { padding: 16px 10px; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-title { font-size: 1.05rem; }
	.e2z-tool-carbon-footprint-calculator .e2z-cfp-field { min-width: 100%; }
}
