// ------------------------------------------------------------------------------
// <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 buttonGroupElementJoyStyle() {
    return css `
:host {
  --button-group-background-color: var(--joy-scheme-background);
  --button-group-border-color: var(--joy-scheme-highlight);
  --button-group-border-radius: var(--joy-layout-radius);
  --button-group-border-style: solid;
  --button-group-border-width: var(--joy-layout-thickness);
  --button-group-font-family: var(--joy-font-family);
  --button-group-font-letter-spacing: var(--joy-typography-button-letter-spacing);
  --button-group-font-line-height: var(--joy-typography-button-line-height);
  --button-group-font-size: var(--joy-typography-button-font-size);
  --button-group-font-text-decoration: var(--joy-typography-button-text-decoration);
  --button-group-font-text-transform: var(--joy-typography-button-text-transform);
  --button-group-font-weight: var(--joy-typography-button-font-weight);
  --button-group-foreground-color: var(--joy-scheme-foreground);
  --button-group-gap: 0;
  --button-group-padding-bottom: 0;
  --button-group-padding-left: 0;
  --button-group-padding-right: 0;
  --button-group-padding-top: 0;
  --button-group-shadow: unset unset unset unset unset;
  --button-group-shadow-blur: unset;
  --button-group-shadow-color: unset;
  --button-group-shadow-offset-x: unset;
  --button-group-shadow-offset-y: unset;
  --button-group-shadow-spread: unset;
  --button-group-transition-duration: var(--joy-duration-short);
  --button-group-transition-mode: ease;
  --button-group-transition-property: background-color, color, border-color, opacity;
  --button-group-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(--button-group-font-family);
  font-size: var(--button-group-font-size);
  line-height: var(--button-group-font-line-height);
  font-weight: var(--button-group-font-weight);
  letter-spacing: var(--button-group-font-letter-spacing);
  -webkit-text-decoration: var(--button-group-font-text-decoration);
  text-decoration: var(--button-group-font-text-decoration);
  text-transform: var(--button-group-font-text-transform);
  padding-top: var(--button-group-padding-top);
  padding-right: var(--button-group-padding-right);
  padding-bottom: var(--button-group-padding-bottom);
  padding-left: var(--button-group-padding-left);
  gap: var(--button-group-gap);
  transition-duration: var(--button-group-transition-duration);
  transition-timing-function: var(--button-group-transition-mode);
  transition-property: var(--button-group-transition-property);
  background: var(--button-group-background-color);
  border-color: var(--button-group-border-color);
  color: var(--button-group-foreground-color);
  border-width: var(--button-group-border-width);
  border-radius: var(--button-group-border-radius);
  border-style: var(--button-group-border-style);
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  display: grid;
}

:host ::slotted(mosaik-button), :host ::slotted(mosaik-toggle-button) {
  --button-border-radius: 0;
  --button-border-width: 0;
}

:host ::slotted(mosaik-button:focus), :host ::slotted(mosaik-toggle-button:focus) {
  z-index: 1;
}

:host ::slotted(mosaik-button:hover), :host ::slotted(mosaik-toggle-button:hover) {
  z-index: 2;
}

:host ::slotted(mosaik-button.first), :host ::slotted(mosaik-toggle-button.first) {
  border-start-start-radius: var(--button-group-border-radius);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  border-end-start-radius: var(--button-group-border-radius);
}

:host ::slotted(mosaik-button.last), :host ::slotted(mosaik-toggle-button.last) {
  border-start-start-radius: 0;
  border-start-end-radius: var(--button-group-border-radius);
  border-end-end-radius: var(--button-group-border-radius);
  border-end-start-radius: 0;
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
}

:host([orientation="horizontal"]) {
  grid-auto-flow: column;
}

:host([orientation="vertical"]) {
  grid-auto-flow: row;
}

:host([orientation="vertical"]) ::slotted(mosaik-button.first), :host([orientation="vertical"]) ::slotted(mosaik-toggle-button.first) {
  border-start-start-radius: var(--button-group-border-radius);
  border-start-end-radius: var(--button-group-border-radius);
  border-end-end-radius: 0;
  border-end-start-radius: 0;
}

:host([orientation="vertical"]) ::slotted(mosaik-button.last), :host([orientation="vertical"]) ::slotted(mosaik-toggle-button.last) {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
  border-end-end-radius: var(--button-group-border-radius);
  border-end-start-radius: var(--button-group-border-radius);
}

:host([appearance="outline"]) ::slotted(mosaik-button.inner), :host([appearance="outline"]) ::slotted(mosaik-toggle-button.inner), :host([appearance="outline"]) ::slotted(mosaik-button.last), :host([appearance="outline"]) ::slotted(mosaik-toggle-button.last) {
  border-left-width: var(--button-group-border-width);
  border-left-style: solid;
}

:host([appearance="outline"][orientation="vertical"]) ::slotted(mosaik-button.inner), :host([appearance="outline"][orientation="vertical"]) ::slotted(mosaik-toggle-button.inner), :host([appearance="outline"][orientation="vertical"]) ::slotted(mosaik-button.last), :host([appearance="outline"][orientation="vertical"]) ::slotted(mosaik-toggle-button.last) {
  border-left-width: unset;
  border-left-style: unset;
  border-top-width: var(--button-group-border-width);
  border-top-style: solid;
}

:host([appearance="plain"][orientation="vertical"]) ::slotted(mosaik-button.inner), :host([appearance="plain"][orientation="vertical"]) ::slotted(mosaik-toggle-button.inner), :host([appearance="plain"][orientation="vertical"]) ::slotted(mosaik-button.last), :host([appearance="plain"][orientation="vertical"]) ::slotted(mosaik-toggle-button.last) {
  border-left-width: unset;
  border-left-style: unset;
}

:host([appearance="soft"]) {
  --button-group-gap: 0;
  --button-group-border-width: 0;
}

:host([appearance="soft"]) ::slotted(mosaik-button.inner), :host([appearance="soft"]) ::slotted(mosaik-toggle-button.inner), :host([appearance="soft"]) ::slotted(mosaik-button.last), :host([appearance="soft"]) ::slotted(mosaik-toggle-button.last) {
  border-left-style: solid;
  border-left-width: 2px;
}

:host([appearance="soft"][orientation="vertical"]) ::slotted(mosaik-button.inner), :host([appearance="soft"][orientation="vertical"]) ::slotted(mosaik-toggle-button.inner), :host([appearance="soft"][orientation="vertical"]) ::slotted(mosaik-button.last), :host([appearance="soft"][orientation="vertical"]) ::slotted(mosaik-toggle-button.last) {
  border-left-width: unset;
  border-left-style: unset;
  border-top-style: solid;
  border-top-width: 2px;
}

:host([disabled]:not([disabled="false"])) {
  background-color: var(--joy-scheme-disabled);
  border: var(--border-width) solid var(--joy-scheme-disabled);
  color: var(--joy-scheme-lowlight);
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-primary-500);
  --button-group-border-color: var(--joy-color-primary-500);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-secondary-500);
  --button-group-border-color: var(--joy-color-secondary-500);
}

:host([appearance="outline"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-tertiary-500);
  --button-group-border-color: var(--joy-color-tertiary-500);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-danger-500);
  --button-group-border-color: var(--joy-color-danger-500);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-warning-500);
  --button-group-border-color: var(--joy-color-warning-500);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-success-500);
  --button-group-border-color: var(--joy-color-success-500);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-info-500);
  --button-group-border-color: var(--joy-color-info-500);
}

:host([appearance="outline"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-highlight-500);
  --button-group-border-color: var(--joy-color-highlight-500);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-neutral-500);
  --button-group-border-color: var(--joy-color-neutral-500);
}

:host([appearance="plain"]) {
  --button-group-gap: 0;
  --button-group-border-width: 0px;
  --button-group-background-color: var(--joy-scheme-transparent);
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-primary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-secondary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-tertiary-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-warning-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-success-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-info-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-highlight-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --button-group-foreground-color: var(--joy-color-neutral-500);
}

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

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

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

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

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

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

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

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

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

:host([appearance="solid"]) {
  --button-group-gap: var(--button-group-border-width);
  --button-group-border-width: 0;
  --button-group-background-color: var(--joy-scheme-transparent);
}

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

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

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

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

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

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

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

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

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

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