* {
  box-sizing: border-box;
}

*:active {
  outline: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc);
}

:host {
  box-shadow: none !important;
}

::-moz-focus-inner {
  border: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  font-stretch: inherit;
}

:host(.sr),
:host(.sr) button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.sr,
.sr button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.hidden {
  display: none;
}

:host([hidden]) {
  display: none;
}

.invisible {
  visibility: hidden;
}

@container style(--t-prefers-motion: "reduced") {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-delay: 0ms !important;
    }
  }
}
.q2-element-dropdown {
  display: none;
  position: absolute;
  background-color: var(--app-white, #ffffff);
  color: var(--t-text, #4d4d4d);
  left: 0;
  width: 100%;
  z-index: 100;
  margin-top: 1px;
  box-shadow: var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14));
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--app-tween-1, 0.2s ease);
  border-radius: var(--tct-dropdown-border-radius, --t-dropdown-border-radius, 0);
  --comp-scrollbar-size: var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));
  --comp-scrollbar-border-radius: var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));
  --comp-scrollbar-color: var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));
  scrollbar-width: thin;
  scrollbar-color: var(--comp-scrollbar-color) transparent;
}
.q2-element-dropdown::-webkit-scrollbar {
  width: var(--comp-scrollbar-size);
  height: var(--comp-scrollbar-size);
  margin: 5px;
}
.q2-element-dropdown::-webkit-scrollbar-thumb {
  background: var(--comp-scrollbar-color);
  border-radius: var(--comp-scrollbar-border-radius);
}
.q2-element-dropdown::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--comp-scrollbar-border-radius);
}

.q2-element-dropdown.sizable {
  display: block;
  height: auto;
}

.dropdown-open .q2-element-dropdown {
  display: block;
  height: auto;
  overflow: auto;
  opacity: 1;
  visibility: visible;
}

:host([alignment=right]) .q2-element-dropdown {
  left: auto;
  right: 0;
}

:host([block]) q2-btn,
:host([block]) {
  display: block;
}

/**
 * @prop --tct-search-icon-size: (<length>) Controls the size of search input icons, including slotted icons and clear.
 * @prop --tct-search-margin?: (<length-percentage>+) Controls the margin of the component host as a shorthand. Overrides --tct-search-margin-top and --tct-search-margin-bottom when set.
 * @prop --tct-search-margin-top: (<length-percentage>) Controls the top margin of the component host.
 * @prop --tct-search-margin-bottom: (<length-percentage>) Controls the bottom margin of the component host.
 * @prop --tct-search-input-min-height?: (*) Controls the minimum height of the search input.
 * @prop --tct-search-input-max-height?: (*) Controls the maximum height of the search input.
 * @prop --tct-search-input-horizontal-gap: (<length-percentage>) Controls the horizontal gap between elements inside the search input.
 * @prop --tct-search-icon-min-width?: (*) Controls the minimum width of the icon container in the search input.
 * @prop --tct-search-loading-popover-height?: (<length-percentage>) Controls the minimum height of the popover while the component is in the loading state.
 * @prop --tct-search-loading-spinner-size: (<length-percentage>) Controls the size of the loading spinner.
 * @prop --tct-search-multi-select-header-padding: (<length-percentage>+) Controls the padding of the multi-select filter header.
 * @prop --tct-search-multi-select-header-background: (<color>) Controls the background color of the multi-select filter header.
 * @prop --tct-search-multi-select-option-padding: (<length-percentage>+) Controls the padding of each filter option label.
 * @prop --tct-search-multi-select-option-font-size: (<length-percentage>) Controls the font size of each filter option label.
 * @prop --tct-search-multi-select-option-border-radius: (<length-percentage>) Controls the corner radius of each filter option label.
 * @prop --tct-search-multi-select-option-background: (<color>) Controls the default background color of each filter option label.
 * @prop --tct-search-multi-select-option-font-color: (<color>) Controls the default text color of each filter option label.
 * @prop --tct-search-multi-select-option-hover-background: (<color>) Controls the background color of a filter option label on hover.
 * @prop --tct-search-multi-select-option-hover-font-color: (<color>) Controls the text color of a filter option label on hover.
 * @prop --tct-search-multi-select-option-active-background: (<color>) Controls the background color of the selected filter option label.
 * @prop --tct-search-multi-select-option-active-font-color: (<color>) Controls the text color of the selected filter option label.
 * @prop --tct-search-multi-select-option-disabled-opacity: (<number>) Controls the opacity of a disabled filter option label.
 * @prop --tct-search-no-results-padding: (<length-percentage>+) Controls the padding of the no-results message.
 * @prop --tct-search-no-results-font-color: (<color>) Controls the text color of the no-results message.
 */
