// ------------------------------------------------------------------------------
// <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 buttonElementFluentStyle() {
    return css `
:host {
  --button-font-family: var(--unknown);
  --button-font-size: var(--unknown);
  --button-font-line-height: var(--unknown);
  --button-font-weight: var(--unknown);
  --button-font-letter-spacing: var(--unknown);
  --button-font-text-decoration: var(--unknown);
  --button-font-text-transform: var(--unknown);
  --button-padding-top: var(--unknown);
  --button-padding-right: var(--unknown);
  --button-padding-bottom: var(--unknown);
  --button-padding-left: var(--unknown);
  --button-gap: var(--unknown);
  --button-transition-duration: var(--unknown);
  --button-transition-mode: var(--unknown);
  --button-transition-property: unknown;
  --button-translate: var(--unknown);
  --button-background-color: var(--unknown);
  --button-foreground-color: var(--unknown);
  --button-border-color: var(--unknown);
  --button-border-width: var(--unknown);
  --button-border-radius: var(--unknown);
  --button-border-style: var(--unknown);
  --button-width: var(--unknown);
  --button-height: var(--unknown);
  --button-progress-thickness: var(--unknown);
}

@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(--button-font-family);
  font-size: var(--button-font-size);
  line-height: var(--button-font-line-height);
  font-weight: var(--button-font-weight);
  letter-spacing: var(--button-font-letter-spacing);
  -webkit-text-decoration: var(--button-font-text-decoration);
  text-decoration: var(--button-font-text-decoration);
  text-transform: var(--button-font-text-transform);
  transition-duration: var(--button-transition-duration);
  transition-timing-function: var(--button-transition-mode);
  transition-property: var(--button-transition-property);
  width: var(--button-width);
  height: var(--button-height);
  translate: var(--button-translate);
  cursor: pointer;
  --fontSizeBase300: 14px;
  --fontFamilyBase: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --fontWeightSemibold: 600;
  --lineHeightBase300: 20px;
  --durationFaster: .1s;
  --curveEasyEase: cubic-bezier(.33, 0, .67, 1);
  --button-border-width: var(--fluent-strokeWidthThin);
  --button-border-style: solid;
  --button-border-color: var(--fluent-colorNeutralStroke1);
  --button-background-color: var(--fluent-colorNeutralBackground1);
  --button-foreground-color: var(--fluent-colorNeutralForeground1);
  contain: layout style;
  vertical-align: middle;
  box-sizing: border-box;
  text-align: center;
  min-height: 32px;
  padding: 0 var(--fluent-spacingHorizontalM);
  border-start-start-radius: var(--button-border-radius);
  border-start-end-radius: var(--button-border-radius);
  border-end-end-radius: var(--button-border-radius);
  border-end-start-radius: var(--button-border-radius);
  border-radius: var(--fluent-borderRadiusMedium);
  min-width: 96px;
  font-size: var(--fontSizeBase300);
  font-family: var(--fontFamilyBase);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
  transition-duration: var(--durationFaster);
  transition-property: background, border, color;
  transition-timing-function: var(--curveEasyEase);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  outline-style: none;
  justify-content: center;
  align-items: center;
  margin: 0;
  text-decoration-line: none;
  display: inline-flex;
  position: relative;
}

: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(--button-padding-top);
  padding-right: var(--button-padding-right);
  padding-bottom: var(--button-padding-bottom);
  padding-left: var(--button-padding-left);
  gap: var(--button-gap);
  background-color: var(--button-background-color);
  color: var(--button-foreground-color);
  border-color: var(--button-border-color);
  border-width: var(--button-border-width);
  border-radius: var(--button-border-radius);
  border-style: var(--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"]:before {
  border-radius: var(--button-border-radius);
  border-radius: calc(var(--button-border-radius)  - var(--button-border-width));
  content: "";
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: inherit;
  position: absolute;
  inset: 0;
}

:host [part="button"] [part="icon"] {
  color: inherit;
}

: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="link"] {
  gap: var(--button-gap);
  width: 100%;
  height: 100%;
  text-decoration: inherit;
  align-items: center;
  display: flex;
}

:host [part="link"] [part="icon"] {
  color: inherit;
}

:host [part="link"] [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="progressRing"] {
  margin: -12px 0 0 -12px;
  position: absolute;
  top: 50%;
  left: 50%;
}

: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([fit="width"]) {
  --button-width: 100%;
}

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

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

:host(:not([has-icon])) {
  min-width: 64px;
}

:host([has-icon]:not([has-link])) {
  min-width: 40px;
}

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

:host [part="focusRing"] {
  --focus-ring-width: 0px;
}

:host [part="button"] [part="icon"], :host [part="link"] [part="icon"] {
  fill: currentColor;
  width: 20px;
  height: 20px;
  font-size: 20px;
}

:host(:hover) {
  --button-border-color: var(--fluent-colorNeutralStroke1Hover);
  --button-background-color: var(--fluent-colorNeutralBackground1Hover);
  --button-foreground-color: var(--fluent-colorNeutralForeground1Hover);
}

:host(:hover:active) {
  --button-border-color: var(--fluent-colorNeutralStroke1Pressed);
  --button-background-color: var(--fluent-colorNeutralBackground1Pressed);
  --button-foreground-color: var(--fluent-colorNeutralForeground1Pressed);
  outline-style: none;
}

:host(:focus-visible) {
  --shadow4: 0 0 2px #0000001f, 0 2px 4px #00000024;
  border-color: var(--fluent-colorTransparentStroke);
  outline: var(--fluent-strokeWidthThick) solid var(--fluent-colorTransparentStroke);
  box-shadow: var(--shadow4), 0 0 0 2px var(--fluent-colorStrokeFocus2);
}

:host([has-icon]:not([has-label]:not([has-link]))) {
  min-width: 32px;
  max-width: 32px;
}

:host([size="small"][has-icon]:not([has-label]:not([has-link]))) {
  min-width: 24px;
  max-width: 24px;
}

:host([size="large"]) {
  border-radius: var(--fluet-borderRadiusLarge);
  min-height: 40px;
  padding: 0 var(--fluet-spacingHorizontalL);
  font-size: var(--fluet-fontSizeBase400);
  line-height: var(--fluet-lineHeightBase400);
}

:host([size="large"]) [part="button"] [part="icon"], :host([size="large"]) [part="link"] [part="icon"] {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

:host([size="large"][has-icon]:not([has-label]:not([has-link]))) {
  min-width: 40px;
  max-width: 40px;
}

:host([variant="primary"]) {
  --button-background-color: var(--fluent-primary-primary-color);
  --button-foreground-color: var(--fluent-white-color);
  --button-border-color: transparent;
}

:host([variant="primary"]:hover) {
  --button-background-color: var(--fluent-primary-70-color);
  --button-foreground-color: var(--fluent-white-color);
  --button-border-color: transparent;
}

:host([variant="primary"]:hover:active) {
  --button-background-color: var(--fluent-primary-40-color);
  --button-foreground-color: var(--fluent-white-color);
  --button-border-color: transparent;
}

:host([variant="primary"]:focus-visible) {
  --button-background-color: var(--fluent-colorBrandBackgroundHover);
  box-shadow: var(--fluent-shadow2), 0 0 0 2px var(--fluent-colorStrokeFocus2);
}

:host([appearance="outline"]) {
  --button-background-color: var(--fluent-colorTransparentBackground);
}

:host([appearance="outline"]:hover) {
  --button-background-color: var(--fluent-colorTransparentBackgroundHover);
}

:host([appearance="outline"]:hover:active) {
  --button-background-color: var(--fluent-colorTransparentBackgroundPressed);
}

:host([appearance="plain"]) {
  --button-background-color: var(--fluent-colorTransparentBackground);
  --button-foreground-color: var(--fluent-colorNeutralForeground2);
  --button-border-color: transparent;
}

:host([appearance="plain"]:hover) {
  --button-background-color: var(--fluent-colorTransparentBackgroundHover);
  --button-foreground-color: var(--fluent-colorNeutralForeground2BrandHover);
  --button-border-color: transparent;
}

:host([appearance="plain"]:hover:active) {
  --button-background-color: var(--fluent-colorTransparentBackgroundPressed);
  --button-foreground-color: var(--fluent-colorNeutralForeground2BrandPressed);
  --button-border-color: transparent;
}

:host([appearance="plain"]:is(:hover, :active)) {
  --button-border-color: transparent;
}

:host(:disabled), :host(:disabled:hover), :host(:disabled:hover:active) {
  cursor: not-allowed;
  --button-background-color: var(--fluent-colorNeutralBackgroundDisabled);
  --button-border-color: var(--fluent-colorNeutralStrokeDisabled);
  --button-foreground-color: var(--fluent-colorNeutralForegroundDisabled);
}

    `;
}
//# sourceMappingURL=ButtonElement.Fluent.js.map