* {
  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;
    }
  }
}
/**
 * @prop --tct-option-active-background: (<color>) Controls the background color of the option in its active, focused, and hover states.
 * @prop --tct-option-active-color?: (<color>) Controls the optional text color of the option in its active, focused, and hover states.
 * @prop --tct-option-content-font-size?: (<length-percentage>) Controls the optional font size of the option content.
 * @prop --tct-option-focus-box-shadow: (*) Controls the box shadow of the option when focused via keyboard.
 * @prop --tct-option-padding: (<length-percentage>+) Controls the inner padding of the option.
 * @prop --tct-option-selected-icon-size: (<length>) Controls the size of the selected indicator icon.
 * @prop --tct-option-selected-multiline-icon-size: (<length>) Controls the size of the selected indicator icon when multiline is set.
 */
:host(:not([separator]):not([separator=false])) {
  --comp-padding: 0 var(--app-scale-2x, 10px);
  --comp-selected-icon-size: var(--tct-option-selected-icon-size, var(--t-option-selected-icon-size, var(--tct-scale-3, var(--app-scale-3x, 15px))));
  padding: var(--tct-option-padding, var(--t-option-padding, var(--comp-padding)));
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  align-items: center;
}

:host(:focus),
:host(:not([separator]):not([separator=false]):hover),
:host([active]) {
  position: relative;
  z-index: 1;
}

:host([multiline]) {
  --comp-padding: var(--app-scale-2, 10px) var(--app-scale-2, 10px);
  --comp-selected-icon-size: var(--tct-option-selected-multiline-icon-size, var(--t-option-selected-multiline-icon-size, var(--tct-option-selected-icon-size, var(--t-option-selected-icon-size, 26px))));
}

:host([_hide-selected-block]:not([_hide-selected-block=false])) {
  grid-template-columns: 1fr;
  grid-template-areas: "content";
}

:host(:not([_hide-selected-block])) {
  grid-template-areas: "icon content";
  grid-template-columns: var(--comp-selected-icon-size) 1fr;
  gap: var(--tct-scale-1, var(--app-scale-1x, 5px));
}

:host([aria-disabled]) {
  cursor: not-allowed;
  opacity: var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4));
  pointer-events: none;
}

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

:host(:not([hidden]):not([aria-hidden])) {
  display: grid;
}

:host([separator]:not([separator=false])) {
  display: block;
}

:host(:not([aria-disabled]):not([separator]):not([separator=false]):hover),
:host([active]),
:host(:focus) {
  background: var(--tct-option-active-background, var(--tct-option-active-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2))))));
  color: var(--tct-option-active-color, inherit);
}

:host(:focus-visible) {
  box-shadow: var(--tct-option-focus-box-shadow, var(--const-inset-double-focus-ring, inset var(--const-global-focus, 0 0 0 2px var(--const-focus-color, #0066CC)))) !important;
}

q2-icon {
  grid-area: icon;
  --tct-icon-size: var(--comp-selected-icon-size);
}

::slotted(q2-item) {
  padding: var(--app-scale-1x, 5px) 0;
}

.content {
  display: block;
  grid-area: content;
  font-size: var(--tct-option-content-font-size, inherit);
}
:host(:not([multiline])) .content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.separator {
  --comp-default-separator-margin: 0 var(--tct-scale-1, var(--app-scale-3x, 15px));
  margin: var(--tct-dropdown-separator-margin, var(--t-dropdown-separator-margin, var(--comp-default-separator-margin)));
  border-bottom: 1px solid var(--tct-dropdown-item-separator-color, var(--t-gray-11, #cccccc));
}