* {
  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-editable-field-icon-size: (<length>) Controls the size of edit, confirm, and cancel icons.
 * @prop --tct-editable-field-btn-hover-background: (<color>) Controls the background color of the editable field action buttons (begin, save, cancel) on hover.
 * @prop --tct-editable-field-btn-icon-stroke-primary: (<color>) Controls the primary stroke color of the editable field action button icons.
 * @prop --tct-editable-field-btn-icon-stroke-secondary: (<color>) Controls the secondary stroke color of the editable field action button icons.
 */
:host {
  display: inline-block;
  max-width: 100%;
}

.q2-editable-field-wrapper .begin-edit,
.q2-editable-field-wrapper .save-edit,
.q2-editable-field-wrapper .cancel-edit {
  flex: 0 0 44px;
  --tct-icon-size: var(--tct-editable-field-icon-size, var(--const-px-18, 18px));
  --tct-btn-icon-hover-background: var(--tct-editable-field-btn-hover-background, var(--app-gray-l3, #f2f2f2));
  --tct-icon-stroke-primary: var(--tct-editable-field-btn-icon-stroke-primary, var(--app-gray, #747474));
  --tct-icon-stroke-secondary: var(--tct-editable-field-btn-icon-stroke-secondary, var(--app-gray, #747474));
}

.q2-editable-field-wrapper:not([hidden]) {
  display: flex;
}

.q2-editable-field-wrapper.editing {
  align-items: flex-end;
}

:host([block]) {
  display: block;
  width: 100%;
}
:host([block]) .q2-editable-field-wrapper:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

q2-input,
.text-wrapper {
  margin: 0 var(--tct-scale-2, var(--app-scale-2x, 10px)) 0 0;
}

q2-input {
  flex: 1 1 auto;
  min-width: 170px;
}

.text-wrapper {
  flex: 0 auto;
  align-self: center;
  display: inline-block;
}

:host([truncated]) .text-wrapper {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

dl {
  margin: var(--tct-scale-0, var(--app-scale-0x, 0));
}

dt {
  font-weight: 600;
}

dd {
  margin-left: var(--tct-scale-0, var(--app-scale-0x, 0));
  display: flex;
  align-items: center;
}