/**
 * @license
 * Copyright (c) 2000 - 2026 Vaadin Ltd.
 * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
 */
@media lumo_components_upload {
  :host {
    border: var(--vaadin-upload-border-width, 1px) dashed var(--vaadin-upload-border-color, var(--lumo-contrast-20pct));
    border-radius: var(--vaadin-upload-border-radius, var(--lumo-border-radius-l));
    line-height: var(--lumo-line-height-m);
    padding: var(--vaadin-upload-padding, var(--lumo-space-m));
    transition:
      background-color 0.6s,
      border-color 0.6s;
  }

  :host([nodrop]) {
    border: none;
    border-radius: 0;
    padding: 0;
    transition: none;
  }

  [part='drop-label'] {
    color: var(--vaadin-upload-drop-label-color, var(--lumo-secondary-text-color));
    gap: var(--vaadin-upload-drop-label-gap, var(--lumo-space-xs));
    font-family: var(--lumo-font-family);
    padding: 0 var(--lumo-space-s);
  }

  [part='primary-buttons'] {
    gap: 0;
  }

  :host([dragover-valid]) {
    --vaadin-upload-background: var(--lumo-primary-color-10pct);
    --vaadin-upload-border-color: var(--lumo-primary-color-50pct);
    transition:
      background-color 0.1s,
      border-color 0.1s;
  }

  :host([dragover-valid]) [part='drop-label'] {
    color: var(--lumo-primary-text-color);
  }

  :host([disabled]) [part='drop-label'],
  :host([max-files-reached]) [part='drop-label'] {
    color: var(--lumo-disabled-text-color);
  }
}
