.app-attachment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.app-attachment__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.app-attachment__label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.781rem;
  background: #ffffff;
  color: #005eb1;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.app-attachment__input:focus-visible + .app-attachment__label {
  border-radius: 0.312rem;
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.app-attachment__icon {
  display: block;
  width: 1.375rem;
  height: 1.1875rem;
  flex: 0 0 auto;
}

.app-attachment__list {
  display: flex;
  flex: 1 0 100%;
  flex-direction: column;
  gap: 0.625rem;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0 0 0 calc(1.375rem + 0.781rem);
  list-style: none;
}

.app-attachment__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  color: #000000;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.app-attachment__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-attachment__size {
  flex: 0 0 auto;
  color: #525252;
  font-size: 0.875rem;
}

.app-attachment__remove {
  flex: 0 0 auto;
  margin-left: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: #005eb1;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: underline;
}

.app-attachment__remove:hover {
  color: #003f7a;
}

.app-attachment__remove:focus-visible {
  border-radius: 0.125rem;
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.app-attachment--disabled .app-attachment__label {
  background: #eeeeee;
  color: #626262;
  cursor: not-allowed;
}

.app-attachment--disabled .app-attachment__icon {
  opacity: 0.55;
}

@media (forced-colors: active) {
  .app-attachment__label {
    border-color: ButtonText;
    background: ButtonFace;
    color: LinkText;
  }

  .app-attachment__input:focus-visible + .app-attachment__label {
    outline-color: Highlight;
  }

  .app-attachment__remove {
    color: LinkText;
  }
}
