// ------------------------------------------------------------------------------
// <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 bannerGroupElementCosmopolitanStyle() {
    return css `
:host {
  --banner-group-font-family: unset;
  --banner-group-font-letter-spacing: unset;
  --banner-group-font-line-height: unset;
  --banner-group-font-size: unset;
  --banner-group-font-text-decoration: unset;
  --banner-group-font-text-transform: unset;
  --banner-group-font-weight: unset;
  --banner-group-gap: unset;
  --banner-group-padding-bottom: unset;
  --banner-group-padding-left: unset;
  --banner-group-padding-right: unset;
  --banner-group-padding-top: unset;
  --banner-group-transition-duration: unset;
  --banner-group-transition-mode: unset;
  --banner-group-transition-property: unset;
  --banner-group-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 {
  --banner-group-gap: 0px;
  --banner-group-indicator-size: 8px;
  --banner-group-indicator-gap: 8px;
  --banner-group-depth-scale-step: .08;
  --banner-group-depth-translate-step: 12;
  --banner-group-depth-opacity-step: 0;
  display: block;
  position: relative;
}

:host [part="viewport"] {
  gap: var(--banner-group-gap);
  flex-direction: row;
  display: flex;
}

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

:host([orientation="vertical"][reverse]) [part="viewport"] {
  flex-direction: column-reverse;
}

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

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

:host ::slotted([hidden]) {
  display: none !important;
}

:host([stacking="depth"]) [part="viewport"] {
  align-items: center;
  position: relative;
}

:host(:not([stacking="depth"])) ::slotted(.banner-group-item) {
  will-change: opacity, transform;
  transition: opacity .22s, transform .32s cubic-bezier(.22, .61, .36, 1);
}

:host(:not([stacking="depth"])) ::slotted(.banner-group-item[hidden]) {
  display: none !important;
}

:host(:not([stacking="depth"])) ::slotted(.banner-group-item[data-active="true"]) {
  opacity: 1;
  position: relative;
  transform: translate3d(0, 0, 0);
}

:host(:not([stacking="depth"])) ::slotted(.banner-group-item:not([data-active="true"]):not([data-leaving="true"])) {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

:host([orientation="horizontal"]:not([stacking="depth"])) ::slotted(.banner-group-item:not([data-active="true"]):not([data-leaving="true"])) {
  transform: translate3d(8px, 0, 0);
}

:host(:not([stacking="depth"])) ::slotted(.banner-group-item[data-leaving="true"]) {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
}

:host([orientation="horizontal"]:not([stacking="depth"])) ::slotted(.banner-group-item[data-leaving="true"]) {
  transform: translate3d(-8px, 0, 0);
}

:host([stacking="depth"]) ::slotted(.banner-group-item) {
  transform-origin: top;
  pointer-events: none;
  --_depth-offset: var(--banner-group-item-depth-offset, 0);
  --_item-index: var(--banner-group-item-index, 0);
  --_direction: 1;
  --_translate-primary: calc(var(--banner-group-depth-translate-step) * var(--_depth-offset) * var(--_direction) * 1px);
  --_scale: calc(1 - (var(--banner-group-depth-scale-step) * var(--_depth-offset)));
  --_opacity: calc(1 - (var(--banner-group-depth-opacity-step) * var(--_depth-offset)));
  z-index: calc(var(--banner-group-visible-count, 1)  - var(--_depth-offset));
  transform: translateY(var(--_translate-primary)) scale(var(--_scale));
  opacity: var(--_opacity);
  transition: transform .16s, opacity .16s;
  position: absolute;
  inset: 0;
}

:host([stacking="depth"][reverse]) ::slotted(.banner-group-item) {
  --_direction: -1;
  transform-origin: bottom;
}

:host([stacking="depth"][orientation="horizontal"]) ::slotted(.banner-group-item) {
  transform-origin: 100%;
  transform: translateX(var(--_translate-primary)) scale(var(--_scale));
}

:host([stacking="depth"][orientation="horizontal"][reverse]) ::slotted(.banner-group-item) {
  --_direction: -1;
  transform-origin: 0;
}

:host([stacking="depth"]) ::slotted(.banner-group-item[data-active="true"]) {
  z-index: 1000;
  pointer-events: auto;
  position: relative;
}

:host([stacking="depth"]:hover) ::slotted(.banner-group-item) {
  opacity: 1;
  pointer-events: auto;
  z-index: auto;
  position: static;
  inset: auto;
  transform: none;
}

:host([stacking="depth"][orientation="horizontal"]:hover) ::slotted(.banner-group-item) {
  transform: none;
}

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