import styled from "@emotion/styled";
import { addFocus } from "../../../../mixins";
import { IconChevronDownFill, IconMinus } from "../../../_Icon";
import { classes, tokens } from "../../Accordion.tokens";
export var StyledAccordionHeader = /*#__PURE__*/ styled("div", {
    target: "e2spt0q0",
    label: "StyledAccordionHeader"
})("width:100%;border:none;padding:var(", tokens.accordionItemPadding, ");display:flex;gap:var(", tokens.accordionItemGap, ");justify-content:space-between;align-items:center;background:none;box-sizing:border-box;cursor:pointer;&:focus{outline:none;}", addFocus({
    outlineOffset: '0.125rem',
    outlineSize: '0.125rem',
    outlineRadius: '0',
    outlineColor: "var(".concat(tokens.accordionItemFocus, ")")
}));
export var StyledAccordionHeaderLeft = /*#__PURE__*/ styled("div", {
    target: "e2spt0q1",
    label: "StyledAccordionHeaderLeft"
})("display:flex;gap:var(", tokens.accordionItemHeaderLeftGap, ",var(", tokens.accordionItemGap, "));justify-content:space-between;align-items:center;");
export var StyledAccordionContentRight = /*#__PURE__*/ styled("div", {
    target: "e2spt0q2",
    label: "StyledAccordionContentRight"
})("transition:0.2s;transform:rotate(90deg);&.", classes.accordionItemShowBody, "{transition:0.2s;transform:rotate(0deg);}");
export var StyledAccordionContentLeft = /*#__PURE__*/ styled("div", {
    target: "e2spt0q3",
    label: "StyledAccordionContentLeft"
})("transition:0.2s;display:flex;align-items:center;&.", classes.accordionItemShowBody, "{transition:0.2s;transform:rotate(180deg);}");
export var StyledAccordionTitle = /*#__PURE__*/ styled("div", {
    target: "e2spt0q4",
    label: "StyledAccordionTitle"
})("color:var(", tokens.accordionItemTitleColor, ");font-family:var(", tokens.accordionItemTitleFontFamily, ");font-size:var(", tokens.accordionItemTitleFontSize, ");font-weight:var(", tokens.accordionItemTitleFontWeight, ");font-style:var(", tokens.accordionItemTitleFontStyle, ");letter-spacing:var(", tokens.accordionItemTitleLetterSpacing, ");line-height:var(", tokens.accordionItemTitleLineHeight, ");text-align:left;");
export var StyledAccordionBodyAnimate = /*#__PURE__*/ styled("div", {
    target: "e2spt0q5",
    label: "StyledAccordionBodyAnimate"
})("display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&.", classes.accordionItemShowBody, "{grid-template-rows:1fr;padding-bottom:var(", tokens.accordionItemBodyPaddingBottom, ",var(", tokens.accordionItemPaddingVertical, "));&.", classes.accordionPlusAnimationElement, "{transition:0.2s;transform:rotate(0deg);}}");
export var StyledAccordionBody = /*#__PURE__*/ styled("div", {
    target: "e2spt0q6",
    label: "StyledAccordionBody"
})("color:var(", tokens.accordionItemTextColor, ");font-family:var(", tokens.accordionItemTextFontFamily, ");font-size:var(", tokens.accordionItemTextFontSize, ");font-weight:var(", tokens.accordionItemTextFontWeight, ");font-style:var(", tokens.accordionItemTextFontStyle, ");letter-spacing:var(", tokens.accordionItemTextLetterSpacing, ");line-height:var(", tokens.accordionItemTextLineHeight, ");overflow:hidden;padding-right:var(", tokens.accordionItemPaddingHorizontal, ");padding-left:var(", tokens.accordionItemPaddingHorizontalLeft, ");text-align:left;");
export var StyledArrow = /*#__PURE__*/ styled(IconChevronDownFill, {
    target: "e2spt0q7",
    label: "StyledArrow"
})("pointer-events:none;user-select:none;color:var(", tokens.accordionItemIconColor, ");");
export var StyledMinus = /*#__PURE__*/ styled(IconMinus, {
    target: "e2spt0q8",
    label: "StyledMinus"
})("pointer-events:none;user-select:none;color:var(", tokens.accordionItemIconColor, ");display:flex;align-items:center;position:absolute;top:0;left:0;&.", classes.accordionPlusAnimationElement, "{transition:0.2s;transform:rotate(90deg);}&.", classes.accordionItemShowBody, "{transition:0.2s;transform:rotate(0deg);color:var(", tokens.accordionItemOpenedTitleColor, ",var(", tokens.accordionItemIconColor, "));}");
export var StyledPlus = /*#__PURE__*/ styled("div", {
    target: "e2spt0q9",
    label: "StyledPlus"
})("position:relative;display:flex;align-items:center;justify-content:center;width:var(", tokens.accordionItemIconSize, ",1rem);height:var(", tokens.accordionItemIconSize, ",1rem);");
export var StyledAccordionItem = /*#__PURE__*/ styled("div", {
    target: "e2spt0q10",
    label: "StyledAccordionItem"
})("background:var(", tokens.accordionItemBackground, ");border:var(", tokens.accordionItemBorder, ");border-bottom:var(", tokens.accordionItemBorderBottom, ");box-shadow:var(", tokens.accordionItemShadow, ");&:last-child{border-bottom:var(", tokens.accordionItemBorder, ");}&.", classes.accordionDisabled, "{opacity:0.4;cursor:not-allowed;}&:hover:not(.", classes.accordionItemOpened, "){background:var(", tokens.accordionItemBackgroundHover, ",var(", tokens.accordionItemBackground, "));}&.", classes.accordionItemOpened, "{background:var(", tokens.accordionItemOpenedBackground, ",var(", tokens.accordionItemBackground, "));", StyledArrow, "{color:var(", tokens.accordionItemOpenedTitleColor, ",var(", tokens.accordionItemIconColor, "));}", StyledAccordionTitle, "{color:var(", tokens.accordionItemOpenedTitleColor, ",var(", tokens.accordionItemTitleColor, "));}}");
