/**
 * Simple Multilang — Frontend Styles
 *
 * @package SimpleMultilang
 */

/* =============================================
   Flag Base
   ============================================= */

.sml-flag {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.sml-flag svg {
	display: block;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sml-flag-text {
	display: inline-block;
	width: 24px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	font-size: 9px;
	font-weight: 700;
	background: #e0e0e0;
	border-radius: 2px;
	color: #555;
}

/* =============================================
   Switcher — List
   ============================================= */

.sml-switcher-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.sml-switcher-list .sml-switcher-item {
	margin: 0;
	padding: 0;
}

.sml-switcher-list .sml-switcher-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sml-switcher-list .sml-switcher-link:hover {
	background: rgba(0, 0, 0, 0.06);
}

.sml-switcher-list .sml-switcher-active .sml-switcher-link {
	background: rgba(0, 0, 0, 0.08);
	font-weight: 600;
}

/* =============================================
   Switcher — Dropdown
   ============================================= */

.sml-switcher-dropdown {
	position: relative;
	display: inline-block;
}

.sml-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sml-dropdown-toggle:hover {
	border-color: #999;
}

.sml-dropdown-toggle:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.sml-dropdown-arrow {
	font-size: 10px;
	margin-left: 2px;
	transition: transform 0.2s ease;
}

.sml-switcher-dropdown.sml-open .sml-dropdown-arrow {
	transform: rotate(180deg);
}

.sml-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1000;
	min-width: 100%;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sml-switcher-dropdown.sml-open .sml-dropdown-menu {
	display: block;
}

.sml-dropdown-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	transition: background-color 0.15s ease;
}

.sml-dropdown-item a:hover {
	background: #f0f0f1;
}

/* =============================================
   Switcher — Select
   ============================================= */

.sml-switcher-select select {
	min-width: 150px;
	padding: 6px 10px;
	font-size: 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
}

.sml-switcher-select select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}
