// ------------------------------------------------------------------------------
// <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 schedulerEventElementCosmopolitanStyle() {
    return css `
:host {
  --scheduler-event-agenda-gap: var(--cosmopolitan-layout-space);
  --scheduler-event-agenda-min-height: 48px;
  --scheduler-event-agenda-padding: var(--cosmopolitan-layout-space);
  --scheduler-event-all-day-background-color: var(--cosmopolitan-color-primary-100);
  --scheduler-event-all-day-foreground-color: var(--cosmopolitan-color-primary-900);
  --scheduler-event-background-color: var(--cosmopolitan-color-primary-500);
  --scheduler-event-border-color: var(--cosmopolitan-scheme-highlight);
  --scheduler-event-border-radius: var(--cosmopolitan-layout-radius);
  --scheduler-event-border-style: solid;
  --scheduler-event-border-width: var(--cosmopolitan-layout-thickness);
  --scheduler-event-box-shadow: var(--cosmopolitan-elevation-1);
  --scheduler-event-focus-ring-active-width: 8px;
  --scheduler-event-focus-ring-color: var(--cosmopolitan-scheme-highlight);
  --scheduler-event-focus-ring-inward-offset: 2px;
  --scheduler-event-focus-ring-outward-offset: 2px;
  --scheduler-event-font-family: var(--cosmopolitan-font-family);
  --scheduler-event-font-letter-spacing: unset;
  --scheduler-event-font-line-height: var(--cosmopolitan-typography-caption-line-height);
  --scheduler-event-font-size: var(--cosmopolitan-typography-caption-font-size);
  --scheduler-event-font-text-decoration: unset;
  --scheduler-event-font-text-transform: unset;
  --scheduler-event-font-weight: var(--cosmopolitan-typography-caption-font-weight);
  --scheduler-event-foreground-color: var(--cosmopolitan-color-light-foreground);
  --scheduler-event-gap: unset;
  --scheduler-event-hover-background-color: var(--cosmopolitan-color-primary-600);
  --scheduler-event-month-border-radius: var(--cosmopolitan-layout-radius);
  --scheduler-event-month-font-size: var(--cosmopolitan-typography-caption-font-size);
  --scheduler-event-month-gap: calc(var(--cosmopolitan-layout-space) / 2);
  --scheduler-event-month-line-height: 1.2;
  --scheduler-event-month-min-height: 20px;
  --scheduler-event-month-padding: 2px calc(var(--cosmopolitan-layout-space) / 2);
  --scheduler-event-padding: var(--cosmopolitan-layout-space) calc(var(--cosmopolitan-layout-space) / 2);
  --scheduler-event-padding-bottom: unset;
  --scheduler-event-padding-left: unset;
  --scheduler-event-padding-right: unset;
  --scheduler-event-padding-top: unset;
  --scheduler-event-ripple-color: unset;
  --scheduler-event-ripple-duration: .2s;
  --scheduler-event-shadow: var(--cosmopolitan-elevation-light-offset-x-1) var(--cosmopolitan-elevation-light-offset-y-1) var(--cosmopolitan-elevation-light-blur-1) var(--cosmopolitan-elevation-light-spread-1) var(--cosmopolitan-elevation-light-color-1);
  --scheduler-event-shadow-blur: var(--cosmopolitan-elevation-light-blur-1);
  --scheduler-event-shadow-color: var(--cosmopolitan-elevation-light-color-1);
  --scheduler-event-shadow-offset-x: var(--cosmopolitan-elevation-light-offset-x-1);
  --scheduler-event-shadow-offset-y: var(--cosmopolitan-elevation-light-offset-y-1);
  --scheduler-event-shadow-spread: var(--cosmopolitan-elevation-light-spread-1);
  --scheduler-event-transition-duration: var(--cosmopolitan-motion-duration);
  --scheduler-event-transition-mode: var(--cosmopolitan-motion-mode);
  --scheduler-event-transition-property: background-color, box-shadow, transform;
  --scheduler-event-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(--scheduler-event-font-family);
  font-size: var(--scheduler-event-font-size);
  line-height: var(--scheduler-event-font-line-height);
  font-weight: var(--scheduler-event-font-weight);
  letter-spacing: var(--scheduler-event-font-letter-spacing);
  -webkit-text-decoration: var(--scheduler-event-font-text-decoration);
  text-decoration: var(--scheduler-event-font-text-decoration);
  text-transform: var(--scheduler-event-font-text-transform);
  color: var(--scheduler-event-foreground-color);
  transition-duration: var(--scheduler-event-transition-duration);
  transition-timing-function: var(--scheduler-event-transition-mode);
  transition-property: var(--scheduler-event-transition-property);
  background: var(--scheduler-event-background-color);
  border-color: var(--scheduler-event-border-color);
  border-style: var(--scheduler-event-border-style);
  border-width: var(--scheduler-event-border-width);
  border-radius: var(--scheduler-event-border-radius);
}

:host [part="popup"] {
  position: absolute;
}

:host [part~="container"] {
  box-sizing: border-box;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  padding: var(--scheduler-event-padding);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

:host [part~="container"][part~="is-cancelled"] {
  opacity: .6;
  text-decoration: line-through;
}

:host [part~="container"][part~="is-tentative"] {
  opacity: .8;
  border-style: dashed;
}

:host [part~="container"] [part="focusRing"] {
  --focus-ring-active-width: var(--scheduler-event-focus-ring-active-width);
  --focus-ring-color: var(--scheduler-event-focus-ring-color);
  --focus-ring-inward-offset: var(--scheduler-event-focus-ring-inward-offset);
  --focus-ring-outward-offset: var(--scheduler-event-focus-ring-outward-offset);
}

:host [part~="container"] [part~="content"] {
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow: hidden;
}

:host [part~="title"] {
  color: var(--scheduler-event-foreground-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
  overflow: hidden;
}

:host [part~="subtitle"] {
  color: var(--scheduler-event-foreground-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  overflow: hidden;
}

:host [part~="footer"] {
  color: var(--scheduler-event-foreground-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-block-start: auto;
  overflow: hidden;
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

:host([is-focused]:not([is-focused="false"])) {
  z-index: 1;
}

:host([all-day]) {
  background: var(--scheduler-event-all-day-background-color);
  border-left: 3px solid;
  height: auto;
  max-height: 64px;
}

:host([layout="timeGrid"]), :host(:not([layout])) {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

:host([layout="timeGrid"]) [part~="container"], :host(:not([layout])) [part~="container"] {
  flex-direction: column;
}

:host([layout="timeGrid"]) [part~="container"] [part~="content"], :host(:not([layout])) [part~="container"] [part~="content"] {
  flex-direction: column;
  min-width: 0;
}

:host([layout="month"]) {
  width: 100%;
  height: auto;
  min-height: var(--scheduler-event-month-min-height);
  border-radius: var(--scheduler-event-month-border-radius);
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  align-items: center;
  display: flex;
  overflow: hidden;
}

:host([layout="month"]) [part~="container"] {
  align-items: center;
  gap: var(--scheduler-event-month-gap);
  padding: var(--scheduler-event-month-padding);
  height: auto;
  min-height: var(--scheduler-event-month-min-height);
  flex-direction: row;
}

:host([layout="month"]) [part~="container"] [part~="content"] {
  align-items: center;
  gap: var(--scheduler-event-month-gap);
  flex-direction: row;
}

:host([layout="month"]) [part~="container"] [part~="title"] {
  font-size: var(--scheduler-event-month-font-size);
  line-height: var(--scheduler-event-month-line-height);
  flex: 1;
}

:host([layout="agenda"]) {
  width: 100%;
  height: auto;
  min-height: var(--scheduler-event-agenda-min-height);
  cursor: pointer;
  box-sizing: border-box;
  align-items: center;
  display: flex;
  overflow: hidden;
}

:host([layout="agenda"]) [part~="container"] {
  align-items: center;
  gap: var(--scheduler-event-agenda-gap);
  padding: var(--scheduler-event-agenda-padding);
  height: auto;
  min-height: var(--scheduler-event-agenda-min-height);
  flex-direction: row;
}

:host([layout="agenda"]) [part~="container"] [part~="content"] {
  align-items: center;
  gap: var(--scheduler-event-agenda-gap);
  flex-direction: row;
  flex: 1;
}

:host([layout="agenda"]) [part~="container"] [part~="title"] {
  flex: 1;
}

:host([layout="agenda"]) [part~="container"] [part~="subtitle"] {
  flex: none;
}

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