.wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: solid thin $gray-light;
  border-radius: 5px;
  overflow: hidden;

  & .item {
    color: $gray-medium;
    font-weight: medium;
    padding: 10px;
    flex: 1;
    text-align: center;
    border-right: solid thin $gray-light;
    cursor: pointer;
    background-color: $gray-lightest;
    display: flex;
    align-items: center;
    justify-content: center;

    & span svg {
      fill: $gray-medium;
    }

    &[data-active=true] {
      background-color: white;
      color: $teal;

      & span svg {
        fill: $teal;
      }
    }

    &:last-child {
      border: none;
    }

    &:hover {
      background-color: white;
      color: $teal;

      & span svg {
        fill: $teal;
      }
    }
  }
}

.primary {
  border: solid thin $teal;
  & .item {
    color: $teal;
    background-color: white;
    &[data-active=true] {
      background-color: $teal;
      color: white;
    }
  }
}

.small .item {
  padding: 4px 8px;
}