:host {
  /**
   * @prop --background: Background of the item
   * @prop --background-activated: Background of the item when pressed. Note: setting this will interfere with the Material Design ripple.
   * @prop --background-activated-opacity: Opacity of the item background when pressed
   * @prop --background-focused: Background of the item when focused with the tab key
   * @prop --background-focused-opacity: Opacity of the item background when focused with the tab key
   * @prop --background-hover: Background of the item on hover
   * @prop --background-hover-opacity: Opacity of the background of the item on hover
   *
   * @prop --border-color: Color of the item border
   * @prop --border-radius: Radius of the item border
   * @prop --border-style: Style of the item border
   * @prop --border-width: Width of the item border
   *
   * @prop --color: Color of the item
   * @prop --color-activated: Color of the item when pressed
   * @prop --color-focused: Color of the item when focused with the tab key
   * @prop --color-hover: Color of the item on hover
   *
   * @prop --detail-icon-color: Color of the item detail icon
   * @prop --detail-icon-opacity: Opacity of the item detail icon
   * @prop --detail-icon-font-size: Font size of the item detail icon
   *
   * @prop --inner-border-width: Width of the item inner border
   * @prop --inner-box-shadow: Box shadow of the item inner
   * @prop --inner-padding-top: Top padding of the item inner
   * @prop --inner-padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the item inner
   * @prop --inner-padding-bottom: Bottom padding of the item inner
   * @prop --inner-padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the item inner
   *
   * @prop --min-height: Minimum height of the item
   *
   * @prop --padding-bottom: Bottom padding of the item
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the item
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the item
   * @prop --padding-top: Top padding of the item
   *
   * @prop --transition: Transition of the item
   *
   * @prop --ripple-color: Color of the item ripple effect
   *
   * @prop --highlight-height: The height of the highlight on the item
   * @prop --highlight-color-focused: The color of the highlight on the item when focused
   * @prop --highlight-color-invalid: The color of the highlight on the item when invalid
   */
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-end: 0px;
  --padding-start: 0px;
  --inner-border-width: 0px;
  --inner-padding-top: 0px;
  --inner-padding-bottom: 0px;
  --inner-padding-start: 0px;
  --inner-padding-end: calc(var(--bkkr-spacer, 16px) * 0.5);
  --inner-box-shadow: none;
  --show-full-highlight: 0;
  --show-inset-highlight: 0;
  --detail-icon-color: initial;
  --detail-icon-font-size: 20px;
  --detail-icon-opacity: 0.25;
  --color: var(--bkkr-text-color, #000);
  --color-activated: var(--color);
  --color-focused: var(--color);
  --color-hover: var(--color);
  --min-height: 44px;
  --max-width: 100%;
  --transition: 0.2s border cubic-bezier(0.32, 0.72, 0, 1), 0.2s background cubic-bezier(0.32, 0.72, 0, 1);
  --background: var(--background, var(--bkkr-item-background, var(--bkkr-background-color, transparent)));
  --background-activated: currentcolor;
  --background-focused: currentcolor;
  --background-hover: currentcolor;
  --background-activated-opacity: 0.12;
  --background-focused-opacity: 0.04;
  --background-hover-opacity: 0.04;
  --border-radius: 12px;
  --border-width: 0px;
  --border-style: solid;
  --border-color: var(--bkkr-border, rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.3));
  --border-color-hover: var(--bkkr-border, rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.7));
  --border-color-focus: var(--bkkr-border, rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.7));
  --highlight-width: 0px;
  --highlight-height: 2px;
  --highlight-background: var(--highlight-color-focused);
  --highlight-color-focused: var(--color-base, var(--color-primary, #3880ff));
  --highlight-color-invalid: var(--color-base, var(--color-danger, #eb445a));
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: block;
  position: relative;
  align-items: center;
  justify-content: space-between;
  outline: none;
  color: var(--color);
  font-family: var(--bkkr-font-family);
  font-size: 1rem;
  text-align: initial;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
}

:host(.state-activatable) {
  cursor: pointer;
}

:host(.item-shape-round) {
  --border-radius: 32px;
}

:host(.in-list) {
  --padding-start: var(--bkkr-spacer, 16px);
  --border-radius: 0;
  --inner-border-width: 0 0 0.55px 0;
}

.item-native {
  border-radius: var(--border-radius);
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: calc(var(--padding-start) + var(--safe-area-left, 0px));
  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;
  align-items: inherit;
  justify-content: inherit;
  width: 100%;
  max-width: var(--max-width);
  min-height: var(--min-height);
  transition: var(--transition);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  outline: none;
  background: var(--background);
  overflow: inherit;
  z-index: 1;
  box-sizing: border-box;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .item-native {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: calc(var(--padding-start) + var(--safe-area-left, 0px));
    padding-inline-start: calc(var(--padding-start) + var(--safe-area-left, 0px));
    -webkit-padding-end: var(--padding-end);
    padding-inline-end: var(--padding-end);
  }
}

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

.item-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);
  z-index: -1;
}

button,
a {
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

:host(.item-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native {
  background: var(--color-base);
  color: var(--color-contrast);
}

:host(.item-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,
:host(.item-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner {
  border-color: var(--color-shade);
}

:host(.state-activatable.state-focused) .item-native {
  color: var(--color-focused);
}
:host(.state-activatable.state-focused) .item-native::after {
  background: var(--background-focused);
  opacity: var(--background-focused-opacity);
}

:host(.item-color.state-activatable.state-focused) .item-native {
  color: var(--color-contrast);
}
:host(.item-color.state-activatable.state-focused) .item-native::after {
  background: var(--color-contrast);
  opacity: var(--background-focused-opacity);
}

:host(.state-activatable.item-fill-solid.state-focused) .item-native,
:host(.state-activatable.item-fill-solid.item-has-focus) .item-native {
  --background: var(--background-focused);
}

@media (any-hover: hover) {
  :host(.state-activatable:hover) .item-native {
    color: var(--color-hover);
  }
  :host(.state-activatable:hover) .item-native::after {
    background: var(--background-hover);
    opacity: var(--background-hover-opacity);
  }

  :host(.item-color.state-activatable:hover) .item-native {
    color: var(--color-contrast);
  }
  :host(.item-color.state-activatable:hover) .item-native::after {
    background: var(--color-contrast);
    opacity: var(--background-hover-opacity);
  }
}
:host(.state-activatable.state-activated) .item-native {
  color: var(--color-activated);
}
:host(.state-activatable.state-activated) .item-native::after {
  background: var(--background-activated);
  opacity: var(--background-activated-opacity);
}

:host(.state-activatable.item-color.state-activated) .item-native {
  color: var(--color-contrast);
}
:host(.state-activatable.item-color.state-activated) .item-native::after {
  background: #000;
  opacity: var(--background-activated-opacity);
}

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

:host(.item-interactive) {
  --show-full-highlight: 1;
  --show-inset-highlight: 0;
}

:host(.item-interactive.in-list) {
  --show-full-highlight: 0;
  --show-inset-highlight: 1;
}

:host(.item-lines-full) {
  --border-width: 0 0 0.55px 0;
  --show-full-highlight: 1;
  --show-inset-highlight: 0;
}

:host(.item-lines-inset) {
  --inner-border-width: 0 0 0.55px 0;
  --show-full-highlight: 0;
  --show-inset-highlight: 1;
}

:host(.item-lines-inset),
:host(.item-lines-none) {
  --border-width: 0px;
  --show-full-highlight: 0;
}

:host(.item-lines-full),
:host(.item-lines-none) {
  --inner-border-width: 0px;
  --show-inset-highlight: 0;
}

:host(.item-fill-none.state-activatable:not(.in-list)) {
  --padding-start: calc(var(--bkkr-spacer, 16px) * 0.5);
  --inner-padding-end: var(--bkkr-spacer, 16px);
  --inner-padding-top: 0px;
  --inner-padding-bottom: 0px;
  margin-left: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
  margin-right: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
  margin-top: 0;
  margin-bottom: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  :host(.item-fill-none.state-activatable:not(.in-list)) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
    margin-inline-start: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
    -webkit-margin-end: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
    margin-inline-end: calc(var(--bkkr-spacer, 16px) * 0.5 * -1);
  }
}

:host(.item-fill-solid) {
  --background: rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.06);
  --background-hover: rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.1);
  --background-focused: rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.1);
  --border-width: 0px;
  --padding-start: var(--bkkr-spacer, 16px);
  --inner-padding-end: 0px;
  --show-full-highlight: 0;
  --show-inset-highlight: 1;
}

:host(.item-fill-solid) .item-native:hover {
  --background: var(--background-hover);
}

:host(.item-fill-solid.item-has-focus) .item-native {
  --background: var(--background-focused);
}

:host(.item-fill-solid.item-shape-round) .item-native {
  --padding-start: 26px;
  --padding-end: 10px;
}

:host(.item-fill-outline) {
  --border-color: var(--bkkr-border, rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.3));
  --border-width: 0.55px;
  --padding-start: var(--bkkr-spacer, 16px);
  border: none;
  overflow: visible;
}

