import styled, { css } from 'styled-components';
import { StyledFormRow } from '../Form/Form.styles';
import { Title } from '../Title/Title';
import { colors } from '../_styles/colors';
import { spacing } from '../_styles/spacing';
export var StyledSectionInner = /*#__PURE__*/styled.div.withConfig({
  displayName: "StyledSectionInner",
  componentId: "core-11_23_1__sc-1lxbrwv-0"
})([""]);
export var StyledSectionCollapseHeading = /*#__PURE__*/styled.div.withConfig({
  displayName: "StyledSectionCollapseHeading",
  componentId: "core-11_23_1__sc-1lxbrwv-1"
})(["align-self:flex-start;margin-right:", "px;"], spacing.sm);
export var sectionClassnames = {
  divide: 'section--divide',
  levelAnonymous: 'section--level-anon',
  level: function level(num) {
    return "section--level-".concat(num);
  }
};
export var StyledSection = /*#__PURE__*/styled.div.withConfig({
  displayName: "StyledSection",
  componentId: "core-11_23_1__sc-1lxbrwv-2"
})(["padding-left:", "px;padding-right:", "px;padding-bottom:", "px;& > ", "{padding-top:", "px;}&.", "{& > ", "{border-top:1px solid ", ";}}&:first-child > ", "{border-top:0;}& &{padding-left:0;padding-right:0;&:first-child > ", "{border-top:1px solid ", ";}&:last-child{padding-bottom:0;}}", ":last-of-type{margin-bottom:", "px;}", " + &&&{padding-top:", "px;}"], spacing.xl, spacing.xl, spacing.xl, StyledSectionInner, spacing.xl, sectionClassnames.divide, StyledSectionInner, colors.gray85, StyledSectionInner, StyledSectionInner, colors.gray85, StyledFormRow, spacing.xl * -1, StyledFormRow, spacing.xs);
export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
  displayName: "StyledSectionContentRegion",
  componentId: "core-11_23_1__sc-1lxbrwv-3"
})(["padding-top:20px;padding-bottom:", "px;", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, function (_ref) {
  var $closed = _ref.$closed;
  return $closed && css(["padding-top:0;padding-bottom:0;"]);
}, function (_ref2) {
  var $noHeader = _ref2.$noHeader;
  return $noHeader && css(["padding-top:0;"]);
}, StyledSection, StyledSection, spacing.xl, StyledSection, StyledSection);
export var StyledSectionHeader = /*#__PURE__*/styled.div.withConfig({
  displayName: "StyledSectionHeader",
  componentId: "core-11_23_1__sc-1lxbrwv-4"
})(["align-items:center;display:flex;min-height:36px;word-break:break-word;"]);
export var StyledTitle = /*#__PURE__*/styled(Title).withConfig({
  displayName: "StyledTitle",
  componentId: "core-11_23_1__sc-1lxbrwv-5"
})(["width:100%;"]);
//# sourceMappingURL=Section.styles.js.map