/**
 * 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;
 *   }
 * }
 */
/**
 * Convert a pixels given value into rem
 * 
 * @param pixels - Value in pixels to be converted (i.e. px)
 * @param context (optional) - Baseline value
 */
/**
 * 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 {
  /**
   * @prop --background: Background of the button
   * @prop --background-activated: Background of the button when pressed. Note: setting this will interfere with the Material Design ripple.
   * @prop --background-activated-opacity: Opacity of the button when pressed
   * @prop --background-focused: Background of the button when focused with the tab key
   * @prop --background-focused-opacity: Opacity of the button when focused with the tab key
   * @prop --background-hover: Background of the button on hover
   * @prop --background-hover-opacity: Opacity of the background on hover
   *
   * @prop --color: Text color of the button
   * @prop --color-activated: Text color of the button when pressed
   * @prop --color-focused: Text color of the button when focused with the tab key
   * @prop --color-hover: Text color of the button when hover
   *
   * @prop --transition: Transition of the button
   *
   * @prop --border-radius: Border radius of the button
   * @prop --border-width: Border width of the button
   * @prop --border-style: Border style of the button
   * @prop --border-color: Border color of the button
   *
   * @prop --ripple-color: Color of the button ripple effect
   *
   * @prop --box-shadow: Box shadow of the button
   * @prop --opacity: Opacity of the button
   *
   * @prop --padding-top: Top padding of the button
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the button
   * @prop --padding-bottom: Bottom padding of the button
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the button
   */
  --overflow: hidden;
  --ripple-color: currentColor;
  --border-width: initial;
  --border-color: initial;
  --border-style: initial;
  --color-activated: var(--color);
  --color-focused: var(--color);
  --color-hover: var(--color);
  --box-shadow: none;
  display: inline-block;
  width: auto;
  color: var(--color);
  text-align: center;
  text-decoration: none;
  white-space: normal;
  user-select: none;
  vertical-align: top;
  vertical-align: -webkit-baseline-middle;
  font-kerning: none;
}

