// ------------------------------------------------------------------------------
// <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 cardElementCosmopolitanStyle() {
    return css `
:host {
  --card-background-color: unset;
  --card-border-color: unset;
  --card-border-radius: unset;
  --card-border-style: solid;
  --card-border-width: unset;
  --card-divider-height: 1px;
  --card-font-family: unset;
  --card-font-letter-spacing: unset;
  --card-font-line-height: unset;
  --card-font-size: unset;
  --card-font-text-decoration: unset;
  --card-font-text-transform: unset;
  --card-font-weight: unset;
  --card-foreground-color: unset;
  --card-gap: unset;
  --card-padding-bottom: unset;
  --card-padding-left: unset;
  --card-padding-right: unset;
  --card-padding-top: unset;
  --card-shadow-blur: unset;
  --card-shadow-color: unset;
  --card-shadow-offset-x: unset;
  --card-shadow-offset-y: unset;
  --card-shadow-spread: unset;
  --card-transition-duration: .2s;
  --card-transition-mode: ease;
  --card-transition-property: background-color, color, border-color, box-shadow;
  --card-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 {
  --_has-header: 0;
  --_has-content: 0;
  --_has-actions: 0;
  --_has-footer: 0;
  font-family: var(--card-font-family);
  font-size: var(--card-font-size);
  line-height: var(--card-font-line-height);
  font-weight: var(--card-font-weight);
  letter-spacing: var(--card-font-letter-spacing);
  -webkit-text-decoration: var(--card-font-text-decoration);
  text-decoration: var(--card-font-text-decoration);
  text-transform: var(--card-font-text-transform);
  box-shadow: var(--card-shadow-offset-x) var(--card-shadow-offset-y) var(--card-shadow-blur) var(--card-shadow-spread) var(--card-shadow-color);
  border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
  border-radius: var(--card-border-radius);
  background-color: var(--card-background-color);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

:host [part="cover"] {
  z-index: 0;
  border-radius: var(--card-border-radius);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

:host [part="cover"]:first-child {
  -o-object-fit: cover;
  object-fit: cover;
  box-sizing: border-box;
  border-radius: var(--card-border-radius);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
}

:host [part="cover"]:first-child > img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

:host [part="heading"] {
  z-index: 1;
  flex-direction: column;
  display: flex;
}

:host [part="heading"].inline {
  flex-direction: column-reverse;
}

:host [part="heading"] [part="media"]:not(.inline) {
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  overflow: clip;
}

:host [part="heading"] [part="media"] ::slotted(*) {
  border-radius: unset;
}

:host [part="heading"] [part="header"] {
  flex-direction: row;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="heading"] [part="header"]:after {
  content: "";
  height: var(--card-divider-height);
  background-color: var(--card-border-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

:host [part="heading"] [part="header"][hidden] {
  display: none;
}

:host [part="heading"] [part="header"] :first-child {
  flex: 1;
}

:host [part="content"] {
  z-index: 0;
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
  overflow: auto;
}

:host [part="actions"] {
  display: flex;
  position: relative;
}

:host [part="actions"]:before {
  content: "";
  height: var(--card-divider-height);
  background-color: var(--card-border-color);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

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

:host [part="footer"] {
  display: flex;
  position: relative;
}

:host [part="footer"]:before {
  content: "";
  height: var(--card-divider-height);
  background-color: var(--card-border-color);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

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

:host([appearance="plain"]) [part="header"]:after, :host([appearance="plain"]) [part="actions"]:before, :host([appearance="plain"]) [part="footer"]:before, :host([appearance="soft"]) [part="header"]:after, :host([appearance="soft"]) [part="actions"]:before, :host([appearance="soft"]) [part="footer"]:before, :host([appearance="solid"]) [part="header"]:after, :host([appearance="solid"]) [part="actions"]:before, :host([appearance="solid"]) [part="footer"]:before {
  content: unset;
}

:host([inset*="none"]) slot[name="header"] ::slotted(mosaik-card-header) {
  --card-header-padding-top: 0;
  --card-header-padding-right: 0;
  --card-header-padding-bottom: 0;
  --card-header-padding-left: 0;
}

:host([inset*="none"]) slot[name="content"] ::slotted(mosaik-card-content) {
  --card-content-padding-top: 0;
  --card-content-padding-right: 0;
  --card-content-padding-bottom: 0;
  --card-content-padding-left: 0;
}

:host([orientation="horizontal"]), :host([orientation="horizontal"]) [part="heading"] {
  flex-direction: row;
}

:host([orientation="horizontal"]) [part="heading"] [part="media"]:not(.inline) {
  border-radius: var(--card-border-radius) 0 0 var(--card-border-radius);
}

:host([orientation="horizontal"]) [part="heading"] [part="header"]:after {
  top: 0;
  left: unset;
  width: var(--card-divider-height);
  height: unset;
  bottom: 0;
  right: 0;
}

:host([orientation="horizontal"]) [part="actions"] {
  flex-direction: column;
}

:host([orientation="horizontal"]) [part="actions"]:before {
  top: 0;
  left: 0;
  bottom: unset;
  right: unset;
  width: var(--card-divider-height);
  height: unset;
}

:host([fit="width"]) {
  width: 100%;
}

:host([fit="height"]) {
  height: 100%;
}

:host([fit="both"]) {
  width: 100%;
  height: 100%;
}

:host([has-header]) {
  --_has-header: 1;
}

:host([has-content]) {
  --_has-content: 1;
}

:host(:not([has-content])) [part="heading"], :host(:not([has-content])) [part="heading"] [part="header"] {
  flex: max(1, var(--_has-content) * 1);
}

:host([has-actions]) {
  --_has-actions: 1;
}

:host([has-footer]) {
  --_has-footer: 1;
}

:host([role="link"]) {
  cursor: pointer;
}

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