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

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

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

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

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

:host [part="button"]:before {
  border-radius: var(--press-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(--press-button-padding-top);
  padding-right: var(--press-button-padding-right);
  padding-bottom: var(--press-button-padding-bottom);
  padding-left: var(--press-button-padding-left);
  gap: var(--press-button-gap);
  background: var(--press-button-background-color);
  color: var(--press-button-foreground-color);
  border-color: var(--press-button-border-color);
  border-width: var(--press-button-border-width);
  border-radius: var(--press-button-border-radius);
  border-style: var(--press-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="progressFill"] {
  background: var(--press-button-progress-fill-color);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: .26;
  width: 0%;
  height: 100%;
  transition-property: opacity;
  transition-duration: var(--press-button-transition-duration);
  transition-timing-function: ease;
  position: absolute;
  top: 0;
  left: 0;
}

:host [part="innerStack"] {
  z-index: 1;
  position: relative;
}

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

:host(:not([has-link])[has-icon]) {
  min-width: var(--press-button-icon-min-width);
  min-height: var(--press-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"] {
  visibility: hidden;
}

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

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

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

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

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

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

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

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

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

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