.foc-pi {
	position: relative;
	display: flex;
	align-items: stretch;
}

/* ── Trigger button ─────────────────────────────────────────────────────────── */
.foc-pi-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.375rem 0.625rem;
	background: #fff;
	border: 1px solid #dee2e6;
	border-right: none;
	border-radius: 0.5rem 0 0 0.5rem;
	cursor: pointer;
	color: #212529;
	font-size: 0.9375rem;
	white-space: nowrap;
	transition: border-color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.foc-pi-trigger:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
}

.foc-pi-trigger:focus-visible {
	outline: 2px solid #2582C4;
	outline-offset: -1px;
	border-radius: 0.5rem 0 0 0.5rem;
}

.foc-pi-flag {
	font-size: 1.2em;
	line-height: 1;
}

.foc-pi-code {
	font-size: 0.875rem;
	font-weight: 500;
	color: #495057;
	min-width: 2.5rem;
	text-align: left;
}

.foc-pi-caret {
	width: 10px;
	height: 6px;
	color: #6c757d;
	flex-shrink: 0;
	transition: transform 0.15s;
}

.foc-pi-trigger[aria-expanded="true"] .foc-pi-caret {
	transform: rotate(180deg);
}

/* ── Number input ───────────────────────────────────────────────────────────── */
.foc-pi-number.form-control {
	border-radius: 0 0.5rem 0.5rem 0 !important;
	border-left-color: #dee2e6 !important;
	min-width: 0;
	flex: 1;
}

/* ── Dropdown ───────────────────────────────────────────────────────────────── */
.foc-pi-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1050;
	width: 320px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* ── Search ─────────────────────────────────────────────────────────────────── */
.foc-pi-search {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.875rem;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
	outline: none;
	background: #f8fafc;
	color: #212529;
}

.foc-pi-search::placeholder {
	color: #9ba3af;
}

/* ── List ───────────────────────────────────────────────────────────────────── */
.foc-pi-list {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	max-height: 240px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.foc-pi-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.875rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: #212529;
	transition: background 0.1s;
	outline: none;
}

.foc-pi-option:hover,
.foc-pi-option:focus {
	background: #f0f7ff;
}

.foc-pi-option.is-selected {
	background: #e8f4fd;
	font-weight: 500;
}

.foc-pi-option .foc-pi-flag {
	font-size: 1.15em;
	flex-shrink: 0;
	width: 1.5em;
	text-align: center;
}

.foc-pi-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.foc-pi-name-de {
	color: #212529;
}

.foc-pi-name-en {
	color: #9ba3af;
	font-size: 0.8125rem;
}

.foc-pi-option .foc-pi-dial {
	flex-shrink: 0;
	color: #6c757d;
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

/* ── Separator & empty ──────────────────────────────────────────────────────── */
.foc-pi-sep {
	height: 1px;
	background: #f1f5f9;
	margin: 0.25rem 0;
}

.foc-pi-no-results {
	padding: 0.75rem 0.875rem;
	color: #9ba3af;
	font-size: 0.875rem;
	font-style: italic;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
.foc-pi-list::-webkit-scrollbar { width: 6px; }
.foc-pi-list::-webkit-scrollbar-track { background: transparent; }
.foc-pi-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 3px; }
