/*
    Mixin to progressively-enhance :focus-visible, keeping :focus where not supported
    Add an arbitrary list of selectors into the arguments, and the styling in the block.
    I you pass no selectors to the mixin the parent ("ampersand") operator is used instead.

    There are two mixins: 
    - focus-visible: a generic focus-visible, giving you "slots" to decide what to render for :focus, :focus reset, and :focus-visible
    - focus-visible-outline: a focus-visible, which only resets the outline. If you don't need more custom resets, use this one!

    Use focus-visible:
    The key thing here is checking which slot is being rendered.
    For example, you can reset box-shadow here, or anything else.

    @include focus-visible using ($slot) {
        @if $slot == focus {
            outline: 2px solid transparent;
            box-shadow: 0 0 0 4px blue;
        }
        @if $slot == focusReset {
            box-shadow: none;
        }
        @if $slot == focusVisible {
            box-shadow: 0 0 0 4px blue;
        }
    }

    Use focus-visible-outline:
    @include focus-visible-outline("button", "a[href]") {
        outline: 2px solid blue;
    }

    Resulting CSS (compressed):

    button:focus,
    a[href]:focus {
        outline: 2px solid blue;
    }

    button:focus:not(:focus-visible),
    a[href]:focus:not(:focus-visible) {
        outline: none;
    }
    button:focus-visible,
    a[href]:focus-visible {
        outline: 2px solid blue;
    }
*/
/**
* @prop --uic-list-item-height-default: The height of an item with a single line of content 
* @prop --uic-list-item-height-multiline: The height of an item with two lines of content ("multiline") 
* @prop --uic-list-item-padding: The padding of the interactable area of a list item.
*/
uic-list-item {
  box-sizing: border-box;
  position: relative;
  display: block;
  outline: none;
  cursor: pointer;
  padding: 4px 0;
  height: var(--uic-list-item-height-default);
  font-size: var(--uic-font-size-medium);
  line-height: var(--uic-line-height-medium);
}
uic-list-item:hover .uic-list-item__wrapper {
  color: var(--uic-color-blue3);
  border-color: var(--uic-color-blue2);
}
uic-list-item:active .uic-list-item__wrapper {
  border-color: var(--uic-color-blue2);
  background: var(--uic-color-blue2a10);
  color: var(--uic-color-blue3);
}
uic-list-item:focus .uic-list-item__wrapper {
  border-color: var(--uic-color-blue2);
  border-width: 2px;
}
uic-list-item[selected] .uic-list-item__wrapper {
  font-weight: 600;
  background: var(--uic-color-blue0a40);
  border-color: var(--uic-color-blue2);
  box-shadow: 0 2px 8px 0 var(--uic-color-blue2a25);
  color: var(--uic-color-blue4);
}
uic-list-item[selected] .uic-list-item__wrapper::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  z-index: 1;
  box-shadow: 0 2px 8px 0 var(--uic-color-blue2a25);
}
uic-list-item[disabled] {
  color: var(--uic-color-grey3a75);
  cursor: auto;
  pointer-events: none;
}
uic-list-item[multiline] {
  height: var(--uic-list-item-height-multiline);
}
uic-list-item slot-fb {
  display: contents;
}
uic-list-item .uic-list-item__wrapper {
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: var(--uic-list-item-padding);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
uic-list-item .uic-list-item__icon {
  margin-right: 8px;
}
uic-list-item .uic-list-item__content {
  flex: 1;
  min-width: 0;
}
uic-list-item .uic-list-item__content-default {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
uic-list-item .uic-list-item__content-primary {
  font-weight: var(--uic-font-weight-semibold);
}

[uic-scroll-init] > uic-list-item .uic-list-item__content-default {
  padding-left: 8px;
  overflow: visible;
}