// ------------------------------------------------------------------------------
// <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 meterRingElementCosmopolitanStyle() {
    return css `
:host {
  --meter-ring-background-color: unset;
  --meter-ring-border-color: unset;
  --meter-ring-border-radius: unset;
  --meter-ring-border-style: unset;
  --meter-ring-border-width: unset;
  --meter-ring-fill-color: unset;
  --meter-ring-fill-color-high: unset;
  --meter-ring-fill-color-low: unset;
  --meter-ring-fill-color-normal: unset;
  --meter-ring-fill-color-optimum: unset;
  --meter-ring-font-family: unset;
  --meter-ring-font-letter-spacing: unset;
  --meter-ring-font-line-height: unset;
  --meter-ring-font-size: unset;
  --meter-ring-font-text-decoration: unset;
  --meter-ring-font-text-transform: unset;
  --meter-ring-font-weight: unset;
  --meter-ring-foreground-color: unset;
  --meter-ring-gap: unset;
  --meter-ring-marker-color: var(--cosmopolitan-scheme-foreground);
  --meter-ring-padding-bottom: unset;
  --meter-ring-padding-left: unset;
  --meter-ring-padding-right: unset;
  --meter-ring-padding-top: unset;
  --meter-ring-radius: unset;
  --meter-ring-shadow: unset;
  --meter-ring-thickness: unset;
  --meter-ring-transition-duration: unset;
  --meter-ring-transition-mode: unset;
  --meter-ring-transition-property: unset;
  --meter-ring-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 {
  --_meter-ring-circumference: calc(2 * 3.1416 * var(--_meter-ring-radius));
  line-height: 0;
  display: block;
}

:host [part="root"] {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

:host [part="root"] circle {
  fill: none;
  stroke-linecap: round;
}

:host [part="bar"] {
  stroke: var(--meter-ring-background-color);
  stroke-width: var(--_meter-ring-thickness);
  fill: none;
  cx: var(--_meter-ring-radius);
  cy: var(--_meter-ring-radius);
  r: calc(var(--_meter-ring-radius) - var(--_meter-ring-thickness) / 2);
}

:host [part="fill"] {
  stroke-width: var(--_meter-ring-thickness);
  stroke-linecap: round;
  fill: none;
  cx: var(--_meter-ring-radius);
  cy: var(--_meter-ring-radius);
  r: calc(var(--_meter-ring-radius) - var(--_meter-ring-thickness) / 2);
  stroke-dasharray: var(--_meter-ring-circumference) var(--_meter-ring-circumference);
  stroke-dashoffset: calc(var(--_meter-ring-circumference) * (1 - var(--_meter-ring-value) / 100));
  transition-property: stroke-dashoffset, stroke-dasharray, stroke;
  transition-duration: var(--meter-ring-transition-duration);
  transition-timing-function: var(--meter-ring-transition-mode);
  stroke: var(--meter-ring-fill-color);
}

:host [part="segment"] {
  stroke-linecap: butt;
  transition-property: stroke;
  transition-duration: var(--meter-ring-transition-duration);
  transition-timing-function: var(--meter-ring-transition-mode);
}

:host [part="marker"] {
  fill: var(--meter-ring-marker-color);
  filter: drop-shadow(0 0 2px #0000004d);
  transition-property: cx, cy;
  transition-duration: var(--meter-ring-transition-duration);
  transition-timing-function: var(--meter-ring-transition-mode);
}

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

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

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

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

:host([disabled]:not([disabled="false"])) {
  --meter-ring-background-color: var(--cosmopolitan-scheme-background);
  --meter-ring-border-color: var(--cosmopolitan-scheme-highlight);
  --meter-ring-foreground-color: var(--cosmopolitan-scheme-disabled);
  --meter-ring-fill-color: var(--cosmopolitan-scheme-disabled);
}

:host([range="normal"]) [part="fill"] {
  --meter-ring-fill-color: var(--meter-ring-fill-color-normal);
}

:host([range="low"]) [part="fill"] {
  --meter-ring-fill-color: var(--meter-ring-fill-color-low);
}

:host([range="high"]) [part="fill"] {
  --meter-ring-fill-color: var(--meter-ring-fill-color-high);
}

:host([range="optimum"]) [part="fill"] {
  --meter-ring-fill-color: var(--meter-ring-fill-color-optimum);
}

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