/**
 * International Phone Field CSS
 */

.mf-phone {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	overflow: visible;
	width: 100%;
	position: relative;
	padding: 0 !important; /* Reset padding so children can fill the wrapper */
}

.mf-phone:focus-within {
	/* Let Elementor handle focus, or add subtle shadow if needed */
}

.mf-phone .eip-combobox {
	width: auto !important;
	flex: 0 0 auto;
	position: relative;
}

.mf-phone .eip-combobox-selected {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	border-right: 1px solid rgba(0, 0, 0, 0.1); /* Subtle divider */
	height: 100%;
}

.mf-phone .eip-combobox-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	max-height: 250px;
	overflow-y: auto;
	width: max-content;
	min-width: 150px;
	padding: 4px 0;
	margin-top: 4px;
}

.mf-phone .eip-combobox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 8px 10px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
}

.mf-phone .eip-combobox-item:hover {
	background-color: #f3f4f6;
}

.mf-phone .eip-check {
	width: 14px;
	font-weight: bold;
	display: inline-block;
	color: #111827;
}

.mf-phone .eip-dial-code {
	font-weight: 500;
	color: #111827;
}

.mf-phone .mf-tel {
	flex: 1 1 auto;
	width: 100%;
	border: none !important;
	background-color: transparent !important;
	padding: 10px 12px !important;
	color: inherit; /* Inherit color from Elementor settings */
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	outline: none;
	box-shadow: none !important;
	border-radius: 0;
	height: auto;
}

.elementor-error .mf-phone {
	border-color: #dc3545;
}

.elementor-field-group .elementor-message-danger {
	color: #dc3545;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}
