/*
    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-scroll-picker-min-width: Min width of component
* @prop --uic-scroll-picker-outline: Outline styling
* @prop --uic-scroll-picker-outline-offset: Outline offset
* @prop --uic-scroll-picker-border: Border style (should match outline offset)
* @prop --uic-scroll-picker-top-gradient: Gradient for overlay on top
* @prop --uic-scroll-picker-bottom-gradient: Gradient for overlay on bottom
* @prop --uic-scroll-picker-select-options-color: Font color for the items
* @prop --uic-scroll-picker-unit-padding: Padding used when a unit is set
* @prop --uic-scroll-picker-unit-font-size: Unit font size
* @prop --uic-scroll-picker-unit-font-weight: Unit font weight
* @prop --uic-scroll-picker-selected-item-background-color: Background color of the selected item
* @prop --uic-scroll-picker-selected-item-border: Top and bottom border styling of the selected item
* @prop --uic-scroll-picker-selected-item-color: Font color of the selected item
* @prop --uic-scroll-picker-selected-item-disabled-color: Font color of the selected item in disabled state
* @prop --uic-scroll-picker-selected-font-size: Font size of the selected item
* @prop --uic-scroll-picker-selected-font-weight: Font weight of the selected item
*/
uic-scroll-picker {
  display: inline-block;
  min-width: var(--uic-scroll-picker-min-width);
  outline-color: none;
  user-select: none;
}

.uic-scroll-picker.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.uic-scroll-picker.disabled .highlight {
  color: var(--uic-scroll-picker-selected-item-disabled-color);
}
.uic-scroll-picker:hover .highlight {
  border: var(--uic-scroll-picker-selected-item-border);
  color: var(--uic-scroll-picker-selected-item-color);
}
.uic-scroll-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uic-scroll-picker .select-wrap {
  align-items: center;
  border: var(--uic-scroll-picker-border);
  display: flex;
  overflow: hidden;
  position: relative;
  text-align: center;
}
.uic-scroll-picker .select-wrap:focus {
  outline: none;
  outline-offset: 0;
}
.uic-scroll-picker .select-wrap:focus .highlight {
  color: var(--uic-scroll-picker-selected-item-color);
  outline: var(--uic-scroll-picker-outline);
  outline-offset: var(--uic-scroll-picker-outline-offset);
}
.uic-scroll-picker .select-wrap:active .highlight {
  color: var(--uic-scroll-picker-selected-item-color);
}
.uic-scroll-picker .select-wrap:active .highlight-background {
  background-color: var(--uic-scroll-picker-selected-item-background-color);
}
.uic-scroll-picker .select-wrap::before, .uic-scroll-picker .select-wrap::after {
  content: "";
  display: block;
  height: 50%;
  position: absolute;
  width: 100%;
  z-index: 1;
}
.uic-scroll-picker .select-wrap::before {
  background-image: var(--uic-scroll-picker-top-gradient);
  top: 0;
}
.uic-scroll-picker .select-wrap::after {
  background-image: var(--uic-scroll-picker-bottom-gradient);
  bottom: 0;
}
.uic-scroll-picker .select-options {
  color: var(--uic-scroll-picker-select-options-color);
  display: block;
  height: 0;
  margin: 0 auto;
  position: absolute;
  top: 0;
  width: 100%;
}
.uic-scroll-picker .select-option {
  box-sizing: border-box;
  font-size: var(--uic-scroll-picker-selected-font-size);
  width: 100%;
}
.uic-scroll-picker .select-option__with-unit {
  padding-left: var(--uic-scroll-picker-unit-padding);
}
.uic-scroll-picker .highlight {
  background-color: var(--uic-color-white);
  border: var(--uic-scroll-picker-item-border);
  box-sizing: border-box;
  font-size: var(--uic-scroll-picker-selected-item-font-size);
  font-weight: var(--uic-scroll-picker-selected-item-font-weight);
  overflow: hidden;
  position: relative;
  width: 100%;
}
.uic-scroll-picker .highlight-item {
  box-sizing: border-box;
}
.uic-scroll-picker .highlight-item__with-unit {
  padding-left: var(--uic-scroll-picker-unit-padding);
}
.uic-scroll-picker .highlight-background {
  height: 100%;
  width: 100%;
}
.uic-scroll-picker .highlight-list {
  height: 100%;
  min-height: 40px;
  width: 100%;
}
.uic-scroll-picker .highlight-unit {
  font-size: var(--uic-scroll-picker-unit-font-size);
  font-weight: var(--uic-scroll-picker-unit-font-weight);
  padding-top: var(--uic-scroll-picker-unit-padding-top);
  position: absolute;
  right: var(--uic-scroll-picker-unit-padding);
}
.uic-scroll-picker .unit-placeholder {
  font-size: var(--uic-scroll-picker-selected-item-font-size);
  font-weight: var(--uic-scroll-picker-selected-item-font-weight);
  opacity: 0;
  padding-right: var(--uic-scroll-picker-unit-padding);
}