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

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

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

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

:host [part="innerStack"] {
  --stack-gap: var(--toggle-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;
  min-height: 40px;
  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 {
  content: "";
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: inherit;
  position: absolute;
  inset: 0;
}

: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(:not([has-icon])) {
  min-width: var(--toggle-button-min-width);
}

:host(:not([has-link])[has-icon]) {
  min-width: var(--toggle-button-icon-min-width);
  min-height: var(--toggle-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="button"]:before {
  opacity: .26;
  background-color: currentColor;
}

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

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

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

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

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

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

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

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

:host(.button-group__button.first) {
  border-left-width: 0;
}

:host(.button-group__button.first) [part="button"] {
  border-radius: var(--toggle-button-border-radius) 0px 0px var(--toggle-button-border-radius);
}

:host(.button-group__button.inner) {
  border-radius: unset;
}

:host(.button-group__button.inner) [part="button"] {
  border-radius: 0;
}

:host(.button-group__button.last) {
  border-right-width: 0;
}

:host(.button-group__button.last) [part="button"] {
  border-radius: 0 var(--toggle-button-border-radius) var(--toggle-button-border-radius) 0;
}

:host {
  --toggle-button-border-color: #000;
  --toggle-button-border-width: 3px;
  --toggle-button-border-style: solid;
  --toggle-button-shadow: var(--memphis-elevation-semilight);
  --toggle-button-padding-top: 5px;
  --toggle-button-padding-right: 10px;
  --toggle-button-padding-bottom: 5px;
  --toggle-button-padding-left: 10px;
}

:host(:hover) {
  --toggle-button-translate: 1.5px 1.5px;
  --toggle-button-shadow: 1.5px 1.5px 0 #000;
}

:host(:active), :host([is-checked]) {
  --toggle-button-translate: 3px 3px;
  --toggle-button-shadow: var(--memphis-elevation-none);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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