/**
 * 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 {
  --button-icon-color: var(--cpsl-color-text-primary);
  --button-border-radius: var(--cpsl-border-radius-tile-button);
  --button-background-color: var(--cpsl-color-tile-button-surface-default);
  --button-border-color: var(--cpsl-color-tile-button-border);
  --button-width: 72px;
  --button-height: 56px;
  --button-gap: 8px;
}

:host :hover {
  --button-background-color: var(--cpsl-color-tile-button-surface-hover);
}
:host :active {
  --button-background-color: var(--cpsl-color-tile-button-surface-pressed);
}

.button-native {
  border-radius: var(--button-border-radius);
  -webkit-padding-start: var(--button-padding-start);
  padding-inline-start: var(--button-padding-start);
  -webkit-padding-end: var(--button-padding-end);
  padding-inline-end: var(--button-padding-end);
  padding-top: var(--button-padding-top);
  padding-bottom: var(--button-padding-bottom);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--button-background-color);
  border-color: var(--button-border-color);
  display: flex;
  flex-direction: column;
  gap: var(--button-gap);
  align-items: center;
  justify-content: center;
  width: var(--button-width);
  height: var(--button-height);
  box-shadow: var(--button-box-shadow);
}
.button-native cpsl-icon {
  --icon-color: var(--button-icon-color);
  --height: var(--button-icon-height);
  --width: var(--button-icon-width);
}