.ext-mim-location-selector {
	--ext-mim-bg: #ffffff;
	--ext-mim-accent: #1d4ed8;
	--ext-mim-font-size: 14px;
	--ext-mim-show-border: 0;
	margin: 1.1em 0;
	padding: 16px;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff, var(--ext-mim-bg));
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	color: #0f172a;
	font-size: var(--ext-mim-font-size);
	border: calc(var(--ext-mim-show-border) * 1px) solid rgba(148, 163, 184, 0.45);
}

.ext-mim-location-selector__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.ext-mim-location-heading {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.35;
}

.ext-mim-location-count {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	color: var(--ext-mim-accent);
	background: rgba(29, 78, 216, 0.1);
}

.ext-mim-location-label {
	display: inline-block;
	margin: 0 0 8px;
	font-weight: 600;
}

.ext-mim-select-wrap {
	position: relative;
}

.ext-mim-location-select {
	min-width: 220px;
	width: 100%;
	max-width: 420px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
	color: #0f172a;
	box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
}

.ext-mim-location-select:focus {
	outline: none;
	border-color: var(--ext-mim-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.ext-mim-location-radios {
	display: grid;
	gap: 8px;
}

.ext-mim-location-radio-option {
	display: grid;
	grid-template-columns: 18px 1fr auto;
	align-items: center;
	column-gap: 10px;
	padding: 10px 12px;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ext-mim-location-radio-option:has(input:checked) {
	border-color: var(--ext-mim-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.ext-mim-location-radio-option.is-selected {
	border-color: var(--ext-mim-accent);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.ext-mim-location-name {
	font-weight: 600;
}

.ext-mim-stock {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.78em;
	color: #166534;
	background: #dcfce7;
}

.ext-mim-stock--empty {
	color: #b91c1c;
	background: #fee2e2;
}

.ext-mim-location-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.ext-mim-detect-location.button {
	background: var(--ext-mim-accent);
	border-color: var(--ext-mim-accent);
	color: #fff;
	border-radius: 8px;
	padding: 0 14px;
	min-height: 34px;
}

.ext-mim-detect-location.button:hover,
.ext-mim-detect-location.button:focus {
	filter: brightness(0.95);
	color: #fff;
}

.ext-mim-location-feedback {
	font-size: 0.82em;
	color: #334155;
}

.ext-mim-location-feedback.ext-mim-ok {
	color: #166534;
}

.ext-mim-location-feedback.ext-mim-error {
	color: #b91c1c;
}

.ext-mim-location-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 1em;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.ext-mim-location-filter select {
	min-width: 190px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	padding: 7px 10px;
}
