.c-language-navigation {
    position: relative;

    @screen lg {
        display: flex;
        margin-left: 1.5rem;
    }
}

.c-language-navigation--menu {
    @screen lg {
        display: none;
    }
}

.c-language-navigation__button {
    font-size: .875rem;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    padding: 0;
    transition: color $transition-time;
    display: flex;
    align-items: center;
    line-height: 1.2;

    .c-icon {
        top: 0;
        margin-right: .325rem;
    }

    @screen lg {
        &:hover,
        &:focus {
            color: theme('colors.primary.200');
        }

        .c-site-header--filled & {
            color: theme('colors.gray.600');

            &:hover,
            &:focus {
                color: theme('colors.primary.600');
            }
        }
    }
}

.c-language-navigation__dropdown {
    visibility: hidden;
    height: 0;
    opacity: 0;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    padding: 1rem;
    background: #fff;
    box-shadow: $box-shadow-basic;
    margin-top: 0;
    transform: translateY(-.5rem);
    transition: opacity $transition-time, transform $transition-time;

    &.is-target {
        visibility: visible;
        height: auto;
        opacity: 1;
        z-index: 22;
        transform: none;
    }

    [aria-current] {
        font-weight: 700;
        color: theme('colors.primary.600');
        cursor: not-allowed;
    }

    @screen lg {
        right: 0;
        left: auto;
    }
}

.c-language-navigation__item + .c-language-navigation__item {
    margin-top: 1rem;
}

.c-language-navigation__link {
    display: flex;
    align-items: center;
    color: theme('colors.gray.600');
    text-decoration: none;

    .c-icon {
        top: 0;
        margin-right: .25rem;
    }

    &:hover,
    &:focus {
        text-decoration: none;
        color: theme('colors.primary.600');
    }
}
