// ------------------------------------------------------------------------------
// <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 checkmarkElementMemphisStyle() {
    return css `
:host {
  --checkmark-background-color: var(--memphis-color-light-secondary-100);
  --checkmark-border-color: var(--memphis-color-light-secondary-500);
  --checkmark-border-radius: calc(var(--memphis-layout-radius) / 2);
  --checkmark-border-style: solid;
  --checkmark-border-width: var(--memphis-layout-thickness);
  --checkmark-box-size: calc(var(--memphis-layout-space) * 5.5);
  --checkmark-font-family: var(--memphis-font-family);
  --checkmark-font-letter-spacing: var(--memphis-typography-body2-letter-spacing);
  --checkmark-font-line-height: var(--memphis-typography-body2-line-height);
  --checkmark-font-size: var(--memphis-typography-body2-font-size);
  --checkmark-font-text-decoration: var(--memphis-typography-body2-text-decoration);
  --checkmark-font-text-transform: var(--memphis-typography-body2-text-transform);
  --checkmark-font-weight: var(--memphis-typography-body2-font-weight);
  --checkmark-foreground-color: var(--memphis-color-light-secondary-700);
  --checkmark-gap: calc(var(--memphis-layout-space) / 2);
  --checkmark-height: calc(var(--memphis-layout-space) * 2.4);
  --checkmark-padding-bottom: calc(var(--memphis-layout-space) / 4);
  --checkmark-padding-left: calc(var(--memphis-layout-space) / 4);
  --checkmark-padding-right: calc(var(--memphis-layout-space) / 4);
  --checkmark-padding-top: calc(var(--memphis-layout-space) / 4);
  --checkmark-shadow: var(--memphis-elevation-none);
  --checkmark-thickness: var(--memphis-layout-thickness);
  --checkmark-transition-duration: var(--memphis-duration-short);
  --checkmark-transition-mode: ease;
  --checkmark-transition-property: background-color, color, border-color, box-shadow, transform;
  --checkmark-translate: none;
  --checkmark-width: calc(var(--memphis-layout-space) * 2.4);
}

@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 {
  min-width: var(--checkmark-width);
  max-width: var(--checkmark-width);
  min-height: var(--checkmark-height);
  max-height: var(--checkmark-height);
  border-width: var(--checkmark-border-width);
  border-style: solid;
  border-color: var(--checkmark-border-color);
  transition-duration: var(--checkmark-transition-duration);
  transition-timing-function: var(--checkmark-transition-mode);
  transition-property: var(--checkmark-transition-property);
  border-radius: var(--checkmark-border-radius);
  color: var(--checkmark-foreground-color);
  cursor: pointer;
}

:host [part="checkmark"] {
  display: none;
}

:host([checked]) [part="checkmark"] {
  display: block;
}

:host([disabled]:not([disabled="false"])) {
  background-color: var(--checkmark-background-color);
  cursor: default;
  pointer-events: none;
}

:host([type="switch"]) {
  --checkmark-width: var(--checkmark-box-size);
  width: var(--checkmark-box-size);
  height: calc(var(--checkmark-box-size) / 2);
  background-color: var(--checkmark-background-color);
  border: var(--checkmark-border-width) var(--checkmark-border-style);
  border-radius: var(--checkmark-box-size);
  border-color: var(--checkmark-border-color);
}

:host([type="switch"]) [part="checkmark"] {
  width: calc(var(--checkmark-box-size) / 2 - 6px);
  height: calc(var(--checkmark-box-size) / 2 - 6px);
  border-radius: calc((var(--checkmark-box-size) / 2 - 6px) / 2);
  margin-left: calc(var(--checkmark-thickness) * 2 - var(--checkmark-border-width));
  transition: all .3s cubic-bezier(.27, .01, .38, 1.06);
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

:host([type="switch"]:active) [part="checkmark"] {
  width: calc(var(--checkmark-box-size) / 2);
  left: 0;
}

:host([type="switch"][checked]) [part="checkmark"] {
  margin-left: calc(var(--checkmark-box-size) / 2 + var(--checkmark-thickness));
  background: #fff;
  left: 0;
}

:host([type="switch"][checked]:active) [part="checkmark"] {
  left: -6px;
}

:host([type="switch"][disabled]):not([disabled="false"]) {
  cursor: pointer;
  box-shadow: none;
}

:host([type="bullet"]) {
  --checkmark-border-radius: 50%;
}

:host([type="bullet"]) [part="checkmark"]:after {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: var(--checkmark-transition-duration);
  content: "";
  border: var(--checkmark-thickness) solid;
  border-color: var(--checkmark-border-color);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transition-timing-function: ease;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

:host([type="bullet"][checked]) {
  border-color: var(--checkmark-border-color);
  background: var(--checkmark-background-color);
}

:host([type="hook"]:not([disabled]:not([disabled="false"]))) {
  border-color: var(--checkmark-border-color);
  background-color: var(--checkmark-background-color);
  color: var(--checkmark-foreground-color);
}

:host([type="hook"][checked]) [part="checkmark"] {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: var(--checkmark-transition-duration);
  border-top: var(--checkmark-thickness) solid currentColor;
  border-right: var(--checkmark-thickness) solid currentColor;
  opacity: 1;
  transform-origin: 0 0;
  width: 8px;
  height: 16px;
  animation-name: hook;
  animation-duration: var(--checkmark-transition-duration);
  transition-timing-function: ease;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scaleX(-1)rotate(135deg)translateZ(0)translate(calc(-50% - 1px), calc(1px - 50%));
}

@keyframes hook {
  0% {
    opacity: 0;
    width: 0;
    height: 0;
  }

  20% {
    opacity: 1;
    width: 6px;
    height: 0;
  }

  40%, 100% {
    opacity: 1;
    width: 6px;
    height: 12px;
  }
}

:host([type="hook"]:not([checked])[is-three-state]) [part="checkmark"] {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: var(--checkmark-transition-duration);
  border-top: unset;
  border-bottom: var(--checkmark-thickness) solid currentColor;
  opacity: 1;
  transform-origin: 0 0;
  width: 6px;
  height: 12px;
  animation-name: hook;
  animation-duration: var(--checkmark-transition-duration);
  transition-timing-function: ease;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  display: block;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: scaleX(-1)rotate(0)translateZ(0)translate(-50%, -50%);
}

:host([type="hook"][appearance="plain"]) {
  --checkmark-background-color: transparent;
  --checkmark-border-color: transparent;
  --checkmark-border-width: 0px;
}

:host([type="hook"][appearance="soft"]), :host([type="hook"][appearance="solid"]) {
  --checkmark-border-color: transparent;
  --checkmark-border-width: 0px;
}

    `;
}
//# sourceMappingURL=CheckmarkElement.Memphis.js.map