/**
 * Frontend language switcher.
 *
 * CSS custom properties may be overridden by a theme when a different brand
 * palette is required.
 */
.wpstore-ai-language-switcher {
	--wpstore-ai-switcher-bg: #fff;
	--wpstore-ai-switcher-text: #1f2937;
	--wpstore-ai-switcher-border: #cbd5e1;
	--wpstore-ai-switcher-hover-bg: #f1f5f9;
	--wpstore-ai-switcher-active-bg: #1d4ed8;
	--wpstore-ai-switcher-active-text: #fff;
	display: inline-block;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle;
	font: inherit;
	line-height: 1.2;
}

.wpstore-ai-language-switcher > ul {
	display: flex !important;
	flex-flow: row wrap !important;
	align-items: center !important;
	gap: 6px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wpstore-ai-language-switcher > ul > li {
	display: block !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1 !important;
}

.wpstore-ai-language-switcher > ul > li::before,
.wpstore-ai-language-switcher > ul > li::after,
.wpstore-ai-language-switcher > ul > li::marker {
	display: none !important;
	content: none !important;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-sizing: border-box;
	min-height: 32px;
	margin: 0 !important;
	padding: 5px 11px !important;
	border: 1px solid var(--wpstore-ai-switcher-border) !important;
	border-radius: 999px !important;
	background: var(--wpstore-ai-switcher-bg) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
	color: var(--wpstore-ai-switcher-text) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-indent: 0;
	text-transform: none;
	white-space: nowrap;
	opacity: 1 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link--flag {
	min-width: 38px;
	padding-right: 6px !important;
	padding-left: 6px !important;
}

.wpstore-ai-language-switcher .wpstore-ai-language-flag {
	display: block !important;
	flex: 0 0 24px;
	width: 24px !important;
	height: 18px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16);
	object-fit: cover;
}

.wpstore-ai-language-switcher .wpstore-ai-language-name {
	display: inline-block;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit;
	line-height: inherit;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link:hover {
	border-color: #94a3b8 !important;
	background: var(--wpstore-ai-switcher-hover-bg) !important;
	color: var(--wpstore-ai-switcher-text) !important;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35) !important;
	outline-offset: 2px;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link[aria-current="page"] {
	border-color: var(--wpstore-ai-switcher-active-bg) !important;
	background: var(--wpstore-ai-switcher-active-bg) !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2) !important;
	color: var(--wpstore-ai-switcher-active-text) !important;
}

.wpstore-ai-language-switcher .wpstore-ai-language-link[aria-current="page"]:hover {
	filter: brightness(0.94);
}

.wpstore-ai-language-switcher-block {
	box-sizing: border-box;
	max-width: 100%;
}

.wpstore-ai-language-switcher-block.aligncenter {
	text-align: center;
}

.wpstore-ai-language-switcher-block.alignright {
	text-align: right;
}

@media (max-width: 480px) {
	.wpstore-ai-language-switcher > ul {
		gap: 4px !important;
	}

	.wpstore-ai-language-switcher .wpstore-ai-language-link {
		min-height: 30px;
		padding: 4px 9px !important;
		font-size: 12px;
	}
}
