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

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

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

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

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

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

: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;
  padding-top: var(--dropdown-button-padding-top);
  padding-right: var(--dropdown-button-padding-right);
  padding-bottom: var(--dropdown-button-padding-bottom);
  padding-left: var(--dropdown-button-padding-left);
  gap: var(--dropdown-button-gap);
  background: var(--dropdown-button-background-color);
  color: var(--dropdown-button-foreground-color);
  border-color: var(--dropdown-button-border-color);
  border-width: var(--dropdown-button-border-width);
  border-radius: var(--dropdown-button-border-radius);
  border-style: var(--dropdown-button-border-style);
  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;
  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"] [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 [part="button"] [part="iconCaret"] {
  color: inherit;
  flex-shrink: 0;
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(0);
}

:host [part="popup"] {
  z-index: 100;
}

:host [part="popup"] ::slotted(mosaik-menu) {
  padding: 0;
}

:host ::slotted(*) {
  --menu-border-radius: 0;
  --menu-item-border-radius: 0;
  --menu-item-group-border-radius: 0;
}

:host([is-drop-down-open]) [part="iconCaret"] {
  transform: rotate(180deg);
}

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

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

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

: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"], :host([is-busy]) [part="iconCaret"] {
  visibility: hidden;
}

:host([appearance="outline"]) {
  --dropdown-button-border-style: solid;
}

:host([appearance="plain"]), :host([appearance="soft"]), :host([appearance="solid"]) {
  --dropdown-button-border-width: 0px;
}

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

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

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

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

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

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

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

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