:host(.item-fill-outline) .item-native {
  --padding-start: 10px;
  --show-full-highlight: 0;
}

:host(.item-fill-outline.item-shape-round) .item-native {
  --inner-padding-start: 10px;
}

:host(.item-fill-outline.item-label-floating) .item-native ::slotted(bkkr-input:not(:first-child)),
:host(.item-fill-outline.item-label-floating) .item-native ::slotted(bkkr-select:not(:first-child)),
:host(.item-fill-outline.item-label-floating) .item-native ::slotted(bkkr-datetime:not(:first-child)),
:host(.item-fill-outline.item-label-floating) .item-native ::slotted(bkkr-textarea:not(:first-child)),
:host(.item-fill-solid.item-label-floating) .item-native ::slotted(bkkr-input:not(:first-child)),
:host(.item-fill-solid.item-label-floating) .item-native ::slotted(bkkr-select:not(:first-child)),
:host(.item-fill-solid.item-label-floating) .item-native ::slotted(bkkr-datetime:not(:first-child)),
:host(.item-fill-solid.item-label-floating) .item-native ::slotted(bkkr-textarea:not(:first-child)) {
  transform: translateY(-10px);
}

.item-inner {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: var(--inner-padding-start);
  padding-right: calc(var(--safe-area-right, 0px) + var(--inner-padding-end));
  padding-top: var(--inner-padding-top);
  padding-bottom: var(--inner-padding-bottom);
  display: flex;
  position: relative;
  flex: 1;
  flex-direction: inherit;
  align-items: inherit;
  align-self: stretch;
  max-width: inherit;
  min-height: inherit;
  transition: var(--transition);
  border-width: var(--inner-border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  box-shadow: var(--inner-box-shadow);
  overflow: inherit;
  box-sizing: border-box;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .item-inner {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: var(--inner-padding-start);
    padding-inline-start: var(--inner-padding-start);
    -webkit-padding-end: calc(var(--safe-area-right, 0px) + var(--inner-padding-end));
    padding-inline-end: calc(var(--safe-area-right, 0px) + var(--inner-padding-end));
  }
}

.item-detail-icon {
  color: var(--detail-icon-color);
  font-size: var(--detail-icon-font-size);
  opacity: var(--detail-icon-opacity);
}

::slotted(bkkr-button) {
  --margin-top: 0px;
  --margin-bottom: 0px;
  --margin-start: 0px;
  --margin-end: 0px;
  --height: 2.3em;
  z-index: 1;
}

::slotted(bkkr-label) {
  margin-left: 0;
  margin-right: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(bkkr-label) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: 8px;
    margin-inline-end: 8px;
  }
}

