.language-picker {
	border: 1px solid var(--color-neutral-10);
	border-width: 1px;
	border-radius: 2px;
	width: 300px;
	display: flex;
	flex: 1 0 auto;
	font-size: $font-body;
	height: 40px;
	align-items: stretch;
	cursor: pointer;
	transition: border-color 150ms ease-in-out;
	text-align: left;
	line-height: inherit;
	color: var(--color-neutral-70);

	@include breakpoint-deprecated( "<660px" ) {
		width: 100%;
	}

	&[disabled] {
		cursor: default;
		color: var(--color-neutral-40);
	}

	&:not([disabled]) {
		&:focus {
			&,
			.language-picker__icon {
				border-color: var(--color-primary);
			}

			box-shadow: 0 0 0 2px var(--color-primary-10);

			&:hover {
				box-shadow: 0 0 0 2px var(--color-primary-20);
			}
		}
	}

	&.is-loading {
		.language-picker__icon-inner {
			width: 30px;
			height: 30px;
			animation: pulse-light 800ms ease-in-out infinite;
		}

		.language-picker__name-inner {
			width: 100%;
			height: 30px;
			background-color: var(--color-neutral-0);
		}
	}
}

.language-picker__icon {
	width: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	border-right: 1px solid var(--color-neutral-10);
	transition: border-color 150ms ease-in-out;
}

.language-picker__icon-inner {
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.language-picker__name {
	flex: 1 0 auto;
	margin: 4px 16px;
	display: flex;
	align-items: center;
	position: relative;
	width: 0;
}

.language-picker__name-inner {
	overflow: hidden;
}

.language-picker__name-label {
	overflow: hidden;
	white-space: nowrap;

	&::after {
		@include long-content-fade();
	}
}
