/* =============================================
   LANGUAGE PICKER
   Figma: TEC Design System / node 16161-5928
   ============================================= */

.language-picker {
	position: relative;
	z-index: 900;
	box-sizing: border-box;
}

.language-picker-shell {
	box-sizing: border-box;
	background-color: transparent;
	border: 1px solid transparent;
}

.language-picker-bar {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Globe toggle */
.language-picker-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background-color: transparent !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.language-picker-globe {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 26px;
}

.language-picker-globe svg {
	display: block;
	width: 100%;
	height: 100%;
}

.language-picker.is-expanded .language-picker-toggle {
	background-color: var(--cool-4) !important;
}

.language-picker-toggle:hover,
.language-picker-toggle:focus-visible {
	background-color: var(--cool-3) !important;
}

.language-picker-toggle:focus-visible {
	outline: 2px solid var(--button-links);
	outline-offset: -2px;
}

/* Language list */
.language-picker-list {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.language-picker-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0;
}

.language-picker-item + .language-picker-item::before {
	content: "";
	position: absolute;
	left: -4px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 24px;
	background-color: var(--eggshell-grey-2);
}

.language-picker-label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 24px;
	padding: 0 8px;
	font-family: var(--font-sans);
	font-size: var(--nav-utility-2);
	font-weight: var(--weight-regular);
	letter-spacing: 0.16px;
	line-height: 1;
	color: var(--button-links);
	text-decoration: none;
	white-space: nowrap;
}

.language-picker-label:hover {
	text-decoration: underline;
}

.language-picker-item.is-current-language .language-picker-label {
	background-color: var(--church-gray);
	color: var(--page-default);
}

.language-picker-item.is-current-language .language-picker-label:hover {
	text-decoration: none;
}

.language-picker-code {
	text-transform: uppercase;
}

.language-picker-native-name {
	display: none;
	text-transform: none;
}

.language-picker.is-expanded .language-picker-code {
	display: none;
}

.language-picker.is-expanded .language-picker-native-name {
	display: inline-block;
}

/* Expanded card */
.language-picker.is-expanded .language-picker-shell {
	position: absolute;
	top: 0;
	left: 0;
	width: 416px;
	max-width: calc(100vw - 32px);
	background-color: var(--page-default);
	border: 1px solid var(--black-text);
	box-shadow:
		0 4px 4px -1px rgba(12, 12, 13, 0.1),
		0 4px 4px -1px rgba(12, 12, 13, 0.05);
}

/* Information panel */
.language-picker-information {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background-color: var(--eggshell-white);
}

.language-picker-information[hidden] {
	display: none !important;
}

.language-picker-information-text {
	margin: 0;
	font-family: var(--font-serif);
	font-size: var(--body-text);
	font-weight: var(--weight-regular);
	line-height: 22px;
	color: var(--black-text);
}

.language-picker-information-divider {
	height: 1px;
	background-color: var(--eggshell-grey-2);
}

.language-picker-feedback-link {
	align-self: center;
}