:host(.button-disabled) {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

:host(.button-outline) {
  --background: transparent;
}

:host(.button-clear) {
  --border-width: 0;
  --background: transparent;
}

:host(.button-block) {
  display: block;
}

:host(.button-block) .button-native {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  clear: both;
  contain: content;
}

:host(.button-block) .button-native::after {
  clear: both;
}

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

:host(.button-full) .button-native {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  contain: content;
}

:host(.button-full:not(.button-round)) .button-native {
  border-radius: 0;
  border-right-width: 0;
  border-left-width: 0;
}

.button-native {
  border-radius: var(--border-radius);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  -webkit-padding-start: var(--padding-start);
  padding-inline-start: var(--padding-start);
  -webkit-padding-end: var(--padding-end);
  padding-inline-end: var(--padding-end);
  padding-top: var(--padding-top);
  padding-bottom: var(--padding-bottom);
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-decoration: inherit;
  text-indent: inherit;
  text-overflow: inherit;
  text-transform: inherit;
  white-space: inherit;
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: var(--transition);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  outline: none;
  background: var(--background);
  line-height: 1;
  box-shadow: var(--box-shadow);
  contain: layout style;
  cursor: pointer;
  opacity: var(--opacity);
  overflow: var(--overflow);
  z-index: 0;
  box-sizing: border-box;
  appearance: none;
}

.button-native::-moz-focus-inner {
  border: 0;
}

.button-inner {
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}

::slotted([slot=start]),
::slotted([slot=end]) {
  flex-shrink: 0;
}

::slotted(ion-icon),
::slotted(ion-spinner) {
  pointer-events: none;
}

ion-ripple-effect {
  color: var(--ripple-color);
}

.button-native::after {
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  content: "";
  opacity: 0;
}

:host(.ion-focused) {
  color: var(--color-focused);
}

:host(.ion-focused) .button-native::after {
  background: var(--background-focused);
  opacity: var(--background-focused-opacity);
}

@media (any-hover: hover) {
  :host(:hover) {
    color: var(--color-hover);
  }
  :host(:hover) .button-native::after {
    background: var(--background-hover);
    opacity: var(--background-hover-opacity);
  }
}
:host(.ion-activated) {
  color: var(--color-activated);
}

:host(.ion-activated) .button-native::after {
  background: var(--background-activated);
  opacity: var(--background-activated-opacity);
}

:host(.button-solid.ion-color) .button-native {
  background: var(--ion-color-base);
  color: var(--ion-color-contrast);
}

:host(.button-outline.ion-color) .button-native {
  border-color: var(--ion-color-base);
  background: transparent;
  color: var(--ion-color-base);
}

:host(.button-clear.ion-color) .button-native {
  background: transparent;
  color: var(--ion-color-foreground);
}

:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native {
  color: var(--ion-toolbar-color, var(--color));
}

:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native {
  border-color: var(--ion-toolbar-color, var(--color, var(--border-color)));
}

:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native {
  background: var(--ion-toolbar-color, var(--background));
  color: var(--ion-toolbar-background, var(--color));
}

.button-native ion-ripple-effect,
.button-native::after {
  border-radius: inherit;
}

:host(.button-has-badge) .button-native {
  --overflow: visible;
}

:host ::slotted(ion-badge[vertical]:not(:empty)) {
  display: flex;
  align-items: center;
  justify-content: center;
}

:host {
  --padding-top: var(--token-space-0, var(--token-scale-0, 0px));
  --padding-end: var(--token-space-0, var(--token-scale-0, 0px));
  --padding-bottom: var(--padding-top);
  --padding-start: var(--padding-end);
  --focus-ring-color: var(--token-border-focus-default, var(--token-primitives-blue-400, #b5c0f7));
  --focus-ring-width: var(--token-border-size-050, var(--token-scale-050, 2px));
  position: relative;
}
:host::after {
  right: 0;
  left: 0;
  top: 50%;
  position: absolute;
  height: 100%;
  min-height: var(--token-scale-1200, 48px);
  transform: translateY(-50%);
  content: "";
  cursor: pointer;
  z-index: 1;
}

:host(.button-clear) {
  --color: var(--ion-color-primary-foreground, var(--token-text-primary, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3))));
}

:host(.button-solid) {
  --background-activated: var(--ion-color-primary-shade, var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3))));
  --background-hover: var(--ion-color-primary-shade, var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3))));
  --background-focused: transparent;
  --background-hover-opacity: 1;
  --background: var(--ion-color-primary, var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))));
  --color: var(--ion-color-primary-contrast, var(--token-text-inverse, var(--token-primitives-base-white, #ffffff)));
  --ripple-opacity: var(--background-activated-opacity, 1);
  --ripple-color: var(--background-activated);
}

:host(.button-outline) {
  --border-width: var(--token-border-size-025, var(--token-scale-025, 1px));
  --border-style: var(--token-border-style-solid, solid);
  --background-activated: var(--ion-color-primary-subtle-shade, var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa))));
  --background-focused: transparent;
  --background-hover: var(--ion-color-primary-subtle-shade, var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa))));
  --background-hover-opacity: 1;
  --border-color: var(--ion-color-primary, var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))));
  --color: var(--ion-color-primary, var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))));
  --ripple-opacity: var(--background-activated-opacity, 1);
  --ripple-color: var(--background-activated);
}

:host(.button-outline.ion-color-warning) .button-native {
  border-color: var(--ion-color-warning-foreground, var(--token-text-warning, var(--token-semantics-warning-1000, var(--token-primitives-yellow-1000, #704b02))));
  color: var(--ion-color-warning-foreground, var(--token-text-warning, var(--token-semantics-warning-1000, var(--token-primitives-yellow-1000, #704b02))));
}

:host(.button-clear) {
  --background-activated: var(--ion-color-primary-subtle-shade, var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa))));
  --background-focused: transparent;
  --background-hover: var(--ion-color-primary-subtle-shade, var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa))));
  --background-hover-opacity: 1;
  --color: var(--ion-color-primary-foreground, var(--token-text-primary, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3))));
  --ripple-opacity: var(--background-activated-opacity, 1);
  --ripple-color: var(--background-activated);
}

:host(.button-solid.ion-color) ion-ripple-effect {
  color: var(--ion-color-shade);
}

:host(.button-outline.ion-color) ion-ripple-effect,
:host(.button-clear.ion-color) ion-ripple-effect {
  color: var(--ion-color-subtle-shade);
}

/* Small Button */
:host(.button-small) {
  --padding-end: var(--token-space-400, var(--token-scale-400, 16px));
  font-size: var(--token-font-size-350, 14px);
  font-weight: var(--token-font-weight-medium, 500);
  letter-spacing: var(--token-font-letter-spacing-1, 1%);
  line-height: var(--token-font-line-height-500, var(--token-scale-500, 20px));
  text-decoration: none;
  text-transform: none;
  min-width: var(--token-scale-1600, 64px);
  min-height: var(--token-scale-1000, 40px);
}

