// ------------------------------------------------------------------------------
// <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 toggleButtonElementCosmopolitanStyle() {
    return css `
:host {
  --toggle-button-background-color: var(--cosmopolitan-scheme-background);
  --toggle-button-border-color: var(--cosmopolitan-scheme-highlight);
  --toggle-button-border-radius: var(--cosmopolitan-layout-radius);
  --toggle-button-border-style: solid;
  --toggle-button-border-width: var(--cosmopolitan-layout-thickness);
  --toggle-button-focus-ring-active-width: 8px;
  --toggle-button-focus-ring-color: unset;
  --toggle-button-focus-ring-inward-offset: 2px;
  --toggle-button-focus-ring-outward-offset: 2px;
  --toggle-button-font-family: var(--cosmopolitan-typography-button-font-family);
  --toggle-button-font-letter-spacing: var(--cosmopolitan-typography-button-letter-spacing);
  --toggle-button-font-line-height: var(--cosmopolitan-typography-button-line-height);
  --toggle-button-font-size: var(--cosmopolitan-typography-button-font-size);
  --toggle-button-font-text-decoration: var(--cosmopolitan-typography-button-text-decoration);
  --toggle-button-font-text-transform: var(--cosmopolitan-typography-button-text-transform);
  --toggle-button-font-weight: var(--cosmopolitan-typography-button-font-weight);
  --toggle-button-foreground-color: var(--cosmopolitan-scheme-foreground);
  --toggle-button-gap: var(--cosmopolitan-layout-space);
  --toggle-button-height: auto;
  --toggle-button-icon-min-width: 36px;
  --toggle-button-icon-min-height: 36px;
  --toggle-button-line-height: calc(var(--toggle-button-font-line-height) - 4px);
  --toggle-button-min-height: calc(var(--joy-layout-space) * 5 - var(--joy-layout-space) / 2);
  --toggle-button-min-width: 64px;
  --toggle-button-padding-bottom: var(--cosmopolitan-layout-space);
  --toggle-button-padding-left: var(--cosmopolitan-layout-space);
  --toggle-button-padding-right: var(--cosmopolitan-layout-space);
  --toggle-button-padding-top: var(--cosmopolitan-layout-space);
  --toggle-button-progress-ring-width: var(--cosmopolitan-layout-thickness);
  --toggle-button-ripple-color: unset;
  --toggle-button-ripple-duration: .2s;
  --toggle-button-shadow: unset unset unset unset unset;
  --toggle-button-shadow-blur: unset;
  --toggle-button-shadow-color: unset;
  --toggle-button-shadow-offset-x: unset;
  --toggle-button-shadow-offset-y: unset;
  --toggle-button-shadow-spread: unset;
  --toggle-button-transition-duration: .2s;
  --toggle-button-transition-mode: ease;
  --toggle-button-transition-property: background-color, color, border-color, opacity, box-shadow, translate;
  --toggle-button-translate: none;
  --toggle-button-width: auto;
}

@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 {
  font-family: var(--toggle-button-font-family);
  font-size: var(--toggle-button-font-size);
  line-height: var(--toggle-button-font-line-height);
  font-weight: var(--toggle-button-font-weight);
  letter-spacing: var(--toggle-button-font-letter-spacing);
  -webkit-text-decoration: var(--toggle-button-font-text-decoration);
  text-decoration: var(--toggle-button-font-text-decoration);
  text-transform: var(--toggle-button-font-text-transform);
  transition-duration: var(--toggle-button-transition-duration);
  transition-timing-function: var(--toggle-button-transition-mode);
  transition-property: var(--toggle-button-transition-property);
  box-shadow: var(--toggle-button-shadow);
  width: var(--toggle-button-width);
  height: var(--toggle-button-height);
  translate: var(--toggle-button-translate);
  cursor: pointer;
  border-start-start-radius: var(--toggle-button-border-radius);
  border-start-end-radius: var(--toggle-button-border-radius);
  border-end-end-radius: var(--toggle-button-border-radius);
  border-end-start-radius: var(--toggle-button-border-radius);
  display: flex;
}

:host [part="focusRing"] {
  --focus-ring-color: var(--toggle-button-focus-ring-color);
  --focus-ring-active-width: var(--toggle-button-focus-ring-active-width);
  --focus-ring-inward-offset: var(--toggle-button-focus-ring-inward-offset);
  --focus-ring-outward-offset: var(--toggle-button-focus-ring-outward-offset);
}

:host [part="ripple"] {
  --ripple-background-color: var(--toggle-button-ripple-color);
  --ripple-duration: var(--toggle-button-ripple-duration);
}

:host [part="progressRing"] {
  --progress-ring-thickness: var(--toggle-button-progress-ring-width);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

:host [part="innerStack"] {
  --stack-gap: var(--toggle-button-gap);
}

:host [part="button"] {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  transition-duration: inherit;
  transition-timing-function: inherit;
  width: inherit;
  height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  z-index: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 40px;
  cursor: inherit;
  pointer-events: inherit;
  border-style: solid;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
  border-end-end-radius: inherit;
  border-end-start-radius: inherit;
  outline-style: none;
  flex: 1;
  margin: 0;
  text-decoration: none;
  transition-property: inherit;
  position: relative;
  overflow: hidden;
}

:host [part="button"]:before {
  content: "";
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: inherit;
  position: absolute;
  inset: 0;
}

:host [part="button"] [part="icon"] {
  color: inherit;
  flex-shrink: 0;
}

:host [part="button"] [part="label"] {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
}

:host(:not([has-icon])) {
  min-width: var(--toggle-button-min-width);
}

:host(:not([has-link])[has-icon]) {
  min-width: var(--toggle-button-icon-min-width);
  min-height: var(--toggle-button-icon-min-height);
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

:host([is-busy]) {
  pointer-events: none;
  position: relative;
}

:host([is-busy]) [part="button"]:before {
  opacity: .26;
  background-color: currentColor;
}

:host([is-busy]) [part="label"], :host([is-busy]) [part="icon"] {
  visibility: hidden;
}

:host([size="tiny"]) {
  --toggle-button-font-size: calc(var(--toggle-button-font-size) - 4px);
  --toggle-button-line-height: calc(var(--toggle-button-font-line-height) - 4px);
}

:host([size="small"]) {
  --toggle-button-font-size: calc(var(--toggle-button-font-size) - 2px);
  --toggle-button-line-height: calc(var(--toggle-button-font-line-height) - 2px);
}

:host([size="large"]) {
  --toggle-button-font-size: calc(var(--toggle-button-font-size) + 2px);
  --toggle-button-line-height: calc(var(--toggle-button-font-line-height) + 2px);
}

:host([size="giant"]) {
  --toggle-button-font-size: calc(var(--toggle-button-font-size) + 4px);
  --toggle-button-line-height: calc(var(--toggle-button-font-line-height) + 4px);
}

:host([fit="width"]) {
  width: 100%;
}

:host([fit="height"]) {
  height: 100%;
}

:host([fit="both"]) {
  width: 100%;
  height: 100%;
}

:host(.button-group__button.first) {
  border-left-width: 0;
}

:host(.button-group__button.first) [part="button"] {
  border-radius: var(--toggle-button-border-radius) 0px 0px var(--toggle-button-border-radius);
}

:host(.button-group__button.inner) {
  border-radius: unset;
}

:host(.button-group__button.inner) [part="button"] {
  border-radius: 0;
}

:host(.button-group__button.last) {
  border-right-width: 0;
}

:host(.button-group__button.last) [part="button"] {
  border-radius: 0 var(--toggle-button-border-radius) var(--toggle-button-border-radius) 0;
}

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