// ------------------------------------------------------------------------------
// <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 compoundButtonElementMemphisStyle() {
    return css `
:host {
  --compound-button-background-color: var(--memphis-scheme-background);
  --compound-button-border-color: var(--memphis-scheme-contrast);
  --compound-button-border-radius: var(--memphis-layout-radius);
  --compound-button-border-style: solid;
  --compound-button-border-width: var(--memphis-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(--memphis-font-family);
  --compound-button-font-letter-spacing: var(--memphis-typography-button-letter-spacing);
  --compound-button-font-line-height: var(--memphis-typography-button-line-height);
  --compound-button-font-size: var(--memphis-typography-button-font-size);
  --compound-button-font-text-decoration: var(--memphis-typography-button-text-decoration);
  --compound-button-font-text-transform: var(--memphis-typography-button-text-transform);
  --compound-button-font-weight: var(--memphis-typography-button-font-weight);
  --compound-button-foreground-color: var(--memphis-scheme-foreground);
  --compound-button-gap: var(--memphis-layout-space);
  --compound-button-height: auto;
  --compound-button-icon-min-width: 36px;
  --compound-button-icon-min-height: 36px;
  --compound-button-min-height: calc(var(--memphis-layout-space) * 5 - var(--memphis-layout-space) / 2);
  --compound-button-min-width: 64px;
  --compound-button-padding-bottom: var(--memphis-layout-space);
  --compound-button-padding-left: var(--memphis-layout-space);
  --compound-button-padding-right: var(--memphis-layout-space);
  --compound-button-padding-top: var(--memphis-layout-space);
  --compound-button-progress-ring-width: var(--memphis-layout-thickness);
  --compound-button-ripple-color: unset;
  --compound-button-ripple-duration: .2s;
  --compound-button-shadow: var(--memphis-elevation-semilight-offset-x-0) var(--memphis-elevation-semilight-offset-y-0) var(--memphis-elevation-semilight-blur-0) var(--memphis-elevation-semilight-spread-0) var(--memphis-elevation-semilight-color-0);
  --compound-button-shadow-blur: var(--memphis-elevation-semilight-blur-0);
  --compound-button-shadow-color: var(--memphis-elevation-semilight-color-0);
  --compound-button-shadow-offset-x: var(--memphis-elevation-semilight-offset-x-0);
  --compound-button-shadow-offset-y: var(--memphis-elevation-semilight-offset-y-0);
  --compound-button-shadow-spread: var(--memphis-elevation-semilight-spread-0);
  --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;
  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%;
}

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

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

:host [part="button"] {
  background: var(--compound-button-background-color);
  color: var(--compound-button-foreground-color);
  border-color: var(--compound-button-border-color);
  border-width: var(--compound-button-border-width);
  border-radius: var(--compound-button-border-radius);
  border-style: var(--compound-button-border-style);
}

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

:host [part="button"] [part="subLabel"] {
  font-size: var(--memphis-typography-caption-font-size);
  line-height: var(--memphis-typography-caption-line-height);
  font-weight: var(--memphis-typography-caption-font-weight);
  -webkit-text-decoration: var(--memphis-typography-caption-text-decoration);
  text-decoration: var(--memphis-typography-caption-text-decoration);
  text-transform: var(--memphis-typography-caption-text-transform);
  letter-spacing: var(--memphis-typography-caption-letter-spacing);
}

:host(:hover) {
  --compound-button-shadow-offset-x: 1.5px;
  --compound-button-shadow-offset-y: 1.5px;
  --compound-button-translate: var(--compound-button-shadow-offset-x) var(--compound-button-shadow-offset-y);
}

:host(:active) {
  --compound-button-translate: 3px 3px;
  box-shadow: var(--memphis-elevation-none);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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