:host {
  /**
   * @prop --background: Background of the button
   * @prop --background-active: Background of the button when pressed. Note: setting this will interfere with the Material Design ripple.
   * @prop --background-active-opacity: Opacity of the button background when pressed
   * @prop --background-focus: Background of the button when focus with the tab key
   * @prop --background-focus-opacity: Opacity of the button background when focus with the tab key
   * @prop --background-hover: Background of the button on hover
   * @prop --background-hover-opacity: Opacity of the button background on hover
   *
   * @prop --color: Text color of the button
   * @prop --color-active: Text color of the button when pressed
   * @prop --color-focus: Text color of the button when focus with the tab key
   * @prop --color-hover: Text color of the button on 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 --box-shadow: Box shadow of the button
   * @prop --overflow: Overflow
   * @prop --cursor: Cursor type
   *
   * @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
   *
   * @prop --min-width: Width of the button
   * @prop --min-height: Height of the button
   */
  --overflow: initial;
  --border-radius: 16px;
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --padding-top: 0;
  --padding-end: 1em;
  --padding-bottom: 0;
  --padding-start: 1em;
  --background: var(--bkkr-text-color, #000);
  --background-active: var(--bkkr-background-color, #fff);
  --background-focus: var(--bkkr-background-color, #fff);
  --background-hover: var(--bkkr-background-color, #fff);
  --background-active-opacity: 0.12;
  --background-focus-opacity: 0.04;
  --background-hover-opacity: 0.04;
  --color-active: var(--color, currentColor);
  --color-focus: var(--color, currentColor);
  --color-hover: var(--color, currentColor);
  --box-shadow-color: var(--bkkr-text-color-rgb, 0, 0, 0);
  --box-shadow: 0 15px 25px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.1), 0 6px 20px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.12), 0 13.2px 40px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.08);
  --transition: 0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59), 0.2s box-shadow cubic-bezier(0.25, 1.11, 0.78, 1.59);
  --transform: translateZ(0);
  --min-width: 56px;
  --min-height: 56px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  width: auto;
  min-width: var(--min-width);
  height: var(--min-width);
  min-height: var(--min-height);
  outline: none;
  color: var(--color, currentColor);
  font-family: var(--bkkr-font-family);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  vertical-align: top;
  vertical-align: -webkit-baseline-middle;
  font-kerning: none;
}

.button-native {
  transition: var(--transition);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding-left: var(--padding-start);
  padding-right: 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;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: var(--transform);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  outline: none;
  background: var(--background);
  background-clip: padding-box;
  color: var(--color, currentColor);
  contain: layout style;
  cursor: var(--cursor, pointer);
  overflow: var(--overflow);
  z-index: 0;
  appearance: none;
  will-change: transform, box-shadow;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .button-native {
    transition: none;
  }
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .button-native {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: var(--padding-start);
    padding-inline-start: var(--padding-start);
    -webkit-padding-end: var(--padding-end);
    padding-inline-end: var(--padding-end);
  }
}

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

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

.button-native::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  content: "";
  opacity: 0;
  transition: 0.2s opacity cubic-bezier(0.32, 0.72, 0, 1);
}

@media (any-hover: hover) {
  :host(:hover) .button-native {
    color: var(--color-hover);
  }
  :host(:hover) .button-native::after {
    background: var(--background-hover);
    opacity: var(--background-hover-opacity);
  }
}
:host(:focus) .button-native,
:host(.state-focused) .button-native {
  color: var(--color-focus);
}
:host(:focus) .button-native::after,
:host(.state-focused) .button-native::after {
  background: var(--background-focus);
  opacity: var(--background-focus-opacity);
}

:host(:active),
:host(.state-activated) {
  --box-shadow: 0 3px 5px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.1), 0 6px 10px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.12), 0 1.2px 20px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.08);
  --transform: translate3d(0, 1px, 0);
  --transition: 0.2s transform ease-out, 0.2s box-shadow ease-out;
}
:host(:active) .button-native,
:host(.state-activated) .button-native {
  color: var(--color-active);
}
:host(:active) .button-native::after,
:host(.state-activated) .button-native::after {
  background: var(--background-active);
  opacity: var(--background-active-opacity);
}

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

:host(.bkkr-color) {
  --background: var(--color-base);
  --color: var(--color-contrast);
  --box-shadow-color: var(--color-base-rgb);
}

::slotted(bkkr-icon) {
  font-size: 1.5em;
  pointer-events: none;
}

::slotted(bkkr-icon[slot=start]) {
  margin-left: 0;
  margin-right: 0.5em;
  margin-top: 0;
  margin-bottom: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(bkkr-icon[slot=start]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: 0.5em;
    margin-inline-end: 0.5em;
  }
}

::slotted(bkkr-icon[slot=end]) {
  margin-left: 0.5em;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(bkkr-icon[slot=end]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 0.5em;
    margin-inline-start: 0.5em;
    -webkit-margin-end: 0;
    margin-inline-end: 0;
  }
}

:host(.fab-button-small) {
  --border-radius: 12px;
  --min-width: 40px;
  --min-height: 40px;
  margin-left: 8px;
  margin-right: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  :host(.fab-button-small) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 8px;
    margin-inline-start: 8px;
    -webkit-margin-end: 8px;
    margin-inline-end: 8px;
  }
}

:host(.fab-button-large) {
  --border-radius: 24px;
  --min-width: 96px;
  --min-height: 96px;
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -20px;
  margin-bottom: -20px;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  :host(.fab-button-large) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: -20px;
    margin-inline-start: -20px;
    -webkit-margin-end: -20px;
    margin-inline-end: -20px;
  }
}

:host(.fab-button-large) ::slotted(bkkr-icon) {
  font-size: 2.25em;
}

:host(.fab-button-round) {
  --border-radius: var(--min-height);
  --padding-top: 0;
  --padding-start: 1em;
  --padding-end: 1em;
  --padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .button-native {
    transform: none;
    transition: none;
  }
}