// ------------------------------------------------------------------------------
// <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 meterBarElementCosmopolitanStyle() {
    return css `
:host {
  --meter-bar-fill-color-high: var(--cosmopolitan-color-semantic-warning);
  --meter-bar-fill-color-low: var(--cosmopolitan-color-semantic-error);
  --meter-bar-fill-color-optimum: var(--cosmopolitan-color-semantic-success);
  --meter-bar-font-family: unset;
  --meter-bar-font-letter-spacing: unset;
  --meter-bar-font-line-height: unset;
  --meter-bar-font-size: unset;
  --meter-bar-font-text-decoration: unset;
  --meter-bar-font-text-transform: unset;
  --meter-bar-font-weight: unset;
  --meter-bar-gap: unset;
  --meter-bar-marker-color: var(--cosmopolitan-scheme-foreground);
  --meter-bar-padding-bottom: unset;
  --meter-bar-padding-left: unset;
  --meter-bar-padding-right: unset;
  --meter-bar-padding-top: unset;
  --meter-bar-transition-duration: unset;
  --meter-bar-transition-mode: unset;
  --meter-bar-transition-property: unset;
  --meter-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 {
  width: 100%;
  height: 100%;
  line-height: 0;
  display: block;
}

:host [part="bar"] {
  border-radius: 10px;
  width: 100%;
  height: 4px;
  position: relative;
  overflow: hidden;
}

:host [part="bar"] [part="fill"] {
  border-radius: 10px;
  height: 100%;
  transition: width .3s;
}

:host [part="bar"] [part="segments"] {
  flex-direction: row;
  gap: 2px;
  width: 100%;
  height: 100%;
  display: flex;
}

:host [part="bar"] [part="segment"] {
  flex-shrink: 0;
  height: 100%;
}

:host [part="bar"] [part="segment"]:first-child {
  border-radius: 10px 0 0 10px;
}

:host [part="bar"] [part="segment"]:last-child {
  border-radius: 0 10px 10px 0;
}

:host [part="bar"] [part="marker"] {
  background-color: var(--meter-bar-marker-color);
  border-radius: 2px;
  width: 4px;
  height: calc(100% + 8px);
  transition: left .3s;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px #0000004d;
}

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

:host [part="bar"] [part="segment"][data-range="low"] {
  background-color: var(--meter-bar-fill-color-low);
}

:host [part="bar"] [part="segment"][data-range="optimum"] {
  background-color: var(--meter-bar-fill-color-optimum);
}

:host [part="bar"] [part="segment"][data-range="high"] {
  background-color: var(--meter-bar-fill-color-high);
}

    `;
}
//# sourceMappingURL=MeterBarElement.Cosmopolitan.js.map