// ------------------------------------------------------------------------------
// <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 toggleButtonElementJoyStyle() {
    return css `
:host {
  --toggle-button-background-color: var(--joy-scheme-background);
  --toggle-button-border-color: var(--joy-scheme-highlight);
  --toggle-button-border-radius: var(--joy-layout-radius);
  --toggle-button-border-style: solid;
  --toggle-button-border-width: var(--joy-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(--joy-font-family);
  --toggle-button-font-letter-spacing: var(--joy-typography-button-letter-spacing);
  --toggle-button-font-line-height: var(--joy-typography-button-line-height);
  --toggle-button-font-size: var(--joy-typography-button-font-size);
  --toggle-button-font-text-decoration: var(--joy-typography-button-text-decoration);
  --toggle-button-font-text-transform: var(--joy-typography-button-text-transform);
  --toggle-button-font-weight: var(--joy-typography-button-font-weight);
  --toggle-button-foreground-color: var(--joy-scheme-foreground);
  --toggle-button-gap: var(--joy-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(--joy-layout-space) * 5 - var(--joy-layout-space) / 2);
  --toggle-button-min-width: 64px;
  --toggle-button-padding-bottom: var(--joy-layout-space);
  --toggle-button-padding-left: calc(var(--joy-layout-space) * 2);
  --toggle-button-padding-right: calc(var(--joy-layout-space) * 2);
  --toggle-button-padding-top: var(--joy-layout-space);
  --toggle-button-progress-ring-width: var(--joy-layout-thickness);
  --toggle-button-ripple-color: unset;
  --toggle-button-ripple-duration: .2s;
  --toggle-button-shadow: unset unset unset unset unset;
  --toggle-button-shadow-blur: unset;
  --toggle-button-shadow-color: unset;
  --toggle-button-shadow-offset-x: unset;
  --toggle-button-shadow-offset-y: unset;
  --toggle-button-shadow-spread: unset;
  --toggle-button-transition-duration: var(--joy-duration-short);
  --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;
  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 [part="focusRing"] {
  border-radius: min(var(--toggle-button-border-radius), var(--toggle-button-border-radius) + var(--joy-layout-thickness));
}

:host [part="button"] {
  padding-top: var(--toggle-button-padding-top);
  padding-right: var(--toggle-button-padding-right);
  padding-bottom: var(--toggle-button-padding-bottom);
  padding-left: var(--toggle-button-padding-left);
  gap: var(--toggle-button-gap);
  background: var(--toggle-button-background-color);
  color: var(--toggle-button-foreground-color);
  border-color: var(--toggle-button-border-color);
  border-width: var(--toggle-button-border-width);
  border-radius: var(--toggle-button-border-radius);
  border-style: var(--toggle-button-border-style);
}

:host [part="button"]:before {
  background-color: var(--joy-scheme-transparent);
}

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

:host(:active) [part="button"]:before, :host([is-checked]) [part="button"]:before {
  opacity: .26;
  background-color: currentColor;
}

:host(:hover), :host(:active), :host(:focus), :host([selected]), :host([checked]) {
  --toggle-button-background-color: var(--joy-scheme-highlight);
  --toggle-button-border-color: var(--joy-scheme-highlight);
}

:host([is-checked]) {
  --toggle-button-background-color: var(--joy-scheme-middlelight);
  --toggle-button-border-color: var(--joy-scheme-middlelight);
}

:host([appearance="outline"]:not([is-checked])) {
  --toggle-button-border-width: var(--joy-layout-thickness);
  --toggle-button-border-style: solid;
  --toggle-button-focus-ring-outward-offset: 0px;
}

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

:host([appearance="outline"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-scheme-highlight);
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-primary-700);
  --toggle-button-border-color: var(--joy-color-primary-700);
  --toggle-button-focus-ring-color: var(--joy-color-primary-700);
  --toggle-button-ripple-color: var(--joy-color-primary-600);
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-primary-500);
  --toggle-button-border-color: var(--joy-color-primary-500);
  --toggle-button-focus-ring-color: var(--joy-color-primary-500);
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-primary-100);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-secondary-700);
  --toggle-button-border-color: var(--joy-color-secondary-700);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-700);
  --toggle-button-ripple-color: var(--joy-color-secondary-600);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-secondary-500);
  --toggle-button-border-color: var(--joy-color-secondary-500);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-500);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-secondary-100);
}

:host([appearance="outline"][variant="tertiary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-tertiary-700);
  --toggle-button-border-color: var(--joy-color-tertiary-700);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-700);
  --toggle-button-ripple-color: var(--joy-color-tertiary-600);
}

:host([appearance="outline"][variant="tertiary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-tertiary-500);
  --toggle-button-border-color: var(--joy-color-tertiary-500);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-500);
}

:host([appearance="outline"][variant="tertiary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-tertiary-100);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-danger-700);
  --toggle-button-border-color: var(--joy-color-danger-700);
  --toggle-button-focus-ring-color: var(--joy-color-danger-700);
  --toggle-button-ripple-color: var(--joy-color-danger-600);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-danger-500);
  --toggle-button-border-color: var(--joy-color-danger-500);
  --toggle-button-focus-ring-color: var(--joy-color-danger-500);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-danger-100);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-warning-700);
  --toggle-button-border-color: var(--joy-color-warning-700);
  --toggle-button-focus-ring-color: var(--joy-color-warning-700);
  --toggle-button-ripple-color: var(--joy-color-warning-600);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-warning-500);
  --toggle-button-border-color: var(--joy-color-warning-500);
  --toggle-button-focus-ring-color: var(--joy-color-warning-500);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-warning-100);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-success-700);
  --toggle-button-border-color: var(--joy-color-success-700);
  --toggle-button-focus-ring-color: var(--joy-color-success-700);
  --toggle-button-ripple-color: var(--joy-color-success-600);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-success-500);
  --toggle-button-border-color: var(--joy-color-success-500);
  --toggle-button-focus-ring-color: var(--joy-color-success-500);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-success-100);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-info-700);
  --toggle-button-border-color: var(--joy-color-info-700);
  --toggle-button-focus-ring-color: var(--joy-color-info-700);
  --toggle-button-ripple-color: var(--joy-color-info-600);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-info-500);
  --toggle-button-border-color: var(--joy-color-info-500);
  --toggle-button-focus-ring-color: var(--joy-color-info-500);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-info-100);
}

:host([appearance="outline"][variant="highlight"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-highlight-700);
  --toggle-button-border-color: var(--joy-color-highlight-700);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-700);
  --toggle-button-ripple-color: var(--joy-color-highlight-600);
}

:host([appearance="outline"][variant="highlight"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-highlight-500);
  --toggle-button-border-color: var(--joy-color-highlight-500);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-500);
}

:host([appearance="outline"][variant="highlight"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-highlight-100);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-neutral-700);
  --toggle-button-border-color: var(--joy-color-neutral-700);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-700);
  --toggle-button-ripple-color: var(--joy-color-neutral-600);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-neutral-500);
  --toggle-button-border-color: var(--joy-color-neutral-500);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-500);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-neutral-100);
}

:host([appearance="plain"]) {
  --toggle-button-border-width: 0px;
  --toggle-button-background-color: var(--joy-scheme-transparent);
  --toggle-button-focus-ring-inward-offset: 0px;
  --toggle-button-focus-ring-outward-offset: 0px;
}

:host([appearance="plain"]:not([disabled]:not([disabled="false"])):hover) {
  --toggle-button-background-color: var(--joy-scheme-highlight);
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-primary-700);
  --toggle-button-focus-ring-color: var(--joy-color-primary-700);
  --toggle-button-ripple-color: var(--joy-color-primary-600);
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-primary-500);
  --toggle-button-focus-ring-color: var(--joy-color-primary-500);
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-primary-100);
  --toggle-button-foreground-color: var(--joy-color-primary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-secondary-700);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-700);
  --toggle-button-ripple-color: var(--joy-color-secondary-600);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-secondary-500);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-secondary-100);
  --toggle-button-foreground-color: var(--joy-color-secondary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-tertiary-700);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-700);
  --toggle-button-ripple-color: var(--joy-color-tertiary-600);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-tertiary-500);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-tertiary-100);
  --toggle-button-foreground-color: var(--joy-color-tertiary-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-danger-700);
  --toggle-button-focus-ring-color: var(--joy-color-danger-700);
  --toggle-button-ripple-color: var(--joy-color-danger-600);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-danger-500);
  --toggle-button-focus-ring-color: var(--joy-color-danger-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-danger-100);
  --toggle-button-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-warning-700);
  --toggle-button-focus-ring-color: var(--joy-color-warning-700);
  --toggle-button-ripple-color: var(--joy-color-warning-600);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-warning-500);
  --toggle-button-focus-ring-color: var(--joy-color-warning-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-warning-100);
  --toggle-button-foreground-color: var(--joy-color-warning-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-success-700);
  --toggle-button-focus-ring-color: var(--joy-color-success-700);
  --toggle-button-ripple-color: var(--joy-color-success-600);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-success-500);
  --toggle-button-focus-ring-color: var(--joy-color-success-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-success-100);
  --toggle-button-foreground-color: var(--joy-color-success-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-info-700);
  --toggle-button-focus-ring-color: var(--joy-color-info-700);
  --toggle-button-ripple-color: var(--joy-color-info-600);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-info-500);
  --toggle-button-focus-ring-color: var(--joy-color-info-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-info-100);
  --toggle-button-foreground-color: var(--joy-color-info-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-highlight-700);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-700);
  --toggle-button-ripple-color: var(--joy-color-highlight-600);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-highlight-500);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-highlight-100);
  --toggle-button-foreground-color: var(--joy-color-highlight-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-foreground-color: var(--joy-color-neutral-700);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-700);
  --toggle-button-ripple-color: var(--joy-color-neutral-600);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([is-checked]))) {
  --toggle-button-foreground-color: var(--joy-color-neutral-500);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-neutral-100);
  --toggle-button-foreground-color: var(--joy-color-neutral-500);
}

:host([appearance="soft"]) {
  --toggle-button-border-width: 0px;
  --toggle-button-focus-ring-inward-offset: 0px;
  --toggle-button-focus-ring-outward-offset: 0px;
}

:host([appearance="soft"]:not([disabled]:not([disabled="false"]))) {
  --toggle-button-background-color: var(--joy-scheme-highlight);
  --toggle-button-foreground-color: var(--joy-scheme-foreground);
}

:host([appearance="soft"][variant="primary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-primary-300);
  --toggle-button-foreground-color: var(--joy-color-primary-500);
  --toggle-button-focus-ring-color: var(--joy-color-primary-500);
  --toggle-button-ripple-color: var(--joy-color-primary-600);
}

:host([appearance="soft"][variant="primary"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-primary-100);
  --toggle-button-foreground-color: var(--joy-color-primary-500);
  --toggle-button-focus-ring-color: var(--joy-color-primary-500);
}

:host([appearance="soft"][variant="primary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-primary-200);
}

:host([appearance="soft"][variant="secondary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-secondary-300);
  --toggle-button-foreground-color: var(--joy-color-secondary-500);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-500);
  --toggle-button-ripple-color: var(--joy-color-secondary-600);
}

:host([appearance="soft"][variant="secondary"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-secondary-100);
  --toggle-button-foreground-color: var(--joy-color-secondary-500);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-500);
}

:host([appearance="soft"][variant="secondary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-secondary-200);
}

:host([appearance="soft"][variant="tertiary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-tertiary-300);
  --toggle-button-foreground-color: var(--joy-color-tertiary-500);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-500);
  --toggle-button-ripple-color: var(--joy-color-tertiary-600);
}

:host([appearance="soft"][variant="tertiary"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-tertiary-100);
  --toggle-button-foreground-color: var(--joy-color-tertiary-500);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-500);
}

:host([appearance="soft"][variant="tertiary"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-tertiary-200);
}

:host([appearance="soft"][variant="danger"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-danger-300);
  --toggle-button-foreground-color: var(--joy-color-danger-500);
  --toggle-button-focus-ring-color: var(--joy-color-danger-500);
  --toggle-button-ripple-color: var(--joy-color-danger-600);
}

:host([appearance="soft"][variant="danger"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-danger-100);
  --toggle-button-foreground-color: var(--joy-color-danger-500);
  --toggle-button-focus-ring-color: var(--joy-color-danger-500);
}

:host([appearance="soft"][variant="danger"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-danger-200);
}

:host([appearance="soft"][variant="warning"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-warning-300);
  --toggle-button-foreground-color: var(--joy-color-warning-500);
  --toggle-button-focus-ring-color: var(--joy-color-warning-500);
  --toggle-button-ripple-color: var(--joy-color-warning-600);
}

:host([appearance="soft"][variant="warning"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-warning-100);
  --toggle-button-foreground-color: var(--joy-color-warning-500);
  --toggle-button-focus-ring-color: var(--joy-color-warning-500);
}

:host([appearance="soft"][variant="warning"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-warning-200);
}

:host([appearance="soft"][variant="success"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-success-300);
  --toggle-button-foreground-color: var(--joy-color-success-500);
  --toggle-button-focus-ring-color: var(--joy-color-success-500);
  --toggle-button-ripple-color: var(--joy-color-success-600);
}

:host([appearance="soft"][variant="success"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-success-100);
  --toggle-button-foreground-color: var(--joy-color-success-500);
  --toggle-button-focus-ring-color: var(--joy-color-success-500);
}

:host([appearance="soft"][variant="success"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-success-200);
}

:host([appearance="soft"][variant="info"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-info-300);
  --toggle-button-foreground-color: var(--joy-color-info-500);
  --toggle-button-focus-ring-color: var(--joy-color-info-500);
  --toggle-button-ripple-color: var(--joy-color-info-600);
}

:host([appearance="soft"][variant="info"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-info-100);
  --toggle-button-foreground-color: var(--joy-color-info-500);
  --toggle-button-focus-ring-color: var(--joy-color-info-500);
}

:host([appearance="soft"][variant="info"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-info-200);
}

:host([appearance="soft"][variant="highlight"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-highlight-300);
  --toggle-button-foreground-color: var(--joy-color-highlight-500);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-500);
  --toggle-button-ripple-color: var(--joy-color-highlight-600);
}

:host([appearance="soft"][variant="highlight"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-highlight-100);
  --toggle-button-foreground-color: var(--joy-color-highlight-500);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-500);
}

:host([appearance="soft"][variant="highlight"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-highlight-200);
}

:host([appearance="soft"][variant="neutral"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-neutral-300);
  --toggle-button-foreground-color: var(--joy-color-neutral-500);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-500);
  --toggle-button-ripple-color: var(--joy-color-neutral-600);
}

:host([appearance="soft"][variant="neutral"]:not([disabled]:not([disabled="false"])):not([is-checked])) {
  --toggle-button-background-color: var(--joy-color-neutral-100);
  --toggle-button-foreground-color: var(--joy-color-neutral-500);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-500);
}

:host([appearance="soft"][variant="neutral"]:not([disabled]:not([disabled="false"])):not([is-checked]):hover) {
  --toggle-button-background-color: var(--joy-color-neutral-200);
}

:host([appearance="solid"]) {
  --toggle-button-border-width: 0px;
  --toggle-button-focus-ring-inward-offset: 0px;
  --toggle-button-focus-ring-outward-offset: 0px;
}

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

:host([appearance="solid"][variant="primary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-primary-700);
  --toggle-button-foreground-color: var(--joy-color-primary-0);
  --toggle-button-focus-ring-color: var(--joy-color-primary-700);
  --toggle-button-ripple-color: var(--joy-color-primary-600);
}

:host([appearance="solid"][variant="primary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-primary-500);
  --toggle-button-foreground-color: var(--joy-color-primary-0);
  --toggle-button-focus-ring-color: var(--joy-color-primary-500);
}

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

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-secondary-700);
  --toggle-button-foreground-color: var(--joy-color-secondary-0);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-700);
  --toggle-button-ripple-color: var(--joy-color-secondary-600);
}

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-secondary-500);
  --toggle-button-foreground-color: var(--joy-color-secondary-0);
  --toggle-button-focus-ring-color: var(--joy-color-secondary-500);
}

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

:host([appearance="solid"][variant="tertiary"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-tertiary-700);
  --toggle-button-foreground-color: var(--joy-color-tertiary-0);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-700);
  --toggle-button-ripple-color: var(--joy-color-tertiary-600);
}

:host([appearance="solid"][variant="tertiary"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-tertiary-500);
  --toggle-button-foreground-color: var(--joy-color-tertiary-0);
  --toggle-button-focus-ring-color: var(--joy-color-tertiary-500);
}

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

:host([appearance="solid"][variant="danger"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-danger-700);
  --toggle-button-foreground-color: var(--joy-color-danger-0);
  --toggle-button-focus-ring-color: var(--joy-color-danger-700);
  --toggle-button-ripple-color: var(--joy-color-danger-600);
}

:host([appearance="solid"][variant="danger"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-danger-500);
  --toggle-button-foreground-color: var(--joy-color-danger-0);
  --toggle-button-focus-ring-color: var(--joy-color-danger-500);
}

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

:host([appearance="solid"][variant="warning"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-warning-700);
  --toggle-button-foreground-color: var(--joy-color-warning-0);
  --toggle-button-focus-ring-color: var(--joy-color-warning-700);
  --toggle-button-ripple-color: var(--joy-color-warning-600);
}

:host([appearance="solid"][variant="warning"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-warning-500);
  --toggle-button-foreground-color: var(--joy-color-warning-0);
  --toggle-button-focus-ring-color: var(--joy-color-warning-500);
}

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

:host([appearance="solid"][variant="success"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-success-700);
  --toggle-button-foreground-color: var(--joy-color-success-0);
  --toggle-button-focus-ring-color: var(--joy-color-success-700);
  --toggle-button-ripple-color: var(--joy-color-success-600);
}

:host([appearance="solid"][variant="success"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-success-500);
  --toggle-button-foreground-color: var(--joy-color-success-0);
  --toggle-button-focus-ring-color: var(--joy-color-success-500);
}

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

:host([appearance="solid"][variant="info"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-info-700);
  --toggle-button-foreground-color: var(--joy-color-info-0);
  --toggle-button-focus-ring-color: var(--joy-color-info-700);
  --toggle-button-ripple-color: var(--joy-color-info-600);
}

:host([appearance="solid"][variant="info"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-info-500);
  --toggle-button-foreground-color: var(--joy-color-info-0);
  --toggle-button-focus-ring-color: var(--joy-color-info-500);
}

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

:host([appearance="solid"][variant="highlight"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-highlight-700);
  --toggle-button-foreground-color: var(--joy-color-highlight-0);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-700);
  --toggle-button-ripple-color: var(--joy-color-highlight-600);
}

:host([appearance="solid"][variant="highlight"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-highlight-500);
  --toggle-button-foreground-color: var(--joy-color-highlight-0);
  --toggle-button-focus-ring-color: var(--joy-color-highlight-500);
}

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

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([disabled="false"]))[is-checked]) {
  --toggle-button-background-color: var(--joy-color-neutral-700);
  --toggle-button-foreground-color: var(--joy-color-neutral-0);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-700);
  --toggle-button-ripple-color: var(--joy-color-neutral-600);
}

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([is-checked]))) {
  --toggle-button-background-color: var(--joy-color-neutral-500);
  --toggle-button-foreground-color: var(--joy-color-neutral-0);
  --toggle-button-focus-ring-color: var(--joy-color-neutral-500);
}

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

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

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

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

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

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

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