import styled from "styled-components";
import { Row } from "../grid";
import { currentTheme } from "../../theme";
export const Wrapper = styled.footer(({ isApp, withColMargin }) => `
  background: #ecf6ff;
  width: 100%;
  margin-top: auto;
  padding: 62px 32px 72px;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;

  @media (min-width: 1023px) {
    ${Row} {
      max-width: unset;
    }
  }

  @media (min-width: 1224px) {
    ${Row} {
      min-width: 1224px;
      max-width: 1224px;
    }
  }

  ${withColMargin &&
    `
    @media (min-width: 1024px) and (max-width: 1224px) {
      ${Col} {
        &:not(:last-child){
          margin-right: 12px;
        }
        &:first-child{
          max-width: 183px;
          min-width: 183px;
        }
      }
    }
    `}

  .subscriber {
    background: #E3EEF9;
    padding: 62px 50px;

    @media (max-width: 1024px){
      margin: -8px -12px 0;
      padding: 40px 25px;
      min-width: calc(100% + 30px);
    }
    @media (min-width: 1024px) and (max-width: 1224px) {
      padding: 64px 25px;
      margin-right: -32px;
      margin-top: -64px;
      margin-bottom: -72px;
      min-height: 358px;
      max-height: 358px;
    }

    @media (min-width: 1224px) {
      width: 100%;
      margin-top: -62px;
      margin-bottom: -72px;
      min-width: calc(420px + ((100vw - 1224px) / 2));
      margin-right: calc((1224px - 100vw) / 2);
      margin-top: -64px;
      margin-bottom: -72px;
      min-height: 330px;
      max-height: 330px;
    }
  }


  ${isApp ? `margin-top: 64px;` : ``}

  .ui-footer__logo {
    margin-bottom: 24px;
  }

  .ui-footer__title {
    margin-bottom: 34px;
    margin-top: 12px;
    color: ${currentTheme.colors.secondary};
    font-family: Medium;
  }

  .ui-footer__description {
    margin-left: 8px;
  }

  &.ui-footer--eqlab {

    .ui-footer__soc-icons-row {
      max-width: 120px;

        > a {
        height: 24px;
        display: flex;
        align-items: center;
      }
    }

    @media (max-width: 1023px) {

      .ui-footer__logo {
        margin-bottom: 0;
      }

      ${Col} {

        border-bottom: unset;

        :first-of-type {
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
        }
      }
    }

  }

  @media (max-width: 1023px) {
    padding: 8px 19px 20px 12px;
    max-width: 425px;
    margin-left: auto;
    margin-right: auto;

    .ui-footer__title {
      margin-bottom: unset;
      margin-top: unset;
      font-size: 12px;
      line-height: 18px;
      min-width: 25%;
      color: ${currentTheme.colors.secondary};
      font-family: Bold;
    }

    .ui-footer__logo {
      min-width: 126px;
      height: 36px;
      margin-bottom: 16px;
    }

    .ui-footer__description {
      margin-left: unset;
    }
  }
`);
export const Col = styled.div(({ width, mobColumn, alignItems }) => `
  display: flex;
  flex-flow: column nowrap;
  flex-basis: ${width};
  max-width: ${width};
  min-width: ${width};

  @media (max-width: 1023px) {
    ${mobColumn
    ? `flex-direction: column;
          align-items: ${alignItems ? alignItems : "flex-start"};

          .ui-footer__title {margin-bottom: 10px;}

          `
    : `flex-direction: row;
           align-items: ${alignItems ? alignItems : "center"};`}
    max-width: 100%;
    min-width: 100%;
    flex-basis: 100%;

    border-bottom: 1.5px solid #CCDAE9;
    padding: 16px 0;

    :first-of-type {
      flex-direction: column;
      align-items: flex-start;
      border-bottom: unset;

      > span {
        color: #B3BDC7;
      }
    }

    :last-of-type {
      border-bottom: unset;
    }
  }
`);
export const List = styled.ul `
  margin: 0;
  padding: 0;

  li {
    list-style-type: none;
  }

  a {
    text-decoration: none;
    :hover {
      text-decoration: underline;
    }
  }

  @media (max-width: 1023px) {
    li {
      margin-bottom: 8px;
    }

    a > span {
      font-size: 14px;
      line-height: 20px;
    }
  }
`;
export const EqLabList = styled.ul `
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  li {
    list-style-type: none;
  }

  a {
    text-decoration: none;
    :hover {
      text-decoration: underline;
    }
  }

  a > span {
    font-size: 16px;
    line-height: 20px;
  }
`;
export const IconWrapper = styled.a `
  width: 32px;
  height: 32px;
  background: #ccdae9;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
`;
//# sourceMappingURL=styled.js.map