/**
 * EFM Distribution Lookup
 * Public coverage area search UI
 */

.efm-dist-lookup {
	--efm-dist-bg: #050505;
	--efm-dist-panel: rgba(20, 20, 18, 0.94);
	--efm-dist-panel-2: rgba(32, 32, 29, 0.90);
	--efm-dist-line: rgba(239, 211, 137, 0.22);
	--efm-dist-line-strong: rgba(239, 211, 137, 0.48);
	--efm-dist-gold: #efd389;
	--efm-dist-gold-soft: #d8bd75;
	--efm-dist-text: #f6f0e3;
	--efm-dist-muted: rgba(246, 240, 227, 0.68);
	--efm-dist-muted-2: rgba(246, 240, 227, 0.48);
	--efm-dist-danger: #ffd0d0;
	color: var(--efm-dist-text);
	width: 100%;
}

.efm-dist-lookup,
.efm-dist-lookup * {
	box-sizing: border-box;
}

.efm-dist-shell {
	width: min(1160px, calc(100% - 32px));
	margin: 0 auto;
	padding: 36px;
	border: 1px solid var(--efm-dist-line);
	border-radius: 24px;
	background:
		radial-gradient(circle at 20% 0%, rgba(239, 211, 137, 0.13), transparent 34%),
		linear-gradient(135deg, rgba(255,255,255,0.06), transparent 32%),
		var(--efm-dist-panel);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
	position: relative;
	overflow: hidden;
}

.efm-dist-shell::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(255, 255, 255, 0.055);
	border-radius: 18px;
	pointer-events: none;
}

.efm-dist-hero {
	position: relative;
	text-align: center;
	max-width: 780px;
	margin: 0 auto 28px;
	z-index: 1;
}

.efm-dist-kicker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	color: var(--efm-dist-gold);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.efm-dist-hero h2 {
	margin: 0 0 12px;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 0.98;
	letter-spacing: -0.055em;
	color: var(--efm-dist-text);
}

.efm-dist-hero p {
	margin: 0 auto;
	max-width: 650px;
	color: var(--efm-dist-muted);
	font-size: 15px;
	line-height: 1.65;
}

.efm-dist-panel {
	position: relative;
	z-index: 1;
	margin: 24px auto 18px;
	padding: 22px;
	border: 1px solid var(--efm-dist-line);
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
		rgba(0, 0, 0, 0.28);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.efm-dist-search-main label,
.efm-dist-filter label {
	display: block;
	margin-bottom: 8px;
	color: var(--efm-dist-gold);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.efm-dist-search-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
}

.efm-dist-search-input,
.efm-dist-state-filter,
.efm-dist-type-filter,
.efm-dist-pricing-filter {
	width: 100%;
	min-height: 48px;
	border: 1px solid rgba(239, 211, 137, 0.26);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.42);
	color: var(--efm-dist-text);
	padding: 0 18px;
	font-size: 15px;
	outline: none;
	box-shadow: inset 0 1px 10px rgba(0,0,0,0.35);
}

.efm-dist-type-filter,
.efm-dist-pricing-filter {
	appearance: auto;
}

.efm-dist-search-input::placeholder,
.efm-dist-state-filter::placeholder {
	color: rgba(246, 240, 227, 0.38);
}

.efm-dist-search-input:focus,
.efm-dist-state-filter:focus,
.efm-dist-type-filter:focus,
.efm-dist-pricing-filter:focus {
	border-color: var(--efm-dist-line-strong);
	box-shadow:
		0 0 0 3px rgba(239, 211, 137, 0.08),
		inset 0 1px 10px rgba(0,0,0,0.35);
}

.efm-dist-search-btn {
	min-height: 48px;
	border: 1px solid rgba(239, 211, 137, 0.52);
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
		linear-gradient(135deg, #3a321e, #0f0f0d);
	color: #fff7dd;
	padding: 0 24px;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0,0,0,0.32);
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.efm-dist-search-btn:hover {
	border-color: rgba(239, 211, 137, 0.82);
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(0,0,0,0.42);
}

.efm-dist-filters {
	display: grid;
	grid-template-columns: 170px 220px 220px;
	gap: 14px;
	margin-top: 16px;
}

.efm-dist-hints {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.efm-dist-hints span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 10px;
	border: 1px solid rgba(239, 211, 137, 0.22);
	border-radius: 999px;
	color: var(--efm-dist-muted);
	font-size: 11px;
	font-weight: 700;
	background: rgba(255,255,255,0.025);
}

.efm-dist-status {
	position: relative;
	z-index: 1;
	margin: 14px 0;
	color: var(--efm-dist-muted);
	font-size: 13px;
	text-align: center;
}

.efm-dist-results {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

.efm-dist-card {
	border: 1px solid rgba(239, 211, 137, 0.18);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.06), transparent 45%),
		var(--efm-dist-panel-2);
	padding: 18px;
	box-shadow:
		0 16px 42px rgba(0,0,0,0.34),
		inset 0 1px 0 rgba(255,255,255,0.05);
}

