:root {
	--dfc-navy: #071f4f;
	--dfc-blue: #0b66b1;
	--dfc-accent: #21c778;
	--dfc-ink: #13233f;
	--dfc-muted: #66738a;
	--dfc-surface: #f4f8fb;
	--dfc-border: rgba(19, 35, 63, 0.14);
	--dfc-shadow: 0 16px 40px rgba(7, 31, 79, 0.12);
}

.dfc-widget {
	box-sizing: border-box;
	width: 100%;
	margin: 24px 0;
	padding: 24px;
	border: 1px solid var(--dfc-border);
	border-radius: 8px;
	background: #fff;
	color: var(--dfc-ink);
	box-shadow: var(--dfc-shadow);
	font-family: inherit;
}

.dfc-widget *,
.dfc-widget *::before,
.dfc-widget *::after {
	box-sizing: border-box;
}

.dfc-widget__header {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 18px;
}

.dfc-widget__eyebrow,
.dfc-result-kicker {
	margin: 0;
	color: var(--dfc-blue);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.dfc-widget h2,
.dfc-section-title h2 {
	margin: 0;
	color: var(--dfc-navy);
	font-size: clamp(1.45rem, 2.2vw, 2rem);
	font-weight: 900;
	line-height: 1.1;
}

.dfc-battery-form,
.dfc-locator-bar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: end;
	padding: 18px;
	border-radius: 8px;
	background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%);
	border: 1px solid rgba(11, 102, 177, 0.16);
}

.dfc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dfc-field label {
	color: var(--dfc-ink);
	font-size: 0.84rem;
	font-weight: 800;
}

.dfc-field input,
.dfc-field select,
.dfc-locator-bar input {
	width: 100%;
	min-height: 46px;
	border: 1px solid rgba(7, 31, 79, 0.2);
	border-radius: 8px;
	background: #fff;
	color: var(--dfc-ink);
	font-size: 1rem;
	line-height: 1.3;
	padding: 10px 12px;
}

.dfc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	grid-column: 1 / -1;
}

.dfc-button,
.dfc-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 10px 16px;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dfc-button:hover,
.dfc-link-button:hover {
	transform: translateY(-1px);
}

.dfc-button--primary,
.dfc-link-button {
	background: var(--dfc-blue);
	color: #fff;
	box-shadow: 0 10px 20px rgba(11, 102, 177, 0.18);
}

.dfc-button--ghost {
	background: #fff;
	border-color: rgba(11, 102, 177, 0.26);
	color: var(--dfc-blue);
}

.dfc-status {
	min-height: 20px;
	margin-top: 12px;
	color: var(--dfc-muted);
	font-weight: 700;
}

.dfc-results,
.dfc-center-list {
	display: grid;
	gap: 14px;
	margin-top: 14px;
}

.dfc-battery-result,
.dfc-center-card,
.dfc-nearest {
	border: 1px solid var(--dfc-border);
	border-radius: 8px;
	background: #fff;
}

.dfc-battery-result {
	display: grid;
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 18px;
}

.dfc-battery-result img {
	width: 100%;
	max-height: 150px;
	object-fit: contain;
}

.dfc-battery-result h3,
.dfc-center-card h3,
.dfc-nearest h3 {
	margin: 4px 0 8px;
	color: var(--dfc-navy);
	font-size: 1.35rem;
	line-height: 1.15;
}

.dfc-battery-result p,
.dfc-center-card p {
	margin: 0 0 8px;
	color: var(--dfc-muted);
}

.dfc-nearest {
	padding: 18px;
	background: #f8fbff;
}

.dfc-center-card {
	padding: 16px;
}

.dfc-center-card header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dfc-center-card--compact {
	background: #fff;
}

.dfc-distance {
	flex: 0 0 auto;
	border-radius: 999px;
	background: rgba(33, 199, 120, 0.12);
	color: #087542;
	font-size: 0.82rem;
	font-weight: 900;
	padding: 5px 8px;
}

.dfc-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 12px;
}

.dfc-card-actions a:not(.dfc-link-button) {
	color: var(--dfc-blue);
	font-weight: 800;
}

.dfc-locator-widget {
	background: #071f4f;
	color: #fff;
}

.dfc-locator-bar {
	grid-template-columns: minmax(0, 1fr) auto;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
}

.dfc-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0;
}

.dfc-chip {
	min-height: 34px;
	border: 1px solid rgba(33, 199, 120, 0.65);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	padding: 6px 12px;
}

.dfc-chip.is-active,
.dfc-chip:hover {
	background: var(--dfc-accent);
	color: #06213b;
}

.dfc-locator-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
	gap: 18px;
	align-items: stretch;
}

.dfc-locator--map-off .dfc-locator-grid {
	grid-template-columns: 1fr;
}

.dfc-section-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.dfc-section-title h2 {
	color: #fff;
	font-size: 1.35rem;
}

.dfc-section-title span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	font-weight: 800;
}

.dfc-locator-widget .dfc-status {
	color: rgba(255, 255, 255, 0.78);
}

.dfc-locator-widget .dfc-center-card {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.dfc-locator-widget .dfc-center-card h3,
.dfc-locator-widget .dfc-center-card p {
	color: #fff;
}

.dfc-locator-widget .dfc-center-card p {
	opacity: 0.82;
}

.dfc-map {
	min-height: 440px;
	border: 1px solid rgba(33, 199, 120, 0.7);
	border-radius: 8px;
	background: #123b5a;
	overflow: hidden;
}

.dfc-map--hidden {
	display: none;
}

.dfc-empty {
	border: 1px dashed rgba(255, 255, 255, 0.24);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.78);
	padding: 18px;
}

@media (max-width: 800px) {
	.dfc-widget {
		padding: 18px;
	}

	.dfc-battery-form,
	.dfc-locator-bar,
	.dfc-locator-grid {
		grid-template-columns: 1fr;
	}

	.dfc-battery-result {
		grid-template-columns: 1fr;
	}

	.dfc-map {
		min-height: 320px;
	}
}
