* {
  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-tag-background: (<color>) Controls the background color of the tag in its default state.
 * @prop --tct-tag-color: (<color>) Controls the text color of the tag in its default state.
 * @prop --tct-tag-border-color?: (<color>) Controls the optional border color of the tag in its default state.
 * @prop --tct-tag-border-radius: (<length-percentage>) Controls the corner radius of the tag.
 * @prop --tct-tag-border-style?: (<custom-ident>) Controls the optional border style of the tag.
 * @prop --tct-tag-border-width?: (<length>+) Controls the optional border width of the tag.
 * @prop --tct-tag-font-size?: (<length-percentage>) Controls the optional font size of the tag label.
 * @prop --tct-tag-font-weight?: (<number>) Controls the optional font weight of the tag label.
 * @prop --tct-tag-height: (<length>) Controls the height of the tag pill.
 * @prop --tct-tag-margin: (<length-percentage>+) Controls the trailing inline margin between sibling tags.
 * @prop --tct-tag-padding-inline: (<length-percentage>+) Controls the inline padding of the tag label.
 * @prop --tct-tag-btn-size: (<length>) Controls the size of the tag's close button icon.
 * @prop --tct-tag-focus-visible-box-shadow: (*) Controls the box shadow of the tag when focused via keyboard.
 * @prop --tct-tag-decorator-icon-primary-stroke?: (<color>) Controls the optional primary stroke color of the slotted decorator icon in the default theme.
 * @prop --tct-tag-decorator-icon-secondary-stroke?: (<color>) Controls the optional secondary stroke color of the slotted decorator icon in the default theme.
 * @prop --tct-tag-primary-background: (<color>) Controls the background color of the tag when theme is primary.
 * @prop --tct-tag-primary-font-color: (<color>) Controls the text color of the tag when theme is primary.
 * @prop --tct-tag-primary-border-color: (<color>) Controls the border color of the tag when theme is primary.
 * @prop --tct-tag-primary-decorator-icon-primary-stroke?: (<color>) Controls the optional primary stroke color of the slotted decorator icon when theme is primary.
 * @prop --tct-tag-primary-decorator-icon-secondary-stroke?: (<color>) Controls the optional secondary stroke color of the slotted decorator icon when theme is primary.
 * @prop --tct-tag-secondary-background: (<color>) Controls the background color of the tag when theme is secondary.
 * @prop --tct-tag-secondary-font-color: (<color>) Controls the text color of the tag when theme is secondary.
 * @prop --tct-tag-secondary-border-color: (<color>) Controls the border color of the tag when theme is secondary.
 * @prop --tct-tag-tertiary-background: (<color>) Controls the background color of the tag when theme is tertiary.
 * @prop --tct-tag-tertiary-font-color: (<color>) Controls the text color of the tag when theme is tertiary.
 * @prop --tct-tag-tertiary-border-color: (<color>) Controls the border color of the tag when theme is tertiary.
 */
:host {
  display: inline-block;
  position: relative;
  line-height: 0;
}

:host(:not(:last-child)) {
  margin-inline-end: var(--tct-tag-margin, var(--t-tag-margin, var(--app-scale-2x, 10px)));
}

.tag-wrapper {
  --comp-tag-btn-size: var(--tct-tag-btn-size, var(--t-tag-btn-size, var(--app-scale-5x, 25px)));
  --comp-tag-background: var(--tct-tag-background, var(--t-tag-background, var(--t-gray-13, #e6e6e6)));
  --comp-tag-color: var(--tct-tag-color, var(--t-tag-color, var(--t-gray-3, #262626)));
  --comp-tag-border-color: var(--tct-tag-border-color, transparent);
  background: var(--comp-tag-background);
  color: var(--comp-tag-color);
  border-radius: var(--tct-tag-border-radius, var(--t-tag-border-radius, var(--app-border-radius-1, 4px)));
  border-width: var(--tct-tag-border-width, 0);
  border-style: var(--tct-tag-border-style, none);
  border-color: var(--comp-tag-border-color);
  font-size: var(--tct-tag-font-size, var(--const-px-14, 14px));
  font-weight: var(--tct-tag-font-weight, inherit);
  position: relative;
}
:host([theme=primary]) .tag-wrapper {
  --comp-tag-background: var(--tct-tag-primary-background, var(--t-primary, #0079c1));
  --comp-tag-color: var(--tct-tag-primary-font-color, var(--t-primary-text, #ffffff));
  --comp-tag-border-color: var(--tct-tag-primary-border-color, var(--t-primary, #0079c1));
}
:host([theme=secondary]) .tag-wrapper {
  --comp-tag-background: var(--tct-tag-secondary-background, var(--t-secondary, #b3c2cc));
  --comp-tag-color: var(--tct-tag-secondary-font-color, var(--t-secondary-text, #141414));
  --comp-tag-border-color: var(--tct-tag-secondary-border-color, var(--t-secondary, #b3c2cc));
}
:host([theme=tertiary]) .tag-wrapper {
  --comp-tag-background: var(--tct-tag-tertiary-background, var(--t-tertiary, #e8f5fc));
  --comp-tag-color: var(--tct-tag-tertiary-font-color, var(--t-tertiary-text, #141414));
  --comp-tag-border-color: var(--tct-tag-tertiary-border-color, var(--t-tertiary, #e8f5fc));
}
.tag-wrapper:focus-visible {
  box-shadow: var(--tct-tag-focus-visible-box-shadow, var(--const-double-focus-ring));
}

.tag {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 6px;
  height: var(--tct-tag-height, var(--t-tag-height, var(--app-scale-5x, 25px)));
  /* stylelint-disable-next-line tecton/require-t-px-fallback */
  line-height: var(--tct-tag-height, var(--t-tag-height, var(--app-scale-5x, 25px)));
  padding-inline: var(--tct-tag-padding-inline, var(--t-tag-padding-inline, var(--app-scale-2x, 10px)));
}
.tag ::slotted(q2-icon[slot=decorator]) {
  --tct-icon-size: 1em;
  --tct-icon-stroke-primary: var(--tct-tag-decorator-icon-primary-stroke);
  --tct-icon-stroke-secondary: var(--tct-tag-decorator-icon-secondary-stroke);
}
:host([theme=primary]) .tag ::slotted(q2-icon[slot=decorator]) {
  --tct-icon-stroke-primary: var(--tct-tag-primary-decorator-icon-primary-stroke);
  --tct-icon-stroke-secondary: var(--tct-tag-primary-decorator-icon-secondary-stroke);
}
.tag ::slotted(q2-badge[slot=decorator]) {
  --tct-badge-height: 1em;
  --tct-badge-line-height: var(--const-px-25, 25px);
}

.tag.has-options {
  padding-right: 6px;
}

button {
  height: var(--comp-tag-btn-size);
  stroke: var(--comp-tag-color);
  --tct-icon-stroke-primary: var(--comp-tag-color);
  cursor: pointer;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-right: 6px;
  --tct-icon-size: 18px;
}