// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function progressBarElementJoyStyle() {
    return css `
:host {
  --progress-bar-font-family: unset;
  --progress-bar-font-letter-spacing: unset;
  --progress-bar-font-line-height: unset;
  --progress-bar-font-size: unset;
  --progress-bar-font-text-decoration: unset;
  --progress-bar-font-text-transform: unset;
  --progress-bar-font-weight: unset;
  --progress-bar-gap: unset;
  --progress-bar-padding-bottom: unset;
  --progress-bar-padding-left: unset;
  --progress-bar-padding-right: unset;
  --progress-bar-padding-top: unset;
  --progress-bar-transition-duration: unset;
  --progress-bar-transition-mode: unset;
  --progress-bar-transition-property: unset;
  --progress-bar-translate: unset;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  line-height: 0;
  display: block;
}

:host .progress-container {
  display: inline-block;
  position: relative;
}

:host .progress-container .outer {
  margin-right: 0;
  padding-right: 0;
  display: flex;
}

:host .progress-container .outer .inner {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

:host .progress-container .outer .inner .bg {
  transition: all .4s ease-in-out;
  position: relative;
}

:host .progress-container .outer .inner .bg.indeterminate {
  position: initial;
}

:host .progress-container .outer .inner .bg.indeterminate:before {
  content: "";
  will-change: left, right;
  animation-name: indeterminate;
  animation-fill-mode: "forwards";
  animation: 2.1s cubic-bezier(.65, .815, .735, .395) infinite indeterminate;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

:host .progress-container .outer .inner .bg.indeterminate:after {
  content: "";
  will-change: left, right;
  animation-name: indeterminate-short;
  animation-fill-mode: "forwards";
  animation: 2.1s cubic-bezier(.165, .84, .44, 1) 1.15s infinite indeterminate-short;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

:host [part="hint"] {
  flex-direction: row;
  justify-content: space-between;
  display: flex;
}

:host, :host([orientation="horizontal"]) {
  width: 100%;
}

:host .progress-container, :host([orientation="horizontal"]) .progress-container, :host .progress-container .outer, :host([orientation="horizontal"]) .progress-container .outer, :host .progress-container .outer .inner, :host([orientation="horizontal"]) .progress-container .outer .inner {
  width: inherit;
}

:host([orientation="vertical"]) {
  width: unset;
  height: 100%;
}

:host([orientation="vertical"]) .progress-container {
  height: inherit;
}

:host([orientation="vertical"]) .progress-container .outer, :host([orientation="vertical"]) .progress-container .outer .inner {
  width: unset;
  height: inherit;
}

@keyframes indeterminate {
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
}

@keyframes indeterminate-short {
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
}

:host .progress-container .outer .inner {
  background-color: var(--joy-scheme-highlight);
  border-radius: var(--joy-layout-radius);
}

:host .progress-container .outer .inner .bg {
  background-color: var(--joy-color-primary-500);
}

:host .progress-container .outer .inner .bg.indeterminate:before, :host .progress-container .outer .inner .bg.indeterminate:after {
  background-color: var(--joy-color-neutral-100);
  animation-duration: var(--joy-duration-short);
}

:host([disabled]:not([disabled="false"])) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-neutral-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) .progress-container .outer .inner .bg {
  background-color: var(--joy-color-neutral-500);
}

:host([has-segments]) {
  --segment-gap: 4px;
  --_segment-width: calc(1 / var(--segments));
  --_mask-color: #999;
  --_jagged-edges-hack: var(--_mask-color) 0 99%, transparent calc(99% + .6px) 100%;
  --_left-circle: radial-gradient(circle closest-side at var(--joy-layout-radius) center, var(--_jagged-edges-hack));
  --_right-circle: radial-gradient(circle closest-side at calc(100% - var(--joy-layout-radius)  - var(--segment-gap)) center, var(--_jagged-edges-hack));
  --_rectangle: linear-gradient(to right, transparent 0 var(--joy-layout-radius), var(--_mask-color) var(--joy-layout-radius) calc(100% - var(--joy-layout-radius)  - var(--segment-gap)), transparent calc(100% - var(--joy-layout-radius)  - var(--segment-gap)));
}

:host([has-segments]) .progress-container {
  -webkit-mask-image: var(--_left-circle), var(--_right-circle), var(--_rectangle);
  mask-image: var(--_left-circle), var(--_right-circle), var(--_rectangle);
  -webkit-mask-size: calc(100% * var(--_segment-width)  + var(--segment-gap) * var(--_segment-width));
  mask-size: calc(100% * var(--_segment-width)  + var(--segment-gap) * var(--_segment-width));
}

    `;
}
//# sourceMappingURL=ProgressBarElement.Joy.js.map