.efm-dist-card-top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: start;
}

.efm-dist-card h3 {
	margin: 0 0 8px;
	color: var(--efm-dist-text);
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.efm-dist-card-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--efm-dist-muted);
	font-size: 12px;
	font-weight: 700;
}

.efm-dist-chip {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 9px;
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 999px;
	background: rgba(0,0,0,0.22);
	color: var(--efm-dist-muted);
	text-transform: capitalize;
}

.efm-dist-chip-gold {
	border-color: rgba(239, 211, 137, 0.28);
	color: var(--efm-dist-gold);
}

.efm-dist-price {
	text-align: right;
	color: var(--efm-dist-gold);
	font-size: 24px;
	font-weight: 900;
	white-space: nowrap;
}

.efm-dist-price small {
	display: block;
	margin-top: 4px;
	color: var(--efm-dist-muted-2);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.efm-dist-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.efm-dist-metric {
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 14px;
	padding: 12px;
	background: rgba(0,0,0,0.22);
	min-width: 0;
}

.efm-dist-metric span {
	display: block;
	margin-bottom: 5px;
	color: var(--efm-dist-muted-2);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.efm-dist-metric strong {
	display: block;
	color: var(--efm-dist-text);
	font-size: 14px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.efm-dist-help {
	margin-top: 14px;
	color: var(--efm-dist-muted);
	font-size: 13px;
	line-height: 1.5;
}

.efm-dist-empty,
.efm-dist-error {
	border: 1px solid rgba(239, 211, 137, 0.18);
	border-radius: 16px;
	background: rgba(0,0,0,0.24);
	padding: 18px;
	color: var(--efm-dist-muted);
	text-align: center;
}

.efm-dist-error {
	border-color: rgba(255, 120, 120, 0.28);
	color: var(--efm-dist-danger);
}

@media (max-width: 880px) {
	.efm-dist-filters,
	.efm-dist-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.efm-dist-shell {
		width: min(100%, calc(100% - 18px));
		padding: 22px 14px;
	}

	.efm-dist-search-row,
	.efm-dist-filters,
	.efm-dist-card-top,
	.efm-dist-metrics {
		grid-template-columns: 1fr;
	}

	.efm-dist-price {
		text-align: left;
	}
}

/* =========================================================
   Simplified customer-facing lookup results
   Area + recipients + price + select
========================================================= */

.efm-dist-results {
	display: grid;
	gap: 14px;
}

.efm-dist-simple-card {
	border: 1px solid rgba(239, 211, 137, 0.18);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.055), transparent 46%),
		rgba(18, 19, 19, 0.94);
	box-shadow:
		0 16px 42px rgba(0,0,0,0.34),
		inset 0 1px 0 rgba(255,255,255,0.05);
	padding: 14px;
}

.efm-dist-simple-main {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 18px;
	align-items: center;
}

.efm-dist-simple-copy h3 {
	margin: 0 0 5px;
	color: var(--efm-dist-text);
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.efm-dist-simple-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--efm-dist-muted);
	font-size: 12px;
	font-weight: 700;
}

.efm-dist-simple-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 8px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
	background: rgba(0,0,0,0.20);
}

.efm-dist-simple-price {
	color: var(--efm-dist-gold);
	font-size: 19px;
	font-weight: 900;
	white-space: nowrap;
	text-align: right;
}

.efm-dist-select-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 18px;
	border: 1px solid rgba(239, 211, 137, 0.62);
	border-radius: 999px;
	background:
		linear-gradient(180deg, #fff0aa, #b99034);
	color: #15100a;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	box-shadow:
		0 8px 20px rgba(0,0,0,0.38),
		inset 0 1px 0 rgba(255,255,255,0.55);
	transition: transform 150ms ease, filter 150ms ease;
}

.efm-dist-select-btn:hover,
.efm-dist-select-btn:focus {
	color: #15100a;
	text-decoration: none;
	transform: translateY(-1px);
	filter: brightness(1.06);
}

