// ------------------------------------------------------------------------------
// <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 tabElementCosmopolitanStyle() {
    return css `
:host {
  --tab-background-color: var(--cosmopolitan-scheme-background);
  --tab-border-color: var(--cosmopolitan-scheme-highlight);
  --tab-border-radius: var(--cosmopolitan-layout-radius);
  --tab-border-style: solid;
  --tab-border-width: var(--cosmopolitan-layout-thickness);
  --tab-divider-height: 2px;
  --tab-font-family: var(--cosmopolitan-font-family);
  --tab-font-letter-spacing: var(--cosmopolitan-typography-content-letter-spacing);
  --tab-font-line-height: var(--cosmopolitan-typography-content-line-height);
  --tab-font-size: var(--cosmopolitan-typography-content-font-size);
  --tab-font-text-decoration: var(--cosmopolitan-typography-content-text-decoration);
  --tab-font-text-transform: var(--cosmopolitan-typography-content-text-transform);
  --tab-font-weight: var(--cosmopolitan-typography-content-font-weight);
  --tab-foreground-color: var(--cosmopolitan-scheme-foreground);
  --tab-gap: 8px;
  --tab-indicator-height: 4px;
  --tab-padding-bottom: 8px;
  --tab-padding-left: 16px;
  --tab-padding-right: 16px;
  --tab-padding-top: 8px;
  --tab-panel-background-color: var(--tab-background-color);
  --tab-strip-background-color: var(--cosmopolitan-scheme-transparent);
  --tab-strip-padding-bottom: 0;
  --tab-strip-padding-left: 0;
  --tab-strip-padding-right: 0;
  --tab-strip-padding-top: 0;
  --tab-transition-duration: .2s;
  --tab-transition-mode: ease;
  --tab-transition-property: background-color, color, border-color, opacity, transform;
  --tab-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(--tab-font-family);
  font-size: var(--tab-font-size);
  line-height: var(--tab-font-line-height);
  font-weight: var(--tab-font-weight);
  letter-spacing: var(--tab-font-letter-spacing);
  -webkit-text-decoration: var(--tab-font-text-decoration);
  text-decoration: var(--tab-font-text-decoration);
  text-transform: var(--tab-font-text-transform);
  gap: var(--tab-gap);
  transition-duration: var(--tab-transition-duration);
  transition-timing-function: var(--tab-transition-mode);
  transition-property: var(--tab-transition-property);
  color: var(--tab-foreground-color);
  background-color: var(--tab-background-color);
  border-radius: var(--tab-border-radius);
  border-style: var(--tab-border-style);
  border-width: var(--tab-border-width);
  border-color: var(--tab-border-color);
}

:host [part="root"] {
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
}

:host [part="root"] [part="header"] {
  flex-direction: row;
  align-items: center;
  display: flex;
}

:host [part="root"] [part="header"] [part="tabPanel"] {
  --tab-panel-background-color: base. component-property($ props, background-color);
  margin-bottom: calc(var(--tab-border-width) * -1);
  border: var(--tab-border-width) var(--tab-border-style) var(--tab-border-color);
  border-radius: var(--tab-border-radius) var(--tab-border-radius) 0px 0px;
  display: flex;
}

:host [part="root"] [part="header"] [part="tabPanel"]:after {
  content: "";
  background-color: var(--tab-border-color);
  height: var(--tab-divider-height);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

:host [part="root"] [part="header"] [part="tabPanel"] [part="tabStrip"] {
  --tab-strip-padding-top: 0;
  --tab-strip-padding-right: 0;
  --tab-strip-padding-bottom: 0;
  --tab-strip-padding-left: 0;
}

:host [part="root"] [part="header"] [part="tabPanel"] [part="tabStrip"] [part="tabStripItem"] {
  --tab-strip-item-border-radius: calc(var(--tab-border-radius)  - var(--tab-border-width));
}

:host [part="root"] [part="header"] [part="tabPanel"] + [part="content"] {
  border-radius: 0px 0px var(--tab-border-radius) var(--tab-border-radius);
}

:host [part="root"] [part="content"] {
  border: var(--tab-border-width) var(--tab-border-style) var(--tab-border-color);
  border-radius: var(--tab-border-radius);
  background-color: var(--tab-background-color);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

:host([placement="top"]) [part="root"] {
  flex-direction: column;
}

:host([placement="top"]) [part="root"] [part="header"] {
  flex-direction: row;
}

:host([placement="bottom"]) [part="root"] {
  flex-direction: column-reverse;
}

:host([placement="bottom"]) [part="root"] [part="header"] {
  flex-direction: row;
}

:host([placement="bottom"]) [part="root"] [part="tabPanel"] {
  margin-top: calc(var(--tab-border-width) * -1);
  border-radius: 0px 0px var(--tab-border-radius) var(--tab-border-radius);
  border: unset;
  border-top: var(--tab-border-width) var(--tab-border-style) var(--tab-border-color);
}

:host([placement="bottom"]) [part="root"] [part="tabPanel"]:after {
  height: var(--tab-divider-height);
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
}

:host([placement="left"]) [part="root"] {
  flex-direction: row;
}

:host([placement="left"]) [part="root"] [part="header"] {
  flex-direction: column;
}

:host([placement="left"]) [part="root"] [part="tabPanel"] {
  margin-right: calc(var(--tab-border-width) * -1);
  border-radius: var(--tab-border-radius) 0px 0px var(--tab-border-radius);
  border: unset;
  border-right: var(--tab-border-width) var(--tab-border-style) var(--tab-border-color);
}

:host([placement="left"]) [part="root"] [part="tabPanel"]:after {
  height: 100%;
  width: var(--tab-divider-height);
  top: 0;
  bottom: 0;
  right: 0;
}

:host([placement="left"]) [part="root"] [part="tabPanel"] [part="tabStrip"] [part="tabStripItem"] {
  writing-mode: vertical-lr;
}

:host([placement="right"]) [part="root"] {
  flex-direction: row-reverse;
}

:host([placement="right"]) [part="root"] [part="header"] {
  flex-direction: column;
}

:host([placement="right"]) [part="root"] [part="tabPanel"] {
  margin-left: calc(var(--tab-border-width) * -1);
  border-radius: 0px var(--tab-border-radius) var(--tab-border-radius) 0px;
  border: unset;
  border-left: var(--tab-border-width) var(--tab-border-style) var(--tab-border-color);
}

:host([placement="right"]) [part="root"] [part="tabPanel"]:after {
  height: 100%;
  width: var(--tab-divider-height);
  top: 0;
  bottom: 0;
  left: 0;
}

:host([placement="right"]) [part="root"] [part="tabPanel"] [part="tabStrip"] [part="tabStripItem"] {
  writing-mode: vertical-rl;
}

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