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

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

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

:host [part="innerStack"] {
  --stack-gap: var(--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;
  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);
  transition-property: inherit;
}

: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"] {
  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;
  position: relative;
  overflow: hidden;
}

: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"] {
  --progress-ring-thickness: base. component-property($ props, progress-thickness);
  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: var(--button-min-width);
}

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

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

:host {
  --button-background-color: var(--memphis-scheme-highlight);
  --button-foreground-color: var(--memphis-scheme-foreground);
  --button-shadow-color: var(--memphis-scheme-highlight);
  box-shadow: var(--button-shadow-offset-x) var(--button-shadow-offset-y) var(--button-shadow-blur) var(--button-shadow-spread) var(--button-shadow-color);
}

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

:host(:hover:not([has-link])) {
  --button-shadow-offset-x: 1.5px;
  --button-shadow-offset-y: 1.5px;
  --button-translate: var(--button-shadow-offset-x) var(--button-shadow-offset-y);
}

:host(:active:not([has-link])) {
  --button-translate: 3px 3px;
  box-shadow: var(--memphis-elevation-none);
}

:host([has-link]) {
  --button-border-width: 0;
  --button-border-style: none;
  box-shadow: var(--memphis-elevation-none);
}

:host([disabled]:not([disabled="false"])) {
  --button-background-color: var(--memphis-scheme-background);
  --button-border-color: var(--memphis-scheme-disabled);
  --button-foreground-color: var(--memphis-scheme-disabled);
  --button-shadow-color: var(--memphis-scheme-transparent);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-primary-500);
  --button-foreground-color: var(--memphis-color-primary-0);
  --button-shadow-color: var(--memphis-color-primary-200);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-primary-600);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-secondary-500);
  --button-foreground-color: var(--memphis-color-secondary-0);
  --button-shadow-color: var(--memphis-color-secondary-200);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-secondary-600);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-info-500);
  --button-foreground-color: var(--memphis-color-info-0);
  --button-shadow-color: var(--memphis-color-info-200);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-info-600);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-warning-500);
  --button-foreground-color: var(--memphis-color-warning-0);
  --button-shadow-color: var(--memphis-color-warning-200);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-warning-600);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-danger-500);
  --button-foreground-color: var(--memphis-color-danger-0);
  --button-shadow-color: var(--memphis-color-danger-200);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-danger-600);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-success-500);
  --button-foreground-color: var(--memphis-color-success-0);
  --button-shadow-color: var(--memphis-color-success-200);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-success-600);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-neutral-500);
  --button-foreground-color: var(--memphis-color-neutral-0);
  --button-shadow-color: var(--memphis-color-neutral-200);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-color-neutral-600);
}

:host([appearance="outline"]) {
  --button-border-width: var(--memphis-layout-thickness);
  --button-border-style: solid;
  --button-shadow-color: var(--memphis-color-neutral-200);
}

:host([appearance="outline"][variant="primary"]) {
  --button-shadow-color: var(--memphis-color-primary-200);
}

:host([appearance="outline"][variant="secondary"]) {
  --button-shadow-color: var(--memphis-color-secondary-200);
}

:host([appearance="outline"][variant="info"]) {
  --button-shadow-color: var(--memphis-color-info-200);
}

:host([appearance="outline"][variant="warning"]) {
  --button-shadow-color: var(--memphis-color-warning-200);
}

:host([appearance="outline"][variant="danger"]) {
  --button-shadow-color: var(--memphis-color-danger-200);
}

:host([appearance="outline"][variant="success"]) {
  --button-shadow-color: var(--memphis-color-success-200);
}

:host([appearance="outline"][variant="neutral"]) {
  --button-shadow-color: var(--memphis-color-neutral-200);
}

:host([appearance="outline"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-scheme-background);
  --button-foreground-color: var(--memphis-scheme-foreground);
  --button-border-color: var(--memphis-scheme-highlight);
}

