/*
    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-footer-menu-border: the border of the menu
* @prop --uic-footer-menu-background: the background of the menu
* @prop --uic-footer-menu-item-gap: the distance between menu items
* @prop --uic-footer-menu-button-z-index: the z-index of the button
*/
.uic-footer-menu {
  display: contents;
}
.uic-footer-menu__button {
  min-width: calc(var(--uic-button-min-width) + 50px);
}
.uic-footer-menu__button > uic-button {
  width: 100%;
}
.uic-footer-menu__popover[open] .uic-footer-menu__button {
  --uic-button-footer-text-color: var(--uic-color-blue1);
  --uic-button-footer-text-color-hover: var(--uic-color-blue1);
  --uic-button-footer-text-color-focus: var(--uic-color-blue1);
  --uic-button-footer-border-color: transparent;
  --uic-button-footer-border-color-hover: transparent;
  --uic-button-footer-border-color-focus: transparent;
  --uic-button-footer-border-color-active: transparent;
  --uic-button-footer-background-color: transparent;
  --uic-button-footer-background-color-active: transparent;
  position: relative;
  z-index: var(--uic-footer-menu-button-z-index);
}
.uic-footer-menu__items {
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  gap: var(--uic-footer-menu-item-gap);
  padding: calc(var(--uic-footer-menu-item-gap) / 2);
  background: var(--uic-footer-menu-background);
  border: var(--uic-footer-menu-border);
  padding-bottom: calc(var(--uic-footer-menu-item-gap) + var(--uic-button-height));
  margin-bottom: calc(-1 * var(--uic-button-height) - var(--uic-footer-menu-item-gap));
}