/**
 * 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 {
  display: block;
  --filter: auto;
  --height: 24px;
  --width: 24px;
  --inset: 0px;
  --computed-height: calc(var(--height) - (2 * var(--inset)));
  --computed-width: calc(var(--width) - (2 * var(--inset)));
  --icon-color: var(--icon-color, currentColor);
  --icon-fill-color: var(--icon-fill-color, var(--icon-color, currentColor));
  --icon-stroke-color: var(--icon-stroke-color, var(--icon-color, currentColor));
  width: var(--width);
  height: var(--height);
}
:host .foreground-0 {
  fill: var(--cpsl-color-foreground-0);
  stop-color: var(--cpsl-color-foreground-0);
}
:host .accent-0 {
  fill: var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
  stop-color: var(--cpsl-color-accent-0, var(--cpsl-color-foreground-0));
}

:host div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: var(--icon-border, auto);
  border-radius: var(--icon-border-radius, 0);
  background: var(--icon-background, transparent);
  color: var(--icon-color);
  box-sizing: border-box;
}

:host svg {
  width: var(--computed-width, "100%");
  height: var(--computed-height, "100%");
  filter: var(--filter);
  border-radius: var(--icon-border-radius, 0);
}
:host svg .background-16 {
  fill: var(--cpsl-color-background-16);
}
:host svg .foreground-0 {
  fill: var(--cpsl-color-foreground-0);
}
:host svg .fill {
  fill: var(--icon-fill-color);
}
:host svg .stroke {
  stroke: var(--icon-stroke-color);
}

:host img {
  width: var(--computed-width, 100%);
  height: var(--computed-height, 100%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}