/**
 * 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 {
  --container-height: 20px;
  --container-width: 20px;
  --container-border-radius: var(--cpsl-border-radius-checkbox);
  --container-border-width: 2px;
  --container-background-color-default: var(--cpsl-color-checkbox-surface-default);
  --container-border-color-default: var(--cpsl-color-checkbox-border-default);
  --container-background-color-checked: var(--cpsl-color-checkbox-surface-checked);
  --container-border-color-checked: var(--cpsl-color-checkbox-border-checked);
  --icon-height: 16px;
  --icon-width: 16px;
  --checkbox-icon-color: var(--cpsl-color-checkbox-icon);
  display: block;
  position: relative;
  height: var(--container-height);
  width: var(--container-width);
  cursor: pointer;
}

input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0px;
  opacity: 0;
}

span.container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: var(--container-border-radius);
  border: var(--container-border-width) solid;
  background: var(--container-background-color-default);
  border-color: var(--container-border-color-default);
  transition: all 0.15s ease-in-out;
}
span.container cpsl-icon {
  --height: var(--icon-height);
  --width: var(--icon-width);
  opacity: 0;
  --icon-color: var(--checkbox-icon-color);
  transition: all 0.15s ease-in-out;
}
span.container.checked {
  background: var(--container-background-color-checked);
  border-color: var(--container-border-color-checked);
}
span.container.checked cpsl-icon {
  opacity: 1;
}