/*
    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-flyout-bg-color: flyout background color
* @prop --uic-flyout-content-min-height: minimum height of the content panel
* @prop --uic-flyout-content-padding: inner padding of the content panel
* @prop --uic-flyout-shadow: box-shadow dropped by the flyout
* @prop --uic-flyout-width: width of the flyout
* @prop --uic-flyout-max-width: max width of the flyout
* @prop --uic-flyout-z-index: zIndex of the flyout
*/
uic-flyout {
  background: var(--uic-flyout-bg-color);
  box-shadow: var(--uic-flyout-shadow);
  box-sizing: border-box;
  display: none;
  max-width: var(--uic-flyout-max-width, 100%);
  pointer-events: none;
  position: absolute;
  top: 100%;
  width: var(--uic-flyout-width);
  z-index: var(--uic-flyout-z-index);
}
uic-flyout hr {
  border: 1px solid var(--uic-color-grey2);
  border-bottom-width: 0;
  margin: 1em 0;
}

.uic-flyout__content {
  box-sizing: border-box;
  max-height: calc(100vh - var(--uic-header-height) - 70px);
  min-height: var(--uic-flyout-content-min-height);
  overflow-y: auto;
  padding: var(--uic-flyout-content-padding);
}
.uic-flyout--opened {
  display: block;
  pointer-events: auto;
}
.uic-flyout--left {
  left: 0;
  right: auto;
}
.uic-flyout--right {
  left: auto;
  right: 0;
}