// ------------------------------------------------------------------------------
// <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 choiceElementJoyStyle() {
    return css `
:host {
  --choice-background-color: var(--joy-scheme-background);
  --choice-border-color: var(--joy-scheme-highlight);
  --choice-border-radius: var(--joy-layout-radius);
  --choice-border-style: solid;
  --choice-border-width: var(--joy-layout-thickness);
  --choice-font-family: var(--joy-font-family);
  --choice-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --choice-font-line-height: var(--joy-typography-body1-line-height);
  --choice-font-size: var(--joy-typography-body1-font-size);
  --choice-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --choice-font-text-transform: var(--joy-typography-body1-text-transform);
  --choice-font-weight: var(--joy-typography-body1-font-weight);
  --choice-foreground-color: var(--joy-scheme-foreground);
  --choice-gap: var(--joy-layout-space);
  --choice-padding-bottom: var(--joy-layout-space);
  --choice-padding-left: calc(var(--joy-layout-space) * 2);
  --choice-padding-right: calc(var(--joy-layout-space) * 2);
  --choice-padding-top: var(--joy-layout-space);
  --choice-shadow: var(--joy-elevation-none);
  --choice-transition-duration: var(--joy-duration-short);
  --choice-transition-mode: ease;
  --choice-transition-property: background-color, color, border-color, box-shadow;
  --choice-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(--choice-font-family);
  font-size: var(--choice-font-size);
  line-height: var(--choice-font-line-height);
  font-weight: var(--choice-font-weight);
  letter-spacing: var(--choice-font-letter-spacing);
  -webkit-text-decoration: var(--choice-font-text-decoration);
  text-decoration: var(--choice-font-text-decoration);
  text-transform: var(--choice-font-text-transform);
  padding-top: var(--choice-padding-top);
  padding-right: var(--choice-padding-right);
  padding-bottom: var(--choice-padding-bottom);
  padding-left: var(--choice-padding-left);
  gap: var(--choice-gap);
  transition-duration: var(--choice-transition-duration);
  transition-timing-function: var(--choice-transition-mode);
  transition-property: var(--choice-transition-property);
  translate: var(--choice-translate);
  background-color: var(--choice-background-color);
  color: var(--choice-foreground-color);
  border-color: var(--choice-border-color);
  border-width: var(--choice-border-width);
  border-radius: var(--choice-border-radius);
  border-style: var(--choice-border-style);
  box-shadow: var(--choice-shadow);
  flex-direction: row;
  align-items: center;
  display: flex;
}

:host [part="focusRing"] {
  --focus-ring-outward-offset: var(--choice-border-width);
}

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

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

:host [part="checkmark"] {
  --checkmark-border-radius: var(--choice-border-radius);
}

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

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

:host slot[name="additional"] mosaik-text {
  color: var(--joy-scheme-middlelight);
  font-family: var(--joy-typography-body2-font-family);
  font-size: var(--joy-typography-body2-font-size);
  line-height: var(--joy-typography-body2-line-height);
  font-weight: var(--joy-typography-body2-font-weight);
  -webkit-text-decoration: var(--joy-typography-body2-text-decoration);
  text-decoration: var(--joy-typography-body2-text-decoration);
  text-transform: var(--joy-typography-body2-text-transform);
  letter-spacing: var(--joy-typography-body2-letter-spacing);
}

:host([invalid]) {
  --choice-border-color: var(--joy-color-danger-500);
  --choice-foreground-color: var(--joy-color-danger-500);
}

:host(:hover) {
  --choice-background-color: var(--joy-scheme-background);
}

:host([appearance="soft"]) {
  --choice-background-color: var(--joy-scheme-highlight);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
  --choice-border-color: var(--joy-color-neutral-500);
}

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