/*
 * Deliberately minimal: this is meant to sit inside a theme's own nav
 * menu, so every style here inherits font-family/size/color/line-height
 * from whatever containing element it's placed in rather than declaring
 * its own — only layout (spacing, icon sizing, the dropdown panel itself)
 * is set explicitly. That way it matches the surrounding menu automatically,
 * in any theme.
 *
 * Hover: the shortcode's own markup isn't part of your theme's actual nav
 * menu, so your theme's hover-color CSS rules never match it — there's no
 * single color that would be correct for every theme, so hover here is a
 * theme-agnostic opacity dim instead. To match your theme's exact hover
 * color, add one line of custom CSS (Appearance -> Customize -> Additional
 * CSS, or your page builder's custom CSS box):
 *   .emt-language-switcher a:hover, .emt-toggle-btn:hover { color: #YOUR-COLOR; opacity: 1; }
 */

.emt-language-switcher,
.emt-language-switcher * {
	box-sizing: border-box;
}

.emt-flag-icon {
	display: inline-block;
	width: 16px;
	height: 12px;
	vertical-align: middle;
	object-fit: cover;
	border-radius: 2px;
}

/* ── Native dropdown (select_text only — flags can't live inside a real <select>) ── */
select.emt-language-switcher {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0 20px 0 0;
	margin: 0;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
	appearance: menulist;
}
select.emt-language-switcher:hover,
select.emt-language-switcher:focus {
	opacity: 0.7;
}

/* ── Inline list styles (list_flag / list_text) ── */
ul.emt-style-list {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.emt-style-list li {
	margin: 0;
}
ul.emt-style-list a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font: inherit;
	color: inherit;
	text-decoration: none;
}
ul.emt-style-list a:hover,
ul.emt-style-list a:focus {
	opacity: 0.7;
	text-decoration: underline;
}
ul.emt-style-list li.emt-current a {
	font-weight: 700;
}

/* ── Custom dropdowns (select_flag / select_flag_only / globe_menu) ── */
.emt-dropdown-toggle {
	position: relative;
	display: inline-block;
	font: inherit;
	color: inherit;
}
.emt-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	color: inherit;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
}
.emt-toggle-btn:hover,
.emt-toggle-btn:focus {
	opacity: 0.7;
}
.emt-globe-icon,
.emt-chevron-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}
.emt-chevron-icon {
	width: 0.8em;
	height: 0.8em;
	opacity: 0.7;
}

.emt-toggle-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin: 8px 0 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	color: #1b3559;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	min-width: 160px;
	z-index: 1000;
	font-size: 14px;
}
.emt-toggle-menu[hidden] {
	display: none;
}
.emt-toggle-menu li {
	margin: 0;
}
.emt-toggle-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.emt-toggle-menu a:hover,
.emt-toggle-menu a:focus {
	background: rgba(0, 0, 0, 0.05);
}
.emt-toggle-menu li.emt-current a {
	font-weight: 700;
}
