/**
 * A heuristic that applies CSS to tablet
 * viewports.
 *
 * Usage:
 * @include tablet-viewport() {
 *   :host {
 *     background-color: green;
 *   }
 * }
 */
/**
 * A heuristic that applies CSS to mobile
 * viewports (i.e. phones, not tablets).
 *
 * Usage:
 * @include mobile-viewport() {
 *   :host {
 *     background-color: blue;
 *   }
 * }
 */
/**
 * Convert a pixels given value into rem
 * 
 * @param pixels - Value in pixels to be converted (i.e. px)
 * @param context (optional) - Baseline value
 */
/**
 * Convert a font size to a dynamic font size.
 * Fonts that participate in Dynamic Type should use
 * dynamic font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param unit (optional) - The unit to convert to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a maximum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a minimum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * maximum and minimum font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * A heuristic that applies CSS to tablet
 * viewports.
 *
 * Usage:
 * @include tablet-viewport() {
 *   :host {
 *     background-color: green;
 *   }
 * }
 */
/**
 * A heuristic that applies CSS to mobile
 * viewports (i.e. phones, not tablets).
 *
 * Usage:
 * @include mobile-viewport() {
 *   :host {
 *     background-color: blue;
 *   }
 * }
 */
:host {
  /**
   * @prop --background: Background of the chip
   * @prop --color: Color of the chip
   * @prop --border-radius: Border radius of the chip
   */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--color);
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
}

:host(.chip-disabled) {
  cursor: default;
  pointer-events: none;
}

:host {
  /**
   * @prop --focus-ring-color: Color of the focus ring
   * @prop --focus-ring-width: Width of the focus ring
   */
  --focus-ring-color: var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));
  --focus-ring-width: var(--token-border-size-050, var(--token-scale-050, 2px));
  -webkit-padding-start: var(--token-space-200, var(--token-scale-200, 8px));
  padding-inline-start: var(--token-space-200, var(--token-scale-200, 8px));
  -webkit-padding-end: var(--token-space-200, var(--token-scale-200, 8px));
  padding-inline-end: var(--token-space-200, var(--token-scale-200, 8px));
  padding-top: var(--token-space-150, var(--token-scale-150, 6px));
  padding-bottom: var(--token-space-150, var(--token-scale-150, 6px));
  border-radius: var(--border-radius);
  font-size: var(--token-font-size-300, 12px);
  font-weight: var(--token-font-weight-medium, 500);
  letter-spacing: var(--token-font-letter-spacing-0, 0%);
  line-height: var(--token-font-line-height-500, var(--token-scale-500, 20px));
  text-decoration: none;
  text-transform: none;
  gap: var(--token-space-100, var(--token-scale-100, 4px));
  line-height: var(--token-font-line-height-full, 100%);
}

:host(.chip-outline) {
  border-width: var(--token-border-size-025, var(--token-scale-025, 1px));
  border-style: var(--token-border-style-solid, solid);
}

:host(.ion-focused) {
  outline-offset: var(--token-border-size-050, var(--token-scale-050, 2px));
  outline: var(--token-border-size-050, var(--token-scale-050, 2px)) var(--token-border-style-solid, solid) var(--focus-ring-color);
}

:host(.chip-disabled)::after {
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  background-color: var(--token-state-disabled, rgba(255, 255, 255, 0.6));
  content: "";
  pointer-events: none;
}

:host(.chip-soft) {
  --border-radius: var(--token-border-radius-100, var(--token-scale-100, 4px));
}

:host(.chip-round) {
  --border-radius: var(--token-border-radius-400, var(--token-scale-400, 16px));
}

:host(.chip-rectangular) {
  --border-radius: var(--token-border-radius-0, var(--token-scale-0, 0px));
}

::slotted(ion-icon) {
  font-size: var(--token-font-size-400, 16px);
}

:host(.chip-small) {
  min-height: var(--token-scale-600, 24px);
  font-size: var(--token-font-size-300, 12px);
}

:host(.chip-large) {
  min-height: var(--token-scale-800, 32px);
  font-size: var(--token-font-size-350, 14px);
}

:host(.chip-subtle) {
  --background: var(--token-primitives-neutral-100, #f3f3f3);
  --color: var(--token-primitives-neutral-800, #626262);
}

:host(.chip-outline.chip-subtle) {
  border-color: var(--token-primitives-neutral-300, #e0e0e0);
}

:host(.chip-bold) {
  --background: var(--token-bg-neutral-bold-default, var(--token-primitives-neutral-1000, #3b3b3b));
  --color: var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));
}

:host(.chip-outline.chip-bold) {
  border-color: var(--token-text-default, var(--token-primitives-neutral-1200, #242424));
}

:host(.chip-subtle.ion-color) {
  background: var(--ion-color-subtle-base);
  color: var(--ion-color-subtle-contrast);
}

:host(.chip-subtle.chip-outline.ion-color) {
  border-color: var(--ion-color-subtle-shade);
}

:host(.chip-bold.ion-color) {
  background: var(--ion-color-base);
  color: var(--ion-color-contrast);
}

:host(.chip-bold.chip-outline.ion-color) {
  border-color: var(--ion-color-shade);
}