@import '../../../../../../styles/mixins.scss';
@import '../../../../../../styles/definitions/typography';
@import '../../../../../../styles/shared/footer.scss';

//Component Styles
.bottomBarMenu {
    // Component Variables
    $col-spacing-x: 20px;
    $col-spacing-y: 10px;

    &_nav {
        display: flex;
        flex-wrap: wrap;

        &--align-right {
            justify-content: flex-end;
        }
    }

    &_list {
        @extend %reset-list;
        margin: ($footer-nav-item-spacing-y * -1) ($footer-nav-item-spacing-x * -1);

        @include media-md-up {
            display: flex;
            flex-wrap: wrap;
        }
    }

    &_col {
        position: relative;

        padding-left: $col-spacing-x;
        padding-right: $col-spacing-x;
        margin-top: $col-spacing-y;
        margin-bottom: $col-spacing-y;

        &--with-separator:not(&:last-of-type) {
            &:after {
                position: absolute;
                top: 50%;
                right: 0;
                transform: translateY(-50%);
                opacity: 0.6;
                color: var(--footer-nav-separator-color);
            
                @include media-md-up {
                    content: "|";
                }
            }
        }

        &--language {
            min-width: 200px;
            max-width: 260px;
        }

        @include media-md-down {
            margin-top: $footer-nav-item-spacing-y + 13px;
            margin-bottom: $footer-nav-item-spacing-y + 13px;
        }
    }

    &_sub-list {
        @extend %reset-list;
    }

    &_link {
        @extend %footer-links;
    }

    &_title {
        @extend %footer-title;
    }

    // Inherit text color from the footer section (top uses --footer-text-color;
    // bottom bar uses --footer-bottom-text-color). Do not hardcode --footer-text-color
    // here or the switcher mismatches neighboring bottom-bar links on dark layouts.
    &_languageSwitcher {
        color: inherit;
        fill: currentColor;

        .select__single-value {
            margin-right: 0;
            @include default($headingFontSize5);
            @include fontFamily;
            @include underline-hover-initial(2px, currentColor);
        }

        &:hover,
        &:focus {
            .select__single-value {
                @include underline-hover-active(currentColor);
            }
        }
    }
}
