@use '../../../../mx-core/src/base/typography';
@use '../../../../mx-core/src/base/shape';

:host {
  @extend .gl-label-md;
  @extend .rounded-x-sm;
  height: 36px;
  min-width: 88px;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  cursor: pointer;
  gap: 8px;

  &:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 100%;
    bottom: -14px;
    display: none;
  }

  .mx-top-nav-link-button ~ & {
    margin-left: 8px;
  }

  &.mx-top-nav-link-button--is-active {
    &:after {
      display: block;
    }
  }

  &.mat-mdc-menu-trigger {
    padding: 0 4px;
    .mat-icon {
      display: block;
    }
  }
}

.mat-icon {
  width: 16px;
  height: 16px;
  display: none;
}
