// ------------------------------------------------------------------------------
// <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 toggleSwitchElementJoyStyle() {
    return css `
:host {
  --toggle-switch-border-color: unset;
  --toggle-switch-border-radius: var(--joy-layout-radius);
  --toggle-switch-border-style: solid;
  --toggle-switch-border-width: var(--joy-layout-thickness);
  --toggle-switch-font-family: unset;
  --toggle-switch-font-letter-spacing: unset;
  --toggle-switch-font-line-height: unset;
  --toggle-switch-font-size: unset;
  --toggle-switch-font-text-decoration: unset;
  --toggle-switch-font-text-transform: unset;
  --toggle-switch-font-weight: unset;
  --toggle-switch-gap: var(--joy-layout-space);
  --toggle-switch-padding-bottom: unset;
  --toggle-switch-padding-left: unset;
  --toggle-switch-padding-right: unset;
  --toggle-switch-padding-top: unset;
  --toggle-switch-shadow: unset unset unset unset unset;
  --toggle-switch-shadow-blur: unset;
  --toggle-switch-shadow-color: unset;
  --toggle-switch-shadow-offset-x: unset;
  --toggle-switch-shadow-offset-y: unset;
  --toggle-switch-shadow-spread: unset;
  --toggle-switch-transition-duration: unset;
  --toggle-switch-transition-mode: unset;
  --toggle-switch-transition-property: unset;
  --toggle-switch-translate: none;
}

@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-switch-font-family);
  font-size: var(--toggle-switch-font-size);
  line-height: var(--toggle-switch-font-line-height);
  font-weight: var(--toggle-switch-font-weight);
  letter-spacing: var(--toggle-switch-font-letter-spacing);
  -webkit-text-decoration: var(--toggle-switch-font-text-decoration);
  text-decoration: var(--toggle-switch-font-text-decoration);
  text-transform: var(--toggle-switch-font-text-transform);
  gap: var(--toggle-switch-gap);
  border-radius: var(--toggle-switch-border-radius);
  flex-direction: row;
  align-items: center;
  display: flex;
}

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

:host [part="input"] {
  clip: rect(1px, 1px, 1px, 1px);
  color: #0000;
  width: auto;
  height: auto;
  position: absolute;
  overflow: hidden;
}

:host [part="label"] {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  display: contents;
}

:host [part="label"]:after {
  display: inherit;
}

:host([required]) [part="label"]:after {
  content: "*";
  margin-left: 2px;
}

:host([label-position="after"]) {
  flex-direction: row;
}

:host([label-position="before"]) {
  flex-direction: row-reverse;
}

:host [part="focusRing"] {
  border-radius: min(var(--toggle-switch-border-radius), var(--toggle-switch-border-radius) + var(--joy-layout-thickness));
}

:host([invalid]:not([disabled]:not([disabled="false"]))) {
  --toggle-switch-border-color: var(--joy-color-danger-500);
  --toggle-switch-foreground-color: var(--joy-color-danger-500);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) [part="focusRing"] {
  --focus-ring-border-color: var(--joy-color-danger-500);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) [part="checkmark"] {
  --checkmark-foreground-color: var(--toggle-switch-foreground-color);
  --checkmark-border-color: var(--toggle-switch-border-color);
  --checkmark-background-color: var(--joy-color-danger-500);
}

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