/* Fundamental Econt Shipping — checkout picker (classic + blocks).
 * All interactive elements are hard-reset so the active theme's global
 * button styles (e.g. red pill buttons) can't bleed into the picker. */

.fs-econt-picker,
.fs-econt-blocks {
	--fse-border: #e2e4e8;
	--fse-bg: #fff;
	--fse-muted: #6b7280;
	--fse-hover: #f4f6f8;
	--fse-accent: #c8102e; /* club red, used sparingly as accent only */
	--fse-radius: 10px;
	margin: 14px 0 4px;
	font-size: 14px;
	line-height: 1.45;
}

/* ---------- Shared: search input ---------- */
.fs-econt-blocks__input,
.fs-econt-picker .fs-econt-search {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--fse-border);
	border-radius: var(--fse-radius);
	background: var(--fse-bg);
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fs-econt-blocks__input:focus,
.fs-econt-picker .fs-econt-search:focus {
	outline: none;
	border-color: var(--fse-accent);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

/* ---------- Title ---------- */
.fs-econt-blocks__title,
.fs-econt-picker > label {
	display: block;
	margin: 0 0 9px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	color: #111827;
}

/* ---------- Results list (blocks) ---------- */
.fs-econt-blocks__results {
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 0 !important;
	padding: 6px !important;
	max-height: 280px;
	overflow-y: auto;
	border: 1px solid var(--fse-border);
	border-radius: var(--fse-radius);
	background: var(--fse-bg);
	box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .35);
}

.fs-econt-blocks__results li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: none !important;
	background: none !important;
}

/* Hard reset every button in the picker so the theme can't restyle it */
.fs-econt-blocks__results button,
.fs-econt-blocks__change {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
}

.fs-econt-blocks__results button {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border-radius: 7px;
	font-size: 13.5px;
	line-height: 1.4;
	color: #1f2937;
	transition: background .12s ease;
}

.fs-econt-blocks__results button:hover,
.fs-econt-blocks__results button:focus-visible {
	background: var(--fse-hover);
}

/* Small locker/office tag rendered by the server label (📦 prefix) stays inline */
.fs-econt-blocks__results button {
	white-space: normal;
}

/* ---------- Selected state (flat, matches theme boxes) ---------- */
.fs-econt-blocks__selected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--fse-border);
	background: var(--fse-bg);
}

.fs-econt-blocks__selected span {
	flex: 1 1 auto;
	font-size: 13.5px;
	line-height: 1.45;
	color: #1f2937 !important;
}

.fs-econt-blocks__selected strong {
	font-weight: 600;
	color: #111827 !important;
}

.fs-econt-blocks__change {
	flex: 0 0 auto;
	align-self: center;
	padding: 6px 12px !important;
	border: 1px solid var(--fse-border) !important;
	border-radius: 0 !important;
	background: var(--fse-bg) !important;
	color: #374151 !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	transition: background .12s ease, border-color .12s ease;
}

.fs-econt-blocks__change:hover {
	background: var(--fse-hover) !important;
	border-color: #cbd0d6 !important;
}

/* ---------- Hints ---------- */
.fs-econt-blocks__hint {
	margin: 8px 2px 0 !important;
	font-size: 12.5px;
	color: var(--fse-muted);
}

/* ---------- International notice ---------- */
.fs-econt-notice {
	display: flex;
	gap: 10px;
	margin: 14px 0;
	padding: 12px 14px;
	border: 1px solid #f0d68a;
	border-radius: var(--fse-radius);
	background: #fff9e9;
	color: #6b5300;
	font-size: 13px;
	line-height: 1.5;
}

.fs-econt-notice::before {
	content: "ⓘ";
	flex: 0 0 auto;
	font-size: 15px;
	line-height: 1.4;
	color: #b8860b;
}

.fs-econt-notice a {
	color: #8a5a00;
	text-decoration: underline;
}

/* ---------- Classic checkout (selectWoo) ---------- */
.fs-econt-picker {
	padding: 12px 14px;
	border: 1px solid var(--fse-border);
	border-radius: var(--fse-radius);
	background: #fafbfc;
}

.fs-econt-picker .select2-container,
.fs-econt-picker select {
	width: 100% !important;
}

.fs-econt-picker .fs-econt-selected {
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid var(--fse-border);
	background: var(--fse-bg);
	font-size: 13px;
	color: #1f2937;
}
