/*
    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-combobox-max-width: The maximum width of the combobox.
* @prop --uic-list-popover-max-height: The maximum height of the list.
* @prop --uic-list-popover-max-width: The maximum width of the list.
* @prop --uic-list-popover-width: The width of the list.
* @prop --uic-combobox-max-width: The maximum width of the list.
*/
uic-combobox {
  display: inline-block;
  box-sizing: border-box;
  position: relative;
  max-width: var(--uic-combobox-max-width);
}

.uic-combobox__wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}
.uic-combobox__filter {
  width: 100%;
}
.uic-combobox__toggle {
  padding-left: 0;
  margin-left: -4px;
}
.uic-combobox__filter-message {
  font-size: var(--uic-font-size-medium);
  line-height: var(--uic-line-height-medium);
  box-sizing: border-box;
  display: none;
  color: var(--uic-color-grey3a50);
  min-height: 64px;
  padding: 12px 8px;
  align-items: center;
}
.uic-combobox__toggle {
  --uic-icon-width: var(--uic-icon-dimensions-default);
  --uic-icon-height: var(--uic-icon-dimensions-default);
}
.uic-combobox__toggle-icon {
  width: 100%;
  height: 100%;
}
.uic-combobox__scrollpanel {
  max-height: var(--uic-list-popover-max-height);
  max-width: var(--uic-list-popover-max-width);
  width: var(--uic-list-popover-width, auto);
}
.uic-combobox--open .uic-combobox__toggle-icon > svg {
  transform: rotate(180deg);
}
.uic-combobox--no-results .uic-combobox__filter-message {
  display: flex;
}
.uic-combobox--disabled {
  pointer-events: none;
}
.uic-combobox--invalid .uic-combobox__helper-text {
  color: var(--uic-color-red1);
}
.uic-combobox.uic-combobox--has-helper-text .uic-combobox__helper-text {
  margin-top: -5px;
  padding: 0 8px;
}
.uic-combobox__helper-text {
  overflow: hidden;
  color: var(--uic-color-black);
  font-size: 0.8rem;
  line-height: 1.3rem;
  text-overflow: ellipsis;
}
.uic-combobox__helper-text-inner {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uic-combobox .uic-input-field {
  padding-top: 2px;
}
.uic-combobox .uic-input-field > label {
  margin-right: calc(-1 * (4px + var(--uic-stretched-button-width)));
}