/*!
 * EV Charging Time Estimator — module CSS (e2z-evc- prefix).
 * Color scheme (spec): Primary #4338CA (charge indigo), Secondary #1E1B4B,
 * Accent #22D3EE (electric cyan), BG #EEF2FF.
 * Scope: .e2z-tool-ev-charging-time-estimator (framework shortcode wrapper).
 */

.e2z-tool-ev-charging-time-estimator,
.e2z-tool-ev-charging-time-estimator *,
.e2z-tool-ev-charging-time-estimator *::before,
.e2z-tool-ev-charging-time-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1E1B4B;
	width: 100%;
	margin: 0 auto;
	background: #EEF2FF;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(67, 56, 202, 0.14);
	overflow: hidden;
}

/* Monospace technical fields */
.e2z-tool-ev-charging-time-estimator .e2z-evc-mono,
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-value,
.e2z-tool-ev-charging-time-estimator .e2z-evc-formula,
.e2z-tool-ev-charging-time-estimator .e2z-evc-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

/* Header */
.e2z-tool-ev-charging-time-estimator .e2z-evc-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #1E1B4B, #4338CA);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #22D3EE;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-title {
	font-size: 1.7rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-subtitle {
	font-size: 0.86rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-ev-charging-time-estimator .e2z-evc-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-ev-charging-time-estimator .e2z-evc-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-ev-charging-time-estimator .e2z-evc-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-results-panel { flex: 3; min-width: 360px; }
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-inputs-panel,
.e2z-tool-ev-charging-time-estimator .e2z-evc-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #C7D2FE;
	box-shadow: 0 2px 8px rgba(67, 56, 202, 0.05);
	min-width: 0;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #4338CA;
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #CFFAFE;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-inputs-panel .e2z-evc-section-title { margin-top: 16px; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-inputs-panel .e2z-evc-section-title:first-child { margin-top: 0; }

/* Tabs */
.e2z-tool-ev-charging-time-estimator .e2z-evc-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	background: #EEF2FF;
	padding: 4px;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-tab {
	flex: 1;
	min-width: 140px;
	min-height: 44px;
	padding: 10px 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #4338CA;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-tab-active {
	background: #4338CA;
	color: #fff;
}

/* Fields */
.e2z-tool-ev-charging-time-estimator .e2z-evc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-field {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-row .e2z-evc-field { margin-bottom: 0; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #3730A3;
	margin-bottom: 4px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-hint {
	font-size: 0.73rem;
	color: #A5B4FC;
	margin-top: 5px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #C7D2FE;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #1E1B4B;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-input:focus {
	outline: none;
	border-color: #22D3EE;
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
}

/* Button */
.e2z-tool-ev-charging-time-estimator .e2z-evc-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #4338CA;
	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-ev-charging-time-estimator .e2z-evc-calc-btn:hover { filter: brightness(1.2); }
.e2z-tool-ev-charging-time-estimator .e2z-evc-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.6);
}

/* Results */
.e2z-tool-ev-charging-time-estimator .e2z-evc-empty-state {
	padding: 24px;
	text-align: center;
	color: #6B7280;
	background: #F5F7FF;
	border-radius: 8px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #1E1B4B;
	border-bottom: 3px solid #22D3EE;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #67E8F9;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #A5B4FC;
	margin: 0;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 6px;
	background: #CFFAFE;
	color: #0E7490;
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-result-block {
	background: #F5F7FF;
	border: 1px solid #E0E7FF;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-result-block h3 {
	font-size: 1rem;
	color: #1E1B4B;
	margin: 0 0 10px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat {
	background: #fff;
	border: 1px solid #E0E7FF;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #6B7280;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1E1B4B;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-indigo .e2z-evc-stat-value { color: #4338CA; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-stat-cyan .e2z-evc-stat-value { color: #0891B2; }

/* Segment bar */
.e2z-tool-ev-charging-time-estimator .e2z-evc-segbar {
	display: flex;
	height: 26px;
	border-radius: 6px;
	overflow: hidden;
	margin: 10px 0 4px;
	border: 1px solid #C7D2FE;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-seg-fast { background: #22D3EE; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-seg-slow { background: #6366F1; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-seg-label {
	font-size: 0.7rem;
	color: #4B5563;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

/* Road-trip table */
.e2z-tool-ev-charging-time-estimator .e2z-evc-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	background: #fff;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-table th {
	background: #1E1B4B;
	color: #67E8F9;
	padding: 8px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-table td {
	padding: 7px 8px;
	text-align: center;
	border-bottom: 1px solid #EEF2FF;
	white-space: nowrap;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-table tbody tr:nth-child(odd) { background: #F5F7FF; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-table tfoot td {
	font-weight: 800;
	background: #CFFAFE;
	color: #0E7490;
	border-top: 2px solid #22D3EE;
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-formula {
	display: block;
	background: #1E1B4B;
	color: #67E8F9;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.82rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-steps {
	list-style: none;
	margin: 0;
	padding: 0;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-steps li {
	padding: 7px 10px 7px 12px;
	border-left: 3px solid #22D3EE;
	margin-bottom: 7px;
	background: #fff;
	border-radius: 0 6px 6px 0;
	font-size: 0.86rem;
	border-top: 1px solid #EEF2FF;
	border-right: 1px solid #EEF2FF;
	border-bottom: 1px solid #EEF2FF;
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-note-info { background: #CFFAFE; color: #155E75; border-left: 3px solid #22D3EE; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-ev-charging-time-estimator .e2z-evc-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-ev-charging-time-estimator .e2z-evc-print-btn,
.e2z-tool-ev-charging-time-estimator .e2z-evc-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-ev-charging-time-estimator .e2z-evc-print-btn { background: #1E1B4B; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-copy-btn { background: #4338CA; }
.e2z-tool-ev-charging-time-estimator .e2z-evc-print-btn:hover,
.e2z-tool-ev-charging-time-estimator .e2z-evc-copy-btn:hover { filter: brightness(1.3); }

.e2z-tool-ev-charging-time-estimator .e2z-evc-disclaimer {
	font-size: 0.75rem;
	color: #A5B4FC;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-ev-charging-time-estimator .e2z-evc-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-ev-charging-time-estimator .e2z-evc-title { font-size: 1.3rem; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-inputs-panel,
	.e2z-tool-ev-charging-time-estimator .e2z-evc-results-panel { padding: 14px; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-hero-value { font-size: 1.55rem; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-tab { min-width: 100%; }
}
@media (max-width: 360px) {
	.e2z-tool-ev-charging-time-estimator .e2z-evc-header { padding: 16px 10px; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-title { font-size: 1.1rem; }
	.e2z-tool-ev-charging-time-estimator .e2z-evc-field { min-width: 100%; }
}
