// ------------------------------------------------------------------------------
// <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 colorSwatchElementCosmopolitanStyle() {
    return css `
:host {
  --color-swatch-background-color: unset;
  --color-swatch-border-color: unset;
  --color-swatch-border-radius: unset;
  --color-swatch-border-style: unset;
  --color-swatch-border-width: unset;
  --color-swatch-font-family: unset;
  --color-swatch-font-letter-spacing: unset;
  --color-swatch-font-line-height: unset;
  --color-swatch-font-size: unset;
  --color-swatch-font-text-decoration: unset;
  --color-swatch-font-text-transform: unset;
  --color-swatch-font-weight: unset;
  --color-swatch-foreground-color: unset;
  --color-swatch-gap: unset;
  --color-swatch-padding-bottom: unset;
  --color-swatch-padding-left: unset;
  --color-swatch-padding-right: unset;
  --color-swatch-padding-top: unset;
  --color-swatch-size: unset;
  --color-swatch-transition-duration: unset;
  --color-swatch-transition-mode: unset;
  --color-swatch-transition-property: unset;
  --color-swatch-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 {
  width: var(--color-swatch-size);
  height: var(--color-swatch-size);
  border-color: var(--color-swatch-border-color);
  border-radius: var(--color-swatch-border-radius);
  border-style: var(--color-swatch-border-style);
  border-width: var(--color-swatch-border-width);
  display: flex;
}

:host [part="root"] {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="root"] [part="back"] {
  width: calc(var(--color-swatch-size)  - var(--color-swatch-border-width) * 2);
  height: calc(var(--color-swatch-size)  - var(--color-swatch-border-width) * 2);
  background-repeat: repeat;
  background-color: var(--color-swatch-background-color);
  border-radius: calc(var(--color-swatch-border-radius)  - var(--color-swatch-border-width));
  background-position: 0 0, 45px 45px;
  background-size: 10px 10px;
  flex: 1;
  position: absolute;
}

:host [part="root"] [part="front"] {
  z-index: 1;
  border-radius: calc(var(--color-swatch-border-radius)  - var(--color-swatch-border-width));
  flex: 1;
}

:host([size="tiny"]) {
  --color-swatch-size: 8px;
}

:host([size="small"]) {
  --color-swatch-size: 16px;
}

:host([size="medium"]) {
  --color-swatch-size: 24px;
}

:host([size="large"]) {
  --color-swatch-size: 32px;
}

:host([size="giant"]) {
  --color-swatch-size: 48px;
}

    `;
}
//# sourceMappingURL=ColorSwatchElement.Cosmopolitan.js.map