@media (max-width: 720px) {
	.efm-dist-simple-main {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.efm-dist-simple-price {
		text-align: left;
	}

	.efm-dist-select-btn {
		width: 100%;
	}
}

/* =========================================================
   Parent area cards with expandable sub-areas
========================================================= */

.efm-dist-subareas {
	margin-top: 14px;
	border-top: 1px solid rgba(239, 211, 137, 0.12);
	padding-top: 12px;
}

.efm-dist-expand-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 13px;
	border: 1px solid rgba(239, 211, 137, 0.32);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	color: var(--efm-dist-gold);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.efm-dist-expand-btn strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(239, 211, 137, 0.14);
	color: var(--efm-dist-text);
	font-size: 11px;
}

.efm-dist-expand-btn:hover,
.efm-dist-expand-btn:focus {
	border-color: rgba(239, 211, 137, 0.58);
	background: rgba(239, 211, 137, 0.08);
}

.efm-dist-subarea-list {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.efm-dist-subarea-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.20);
}

.efm-dist-subarea-name {
	color: var(--efm-dist-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
}

.efm-dist-subarea-count {
	color: var(--efm-dist-muted);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

@media (max-width: 720px) {
	.efm-dist-subarea-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.efm-dist-subarea-count {
		white-space: normal;
	}
}

/* =========================================================
   State-first Distribution Lookup
========================================================= */

.efm-dist-search-panel {
	border: 1px solid rgba(239, 211, 137, 0.24);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.045), transparent 46%),
		rgba(22, 22, 20, 0.86);
	padding: 22px;
	box-shadow:
		0 18px 48px rgba(0,0,0,0.35),
		inset 0 1px 0 rgba(255,255,255,0.045);
}

.efm-dist-search-heading {
	margin: 0 0 18px;
	color: var(--efm-dist-gold);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.10em;
}

.efm-dist-flow {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 16px;
	align-items: end;
}

.efm-dist-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--efm-dist-gold);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.efm-dist-state-select,
#efm-dist-query {
	width: 100%;
	min-height: 48px;
	border: 1px solid rgba(239, 211, 137, 0.30);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.56);
	color: var(--efm-dist-text);
	font-size: 14px;
	font-weight: 800;
	padding: 0 18px;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.04),
		0 10px 24px rgba(0,0,0,0.20);
}

.efm-dist-state-select:focus,
#efm-dist-query:focus {
	border-color: rgba(239, 211, 137, 0.70);
	box-shadow:
		0 0 0 3px rgba(239, 211, 137, 0.10),
		inset 0 1px 0 rgba(255,255,255,0.05);
}

#efm-dist-query:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.efm-dist-query-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
}

#efm-dist-search-btn {
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid rgba(239, 211, 137, 0.62);
	border-radius: 999px;
	background:
		linear-gradient(180deg, #fff0aa, #b99034);
	color: #15100a;
	font-size: 12px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	box-shadow:
		0 12px 26px rgba(0,0,0,0.34),
		inset 0 1px 0 rgba(255,255,255,0.58);
}

#efm-dist-search-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: grayscale(0.5);
}

.efm-dist-helper-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.efm-dist-helper-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid rgba(239, 211, 137, 0.22);
	border-radius: 999px;
	background: rgba(0,0,0,0.20);
	color: var(--efm-dist-muted);
	font-size: 11px;
	font-weight: 850;
}

.efm-dist-status {
	margin: 24px 0 18px;
	color: var(--efm-dist-muted);
	font-size: 14px;
	font-weight: 750;
	text-align: center;
}

@media (max-width: 760px) {
	.efm-dist-flow {
		grid-template-columns: 1fr;
	}

	.efm-dist-query-row {
		grid-template-columns: 1fr;
	}

	#efm-dist-search-btn {
		width: 100%;
	}
}

/* =========================================================
   State-only Distribution Lookup Simplification
========================================================= */

.efm-dist-state-only-panel {
	max-width: 680px;
	margin: 0 auto;
	padding: 22px;
}

.efm-dist-state-only-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.efm-dist-state-only-panel .efm-dist-field-state {
	max-width: 360px;
	margin: 0 auto;
	width: 100%;
}

.efm-dist-state-only-panel .efm-dist-search-heading {
	text-align: center;
}

.efm-dist-state-only-panel .efm-dist-field label {
	text-align: center;
}

