/* Secure Phone Prefix for Elementor Forms */

.sppef-wrap {
	position: relative;
	width: 100%;
}

.sppef-wrap select.sppef-select {
	width: 100%;
}

/* Closed state: inherit the Elementor field look. */
.sppef-wrap .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 40px;
	border: 1px solid #69727d;
	border-radius: 3px;
	background-color: #fff;
}

.sppef-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
	flex: 1 1 auto;
	padding: 0 28px 0 12px;
	line-height: inherit;
	color: inherit;
}

.sppef-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
	height: 20px;
}

.sppef-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.sppef-wrap .select2-container--default.select2-container--open .select2-selection--single {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Dropdown lives inside the field so it scrolls and layers with popups. */
.sppef-wrap .select2-dropdown {
	min-width: min(360px, 90vw);
	z-index: 9999;
}

.sppef-wrap .select2-results > .select2-results__options {
	max-height: 280px;
}

.sppef-wrap .select2-search--dropdown .select2-search__field {
	margin: 0;
	padding: 6px 8px;
}

.sppef-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.sppef-flag {
	flex: 0 0 auto;
	width: 24px;
	height: 18px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.sppef-code {
	flex: 0 0 auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sppef-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sppef-wrap .select2-results__option {
	padding: 8px 10px;
}

/* Required by the free DB-IP licence; keep it visible but quiet. */
.sppef-credit {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.3;
	opacity: 0.7;
}

.sppef-credit a {
	color: inherit;
	text-decoration: underline;
}
