:host,
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    :host,
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }:host,
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    :host,
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }/** Typography */
:host {
  /**
  * @prop --color-error - The color used for error messages and invalid states.
  * @prop --color-error-light - The light variant of the error color. Used for the drop area background when invalid.
  * @prop --color-text - The default text color for labels and messages.
  * @prop --color-drop-browse - The color for the "Browse" text in the drop area.
  * @prop --color-drop-border - The border color for the drop area.
  * @prop --color-drop-bg - The background color for the drop area.
  * @prop --drop-height - The minimum height of the drop area.
  * @prop --color-btn-bg - The background color for the button.
  * @prop --color-btn-border - The border color for the button.
  * @prop --color-btn-text - The text color for the button.
  */
  min-block-size: 1rem;
  display: block;
  --color-error: var(--nano-color-danger-1100);
  --color-error-light: var(--nano-color-danger-100);
  --color-text: var(--nano-color-neutral-1400);
  --color-drop-browse: var(--nano-color-primary-1200);
  --color-drop-border: var(--nano-color-primary-1200);
  --color-drop-bg: var(--nano-color-primary-75);
  --drop-height: 3.5em;
  --color-btn-bg: var(--nano-color-base-0);
  --color-btn-border: var(--nano-color-primary-1000);
  --color-btn-text: var(--nano-color-primary-1000);
}

:host([disabled]:not([disabled=false])) {
  cursor: not-allowed;
}
:host([disabled]:not([disabled=false])) * {
  pointer-events: none !important;
}

.file-upload--invalid {
  --color-drop-bg: var(--color-error-light);
}

.file-upload--dragging {
  --color-drop-bg: var(--nano-color-success-50);
}

