/*
  Default menu styling
*/

.menu {
    display: flex;
    height: 100%;
    list-style-type: none;
    margin-bottom: 0;
}

.menu--main-menu {
    align-items: center;
    flex-shrink: 0;
    padding-left: 0;

    .current_page_item a,
    .current-menu-ancestor a {
        font-weight: $font-weight-bold;
    }

    @include media-breakpoint-down(lg) {
        display: none;
    }

    .menu__item {
        margin: 0 $spacing-sm;
    }

    .menu__item-button {
        background-color: transparent;
        border: none;
    }

    .menu__link {
        padding: $spacing-sm $spacing-md;
        transition: $transition-default;

        &:hover {
            background-color: $color-primary-light;
            border-radius: $border-radius-xl;
        }

        @include media-breakpoint-down(xl) {
            font-size: $font-size-sm;
            padding: $spacing-xs $spacing-md;
        }
    }
}

.menu__item,
%menu__item {
    align-items: center;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.menu-item-has-children {
    .menu__link::after {
        background-color: $color-text-dark;
        content: '';
        display: inline-block;
        flex-shrink: 0;
        height: rem(24px);
        -webkit-mask-image: url('@icons/chevron.svg');
        mask-image: url('@icons/chevron.svg');
        transition: $transition-default;
        width: rem(24px);
    }
}

.menu__link,
%menu__link {
    align-items: center;
    color: $color-text-dark;
    display: flex;
    font-weight: $font-weight-medium;
    text-decoration: none;
    width: 100%;
}

.menu__logo {
    height: 43px;

    img {
        height: 100%;
    }
}