.efm-dist-state-only-panel .efm-dist-state-select {
	text-align: center;
	text-align-last: center;
}

/* Hide obsolete search/filter controls if cached markup ever appears */
.efm-dist-search-main,
.efm-dist-filters,
.efm-dist-hints,
.efm-dist-flow,
.efm-dist-field-query,
.efm-dist-query-row,
#efm-dist-query,
#efm-dist-search-btn {
	display: none !important;
}

/* =========================================================
   State Selector Tightening
========================================================= */

.efm-dist-state-only-panel {
	max-width: 560px;
	padding: 18px 20px 22px;
	margin: 0 auto 24px;
}

.efm-dist-state-only-row {
	gap: 0;
}

.efm-dist-state-only-panel .efm-dist-search-heading {
	display: none !important;
}

.efm-dist-state-only-panel .efm-dist-field-state {
	max-width: 340px;
}

.efm-dist-state-only-panel .efm-dist-field label {
	margin: 0 0 14px;
	text-align: center;
	color: var(--efm-dist-gold);
	font-size: 12px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.10em;
}

.efm-dist-state-only-panel .efm-dist-state-select {
	min-height: 46px;
}

.efm-dist-status {
	margin: 16px 0 18px;
}

/* =========================================================
   Custom State Picker
========================================================= */

.efm-dist-state-picker {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
	z-index: 20;
}

.efm-dist-state-picker .efm-dist-state-select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.efm-state-picker-button {
	width: 100%;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 0 18px 0 22px;
	border: 1px solid rgba(239, 211, 137, 0.58);
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.045), rgba(0,0,0,0.18)),
		rgba(2, 2, 2, 0.84);
	color: #f7f0df;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-align: left;
	cursor: pointer;
	box-shadow:
		0 18px 40px rgba(0,0,0,0.42),
		inset 0 1px 0 rgba(255,255,255,0.08),
		0 0 0 1px rgba(255,255,255,0.02);
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.efm-state-picker-button:hover,
.efm-dist-state-picker.is-open .efm-state-picker-button {
	border-color: rgba(255, 230, 154, 0.9);
	box-shadow:
		0 20px 48px rgba(0,0,0,0.48),
		0 0 0 3px rgba(239,211,137,0.10),
		inset 0 1px 0 rgba(255,255,255,0.10);
}

.efm-state-picker-label {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center;
}

.efm-state-picker-caret {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #f6d77d;
	font-size: 18px;
	line-height: 1;
	transition: transform 180ms ease;
}

.efm-dist-state-picker.is-open .efm-state-picker-caret {
	transform: rotate(180deg);
}

.efm-state-picker-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	max-height: 330px;
	overflow: auto;
	padding: 8px;
	border: 1px solid rgba(239, 211, 137, 0.42);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.06), transparent 44%),
		rgba(18, 18, 17, 0.98);
	box-shadow:
		0 26px 70px rgba(0,0,0,0.62),
		inset 0 1px 0 rgba(255,255,255,0.06);
	backdrop-filter: blur(14px);
	z-index: 999;
}

.efm-state-picker-option {
	width: 100%;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: transparent;
	color: rgba(247, 240, 223, 0.86);
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
	transition:
		background 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.efm-state-picker-option:hover {
	background: rgba(239, 211, 137, 0.10);
	border-color: rgba(239, 211, 137, 0.24);
	color: #fff6d6;
}

.efm-state-picker-option.is-selected {
	background:
		linear-gradient(180deg, rgba(255, 235, 160, 0.28), rgba(185, 144, 52, 0.18));
	border-color: rgba(239, 211, 137, 0.58);
	color: #ffe69a;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.10),
		0 8px 18px rgba(0,0,0,0.22);
}

.efm-state-picker-menu::-webkit-scrollbar {
	width: 10px;
}

.efm-state-picker-menu::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.28);
	border-radius: 999px;
}

.efm-state-picker-menu::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(255,230,154,0.85), rgba(151,112,36,0.85));
	border-radius: 999px;
	border: 2px solid rgba(18,18,17,0.95);
}

/* =========================================================
   Custom State Picker: Final Compact Menu Pass
========================================================= */

.efm-dist-state-only-panel {
	max-width: 540px;
	padding: 18px 22px 30px;
	margin-bottom: 34px;
}

.efm-dist-state-picker {
	max-width: 330px;
	z-index: 1000;
}

.efm-state-picker-button {
	min-height: 48px;
}

