import t, { css as o } from "styled-components";
import { getSpacing as i, getColorAlias as n, convertToTransientProps as r, getFontSize as l } from "../../../../utils/index.js";
const a = t.div.withConfig({
  shouldForwardProp: r([
    "hasPullTab",
    "pinnedHeader"
  ])
})`
  --pull-tab-height: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: ${({ theme: { radius: e } }) => `${e.roundedC} ${e.roundedC} ${e.roundedNone} ${e.roundedNone}`};

  padding: ${i("s04", "s03")};

  svg {
    fill: ${n("contentDefault")};
    height: 20px;
    width: 20px;
  }

  ${({ hasPullTab: e }) => e && o`
      padding-top: calc(${i("s04")} + var(--pull-tab-height));
    `}

  ${({ pinnedHeader: e }) => e && o`
      box-shadow: rgb(0 0 0 / 20%) 0px 5px 9px 3px;
    `}
`, s = t.div`
  display: flex;
  justify-content: space-between;
  width: 100%;
`, h = t.div.withConfig({
  shouldForwardProp: r([
    "headerControlsModifiers"
  ])
})`
  display: flex;
  align-items: center;
  height: 35px;
  position: relative;

  width: ${({ headerControlsModifiers: e }) => e === "close" ? "calc(100% - 32px)" : "100%"};

  h3 {
    margin: 0;
    ${l("size20")};
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
  }

  svg {
    margin-right: ${i("s04")};
    min-width: 20px;
  }
`;
export {
  s as HeaderInnerWrapper,
  a as HeaderWrapper,
  h as IconTitleWrapper
};