/* Medium Button */
:host(.button-medium) {
  --padding-end: var(--token-space-500, var(--token-scale-500, 20px));
  font-size: var(--token-font-size-400, 16px);
  font-weight: var(--token-font-weight-medium, 500);
  letter-spacing: var(--token-font-letter-spacing-1, 1%);
  line-height: var(--token-font-line-height-600, var(--token-scale-600, 24px));
  text-decoration: none;
  text-transform: none;
  min-width: var(--token-scale-1800, 72px);
  min-height: var(--token-scale-1200, 48px);
}

/* Large Button */
:host(.button-large) {
  --padding-end: var(--token-space-700, var(--token-scale-700, 28px));
  font-size: var(--token-font-size-500, 20px);
  font-weight: var(--token-font-weight-medium, 500);
  letter-spacing: var(--token-font-letter-spacing-1, 1%);
  line-height: var(--token-font-line-height-600, var(--token-scale-600, 24px));
  text-decoration: none;
  text-transform: none;
  min-width: var(--token-scale-2000, 80px);
  min-height: var(--token-scale-1400, 56px);
}

/* Button containing only an icon */
:host(.button-small) ::slotted(ion-icon[slot=start]),
:host(.button-small) ::slotted(ion-icon[slot=end]),
:host(.button-small) ::slotted(ion-icon[slot=icon-only]),
:host(.button-medium) ::slotted(ion-icon[slot=start]),
:host(.button-medium) ::slotted(ion-icon[slot=end]),
:host(.button-medium) ::slotted(ion-icon[slot=icon-only]) {
  width: var(--token-scale-500, 20px);
  height: var(--token-scale-500, 20px);
}

:host(.button-large) ::slotted(ion-icon[slot=start]),
:host(.button-large) ::slotted(ion-icon[slot=end]),
:host(.button-large) ::slotted(ion-icon[slot=icon-only]) {
  width: var(--token-scale-600, 24px);
  height: var(--token-scale-600, 24px);
}

:host(.button-has-icon-only) {
  --padding-end: var(--padding-top);
  min-width: unset;
  aspect-ratio: 1/1;
}

::slotted(ion-spinner) {
  --color: currentColor;
}

/* Button containing only a spinner */
::slotted(ion-spinner[slot=start]),
::slotted(ion-spinner[slot=end]),
::slotted(ion-spinner[slot=icon-only]) {
  width: var(--token-scale-500, 20px);
  height: var(--token-scale-500, 20px);
}

:host(.button-soft) {
  --border-radius: var(--token-soft-xs, var(--token-border-radius-200, var(--token-scale-200, 8px)));
}

:host(.button-round) {
  --border-radius: var(--token-round-xs, var(--token-border-radius-full, 999px));
}

:host(.button-rectangular) {
  --border-radius: var(--token-rectangular-xs, var(--token-border-radius-0, var(--token-scale-0, 0px)));
}

:host(.ion-focused) .button-native {
  outline: var(--focus-ring-width) var(--token-border-style-solid, solid) var(--focus-ring-color);
  outline-offset: var(--token-border-size-050, var(--token-scale-050, 2px));
}

:host(.button-solid.ion-color.ion-activated) .button-native::after {
  background: var(--ion-color-shade);
}

:host(.button-outline.ion-color.ion-activated) .button-native::after,
:host(.button-clear.ion-color.ion-activated) .button-native::after {
  background: var(--ion-color-subtle-shade);
}

