.ecmsf-hidden-input,
input.ecmsf-hidden-input {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.ecmsf-country-field,
.ecmsf-mobile-field {
	position: relative;
	width: 100%;
}

.ecmsf-display-shell {
	position: relative;
	width: 100%;
}

.ecmsf-display-input {
	width: 100%;
	cursor: pointer;
	padding-right: 2.65em !important;
}

.ecmsf-chevron {
	position: absolute;
	top: 50%;
	right: 1.15em;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.ecmsf-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 99999;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 8px;
	background: #ffffff;
	color: #243041;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.ecmsf-country-field.is-open .ecmsf-panel,
.ecmsf-mobile-field.is-open .ecmsf-panel {
	display: block;
}

.ecmsf-search-wrap {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 10px;
	background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ecmsf-search-input {
	width: 100%;
	color: inherit;
}

.ecmsf-options {
	max-height: 300px;
	overflow-y: auto;
}

.ecmsf-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* Keep filtered search results actually hidden, even though options use display:flex. */
.ecmsf-option[hidden] {
	display: none !important;
}

.ecmsf-option:hover,
.ecmsf-option:focus,
.ecmsf-option.is-selected {
	background: rgba(0, 0, 0, 0.07);
	outline: none;
}

.ecmsf-flag {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

.ecmsf-option-name {
	min-width: 0;
}

.ecmsf-option-dial {
	margin-left: auto;
	font-weight: 600;
	white-space: nowrap;
}

.ecmsf-mobile-control {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.ecmsf-mobile-picker {
	position: relative;
	flex: 0 0 min(42%, 190px);
	min-width: 135px;
}

.ecmsf-mobile-number {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.ecmsf-mobile-panel {
	min-width: 320px;
	width: min(430px, 92vw);
}

@media (max-width: 767px) {
	.ecmsf-mobile-control {
		flex-direction: column;
	}

	.ecmsf-mobile-picker,
	.ecmsf-mobile-panel {
		width: 100%;
		min-width: 0;
		flex-basis: auto;
	}
}