.file-upload {
  /* Drop area / Multi file upload */
  /* Button display / Single file upload */
}
.file-upload__label {
  font-size: var(--nano-font-size-xs);
  margin: 0;
  line-height: var(--nano-line-height-normal);
  letter-spacing: var(--nano-letter-spacing-loose);
}
:host([disabled]:not([disabled=false])) .file-upload__label {
  color: var(--nano-color-neutral-1200);
}
.file-upload__input {
  clip-path: inset(50%);
  block-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  inline-size: 1px;
}
.file-upload__error, .file-upload__help, .file-upload__more, .file-upload__label {
  display: block;
  inline-size: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file-upload__more {
  margin-block: var(--nano-spacing-sm) 0;
  position: relative;
}
.file-upload__more:has(.file-upload__error) .file-upload__help {
  display: none !important;
}
.file-upload__error, .file-upload__help {
  inset-block-start: 0;
  inset-inline-start: 0;
  font-style: italic;
  font-size: var(--nano-font-size-2xs);
  line-height: var(--nano-line-height-normal);
  letter-spacing: var(--nano-letter-spacing-loose);
}
.file-upload--invalid .file-upload__error, .file-upload--invalid .file-upload__help {
  opacity: 1;
}
.file-upload__error {
  color: var(--color-error);
  opacity: 0;
  display: none;
  transition: all var(--nano-transition-fast) ease;
  transition-behavior: allow-discrete;
}
.file-upload--invalid .file-upload__error {
  opacity: 1;
  display: block;
}
.file-upload__help {
  opacity: 1;
  color: var(--color-text);
  display: block;
}
.file-upload--invalid .file-upload__help {
  opacity: 0;
  display: none;
}
:host([disabled]:not([disabled=false])) .file-upload__help {
  color: var(--nano-color-neutral-1200);
  opacity: 0.8;
}
.file-upload__drop {
  position: relative;
  inline-size: 100%;
  display: inline-block;
}
.file-upload__drop-area {
  flex-direction: column;
  background-color: var(--color-drop-bg);
  color: var(--color-text);
  min-block-size: var(--drop-height);
  padding: var(--nano-spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color var(--nano-transition-x-fast) ease-in-out;
  font-size: var(--nano-font-size-sm);
  line-height: var(--nano-line-height-normal);
  letter-spacing: var(--nano-letter-spacing-loose);
}
:host([disabled]:not([disabled=false])) .file-upload__drop-area {
  color: var(--nano-color-neutral-1200);
  background-color: var(--nano-color-neutral-300);
  border-color: var(--nano-color-neutral-1200);
}
.file-upload__drop-area::after {
  content: "";
  position: absolute;
  border-width: 1px;
  background-color: var(--color-drop-border);
  -webkit-mask-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='white' stroke-width='2' stroke-dasharray='6%2c 8' stroke-dashoffset='0'/%3e%3c/svg%3e");
          mask-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='white' stroke-width='2' stroke-dasharray='6%2c 8' stroke-dashoffset='0'/%3e%3c/svg%3e");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  inset: 0;
  transition: top var(--nano-transition-x-fast) ease-in-out, bottom var(--nano-transition-x-fast) ease-in-out, left var(--nano-transition-x-fast) ease-in-out, right var(--nano-transition-x-fast) ease-in-out;
}
.file-upload--invalid .file-upload__drop-area::after {
  background-color: var(--color-error);
}
.file-upload--dragging .file-upload__drop-area::after {
  background-color: var(--nano-color-success-1100);
  inset: 5px;
}
.file-upload__drop-area span {
  color: var(--color-drop-browse);
  text-decoration: underline;
  z-index: 1;
  cursor: pointer;
  position: relative;
}
:host([disabled]:not([disabled=false])) .file-upload__drop-area span {
  color: var(--nano-color-neutral-1200);
  opacity: 0.8;
}
.file-upload--focus .file-upload__drop-area span {
  outline: var(--nano-focus-ring);
  outline-offset: var(--nano-focus-ring-offset);
}
.file-upload__list {
  list-style: none;
  margin: var(--nano-spacing-xs) 0 0;
  padding: 0;
}
.file-upload__list-wrap {
  position: relative;
  inset-block-start: -4px;
}
.file-upload__list-item {
  inline-size: 100%;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  animation: hideListItem var(--nano-transition-fast) ease-in-out forwards;
}
@keyframes hideListItem {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.file-upload__list-item--active {
  animation: showListItem var(--nano-transition-fast) ease-in-out forwards;
}
@keyframes showListItem {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.file-upload__list .list-title {
  background: var(--color-drop-bg);
  padding: var(--nano-spacing-xs);
  margin-inline-end: 2px;
  display: block;
  inline-size: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--nano-font-size-2xs);
  color: var(--color-text);
}
.file-upload__list .list-button {
  --padding: 0.406rem;
  background: var(--color-drop-bg);
  margin: 2px;
}
.file-upload__list .list-error {
  --color: var(--color-error);
}
.file-upload__drop-area, .file-upload__button {
  margin-block: var(--nano-spacing-sm) 0;
}
.file-upload__button {
  max-inline-size: 100%;
  display: flex;
}
:host(.is-invalid) .file-upload__button {
  color: var(--color-error);
}
.file-upload--dragging .file-upload__button {
  --nano-btn-border-style: dashed;
}
.file-upload__clear-btn {
  margin: 0;
  font-size: inherit;
  padding: 0;
  border: 0;
  outline: none;
  display: flex;
  align-items: center;
  inline-size: auto;
  color: var(--color-btn-text);
  background: var(--color-btn-bg);
}
:host(.is-invalid) .file-upload__clear-btn {
  color: var(--color-error);
}
.file-upload__clear-btn:focus-visible > nano-icon {
  outline: var(--nano-focus-ring);
  outline-offset: var(--nano-focus-ring-offset);
}
.file-upload__clear-btn .nano-icon {
  margin: 0.1rem 0 0 var(--nano-spacing-sm);
}
.file-upload--focus .file-upload__btn-content {
  outline: var(--nano-focus-ring);
  outline-offset: var(--nano-focus-ring-offset);
}
.file-upload__btn-content div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-inline-size: 0;
  display: block;
}
.file-upload--focus .file-upload__btn-content div {
  outline: var(--nano-focus-ring);
  outline-offset: var(--nano-focus-ring-offset);
}
.file-upload__icon {
  align-self: center;
  margin-inline-start: var(--nano-spacing-sm);
  size: var(--nano-icon-size-small);
}
.file-upload__icon-error {
  color: var(--color-error);
  opacity: 0;
}
.file-upload--invalid .file-upload__icon-error {
  opacity: 1;
}
.file-upload__icon-success {
  color: var(--nano-color-success-1100);
  opacity: 0;
}
.file-upload--valid .file-upload__icon-success {
  opacity: 1;
}