/*
 * [peptix_language_switcher] — footer language pill (dark background).
 */

.peptix-lang {
	position: relative;
	display: inline-block;
	font-family: "Outfit", sans-serif;
}

.peptix-lang .peptix-lang__toggle,
.peptix-lang .peptix-lang__toggle:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 37px;
	padding: 0 14px 0 6px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.peptix-lang .peptix-lang__toggle:hover,
.peptix-lang .peptix-lang__toggle:focus-visible,
.peptix-lang .peptix-lang__toggle[aria-expanded="true"] {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.peptix-lang .peptix-lang__toggle:focus-visible,
.peptix-lang .peptix-lang__option:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.peptix-lang .peptix-lang__flag {
	display: block;
	width: 24px;
	height: 24px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.peptix-lang .peptix-lang__arrow {
	transition: transform 0.2s ease;
}

.peptix-lang .peptix-lang__toggle[aria-expanded="true"] .peptix-lang__arrow {
	transform: rotate(180deg);
}

.peptix-lang .peptix-lang__list {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 50;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.peptix-lang.peptix-lang--down .peptix-lang__list {
	top: calc(100% + 8px);
	bottom: auto;
}

.peptix-lang .peptix-lang__list[hidden] {
	display: none;
}

/* The site's global button styles (Elementor Site Settings) are reset here. */
.peptix-lang .peptix-lang__toggle,
.peptix-lang .peptix-lang__option {
	min-height: 0;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
}

.peptix-lang .peptix-lang__option,
.peptix-lang .peptix-lang__option:focus {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #0f172a;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

.peptix-lang .peptix-lang__option .peptix-lang__flag {
	width: 20px;
	height: 20px;
}

.peptix-lang .peptix-lang__option:hover,
.peptix-lang .peptix-lang__option:focus-visible {
	background: #f0f6ff;
	color: #0f172a;
}

.peptix-lang .peptix-lang__option[aria-selected="true"],
.peptix-lang .peptix-lang__option[aria-selected="true"]:hover,
.peptix-lang .peptix-lang__option[aria-selected="true"]:focus {
	background: #f0f6ff;
	color: #3b82f6;
	font-weight: 500;
}

/* GTranslate's own dropdown does the translating; it stays hidden. */
.peptix-lang .peptix-lang__engine {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.peptix-lang .peptix-lang__toggle {
		height: 30px;
		gap: 8px;
		padding: 0 10px 0 4px;
		font-size: 16px;
	}

	.peptix-lang .peptix-lang__flag {
		width: 22px;
		height: 22px;
	}

	.peptix-lang .peptix-lang__list {
		right: auto;
		left: 0;
	}
}