.efm-state-picker-menu {
	top: calc(100% + 8px);
	max-height: 224px;
	padding: 7px;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.055), transparent 42%),
		rgba(12, 12, 11, 0.985);
	box-shadow:
		0 28px 64px rgba(0,0,0,0.72),
		0 0 0 1px rgba(255,255,255,0.035),
		inset 0 1px 0 rgba(255,255,255,0.06);
}

.efm-state-picker-option {
	min-height: 34px;
	padding: 0 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 850;
}

.efm-state-picker-menu::-webkit-scrollbar {
	width: 8px;
}

.efm-state-picker-menu::-webkit-scrollbar-thumb {
	border-width: 2px;
}

/* Keep lookup area visually separated from the content below */
.efm-dist-status {
	margin: 18px 0 24px;
	position: relative;
	z-index: 1;
}

.efm-dist-results {
	position: relative;
	z-index: 1;
}

/* When the state picker is open, keep it above everything nearby */
.efm-dist-state-picker.is-open {
	z-index: 5000;
}

/* =========================================================
   State Picker: Taller Menu + Tighter State Rows
========================================================= */

.efm-state-picker-menu {
	max-height: 430px;
	padding: 6px;
}

.efm-state-picker-option {
	min-height: 26px;
	height: 26px;
	padding: 0 10px;
	border-radius: 9px;
	font-size: 12px;
	line-height: 1;
}

.efm-state-picker-option + .efm-state-picker-option {
	margin-top: 2px;
}

.efm-state-picker-menu::-webkit-scrollbar {
	width: 7px;
}

.efm-state-picker-menu::-webkit-scrollbar-track {
	margin: 8px 0;
}

/* Give the dropdown permission to visually extend below the selector card */
.efm-dist-lookup,
.efm-dist-shell,
.efm-dist-search-panel,
.efm-dist-state-only-panel {
	overflow: visible !important;
}

.efm-dist-state-picker.is-open {
	z-index: 99999;
}

/* =========================================================
   Distribution Lookup: Keep Selector Narrow, Results Wide
========================================================= */

.efm-dist-results {
	width: min(100%, 920px);
	max-width: 920px;
	margin: 22px auto 0;
}

.efm-dist-simple-card {
	width: 100%;
	max-width: none;
}

.efm-dist-simple-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 22px;
}

.efm-dist-simple-copy {
	min-width: 0;
}

.efm-dist-simple-copy h3 {
	margin: 0 0 10px;
	white-space: normal;
}

.efm-dist-simple-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.efm-dist-simple-price {
	white-space: nowrap;
	text-align: right;
	min-width: 96px;
}

.efm-dist-select-btn {
	white-space: nowrap;
}

/* =========================================================
   Distribution Lookup: Orderable Subareas
========================================================= */

.efm-dist-entire-label {
	margin-top: 9px;
	color: rgba(255, 232, 160, 0.92);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.efm-dist-subarea-row-orderable {
	grid-template-columns: minmax(0, 1fr) auto auto;
}

.efm-dist-subarea-copy {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.efm-dist-subarea-price {
	white-space: nowrap;
	color: rgba(255, 229, 145, 0.98);
	font-size: 14px;
	font-weight: 950;
}

.efm-dist-subarea-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 236, 174, 0.72);
	background:
		linear-gradient(180deg, rgba(255, 244, 181, 1), rgba(198, 150, 43, 1));
	color: rgba(12, 10, 4, 0.98);
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.035em;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		0 8px 18px rgba(0,0,0,0.28);
}

