// ------------------------------------------------------------------------------
// <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 checkBoxElementJoyStyle() {
    return css `
:host {
  --checkbox-background-color: var(--joy-scheme-background);
  --checkbox-border-color: var(--joy-scheme-highlight);
  --checkbox-border-radius: calc(var(--joy-layout-radius) / 2);
  --checkbox-border-style: solid;
  --checkbox-border-width: var(--joy-layout-thickness);
  --checkbox-font-family: var(--joy-font-family);
  --checkbox-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --checkbox-font-line-height: var(--joy-typography-body1-line-height);
  --checkbox-font-size: var(--joy-typography-body1-font-size);
  --checkbox-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --checkbox-font-text-transform: var(--joy-typography-body1-text-transform);
  --checkbox-font-weight: var(--joy-typography-body1-font-weight);
  --checkbox-foreground-color: var(--joy-scheme-foreground);
  --checkbox-gap: 12px;
  --checkbox-padding-bottom: 8px;
  --checkbox-padding-left: 12px;
  --checkbox-padding-right: 12px;
  --checkbox-padding-top: 8px;
  --checkbox-shadow: var(--joy-elevation-none);
  --checkbox-transition-duration: .2s;
  --checkbox-transition-mode: ease;
  --checkbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --checkbox-translate: unset;
}

@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(--checkbox-font-family);
  font-size: var(--checkbox-font-size);
  line-height: var(--checkbox-font-line-height);
  font-weight: var(--checkbox-font-weight);
  letter-spacing: var(--checkbox-font-letter-spacing);
  -webkit-text-decoration: var(--checkbox-font-text-decoration);
  text-decoration: var(--checkbox-font-text-decoration);
  text-transform: var(--checkbox-font-text-transform);
  gap: var(--checkbox-gap);
  transition-duration: var(--checkbox-transition-duration);
  transition-timing-function: var(--checkbox-transition-mode);
  transition-property: var(--checkbox-transition-property);
  translate: var(--checkbox-translate);
  background-color: var(--checkbox-background-color);
  color: var(--checkbox-foreground-color);
  box-shadow: var(--checkbox-shadow);
  flex-direction: row;
  align-items: center;
  display: flex;
}

:host [part="focusRing"] {
  border-radius: var(--focus-ring-border-radius);
  --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 [part="checkmark"] {
  --checkmark-border-radius: var(--checkbox-border-radius);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) [part="checkmark"] {
  --checkmark-foreground-color: base. component-property($ props, foreground-color);
  --checkmark-border-color: base. component-property($ props, border-color);
}

: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"] {
  --focus-ring-border-radius: min(var(--checkbox-border-radius), var(--checkbox-border-radius)  + var(--joy-layout-thickness));
}

:host([invalid]:not([disabled]:not([disabled="false"]))) {
  --checkbox-border-color: var(--joy-color-danger-500);
  --checkbox-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-background-color: var(--joy-color-danger-100);
}

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