/*
 * SPDX-FileCopyrightText: 2026 Siemens AG
 *
 * SPDX-License-Identifier: MIT
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
:host {
  display: inline-block;
}
:host *,
:host *::after,
:host *::before {
  box-sizing: border-box;
}
:host *::-webkit-scrollbar-button {
  display: none;
}
@-moz-document url-prefix() {
  :host * {
    scrollbar-color: var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);
    scrollbar-width: thin;
  }
}
:host * {
  /* width */
}
:host *::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}
:host * {
  /* Track */
}
:host *::-webkit-scrollbar-track {
  border-radius: 5px;
  background: var(--theme-scrollbar-track--background);
}
:host *::-webkit-scrollbar-track:hover {
  background: var(--theme-scrollbar-track--background--hover);
}
:host * {
  /* Handle */
}
:host *::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--theme-scrollbar-thumb--background);
}
:host * {
  /* Handle on hover */
}
:host *::-webkit-scrollbar-thumb:hover {
  background: var(--theme-scrollbar-thumb--background--hover);
}
:host *::-webkit-scrollbar-corner {
  display: none;
}
:host .attachment-chip {
  display: block;
  width: 100%;
  max-width: 20rem;
}
:host .content,
:host .status-content {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
:host .content {
  flex: 1 1 auto;
  max-width: 100%;
  width: 100%;
}
:host .status-content {
  gap: var(--theme-space-1);
}
:host .status-content ix-spinner {
  scale: 1.7;
  margin-left: 0.1875rem;
}
:host .file-name {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
:host .file-name__base {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: end;
}
:host .file-name__extension {
  flex: 0 0 auto;
  white-space: nowrap;
}
:host .status-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:host ix-icon {
  flex: 0 0 auto;
}
:host ix-spinner {
  flex: 0 0 auto;
}

:host(.preview-supported) {
  cursor: pointer;
}

:host(.has-remove-button) {
  gap: var(--theme-space-0);
}