.efm-dist-subarea-select:hover,
.efm-dist-subarea-select:focus {
	color: #000;
	text-decoration: none;
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.efm-dist-price-muted {
	color: rgba(255, 226, 153, 0.78);
	font-size: 18px;
}

@media (max-width: 720px) {
	.efm-dist-subarea-row-orderable {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.efm-dist-subarea-price,
	.efm-dist-subarea-select {
		justify-self: start;
	}
}

/* =========================================================
   EFM DISTRIBUTION LOOKUP BUTTON REFINEMENT
   Less bulbous, cleaner production button shape
========================================================= */

.efm-dist-lookup .efm-dist-select-btn,
.efm-dist-lookup .efm-dist-subarea-select-btn {
  min-width: 76px;
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 38px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.efm-dist-lookup .efm-dist-subarea-select-btn {
  min-width: 68px;
  height: 34px;
  padding: 0 15px;
  border-radius: 10px;
  line-height: 34px;
  font-size: 10px;
}

.efm-dist-lookup .efm-dist-simple-price,
.efm-dist-lookup .efm-dist-subarea-price {
  color: #f4d878;
  font-weight: 900;
}

.efm-dist-lookup .efm-dist-simple-price:empty,
.efm-dist-lookup .efm-dist-subarea-price:empty {
  display: none;
}

/* Denver special handling */
.efm-dist-lookup .efm-dist-denver-card .efm-dist-simple-meta span:nth-child(2) {
  display: none;
}

.efm-dist-lookup .efm-dist-denver-subareas .efm-dist-subarea-price {
  color: #f4d878;
}

.efm-dist-lookup .efm-dist-subarea-or {
  margin: 12px auto;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(244, 216, 120, .35);
  border-radius: 999px;
  color: #f4d878;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

/* =========================================================
   EFM DISTRIBUTION LOOKUP
   Parent Card Cleanup: Remove State Badge Space + Price/Button Gap
========================================================= */

/* Main parent/group row spacing */
.efm-dist-lookup .efm-dist-simple-main {
  gap: 22px;
}

/* Price should breathe before the Select button */
.efm-dist-lookup .efm-dist-simple-price {
  margin-left: auto;
  margin-right: 18px;
  min-width: 92px;
  text-align: right;
  white-space: nowrap;
}

/* Subarea price/select spacing */
.efm-dist-lookup .efm-dist-subarea-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 180px;
}

/* Keep subarea prices from crowding the button */
.efm-dist-lookup .efm-dist-subarea-price {
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}

/* Less bulbous Select buttons */
.efm-dist-lookup .efm-dist-select-btn,
.efm-dist-lookup .efm-dist-subarea-select-btn {
  min-width: 72px;
  height: 34px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Slightly smaller subarea buttons */
.efm-dist-lookup .efm-dist-subarea-select-btn {
  min-width: 64px;
  height: 30px;
  padding: 0 15px;
  border-radius: 9px;
}

/* =========================================================
   DISTRIBUTION LOOKUP MAP BUTTON + MODAL
========================================================= */

.efm-dist-map-slot {
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 200, 120, 0.16);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.efm-dist-map-btn {
  appearance: none;
  border: 1px solid rgba(241, 211, 132, 0.58);
  border-radius: 999px;
  padding: 9px 16px;
  background:
    linear-gradient(180deg, rgba(61, 55, 35, 0.92), rgba(25, 24, 20, 0.94));
  color: #f7df94;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.32);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.efm-dist-map-btn:hover,
.efm-dist-map-btn:focus {
  transform: translateY(-1px);
  border-color: rgba(255, 229, 150, 0.86);
  background:
    linear-gradient(180deg, rgba(86, 76, 43, 0.96), rgba(31, 29, 21, 0.98));
  outline: none;
}

.efm-dist-map-modal[hidden] {
  display: none !important;
}

.efm-dist-map-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.efm-dist-map-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(80, 70, 42, 0.22), rgba(0, 0, 0, 0.84) 62%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(9px);
}

.efm-dist-map-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 88vh;
  border: 1px solid rgba(230, 200, 120, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(32, 32, 29, 0.98), rgba(11, 11, 10, 0.98));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.efm-dist-map-modal-head {
  min-height: 58px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(230, 200, 120, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(54, 50, 36, 0.82), rgba(20, 20, 18, 0.88));
}

.efm-dist-map-modal-head strong {
  color: #f7df94;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.efm-dist-map-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 200, 120, 0.46);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff7df;
  font-size: 24px;
  line-height: 28px;
  cursor: pointer;
}

.efm-dist-map-close:hover,
.efm-dist-map-close:focus {
  border-color: rgba(255, 229, 150, 0.86);
  color: #f7df94;
  outline: none;
}

.efm-dist-map-modal-body {
  padding: 16px;
  max-height: calc(88vh - 58px);
  overflow: auto;
}

.efm-dist-map-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(88vh - 96px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
}

.efm-dist-map-frame {
  display: block;
  width: 100%;
  height: calc(88vh - 104px);
  min-height: 520px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
}

.efm-dist-map-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .efm-dist-map-modal {
    padding: 12px;
  }

  .efm-dist-map-modal-dialog {
    width: 96vw;
    max-height: 90vh;
    border-radius: 18px;
  }

  .efm-dist-map-modal-body {
    padding: 10px;
  }

  .efm-dist-map-frame {
    min-height: 420px;
  }
}