/*
 * Copyright (c) 2019-present Sonatype, Inc.
 * This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License 2.0 which accompanies this
 * distribution and is available at https://www.eclipse.org/legal/epl-2.0/.
 */

 @use '../../../scss-shared/nx-text-helpers';

$-spacing-within-border: calc(var(--nx-spacing-6x) - var(--nx-border-width-alt));

.nx-multi-file-upload {
  height: 220px;
  width: 348px;

  // need an enclosing div around NxMultiFileUpload that doesn't contain the validationError message
  &__container {
    align-items: flex-start;
    box-sizing: border-box;
    border: var(--nx-border-width-alt) solid var(--nx-color-border);
    border-radius: var(--nx-border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;

    &__files {
      box-sizing: border-box;
      border-top: var(--nx-border-default);
      flex: 1;
      list-style-type: none;
      margin: 0;
      padding: var(--nx-spacing-6x) $-spacing-within-border $-spacing-within-border $-spacing-within-border;
      width: 100%;
    }

    > .nx-btn {
      margin: $-spacing-within-border 0 var(--nx-spacing-6x) $-spacing-within-border;
    }
  }

  &__file-count {
    display: none;
  }

  .nx-selected-file {
    margin-bottom: var(--nx-spacing-2x);
  }
}
