// ------------------------------------------------------------------------------
// <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 calendarItemElementCosmopolitanStyle() {
    return css `
:host {
  --calendar-item-background-color: var(--cosmopolitan-scheme-background);
  --calendar-item-border-color: var(--cosmopolitan-scheme-highlight);
  --calendar-item-border-radius: var(--cosmopolitan-layout-radius);
  --calendar-item-border-style: solid;
  --calendar-item-border-width: 0;
  --calendar-item-focus-ring-active-width: 8px;
  --calendar-item-focus-ring-color: unset;
  --calendar-item-focus-ring-inward-offset: 2px;
  --calendar-item-focus-ring-outward-offset: 2px;
  --calendar-item-font-family: var(--cosmopolitan-font-family);
  --calendar-item-font-letter-spacing: var(--cosmopolitan-typography-content-letter-spacing);
  --calendar-item-font-line-height: var(--cosmopolitan-typography-content-line-height);
  --calendar-item-font-size: var(--cosmopolitan-typography-content-font-size);
  --calendar-item-font-text-decoration: var(--cosmopolitan-typography-content-text-decoration);
  --calendar-item-font-text-transform: var(--cosmopolitan-typography-content-text-transform);
  --calendar-item-font-weight: var(--cosmopolitan-typography-content-font-weight);
  --calendar-item-foreground-color: var(--cosmopolitan-scheme-foreground);
  --calendar-item-gap: 4px;
  --calendar-item-padding-bottom: var(--cosmopolitan-layout-space);
  --calendar-item-padding-left: 12px;
  --calendar-item-padding-right: 12px;
  --calendar-item-padding-top: var(--cosmopolitan-layout-space);
  --calendar-item-ripple-color: unset;
  --calendar-item-ripple-duration: .2s;
  --calendar-item-transition-duration: .2s;
  --calendar-item-transition-mode: ease;
  --calendar-item-transition-property: background-color, color, border-color, opacity;
  --calendar-item-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(--calendar-item-font-family);
  font-size: var(--calendar-item-font-size);
  line-height: var(--calendar-item-font-line-height);
  font-weight: var(--calendar-item-font-weight);
  letter-spacing: var(--calendar-item-font-letter-spacing);
  -webkit-text-decoration: var(--calendar-item-font-text-decoration);
  text-decoration: var(--calendar-item-font-text-decoration);
  text-transform: var(--calendar-item-font-text-transform);
  padding-top: var(--calendar-item-padding-top);
  padding-right: var(--calendar-item-padding-right);
  padding-bottom: var(--calendar-item-padding-bottom);
  padding-left: var(--calendar-item-padding-left);
  gap: var(--calendar-item-gap);
  transition-duration: var(--calendar-item-transition-duration);
  transition-timing-function: var(--calendar-item-transition-mode);
  transition-property: var(--calendar-item-transition-property);
  translate: var(--calendar-item-translate);
  background-color: var(--calendar-item-background-color);
  color: var(--calendar-item-foreground-color);
  border-color: var(--calendar-item-border-color);
  border-width: var(--calendar-item-border-width);
  border-radius: var(--calendar-item-border-radius);
  border-style: var(--calendar-item-border-style);
  text-align: center;
  cursor: pointer;
  outline: none;
  flex-direction: column;
  align-items: center;
  display: flex;
  overflow: hidden;
}

:host:before {
  border-radius: var(--calendar-item-border-radius);
  content: "";
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: inherit;
  position: absolute;
  inset: 0;
}

:host [part="text"] {
  --text-foreground-color: var(--calendar-item-foreground-color);
}

:host([is-selected]):before {
  opacity: .26;
  background-color: currentColor;
}

:host([is-today]) [part="text"]:after {
  content: "";
  z-index: 1;
  background-color: currentColor;
  border-radius: 4px;
  width: 16px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
}

:host([is-special]):before {
  border-width: var(--calendar-item-border-width);
  border-style: var(--calendar-item-border-style);
  border-radius: var(--calendar-item-border-radius);
  content: "";
  pointer-events: none;
  background: none;
  display: block;
  position: absolute;
  inset: 0;
}

:host([is-blackout]) {
  cursor: not-allowed;
  text-decoration: line-through;
}

:host([is-adjacent]) {
  opacity: .26;
}

:host([disabled]:not([disabled="false"])) {
  cursor: not-allowed;
  opacity: .26;
}

:host:active, :host:focus, :host:hover {
  background-color: var(--cosmopolitan-scheme-highlight);
}

:host:before {
  background-color: var(--cosmopolitan-scheme-transparent);
}

:host([is-selected]) {
  --calendar-item-background-color: var(--cosmopolitan-color-primary-500);
  color: #fff;
}

:host([is-selected]) [part="marker"] {
  background-color: #fff;
}

:host([is-today]) {
  --calendar-item-background-color: var(--cosmopolitan-scheme-highlight);
}

:host([is-weekend]) {
  --calendar-item-foreground-color: var(--cosmopolitan-color-danger-500);
}

:host([is-special]):before {
  border-color: var(--cosmopolitan-color-highlight-500);
}

:host(:not([disabled]:not([disabled="false"])):not([is-blackout]):hover) {
  --calendar-item-background-color: var(--cosmopolitan-scheme-highlight);
}

:host([is-range-start]) {
  --calendar-item-background-color: var(--cosmopolitan-color-primary-500);
  color: #fff;
  border-radius: 4px 0 0 4px;
}

:host([is-range-middle]) {
  --calendar-item-background-color: var(--cosmopolitan-color-primary-300);
  color: #fff;
  border-radius: 0;
}

:host([is-range-end]) {
  --calendar-item-background-color: var(--cosmopolitan-color-primary-500);
  color: #fff;
  border-radius: 0 4px 4px 0;
}

:host([is-range-preview]) {
  --calendar-item-background-color: var(--cosmopolitan-color-primary-50);
  --calendar-item-foreground-color: var(--cosmopolitan-color-primary-700);
  border: 1px dashed var(--cosmopolitan-color-primary-400);
}

:host([is-selected]) {
  --calendar-item-background-color: var(--cosmopolitan-color-neutral-500);
}

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