::slotted(bkkr-label:not([slot=end])) {
  flex: 1;
}

::slotted([slot=start]) {
  margin-left: 0;
  margin-right: var(--bkkr-spacer, 16px);
  margin-top: calc(var(--bkkr-spacer, 16px) * 0.5);
  margin-bottom: calc(var(--bkkr-spacer, 16px) * 0.5);
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted([slot=start]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
    -webkit-margin-end: var(--bkkr-spacer, 16px);
    margin-inline-end: var(--bkkr-spacer, 16px);
  }
}

::slotted([slot=end]) {
  margin-left: var(--bkkr-spacer, 16px);
  margin-right: var(--bkkr-spacer, 16px);
  margin-top: calc(var(--bkkr-spacer, 16px) * 0.5);
  margin-bottom: calc(var(--bkkr-spacer, 16px) * 0.5);
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted([slot=end]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: var(--bkkr-spacer, 16px);
    margin-inline-start: var(--bkkr-spacer, 16px);
    -webkit-margin-end: var(--bkkr-spacer, 16px);
    margin-inline-end: var(--bkkr-spacer, 16px);
  }
}

::slotted(bkkr-icon) {
  font-size: 1.25em;
}

::slotted(bkkr-icon[slot=start]),
::slotted(bkkr-icon[slot=end]) {
  margin-top: 7px;
  margin-bottom: 7px;
}
::slotted(bkkr-toggle[slot=start]),
::slotted(bkkr-toggle[slot=end]) {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

:host(.item-input) {
  --inner-border-width: 0 0 0.55px 0;
  align-items: center;
}

:host(.item-interactive.item-input) {
  --full-highlight-height: calc(var(--highlight-height) * var(--show-full-highlight));
  --inset-highlight-height: calc(var(--highlight-height) * var(--show-inset-highlight));
}

:host(.item-has-focus) .item-highlight,
:host(.item-has-focus) .item-inner-highlight {
  transform: scaleX(1);
  border-style: var(--border-style);
  border-color: var(--highlight-background);
}

:host(.state-focused) .item-highlight,
:host(.item-has-focus) .item-highlight {
  border-width: var(--full-highlight-height);
  opacity: var(--show-full-highlight);
}

:host(.state-focused) .item-inner-highlight,
:host(.item-has-focus) .item-inner-highlight {
  border-bottom-width: var(--inset-highlight-height);
  opacity: var(--show-inset-highlight);
}

:host(.state-focused.item-fill-solid) .item-highlight,
:host(.item-has-focus.item-fill-solid) .item-highlight {
  border-width: calc(var(--full-highlight-height) - 1px);
}

:host(.state-focused) .item-inner-highlight,
:host(.state-focused:not(.item-fill-outline)) .item-highlight,
:host(.item-has-focus) .item-inner-highlight,
:host(.item-has-focus:not(.item-fill-outline)) .item-highlight {
  border-top: none;
  border-right: none;
  border-left: none;
}

:host(.item-input) .item-native {
  cursor: text;
}

:host(.item-input.item-fill-none) .item-native {
  border-radius: 0;
}

.item-wrapper {
  display: flex;
  flex: 1;
  flex-direction: inherit;
  align-items: inherit;
  align-self: stretch;
  max-width: inherit;
  text-overflow: ellipsis;
  overflow: inherit;
  box-sizing: border-box;
}

:host(.item-fill-solid.item-input) {
  --border-width: 0px;
  --inner-border-width: 0;
  --padding-end: var(--padding-start);
}

:host(.item-fill-solid.item-input.item-shape-round) .item-native {
  --padding-end: 26px;
}

:host(.item-fill-outline.item-input) {
  --background-hover: transparent;
  --background-focused: transparent;
  --inner-border-width: 0px;
  --highlight-height: 2px;
}

@media (any-hover: hover) {
  :host(.item-fill-outline.item-input):hover .item-native {
    --border-color: var(--bkkr-border, rgba(var(--bkkr-text-color-rgb, 0, 0, 0), 0.7));
  }
}
.item-highlight,
.item-inner-highlight {
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  position: absolute;
  width: var(--highlight-width);
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: width 0.2s cubic-bezier(0.32, 0.72, 0, 1), transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  border-style: var(--border-style);
  border-color: var(--highlight-background);
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
}

:host(.item-interactive) .item-highlight {
  border-width: 0 0 var(--full-highlight-height) 0;
}

:host(.item-interactive) .item-inner-highlight {
  border-width: 0 0 var(--inset-highlight-height) 0;
}

/**
 * When `fill="outline"`, reposition the highlight element to cover everything but the `.item-bottom`
 */
:host(.item-fill-outline) .item-highlight {
  --position-offset: calc(-1 * var(--border-width));
  left: var(--position-offset);
  top: var(--position-offset);
  width: calc(100% + 2 * var(--border-width));
  height: calc(100% + 2 * var(--border-width));
  transform: scaleY(1);
  transition: opacity 0.2s cubic-bezier(0.32, 0.72, 0, 1), transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  opacity: 0;
}
:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight, :host-context([dir=rtl]).item-fill-outline .item-highlight {
  left: unset;
  right: unset;
  right: var(--position-offset);
}

:host(.item-fill-outline.item-interactive) .item-highlight {
  border-width: var(--full-highlight-height);
}

:host(.item-fill-outline.item-interactive) .item-inner-highlight {
  border-width: var(--inset-highlight-height);
}

:host(.item-fill-outline.state-focused) .item-native,
:host(.item-fill-outline.item-has-focus) .item-native {
  border-color: transparent;
}

:host(:not(.item-label)) ::slotted(bkkr-select) {
  --padding-start: 0px;
  width: 100%;
}

:host(.item-label-stacked) ::slotted(bkkr-select),
:host(.item-label-floating) ::slotted(bkkr-select) {
  --padding-top: 8px;
  --padding-bottom: 8px;
  --padding-start: 0px;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

:host(.item-multiple-inputs) ::slotted(bkkr-checkbox),
:host(.item-multiple-inputs) ::slotted(bkkr-radio),
:host(.item-multiple-inputs) ::slotted(bkkr-select) {
  position: relative;
}

:host(.item-textarea) {
  align-items: stretch;
}

::slotted(bkkr-reorder[slot]) {
  margin-top: 0;
  margin-bottom: 0;
}
:host(.item-label-stacked),
:host(.item-label-floating) {
  align-items: start;
}

:host(.item-label-floating) ::slotted(bkkr-datetime),
:host(.item-label-floating) ::slotted(bkkr-input),
:host(.item-label-floating) ::slotted(bkkr-textarea),
:host(.item-label-floating) ::slotted(bkkr-select) {
  --placeholder-opacity: 0;
}

:host(.item-label-stacked) .item-wrapper,
:host(.item-label-floating) .item-wrapper {
  flex: 1;
  flex-direction: column;
}

:host(.item-label-stacked) ::slotted([slot=end]),
:host(.item-label-floating) ::slotted([slot=end]) {
  margin-top: 7px;
  margin-bottom: 7px;
}
:host(.item-label-floating.item-has-focus) ::slotted(bkkr-datetime),
:host(.item-label-floating.item-has-focus) ::slotted(bkkr-input),
:host(.item-label-floating.item-has-focus) ::slotted(bkkr-textarea),
:host(.item-label-floating.item-has-focus) ::slotted(bkkr-select) {
  --placeholder-opacity: 0.5;
  --placeholder-transitbkkr-delay: 0.05s;
}

:host(.item-radio) ::slotted(bkkr-label),
:host(.item-toggle) ::slotted(bkkr-label) {
  margin-left: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  :host(.item-radio) ::slotted(bkkr-label),
:host(.item-toggle) ::slotted(bkkr-label) {
    margin-left: unset;
    -webkit-margin-start: 0;
    margin-inline-start: 0;
  }
}

:host(.item-label-fixed) ::slotted(bkkr-select) {
  --padding-start: 0px;
}

::slotted(.button-small) {
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-start: 0.5em;
  --padding-end: 0.5em;
  height: 24px;
  font-size: 0.8rem;
}

::slotted(bkkr-shape) {
  --size: 36px;
}

::slotted(bkkr-thumbnail) {
  width: 56px;
  height: 56px;
}

::slotted(bkkr-bkkr-shape[slot=end]),
::slotted(bkkr-thumbnail[slot=end]) {
  margin-left: calc(var(--bkkr-spacer, 16px) * 0.5);
  margin-right: calc(var(--bkkr-spacer, 16px) * 0.5);
  margin-top: calc(var(--bkkr-spacer, 16px) * 0.5);
  margin-bottom: calc(var(--bkkr-spacer, 16px) * 0.5);
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(bkkr-bkkr-shape[slot=end]),
::slotted(bkkr-thumbnail[slot=end]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: calc(var(--bkkr-spacer, 16px) * 0.5);
    margin-inline-start: calc(var(--bkkr-spacer, 16px) * 0.5);
    -webkit-margin-end: calc(var(--bkkr-spacer, 16px) * 0.5);
    margin-inline-end: calc(var(--bkkr-spacer, 16px) * 0.5);
  }
}

.item-bottom {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: calc(var(--padding-start) + var(--ion-safe-area-left, 0px));
  padding-right: var(--inner-padding-end);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .item-bottom {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: calc(var(--padding-start) + var(--ion-safe-area-left, 0px));
    padding-inline-start: calc(var(--padding-start) + var(--ion-safe-area-left, 0px));
    -webkit-padding-end: var(--inner-padding-end);
    padding-inline-end: var(--inner-padding-end);
  }
}

:host(.item-fill-solid) ::slotted([slot=start]),
:host(.item-fill-solid) ::slotted([slot=end]),
:host(.item-fill-outline) ::slotted([slot=start]),
:host(.item-fill-outline) ::slotted([slot=end]) {
  align-self: center;
}

::slotted([slot=helper]),
::slotted([slot=error]),
.item-counter {
  padding-top: 5px;
  font-size: 12px;
  z-index: 1;
}

.item-counter {
  margin-left: auto;
  justify-self: flex-end;
  white-space: nowrap;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .item-counter {
    margin-left: unset;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
  }
}

::slotted([slot=helper]:empty),
::slotted([slot=error]:empty) {
  display: none;
}

::slotted([slot=error]) {
  display: none;
  color: var(--highlight-color-invalid);
}

@media (any-hover: hover) {
  :host(.item-input:hover) {
    --border-color: var(--border-color-hover);
  }
}
:host(.item-interactive.item-input.state-focused),
:host(.item-interactive.item-input.item-has-focus),
:host(.item-interactive.item-input.state-touched.state-invalid) {
  --highlight-width: 100%;
}

:host(.item-fill-none.item-interactive.state-focus) .item-highlight,
:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,
:host(.item-fill-none.item-interactive.state-touched.state-invalid) .item-highlight {
  transform: scaleY(1);
}

:host(.item-fill-outline.item-interactive.state-focus) .item-highlight,
:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,
:host(.item-fill-outline.item-interactive.state-touched.state-invalid) .item-highlight {
  opacity: 1;
}

:host(.item-fill-solid.item-interactive.state-focus) .item-inner-highlight,
:host(.item-fill-solid.item-interactive.item-has-focus) .item-inner-highlight,
:host(.item-fill-solid.item-interactive.state-touched.state-invalid) .item-inner-highlight {
  transform: scaleY(1);
}

:host(.item-has-focus) .item-native {
  caret-color: var(--highlight-background);
}

:host(.item-interactive-disabled:not(.item-multiple-inputs)) {
  pointer-events: none;
  cursor: default;
}

:host(.state-invalid) {
  --highlight-background: var(--highlight-color-invalid);
}

:host(.state-invalid:not(.state-pristine)) ::slotted([slot=helper]) {
  display: none;
}

:host(.state-invalid:not(.state-pristine)) ::slotted([slot=error]) {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .item-highlight,
.item-inner-highlight {
    transition: none;
  }
}