@use '../../../styles/variables' as *;
@use '../../../theme/tokens/typography.tokens' as typography;

:host {
  align-items: center;
  background-color: $color-neutral-lighter;
  border-radius: rhythm(1.5);
  cursor: default;
  display: flex;
  gap: rhythm(0.5);
  height: rhythm(2.5);
  justify-content: space-between;
  padding: 0 rhythm(1);

  &.overline {
    @include typography.overline();
  }

  .icon-and-text {
    align-items: center;
    display: flex;
    gap: rhythm(0.25);

    &.no-content {
      gap: 0;
    }
  }

  &.clickable {
    cursor: pointer;
  }
  &.with-count {
    padding-right: rhythm(0.25);
  }
  &.with-icon {
    padding: 0 rhythm(0.5);

    pa-icon {
      display: flex;

      ::ng-deep svg.pa-small {
        height: rhythm(1.5);
        width: rhythm(1.5);
      }
    }
  }

  &.tertiary {
    background-color: $color-tertiary-lightest;
    color: $color-tertiary-strong;
  }

  &.success {
    background-color: $color-success-lightest;
    color: $color-success-strong;
  }

  .text {
    max-width: rhythm(9);

    &.no-content {
      width: 0;
    }
  }
  .count {
    background: $color-light-stronger;
    border-radius: rhythm(5);
    padding: 0 rhythm(0.5);
    height: rhythm(2);
    min-width: rhythm(2);
    text-align: center;
  }
}
