/* IGS External Links — front-end language dropdown. */

.igs-el-langs {
	position: relative;
	display: inline-block;
	color: #000;
}

.igs-el-langs__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 42px;
	padding: 0 8px;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 8px;
	color: inherit;
	line-height: 1;
	cursor: pointer;
}

.igs-el-langs__toggle:hover {
	border-color: #b0b4ba;
}

.igs-el-langs__icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
}

.igs-el-langs__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.igs-el-langs__arrow {
	flex: 0 0 auto;
	transition: transform .2s ease;
}

.igs-el-langs.is-open .igs-el-langs__arrow {
	transform: rotate(180deg);
}

.igs-el-langs__icon svg,
.igs-el-langs__arrow svg {
	display: block;
	width: 100%;
	height: 100%;
}

.igs-el-langs__dropdown {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 0;
	z-index: 50;
	margin-bottom: 10px;
	padding: 16px;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.igs-el-langs.is-open .igs-el-langs__dropdown {
	display: block;
}

[dir="rtl"] .igs-el-langs__dropdown {
	left: auto;
	right: 0;
}

.igs-el-langs__title {
	margin: 0 0 10px;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
}

.igs-el-langs__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 16px;
	font-size: 13px;
	white-space: nowrap;
}

@media (min-width: 782px) {
	.igs-el-langs__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.igs-el-langs__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid #eee;
	color: inherit;
	text-decoration: none;
}

.igs-el-langs__item:hover {
	color: #2271b1;
}

.igs-el-langs__flag {
	flex: 0 0 auto;
	display: inline-flex;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	overflow: hidden;
}

.igs-el-langs__flag img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}