import styled from "styled-components";
export const Wrapper = styled.footer `
  background: ${({ theme }) => theme.new?.footer?.background ?? "unset"};
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 1;

  @media (min-width: 1023px) {
    padding: ${({ theme }) => theme.new?.footer?.padding};

    ${({ hasSubscriber, theme }) => hasSubscriber
    ? `>${Inner} {
          margin-left: max(calc((100% - ${theme.new?.footer?.innerMaxWidth ?? "100%"}) / 2), 0px);
          margin-right: calc(420px + max(((100% - ${theme.new?.footer?.innerMaxWidth ?? "100%"}) / 2), 0px));
          max-width: calc(100% - ${theme.new?.footer?.subscriberWidthLarge ?? "0"} + 20px);
          width: calc(1224px - ${theme.new?.footer?.subscriberWidthLarge ?? "0"} - 20px);
        }`
    : ``}
  }

  @media (min-width: 1224px) {
    ${({ hasSubscriber, theme }) => hasSubscriber
    ? `>${Inner} {
          width: calc(${theme.new?.footer?.innerMaxWidth ?? "100%"} - ${theme.new?.footer?.subscriberWidthLarge ?? "0"} - 32px);
        }`
    : ``}
  }

  @media (max-width: 1023px) {
    max-width: 425px;
    margin: 0 auto;
    padding: unset;
  }
`;
export const Inner = styled.div `
  display: flex;
  justify-content: space-between;
  width: 100%;

  @media (max-width: 1023px) {
    flex-direction: column;
    padding: ${({ theme }) => theme?.new?.footer?.innerPaddingMobile ?? "0"};
  }

  @media (min-width: 1023px) {
    margin: 0 auto;
  }

  @media (min-width: 1023px) and (max-width: 1224px) {
  }

  @media (min-width: 1224px) {
    max-width: ${({ theme }) => theme?.new?.footer?.innerMaxWidth ?? "100%"};
    width: ${({ theme }) => theme?.new?.footer?.innerWidth ?? "100%"};
  }
`;
export const Col = styled.div `
  display: flex;
  flex-direction: ${({ direction }) => direction ?? "column"};
  width: ${({ width }) => width ?? "130px"};
  min-width: ${({ width }) => width ?? "unset"};

  @media (max-width: 1023px) {
    width: ${({ widthMobile }) => widthMobile ?? "100%"};
    min-width: ${({ widthMobile }) => widthMobile ?? "100%"};
  }
`;
export const Subscriber = styled.div `
  background: ${({ theme }) => theme?.new?.footer?.subscriberBackground ?? "unset"};
  width: 100%;
  height: 100%;

  @media (max-width: 1023px) {
    padding: ${({ theme }) => theme?.new?.footer?.subscriberPaddingMobile ?? "0"};
  }

  @media (min-width: 1023px) {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 100%;
    min-width: ${({ theme }) => theme?.new?.footer?.subscriberWidth ?? "0"};
    width: calc(
      ${({ theme }) => theme?.new?.footer?.subscriberWidth ?? "0"} +
        (
          (100% - ${({ theme }) => theme?.new?.footer?.innerMaxWidth ?? "100%"}) /
            2
        )
    );
    padding: 62px 25px;
  }

  @media (min-width: 1224px) {
    min-width: ${({ theme }) => theme?.new?.footer?.subscriberWidthLarge ?? "0"};
    width: calc(
      ${({ theme }) => theme?.new?.footer?.subscriberWidth ?? "0"} +
        (
          (100% - ${({ theme }) => theme?.new?.footer?.innerMaxWidth ?? "100%"}) /
            2
        )
    );
    padding: ${({ theme }) => theme?.new?.footer?.subscriberPadding ?? 0};
  }
`;
export const Divider = styled.div `
  border-bottom: 1px solid
    ${({ theme }) => theme?.new?.colors?.primary300 ?? "unset"};
  width: 100%;
  ${({ margin }) => `margin: ${margin};`}
`;
//# sourceMappingURL=footer.styled.js.map