:host([appearance="outline"]:not([disabled]:not([disabled="false"])):hover) {
  --button-background-color: var(--memphis-scheme-background);
  --button-foreground-color: var(--memphis-scheme-foreground);
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-primary-500);
  --button-border-color: var(--memphis-color-primary-500);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-secondary-500);
  --button-border-color: var(--memphis-color-secondary-500);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-info-500);
  --button-border-color: var(--memphis-color-info-500);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-warning-500);
  --button-border-color: var(--memphis-color-warning-500);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-danger-500);
  --button-border-color: var(--memphis-color-danger-500);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-success-500);
  --button-border-color: var(--memphis-color-success-500);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --button-foreground-color: var(--memphis-color-neutral-500);
  --button-border-color: var(--memphis-color-neutral-500);
}

:host([appearance="solid"]) {
  --button-shadow-color: var(--memphis-scheme-disabled);
}

:host([appearance="solid"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-scheme-highlight);
  --button-border-color: var(--memphis-scheme-contrast);
  --button-shadow-color: var(--memphis-scheme-highlight);
  --button-foreground-color: var(--memphis-scheme-foreground);
}

:host([appearance="solid"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-primary-500);
  --button-foreground-color: var(--memphis-color-primary-0);
  --button-shadow-color: var(--memphis-color-primary-500);
}

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-secondary-500);
  --button-foreground-color: var(--memphis-color-secondary-0);
  --button-shadow-color: var(--memphis-color-secondary-500);
}

:host([appearance="solid"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-info-500);
  --button-foreground-color: var(--memphis-color-info-0);
  --button-shadow-color: var(--memphis-color-info-500);
}

:host([appearance="solid"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-warning-500);
  --button-foreground-color: var(--memphis-color-warning-0);
  --button-shadow-color: var(--memphis-color-warning-500);
}

:host([appearance="solid"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-danger-500);
  --button-foreground-color: var(--memphis-color-danger-0);
  --button-shadow-color: var(--memphis-color-danger-500);
}

:host([appearance="solid"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-success-500);
  --button-foreground-color: var(--memphis-color-success-0);
  --button-shadow-color: var(--memphis-color-success-500);
}

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --button-background-color: var(--memphis-color-neutral-500);
  --button-foreground-color: var(--memphis-color-neutral-0);
  --button-shadow-color: var(--memphis-color-neutral-500);
}

:host([size="tiny"]) {
  --button-font-size: calc(var(--memphis-typography-button-font-size)  - 4px);
  --button-font-line-height: calc(var(--memphis-typography-button-line-height)  - 4px);
  --button-padding-top: calc(var(--memphis-layout-space)  - 4px);
  --button-padding-right: calc(var(--memphis-layout-space)  - 4px);
  --button-padding-bottom: calc(var(--memphis-layout-space)  - 4px);
  --button-padding-left: calc(var(--memphis-layout-space)  - 4px);
}

:host([size="small"]) {
  --button-font-size: calc(var(--memphis-typography-button-font-size)  - 2px);
  --button-font-line-height: calc(var(--memphis-typography-button-line-height)  - 2px);
  --button-padding-top: calc(var(--memphis-layout-space)  - 2px);
  --button-padding-right: calc(var(--memphis-layout-space)  - 2px);
  --button-padding-bottom: calc(var(--memphis-layout-space)  - 2px);
  --button-padding-left: calc(var(--memphis-layout-space)  - 2px);
}

:host([size="medium"]) {
  --button-font-size: var(--memphis-typography-button-font-size);
  --button-font-line-height: var(--memphis-typography-button-line-height);
}

:host([size="large"]) {
  --button-font-size: calc(var(--memphis-typography-button-font-size)  + 2px);
  --button-font-line-height: calc(var(--memphis-typography-button-line-height)  + 2px);
  --button-padding-top: calc(var(--memphis-layout-space)  + 4px);
  --button-padding-right: calc(var(--memphis-layout-space)  + 4px);
  --button-padding-bottom: calc(var(--memphis-layout-space)  + 4px);
  --button-padding-left: calc(var(--memphis-layout-space)  + 4px);
}

:host([size="giant"]) {
  --button-font-size: calc(var(--memphis-typography-button-font-size)  + 4px);
  --button-font-line-height: calc(var(--memphis-typography-button-line-height)  + 4px);
  --button-padding-top: calc(var(--memphis-layout-space)  + 8px);
  --button-padding-right: calc(var(--memphis-layout-space)  + 8px);
  --button-padding-bottom: calc(var(--memphis-layout-space)  + 8px);
  --button-padding-left: calc(var(--memphis-layout-space)  + 8px);
}

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