"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StyledPageLayoutFooter = void 0;
const PageLayoutFooter_1 = require("../../components/PageLayoutFooter");
const styled_1 = require("../../components/styled");
const FormPageLayoutBase_1 = require("../FormPageLayoutBase");
const constants_1 = require("./constants");
exports.StyledPageLayoutFooter = (0, styled_1.styled)(PageLayoutFooter_1.PageLayoutFooter) `
  position: sticky;
  z-index: ${({ theme }) => theme.zIndex.speedDial};

  border-top: unset;

  &.${FormPageLayoutBase_1.formPageLayoutClassnames.footerShadow} {
    bottom: 0;

    box-shadow: ${({ theme }) => theme.elevation.up[100]};
  }

  ${({ theme }) => theme.breakpoints.down('sm')} {
    position: fixed;
    bottom: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: unset;

    width: 100%;
    height: unset;
    max-height: calc(100% - ${constants_1.HEADER_HEIGHT});
    padding: 0;

    border-top-left-radius: ${({ theme }) => theme.shape.large};
    border-top-right-radius: ${({ theme }) => theme.shape.large};
    box-shadow: ${({ theme }) => theme.elevation.up[100]};
  }
`;