:host {
  display: block;
  margin: var(--tct-search-margin, var(--tct-search-margin-top, var(--app-scale-5x, 25px)) 0 var(--tct-search-margin-bottom, var(--app-scale-5x, 25px)));
}

::slotted([slot=_selected-display]) {
  width: 100%;
  min-height: var(--comp-selected-display-height, 44px);
}

.q2-search-container {
  display: block;
  position: relative;
}

.q2-search-input {
  --tct-input-icon-size: var(--tct-search-icon-size, var(--const-px-18, 18px));
  margin: 0;
  --tct-input-min-height: var(--tct-search-input-min-height, initial);
  --tct-input-max-height: var(--tct-search-input-max-height, none);
  --tct-input-horizontal-gap: var(--tct-search-input-horizontal-gap, var(--app-scale-2x, 10px));
  --tct-input-icon-container-icon-min-width: var(--tct-search-icon-min-width, fit-content);
}

.popover-content {
  display: flex;
  flex-direction: column;
}

.popover-content[data-loading=true] {
  min-height: var(--tct-search-loading-popover-height, var(--app-scale-12x, 60px));
  position: relative;
}

.popover-content[data-loading=true] .loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.popover-content[data-loading=true] .loading-overlay q2-loading {
  --tct-loading-spinner-size: var(--tct-search-loading-spinner-size, var(--app-scale-8x, 40px));
  width: 1em;
  height: 1em;
}

.popover-top-container[hidden],
.popover-bottom-container[hidden] {
  display: none;
}

.popover-top-container {
  position: sticky;
  top: 0;
  z-index: 5;
}
.popover-top-container .multi-select-header {
  padding: var(--tct-search-multi-select-header-padding, var(--app-scale-2x, 10px));
  background: var(--tct-search-multi-select-header-background, var(--t-base, #ffffff));
  display: flex;
  gap: var(--app-scale-2x, 10px);
  align-items: center;
}
.popover-top-container .multi-select-header fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  gap: var(--app-scale-2x, 10px);
}
.popover-top-container .multi-select-header legend {
  padding: 0;
  float: left;
}
.popover-top-container .multi-select-header label {
  cursor: pointer;
  padding: var(--tct-search-multi-select-option-padding, 2px 5px);
  font-size: var(--tct-search-multi-select-option-font-size, inherit);
  border-radius: var(--tct-search-multi-select-option-border-radius, var(--app-border-radius-1, 4px));
  background: var(--tct-search-multi-select-option-background, transparent);
  color: var(--tct-search-multi-select-option-font-color, inherit);
}
.popover-top-container .multi-select-header label:hover {
  background: var(--tct-search-multi-select-option-hover-background, var(--t-gray-14, #f2f2f2));
  color: var(--tct-search-multi-select-option-hover-font-color, var(--t-gray-5, #404040));
}
.popover-top-container .multi-select-header input:checked + label, .popover-top-container .multi-select-header input:checked + label:enabled:hover {
  background: var(--tct-search-multi-select-option-active-background, var(--t-gray-4, #333333));
  color: var(--tct-search-multi-select-option-active-font-color, var(--t-base, #ffffff));
}
.popover-top-container .multi-select-header input:disabled + label {
  opacity: var(--tct-search-multi-select-option-disabled-opacity, var(--app-disabled-opacity, 0.4));
  cursor: not-allowed;
}
.popover-top-container .multi-select-header input:focus-visible + label {
  box-shadow: var(--const-double-focus-ring);
}

.no-results {
  padding: var(--tct-search-no-results-padding, var(--app-scale-3x, 15px));
  color: var(--tct-search-no-results-font-color, var(--t-textA, rgba(77, 77, 77, 0.77)));
  text-align: center;
}