/**
 * 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 {
  --pill-text-color: var(--cpsl-pill-text);
  --pill-text-size: clamp(10px, 0.625rem, 15px);
  --pill-text-line-height: 100%;
  --pill-container-height: 18px;
  --pill-container-background-color: var(--cpsl-color-pill-container-background);
  --pill-container-border-color: var(--cpsl-color-pill-container-border);
  --pill-container-padding-start: 8px;
  --pill-container-padding-end: 8px;
  --pill-container-border-radius: var(--cpsl-border-radius-pill);
  font-family: var(--cpsl-font-family, inherit);
  display: inline-block;
}

.pill-container {
  -webkit-padding-start: var(--pill-container-padding-start);
  padding-inline-start: var(--pill-container-padding-start);
  -webkit-padding-end: var(--pill-container-padding-end);
  padding-inline-end: var(--pill-container-padding-end);
  padding-top: var(--pill-container-padding-top);
  padding-bottom: var(--pill-container-padding-bottom);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: var(--pill-container-height);
  background: var(--pill-container-background-color);
  border: 1px solid;
  border-color: var(--pill-container-border-color);
  border-radius: var(--pill-container-border-radius);
  color: var(--pill-text-color);
  font-size: var(--pill-text-size);
  line-height: var(--pill-text-line-height);
}
.pill-container span {
  display: inline-block;
}