/* ---------------------------------
-----  dimension variables --------
---------------------------------- */
/* ------  standard elements padding & margin  ------- */
/* spacing */
/**
**  Official Font sizes
------------------------------- */
/**
** Line-heights
------------------------------- */
/*
  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;
  }
*/
.ux-autosuggest-input {
  display: block;
  position: relative;
}
.ux-autosuggest-input .ux-input {
  background-color: var(--ux-input-background-color);
  border-color: var(--ux-input-border-color);
}
.ux-autosuggest-input .ux-input:not(:disabled):hover:not(:focus) {
  background-color: var(--ux-input-hover-bg);
  border-color: var(--ux-input-hover-border-color);
  color: var(--ux-input-hover-text-color);
}
.ux-autosuggest-input .ux-input:not(:disabled):focus {
  background-color: var(--ux-input-background-color);
  border-color: var(--ux-input-focus-border-color);
  color: var(--ux-input-focus-text-color);
  outline: var(--ux-input-focus-border-color) solid var(--ux-input-outline-width);
  outline-offset: var(--ux-input-outline-offset);
}
.ux-autosuggest-input .ux-input:not(:disabled):active {
  background-color: var(--ux-input-active-bg);
  border-color: var(--ux-input-focus-border-color);
  outline: var(--ux-input-active-border-color) solid var(--ux-input-outline-width);
  outline-offset: var(--ux-input-outline-offset);
}
.ux-autosuggest-input .ux-input:not(:disabled)::placeholder {
  color: var(--ux-input-placeholder-color);
  font-weight: var(--ux-input-placeholder-font-weight);
}
.ux-autosuggest-input__input-container {
  background-color: var(--ux-input-background-color);
  position: relative;
}
.ux-autosuggest-input__suggestions {
  border: var(--ux-input-border-width) solid var(--ux-input-focus-border-color);
  border-top-width: 0;
  left: 0;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 100;
}
.ux-autosuggest-input__suggestions .ux-suggest-item {
  pointer-events: auto;
}
.ux-autosuggest-input__suggestions--slim {
  border-top: 0;
  max-height: 230px;
  overflow-y: scroll;
}
.ux-autosuggest-input__suggestions--hidden {
  border: 0;
  display: none;
}
.ux-autosuggest-input__suggestion-link {
  display: block;
  text-decoration: none;
}
.ux-autosuggest-input__suggestion-link:last-child .ux-autosuggest-item--slim {
  border: 0;
}
.ux-form-group--error .ux-autosuggest-input .ux-input:not(:disabled), .ux-autosuggest-input--error .ux-input:not(:disabled) {
  border-color: var(--ux-input-error-border-color);
}
.ux-form-group--error .ux-autosuggest-input .ux-input:not(:disabled):not(:focus):hover, .ux-autosuggest-input--error .ux-input:not(:disabled):not(:focus):hover {
  border-color: var(--ux-input-error-hover-border-color);
}
.ux-form-group--disabled .ux-autosuggest-input .ux-input, .ux-autosuggest-input--disabled .ux-input {
  background-color: var(--ux-input-disabled-bg);
  border-color: var(--ux-input-disabled-border-color);
  color: var(--ux-input-disabled-text-color);
  opacity: var(--ux-input-disabled-opacity);
}