:host(.ion-activated) .button-native:has(ion-ripple-effect)::after,
:host(.button-solid.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after,
:host(.button-outline.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after,
:host(.button-clear.ion-color.ion-activated) .button-native:has(ion-ripple-effect)::after {
  background: transparent;
}

@media (any-hover: hover) {
  :host(.button-solid.ion-color:hover) .button-native::after {
    background: var(--ion-color-shade);
  }
  :host(.button-outline.ion-color:hover) .button-native::after,
  :host(.button-clear.ion-color:hover) .button-native::after {
    background: var(--ion-color-subtle-shade);
  }
}
:host(.button-disabled) .button-native::after {
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  background-color: var(--token-state-disabled, rgba(255, 255, 255, 0.6));
  content: "";
  pointer-events: none;
  width: inherit;
  height: inherit;
}

::slotted(ion-icon) {
  font-size: var(--token-font-size-500, 20px);
}

:host(.button-small) ::slotted(ion-icon[slot=start]),
:host(.button-small) ::slotted(ion-spinner[slot=start]) {
  -webkit-margin-end: var(--token-space-200, var(--token-scale-200, 8px));
  margin-inline-end: var(--token-space-200, var(--token-scale-200, 8px));
}

::slotted(ion-icon[slot=start]),
::slotted(ion-spinner[slot=start]) {
  -webkit-margin-end: var(--token-space-250, var(--token-scale-250, 10px));
  margin-inline-end: var(--token-space-250, var(--token-scale-250, 10px));
}

:host(.button-large) ::slotted(ion-icon[slot=start]),
:host(.button-large) ::slotted(ion-spinner[slot=start]) {
  -webkit-margin-end: var(--token-space-300, var(--token-scale-300, 12px));
  margin-inline-end: var(--token-space-300, var(--token-scale-300, 12px));
}

:host(.button-small) ::slotted(ion-icon[slot=end]),
:host(.button-small) ::slotted(ion-spinner[slot=end]) {
  -webkit-margin-start: var(--token-space-200, var(--token-scale-200, 8px));
  margin-inline-start: var(--token-space-200, var(--token-scale-200, 8px));
}

::slotted(ion-icon[slot=end]),
::slotted(ion-spinner[slot=end]) {
  -webkit-margin-start: var(--token-space-250, var(--token-scale-250, 10px));
  margin-inline-start: var(--token-space-250, var(--token-scale-250, 10px));
}

:host(.button-large) ::slotted(ion-icon[slot=end]),
:host(.button-large) ::slotted(ion-spinner[slot=end]) {
  -webkit-margin-start: var(--token-space-300, var(--token-scale-300, 12px));
  margin-inline-start: var(--token-space-300, var(--token-scale-300, 12px));
}

:host(.button-has-badge) {
  --padding-top: var(--token-space-0, var(--token-scale-0, 0px));
  --padding-bottom: var(--token-space-0, var(--token-scale-0, 0px));
}

:host(.button-small) ::slotted(ion-badge) {
  inset-inline-end: calc(-1 * var(--token-space-050, var(--token-scale-050, 2px)));
}

:host(.button-medium) ::slotted(ion-badge.long-badge.badge-vertical-top) {
  top: var(--token-space-100, var(--token-scale-100, 4px));
}
:host(.button-medium) ::slotted(ion-badge.long-badge.badge-vertical-bottom) {
  bottom: var(--token-space-100, var(--token-scale-100, 4px));
}
:host(.button-medium) ::slotted(ion-badge:not(.long-badge).badge-vertical-top) {
  top: var(--token-space-100, var(--token-scale-100, 4px));
}
:host(.button-medium) ::slotted(ion-badge:not(.long-badge).badge-vertical-top) {
  inset-inline-end: var(--token-space-150, var(--token-scale-150, 6px));
}

:host(.button-medium) ::slotted(ion-badge:not(.long-badge).badge-vertical-bottom) {
  bottom: var(--token-space-100, var(--token-scale-100, 4px));
}
:host(.button-medium) ::slotted(ion-badge:not(.long-badge).badge-vertical-bottom) {
  inset-inline-end: var(--token-space-150, var(--token-scale-150, 6px));
}

:host(.button-large) ::slotted(ion-badge.long-badge.badge-vertical-top) {
  top: var(--token-space-200, var(--token-scale-200, 8px));
}
:host(.button-large) ::slotted(ion-badge.long-badge.badge-vertical-bottom) {
  bottom: var(--token-space-200, var(--token-scale-200, 8px));
}
:host(.button-large) ::slotted(ion-badge:not(.long-badge).badge-vertical-top) {
  top: var(--token-space-200, var(--token-scale-200, 8px));
}
:host(.button-large) ::slotted(ion-badge:not(.long-badge).badge-vertical-top) {
  inset-inline-end: var(--token-space-200, var(--token-scale-200, 8px));
}

:host(.button-large) ::slotted(ion-badge:not(.long-badge).badge-vertical-bottom) {
  bottom: var(--token-space-200, var(--token-scale-200, 8px));
}
:host(.button-large) ::slotted(ion-badge:not(.long-badge).badge-vertical-bottom) {
  inset-inline-end: var(--token-space-200, var(--token-scale-200, 8px));
}