/**
 * 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 {
  --tab-top-padding: 5px;
  --tab-bottom-padding: 5px;
  --tab-left-padding: 16px;
  --tab-right-padding: 16px;
  --tabs-border-radius: var(--cpsl-border-radius-tabs);
  --tabs-font-size: 12px;
  --tabs-line-height: 24px;
  --tabs-border-width: 1px;
  --tabs-border-color: var(--cpsl-color-tabs-border);
  --tabs-background-color: var(--cpsl-color-tabs-background);
  --slider-background-color: var(--cpsl-color-tabs-slider-background);
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--cpsl-font-family, inherit);
}

:host(.full-width) {
  display: block;
}

.tabs-container {
  position: relative;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  border-width: var(--tabs-border-width);
  border-style: solid;
  border-color: var(--tabs-border-color);
  border-radius: var(--tabs-border-radius);
  background: var(--tabs-background-color);
  font-size: var(--tabs-font-size);
  line-height: var(--tabs-line-height);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs-container::-webkit-scrollbar {
  display: none;
}

.slider {
  position: absolute;
  top: calc(var(--tabs-border-width) * -1);
  bottom: calc(var(--tabs-border-width) * -1);
  left: -1px;
  margin: 4px;
  border-radius: var(--tabs-border-radius);
  background: var(--slider-background-color);
}

.loaded {
  transition: all 0.5s;
}