/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '../../theme';
@use './variables';

@mixin core-styles() {
  .forge-chip-set {
    @include base;

    ::slotted(forge-chip:not(:last-child)) {
      @include theme.css-custom-property(margin-right, --forge-chip-set-spacing, variables.$spacing);
    }

    &--vertical {
      @include vertical;

      ::slotted(forge-chip:not(:last-child)) {
        @include theme.css-custom-property(margin-bottom, --forge-chip-set-spacing, variables.$spacing);
      }
    }
  }
}

@mixin host() {
  display: inline-block;
}

@mixin base() {
  @include theme.css-custom-property(gap, --forge-chip-set-spacing, variables.$spacing);

  display: flex;
  flex-wrap: wrap;
}

@mixin vertical() {
  flex-direction: column;
}
