* {
  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;
    }
  }
}
* {
  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-file-picker-margin: (<length-percentage>+) Controls the outer margin of the file picker host.
 * @prop --tct-file-picker-margin-top: (<length-percentage>) Controls the top margin of the file picker host when --tct-file-picker-margin is not set.
 * @prop --tct-file-picker-margin-bottom: (<length-percentage>) Controls the bottom margin of the file picker host when --tct-file-picker-margin is not set.
 * @prop --tct-file-picker-section-gap: (<length-percentage>) Controls the gap between items in the file list.
 * @prop --tct-file-picker-heading-gap: (<length-percentage>) Controls the gap between heading elements.
 * @prop --tct-file-picker-file-item-gap: (<length-percentage>) Controls the gap between file picker rows.
 * @prop --tct-file-picker-file-item-icon-size: (<length>) Controls the size of the success/error icons on file items.
 * @prop --tct-file-picker-file-item-loading-size: (<length>) Controls the font size driving the loading spinner inside file items.
 * @prop --tct-file-picker-file-item-loading-margin-bottom: (<length-percentage>) Controls the bottom margin of the loading spinner inside file items.
 * @prop --tct-file-picker-label-color: (<color>) Controls the text color of the file picker label.
 * @prop --tct-file-picker-label-font-size: (<length-percentage>) Controls the font size of the file picker label.
 * @prop --tct-file-picker-label-font-weight: (<number>) Controls the font weight of the file picker label.
 * @prop --tct-file-picker-label-text-align: (<custom-ident>) Controls the text alignment of the file picker label.
 * @prop --tct-file-picker-description-text-color: (<color>) Controls the text color of the file picker description.
 * @prop --tct-file-picker-description-font-size: (<length-percentage>) Controls the font size of the file picker description.
 * @prop --tct-file-picker-description-font-weight: (<number>) Controls the font weight of the file picker description.
 * @prop --tct-file-picker-description-text-align: (<custom-ident>) Controls the text alignment of the file picker description.
 * @prop --tct-file-picker-browse-link-font-weight: (<number>) Controls the font weight of the "browse" link inside the drop zone.
 * @prop --tct-file-picker-drop-zone-background: (<color>) Controls the background color of the drop zone in its default state.
 * @prop --tct-file-picker-drop-zone-border-color: (<color>) Controls the border color of the drop zone.
 * @prop --tct-file-picker-drop-zone-border-radius: (<length-percentage>) Controls the corner radius of the drop zone.
 * @prop --tct-file-picker-drop-zone-border-style: (<custom-ident>) Controls the border style of the drop zone.
 * @prop --tct-file-picker-drop-zone-border-width: (<length>+) Controls the border width of the drop zone.
 * @prop --tct-file-picker-drop-zone-color: (<color>) Controls the text color of inactive drop zone elements.
 * @prop --tct-file-picker-drop-zone-text-color: (<color>) Controls the text color of the active drop zone message.
 * @prop --tct-file-picker-drop-zone-font-size: (<length-percentage>) Controls the font size of drop zone text.
 * @prop --tct-file-picker-drop-zone-font-weight: (<number>) Controls the font weight of drop zone text.
 * @prop --tct-file-picker-drop-zone-text-margin-top: (<length-percentage>) Controls the top margin of the active drop zone message.
 * @prop --tct-file-picker-drop-zone-icon-color: (<color>) Controls the stroke color of the drop zone icon.
 * @prop --tct-file-picker-drop-zone-height: (<length>) Controls the height of the drop zone.
 * @prop --tct-file-picker-drop-zone-padding: (<length-percentage>+) Controls the inner padding of the drop zone.
 * @prop --tct-file-picker-drop-zone-width: (<length-percentage>) Controls the width of the drop zone.
 * @prop --tct-file-picker-drop-zone-max-width: (<length-percentage>) Controls the maximum width of the drop zone.
 * @prop --tct-file-picker-drop-zone-min-width: (<length-percentage>) Controls the minimum width of the drop zone.
 * @prop --tct-file-picker-drop-zone-highlighted-background: (<color>) Controls the background color of the drop zone when actively dragged over.
 * @prop --tct-file-picker-drop-zone-highlighted-border: (<color>) Controls the border color of the drop zone when actively dragged over.
 * @prop --tct-file-picker-drop-zone-disabled-opacity: (<number>) Controls the opacity of the drop zone when disabled.
 * @prop --tct-file-picker-item-border-color: (<color>) Controls the border color of file items.
 * @prop --tct-file-picker-item-border-radius: (<length-percentage>) Controls the corner radius of file items.
 * @prop --tct-file-picker-item-border-width: (<length>) Controls the border width of file items.
 * @prop --tct-file-picker-item-padding: (<length-percentage>+) Controls the inner padding of file items.
 * @prop --tct-file-picker-item-font-size: (<length-percentage>) Controls the font size of file item details (body text).
 * @prop --tct-file-picker-item-font-weight: (<number>) Controls the font weight of file item details (body text).
 * @prop --tct-file-picker-item-name-color: (<color>) Controls the text color of the file name.
 * @prop --tct-file-picker-item-name-font-size: (<length-percentage>) Controls the font size of the file name.
 * @prop --tct-file-picker-item-name-font-weight: (<number>) Controls the font weight of the file name.
 * @prop --tct-file-picker-item-close-btn-color: (<color>) Controls the color of the file item close (remove) button.
 * @prop --tct-file-picker-item-close-btn-hover-color: (<color>) Controls the color of the file item close button on hover.
 * @prop --tct-file-picker-item-close-btn-active-color: (<color>) Controls the color of the file item close button when active.
 * @prop --tct-file-picker-item-close-btn-hover-focus-ring-color: (<color>) Controls the focus ring color of the file item close button on hover and focus.
 * @prop --tct-file-picker-item-close-btn-border-radius: (<length-percentage>) Controls the corner radius of the file item close button.
 * @prop --tct-file-picker-item-close-btn-size: (<length>) Controls the width and height of the file item close button.
 * @prop --tct-file-picker-list-max-height: (<length-percentage>) Controls the maximum height of the file list container before scrolling.
 * @prop --tct-file-picker-list-gradient-height: (<length-percentage>) Controls the height of the fade indicating more files are available below the visible list.
 * @prop --tct-file-picker-scrollbar-color: (<color>) Controls the scrollbar thumb color of the file list container.
 * @prop --tct-file-picker-loading-size: (<length>) Controls the font size driving the picker-level loading spinner.
 * @prop --tct-file-picker-loading-file-color: (<color>) Controls the text color of the loading-file message.
 * @prop --tct-file-picker-loading-file-font-size: (<length-percentage>) Controls the font size of the loading-file message.
 * @prop --tct-file-picker-loading-file-font-weight: (<number>) Controls the font weight of the loading-file message.
 * @prop --tct-file-picker-loading-message-color: (<color>) Controls the text color of the loading status message.
 * @prop --tct-file-picker-loading-message-font-size: (<length-percentage>) Controls the font size of the loading status message.
 * @prop --tct-file-picker-loading-message-font-weight: (<number>) Controls the font weight of the loading status message.
 * @prop --tct-file-picker-loading-message-margin-top: (<length-percentage>) Controls the top margin of the loading status message.
 * @prop --tct-file-picker-loading-message-margin-bottom: (<length-percentage>) Controls the bottom margin of the loading status message.
 */
@keyframes growFromCenterFadeIn {
  from {
    transform: scaleX(0.75) scaleY(0.75);
    opacity: 0;
  }
  to {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
}
@keyframes shrinkToCenterFadeOut {
  from {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
  to {
    transform: scaleX(0.75) scaleY(0.75);
    opacity: 0;
  }
}
:host {
  --comp-default-file-picker-margin: var(--tct-file-picker-margin-top, var(--t-file-picker-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-file-picker-margin-bottom, var(--t-file-picker-margin-bottom, var(--app-scale-5x, 25px)));
  display: block;
  margin: var(--tct-file-picker-margin, var(--comp-default-file-picker-margin));
}

.browse {
  text-align: left;
}

.drop-zone-text {
  --tct-link-font-weight: var(--tct-file-picker-browse-link-font-weight, 700);
  color: var(--tct-file-picker-drop-zone-text-color, var(--t-gray-6, #4d4d4d));
  font-size: var(--tct-file-picker-drop-zone-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  font-weight: var(--tct-file-picker-browse-link-font-weight, 700);
  margin-bottom: 0;
  margin-top: var(--tct-file-picker-drop-zone-text-margin-top, var(--app-scale-2x, 10px));
}

.description {
  color: var(--tct-file-picker-description-text-color, var(--t-gray-1, #0d0d0d));
  font-size: var(--tct-file-picker-description-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  font-weight: var(--tct-file-picker-description-font-weight, 400);
  text-align: var(--tct-file-picker-description-text-align, left);
}

.drop-zone {
  --tct-icon-stroke-primary: var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));
  --tct-icon-stroke-secondary: var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));
  align-items: center;
  background-color: var(--tct-file-picker-drop-zone-background, var(--t-tertiary, #e8f5fc));
  border-color: var(--tct-file-picker-drop-zone-border-color, var(--t-gray-8, #808080));
  border-radius: var(--tct-file-picker-drop-zone-border-radius, var(--app-border-radius-2, 6px));
  border-style: var(--tct-file-picker-drop-zone-border-style, dashed);
  border-width: var(--tct-file-picker-drop-zone-border-width, 2px);
  color: var(--tct-file-picker-drop-zone-color, #747474);
  display: flex;
  flex-direction: column;
  font-size: var(--tct-file-picker-drop-zone-font-size, var(--app-font-size, var(--const-px-14, 14px)));
  font-weight: var(--tct-file-picker-drop-zone-font-weight, 400);
  height: var(--tct-file-picker-drop-zone-height, 150px);
  justify-content: center;
  max-width: var(--tct-file-picker-drop-zone-max-width, 640px);
  min-width: var(--tct-file-picker-drop-zone-min-width, 320px);
  padding: var(--tct-file-picker-drop-zone-padding, 20px);
  text-align: center;
  width: var(--tct-file-picker-drop-zone-width, 100%);
}

.drop-zone-highlighted {
  background-color: var(--tct-file-picker-drop-zone-highlighted-background, var(--tertiary-d-1, #bee1f6));
  border-color: var(--tct-file-picker-drop-zone-highlighted-border, var(--t-gray-8, #808080));
}

.drop-zone-disabled {
  opacity: var(--tct-file-picker-drop-zone-disabled-opacity, var(--app-disabled-opacity, 0.4));
  cursor: not-allowed;
}

.fade-in {
  animation-fill-mode: both;
  animation-play-state: running;
  animation: growFromCenterFadeIn 0.2s ease-in;
}

.fade-out {
  animation: shrinkToCenterFadeOut 0.1s ease-out;
  animation-play-state: running;
  animation-fill-mode: both;
}

.file-item {
  --tct-btn-icon-border-radius: var(--tct-file-picker-item-close-btn-border-radius, 4px);
  --tct-btn-neutral-text-active-font-color: var(--tct-file-picker-item-close-btn-active-color, var(--t-gray-1, #0d0d0d));
  --tct-btn-neutral-text-focus-visible-outer-ring-color: var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));
  --tct-btn-neutral-text-font-color: var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));
  --tct-btn-neutral-text-hover-outer-ring-color: var(--tct-file-picker-item-close-btn-hover-focus-ring-color, var(--t-gray-1, #0d0d0d));
  --tct-btn-icon-padding: 0;
  --tct-icon-stroke-primary: var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));
  --tct-item-body-font-size: var(--tct-file-picker-item-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  --tct-item-body-font-weight: var(--tct-file-picker-item-font-weight, 400);
  --tct-item-border-radius: var(--tct-file-picker-item-border-radius, var(--app-border-radius-3, 12px));
  --tct-item-border: var(--tct-file-picker-item-border-width, 1px) solid var(--tct-file-picker-item-border-color, var(--t-gray-8, #808080));
  --tct-item-header-color: var(--tct-file-picker-item-name-color, var(--t-gray-1, #0d0d0d));
  --tct-item-header-font-size: var(--tct-file-picker-item-name-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  --tct-item-header-font-weight: var(--tct-file-picker-item-name-font-weight, 400);
  --tct-item-padding: var(--tct-file-picker-item-padding, var(--app-scale-1x, 5px) var(--app-scale-2x, 10px));
  text-align: left;
}

.file-item-info {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.file-name-header {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  width: 100%;
}

.file-name-leading {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-name-trailing {
  direction: rtl;
  flex: 0 0 auto;
  max-width: 50%;
  overflow: hidden;
}

.file-item-loading {
  /* stylelint-disable-next-line tecton/require-t-px-fallback */
  font-size: var(--tct-file-picker-file-item-loading-size, var(--app-scale-6x, 30px));
  margin-bottom: calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-6x, 30px)) / 8.57);
  margin-left: calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-1x, 5px)) / 2);
}

.file-list {
  --tct-list-item-gap: var(--tct-file-picker-section-gap, var(--app-scale-3x, 15px));
}

.file-list-container {
  max-height: var(--tct-file-picker-list-max-height, 190px);
  max-width: var(--tct-file-picker-drop-zone-max-width, 640px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tct-file-picker-scrollbar-color, var(--t-a11y-gray-color, #949494)) transparent;
}
.file-list-container.more-files {
  -webkit-mask-image: linear-gradient(to bottom, currentColor calc(100% - var(--tct-file-picker-list-gradient-height, var(--app-scale-12x, 60px))), transparent 100%);
  mask-image: linear-gradient(to bottom, currentColor calc(100% - var(--tct-file-picker-list-gradient-height, var(--app-scale-12x, 60px))), transparent 100%);
}

.file-picker {
  display: flex;
  flex-direction: column;
  gap: var(--tct-file-picker-file-item-gap, var(--app-scale-3x, 15px));
}

.heading {
  display: flex;
  flex-direction: column;
  gap: var(--tct-file-picker-heading-gap, var(--app-scale-1x, 5px));
  justify-content: space-between;
}

.icon-success,
.icon-error {
  --tct-icon-size: var(--tct-file-picker-file-item-icon-size, var(--app-scale-6x, 30px));
  --tct-icon-stroke-width: 2px;
}

.label {
  color: var(--tct-file-picker-label-color, var(--t-gray-1, #0d0d0d));
  display: inline-block;
  font-size: var(--tct-file-picker-label-font-size, var(--app-font-size, var(--const-px-14, 14px)));
  font-weight: var(--tct-file-picker-label-font-weight, 600);
  text-align: var(--tct-file-picker-label-text-align, left);
}

.loading {
  /* stylelint-disable-next-line tecton/require-t-px-fallback */
  font-size: var(--tct-file-picker-loading-size, var(--app-scale-6x, 25px));
}

.loading-file {
  color: var(--tct-file-picker-loading-file-color, var(--t-gray-1, #0d0d0d));
  font-size: var(--tct-file-picker-loading-file-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  font-weight: var(--tct-file-picker-loading-file-font-weight, 400);
  margin: 0;
}

.loading-message {
  color: var(--tct-file-picker-loading-message-color, var(--t-gray-1, #0d0d0d));
  font-size: var(--tct-file-picker-loading-message-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));
  font-weight: var(--tct-file-picker-loading-message-font-weight, 700);
  margin-bottom: var(--tct-file-picker-loading-message-margin-bottom, var(--app-scale-2x, 10px));
  margin-top: var(--tct-file-picker-loading-message-margin-top, var(--app-scale-2x, 10px));
}

.dismiss-button {
  --tct-btn-icon-width: var(--tct-file-picker-item-close-btn-size, 30px);
  --tct-btn-icon-height: var(--tct-file-picker-item-close-btn-size, 30px);
}
.dismiss-button:hover {
  --tct-icon-stroke-primary: var(--tct-file-picker-item-close-btn-hover-color, var(--t-gray-1, #0d0d0d));
}

[slot=action] {
  display: flex;
  align-items: center;
}