:host {
  /**
   * @prop --background: Background of the nav button
   * @prop --background-hover: Background of the nav button when hovered with cursor
   * @prop --background-focused: Background of the nav button when focused with the tab key
   * @prop --background-focused-opacity: Opacity of the nav button background when focused with the tab key
   *
   * @prop --color: Color of the nav button
   * @prop --color-focused: Color of the nav button when focused with the tab key
   * @prop --color-selected: Color of the selected nav button
   *
   * @prop --padding-top: Top padding of the nav button
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the nav button
   * @prop --padding-bottom: Bottom padding of the nav button
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the nav button
   *
   * @prop --border-radius: Border radius
   */
  --background: transparent;
  --background-active: var(--bkkr-text-color, #000);
  --background-focus: var(--bkkr-text-color, #000);
  --background-hover: var(--bkkr-text-color, #000);
  --background-active-opacity: 0.12;
  --background-focus-opacity: 0.04;
  --background-hover-opacity: 0.04;
  --padding-top: 2px;
  --padding-end: 2px;
  --padding-bottom: 2px;
  --padding-start: 2px;
  --min-height: 36px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  height: 100%;
  outline: none;
  background: var(--background);
  color: var(--color);
  font-size: 0.625rem;
  user-select: none;
  pointer-events: auto;
  font-kerning: none;
}

:host(.nav-hidden) {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

.button-native {
  border-radius: calc(var(--border-radius, 16px) + 2px);
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  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;
  display: flex;
  position: relative;
  flex-direction: inherit;
  align-items: inherit;
  justify-content: inherit;
  width: 100%;
  height: 100%;
  min-height: var(--min-height);
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-user-drag: 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-inner {
  display: flex;
  position: relative;
  flex-flow: inherit;
  align-items: inherit;
  justify-content: inherit;
  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) .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(.nav-selected) {
  --color: var(--color-selected);
}

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

::slotted(bkkr-label),
::slotted(bkkr-icon) {
  display: block;
  align-self: center;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

::slotted(bkkr-label) {
  margin-top: 0;
  margin-bottom: 1px;
  order: 0;
  min-height: 0.625rem;
  font-weight: 500;
}
::slotted(bkkr-icon) {
  margin-top: 2px;
  margin-bottom: 2px;
  order: -1;
  height: 1em;
  font-size: 23px;
}
::slotted(bkkr-icon::before) {
  vertical-align: top;
}

::slotted(bkkr-badge) {
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 1px;
  padding-bottom: 1px;
  left: calc(50% + 6px);
  top: 0;
  position: absolute;
  height: auto;
  font-size: 0.75rem;
  line-height: 16px;
  z-index: 1;
  box-sizing: border-box;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(bkkr-badge) {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: 6px;
    padding-inline-start: 6px;
    -webkit-padding-end: 6px;
    padding-inline-end: 6px;
  }
}
[dir=rtl] ::slotted(bkkr-badge), :host-context([dir=rtl]) ::slotted(bkkr-badge) {
  left: unset;
  right: unset;
  right: calc(50% + 6px);
}

:host(.nav-layout-icon-start) {
  flex-direction: row;
}

:host(.nav-layout-icon-end) {
  flex-direction: row-reverse;
}

:host(.nav-layout-icon-bottom) {
  flex-direction: column-reverse;
}

:host(.nav-layout-icon-hide) ::slotted(bkkr-icon) {
  display: none;
}

:host(.nav-layout-label-hide) ::slotted(bkkr-label) {
  display: none;
}

:host(.nav-has-label-only) ::slotted(bkkr-label) {
  margin-left: 0;
  margin-right: 0;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 2.625rem;
  font-size: 0.85rem;
  line-height: 1.1;
  white-space: normal;
}

:host(.nav-layout-icon-end) ::slotted(bkkr-label),
:host(.nav-layout-icon-start) ::slotted(bkkr-label),
:host(.nav-layout-icon-hide) ::slotted(bkkr-label) {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 0.85rem;
  line-height: 1.1;
}

:host(.nav-layout-icon-end) ::slotted(bkkr-icon),
:host(.nav-layout-icon-start) ::slotted(bkkr-icon) {
  min-width: 24px;
  height: 26px;
  margin-top: 2px;
  margin-bottom: 1px;
  font-size: 1.5rem;
}

:host(.nav-layout-icon-bottom) ::slotted(bkkr-badge) {
  left: calc(50% + 12px);
}
:host-context([dir=rtl]):host(.nav-layout-icon-bottom) ::slotted(bkkr-badge), :host-context([dir=rtl]).nav-layout-icon-bottom ::slotted(bkkr-badge) {
  left: unset;
  right: unset;
  right: calc(50% + 12px);
}

:host(.nav-layout-icon-bottom) ::slotted(bkkr-icon) {
  margin-top: 0;
  margin-bottom: 1px;
}
:host(.nav-layout-icon-bottom) ::slotted(bkkr-label) {
  margin-top: 4px;
}
:host(.nav-layout-icon-start) ::slotted(bkkr-badge),
:host(.nav-layout-icon-end) ::slotted(bkkr-badge) {
  left: calc(50% + 35px);
  top: 10px;
}
:host-context([dir=rtl]):host(.nav-layout-icon-start) ::slotted(bkkr-badge), :host-context([dir=rtl]).nav-layout-icon-start ::slotted(bkkr-badge), :host-context([dir=rtl]):host(.nav-layout-icon-end) ::slotted(bkkr-badge), :host-context([dir=rtl]).nav-layout-icon-end ::slotted(bkkr-badge) {
  left: unset;
  right: unset;
  right: calc(50% + 35px);
}

:host(.nav-layout-icon-hide) ::slotted(bkkr-badge),
:host(.nav-has-label-only) ::slotted(bkkr-badge) {
  left: calc(50% + 30px);
  top: 10px;
}
:host-context([dir=rtl]):host(.nav-layout-icon-hide) ::slotted(bkkr-badge), :host-context([dir=rtl]).nav-layout-icon-hide ::slotted(bkkr-badge), :host-context([dir=rtl]):host(.nav-has-label-only) ::slotted(bkkr-badge), :host-context([dir=rtl]).nav-has-label-only ::slotted(bkkr-badge) {
  left: unset;
  right: unset;
  right: calc(50% + 30px);
}

:host(.nav-layout-label-hide) ::slotted(bkkr-badge),
:host(.nav-has-icon-only) ::slotted(bkkr-badge) {
  top: 10px;
}

:host(.nav-layout-label-hide) ::slotted(bkkr-icon) {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}