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

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

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

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

:host [part="innerStack"] {
  --stack-gap: var(--compound-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;
  padding-top: var(--compound-button-padding-top);
  padding-right: var(--compound-button-padding-right);
  padding-bottom: var(--compound-button-padding-bottom);
  padding-left: var(--compound-button-padding-left);
  gap: var(--compound-button-gap);
  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;
}

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

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

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

:host(:not([has-link])[has-icon]) {
  min-width: var(--compound-button-icon-min-width);
  min-height: var(--compound-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="label"], :host([is-busy]) [part="subLabel"], :host([is-busy]) [part="icon"], :host([is-busy]) [part="icon nav"] {
  visibility: hidden;
}

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

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

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

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

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

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

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

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