@use "../../wc";


:host {
  width: calc(100% - 4px);
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  --zn-progress-bar-color: rgb(var(--zn-primary));
}

:host([color="info"]) {
  --zn-progress-bar-color: rgb(var(--zn-color-info));
}

:host([color="error"]) {
  --zn-progress-bar-color: rgb(var(--zn-color-error));
}

:host([color="success"]) {
  --zn-progress-bar-color: rgb(var(--zn-color-success));
}

:host([color="warning"]) {
  --zn-progress-bar-color: rgb(var(--zn-color-warning));
}

.header {
  font-weight: 500;
  color: rgb(var(--zn-text-heading));
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress {
  color: rgb(var(--zn-text));
}

.label,
.info {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info {
  font-size: 90%;
}

.header {
  margin-bottom: var(--zn-spacing-x-small);
}

.footer {
  margin-top: var(--zn-spacing-x-small);
}
