// ------------------------------------------------------------------------------
// <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 calendarItemElementJoyStyle() {
    return css `
:host {
  --calendar-item-background-color: var(--joy-scheme-background);
  --calendar-item-border-color: var(--joy-scheme-highlight);
  --calendar-item-border-radius: var(--joy-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(--joy-font-family);
  --calendar-item-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --calendar-item-font-line-height: var(--joy-typography-body1-line-height);
  --calendar-item-font-size: var(--joy-typography-body1-font-size);
  --calendar-item-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --calendar-item-font-text-transform: var(--joy-typography-body1-text-transform);
  --calendar-item-font-weight: var(--joy-typography-body1-font-weight);
  --calendar-item-foreground-color: var(--joy-scheme-foreground);
  --calendar-item-gap: 4px;
  --calendar-item-marker-gap: 2px;
  --calendar-item-marker-offset-bottom: 4px;
  --calendar-item-marker-overflow-font-size: 8px;
  --calendar-item-min-height: 48px;
  --calendar-item-padding-bottom: var(--joy-layout-space);
  --calendar-item-padding-left: calc(var(--joy-layout-space) * 1.5);
  --calendar-item-padding-right: calc(var(--joy-layout-space) * 1.5);
  --calendar-item-padding-top: var(--joy-layout-space);
  --calendar-item-ripple-color: unset;
  --calendar-item-ripple-duration: .2s;
  --calendar-item-selection-background-color: var(--joy-scheme-selection);
  --calendar-item-shadow: var(--joy-elevation-light-offset-x-0) var(--joy-elevation-light-offset-y-0) var(--joy-elevation-light-blur-0) var(--joy-elevation-light-spread-0) var(--joy-elevation-light-color-0);
  --calendar-item-shadow-blur: var(--joy-elevation-light-blur-0);
  --calendar-item-shadow-color: var(--joy-elevation-light-color-0);
  --calendar-item-shadow-offset-x: var(--joy-elevation-light-offset-x-0);
  --calendar-item-shadow-offset-y: var(--joy-elevation-light-offset-y-0);
  --calendar-item-shadow-spread: var(--joy-elevation-light-spread-0);
  --calendar-item-today-border-color: var(--joy-color-primary-500);
  --calendar-item-today-border-width: 2px;
  --calendar-item-transition-duration: var(--joy-duration-short);
  --calendar-item-transition-mode: ease;
  --calendar-item-transition-property: background-color, color, border-color, opacity;
  --calendar-item-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(--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);
  min-height: var(--calendar-item-min-height);
  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: 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"] {
  padding: var(--calendar-item-gap) 0;
  --text-foreground-color: var(--calendar-item-foreground-color);
}

:host [part="markers"] {
  justify-content: center;
  align-items: center;
  gap: var(--calendar-item-marker-gap);
  bottom: var(--calendar-item-marker-offset-bottom);
  pointer-events: auto;
  flex-direction: row;
  transition: inherit;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
}

:host [part="markers"] [part^="marker"] {
  flex-shrink: 0;
}

:host [part="markers"] [part^="marker"][part$="overflow"] {
  color: color-mix(in srgb, var(--calendar-item-foreground-color) 60%, transparent);
  font-weight: bold;
  font-size: var(--calendar-item-marker-overflow-font-size);
}

:host([is-selected]):before {
  background-color: var(--calendar-item-selection-background-color);
  opacity: 1;
}

:host([is-today]) {
  border-width: var(--calendar-item-today-border-width);
  border-color: var(--calendar-item-today-border-color);
}

:host([is-special]), :host([is-blackout]) {
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--calendar-item-border-color) 20%, transparent) 25%, transparent 25%, transparent 50%, color-mix(in srgb, var(--calendar-item-border-color) 20%, transparent) 50%, color-mix(in srgb, var(--calendar-item-border-color) 20%, transparent) 75%, transparent 75%, transparent);
  background-size: 8px 8px;
  background-repeat: repeat !important;
}

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

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

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

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

:host([is-selected]) {
  --calendar-item-background-color: var(--joy-color-primary-500);
  --calendar-item-foreground-color: var(--joy-scheme-contrast);
}

:host([is-selected]) [part="marker"] {
  --dot-background-color: var(--joy-scheme-contrast);
}

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

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

:host([is-special]) {
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--joy-color-highlight-500) 20%, transparent) 25%, transparent 25%, transparent 50%, color-mix(in srgb, var(--joy-color-highlight-500) 20%, transparent) 50%, color-mix(in srgb, var(--joy-color-highlight-500) 20%, transparent) 75%, transparent 75%, transparent);
  background-size: 8px 8px;
  background-repeat: repeat !important;
}

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

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

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

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

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

:host([variant="primary"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-primary-200);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-secondary-200);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-tertiary-200);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-danger-200);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-warning-200);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-success-200);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-info-200);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-highlight-200);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))[is-selected]) {
  --calendar-item-background-color: var(--joy-color-neutral-200);
}

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