import styled from 'styled-components';

import ApoliticalBrand from '../../../Theme/ApoliticalBrand';

const { color, breakpoint } = ApoliticalBrand;

export const ContentWrapper = styled.div`
  width: 300px;
  left: 50%;
  transform: translate(-50%, 0);
  box-shadow: 0px 6px 8px rgba(107, 91, 82, 0.4);
  padding: 0;
  border-radius: 8px;
  position: fixed;
  bottom: 15px;
  z-index: 9999;
  background-color: ${color.iceBlue};
  font-size: 14px;
  font-weight: 200;
  color: ${color.charcoal};
  @media ${breakpoint.onlyScreen.mobileS} {
    width: 310px;
    font-size: 15px;
  }
  @media ${breakpoint.onlyScreen.mobileM} {
    width: 370px;
    font-size: 15px;
  }
  @media ${breakpoint.onlyScreen.mobileXL} {
    width: 450px;
    left: 2rem;
    transform: none;
    font-size: 16px;
  }

  @media ${breakpoint.onlyScreen.tablet} {
    width: 660px;
    left: 2rem;
    transform: none;
    font-size: 16px;
  }
`;

export const TitleWrapper = styled.div`
  border-bottom: 1px solid #D4E3EE;
  padding: 20px 28px 30px 20px;
  @media ${breakpoint.onlyScreen.tablet} {
  }
`;

export const BottomWrapper = styled.div`
  padding:20px;
  @media ${breakpoint.onlyScreen.tablet} {
  }
`;

export const ButtonsWrapper = styled.div`
  @media ${breakpoint.onlyScreen.tablet} {
    float: right;
  }
`;

export const PersonaliseWrapper = styled.div`
  @media ${breakpoint.onlyScreen.tablet} {
    float: right;
    padding-top: 30px;
    margin-right: 20px;
  }
`;

export const Title = styled.h3`
  letter-spacing: normal;
  font-size: 1.3rem;
  letter-spacing: 0.14rem;
  font-weight: 600;
  float: left;
  @media ${breakpoint.onlyScreen.mobileM} {
    font-size: 1.5rem;
  }
  @media ${breakpoint.onlyScreen.tablet} {
    font-size: 1.6rem;
  }
`;

export const Button = styled.button`
  margin-left: 10px;
  background: none;
  border: 0;
  border-radius: 2rem;
  margin: 2rem 10px 2rem 0;
  font-weight: 400;
  color: ${color.white};
  background-color: ${color.purple};
  padding: 1rem 2rem;
  font-size: 1.4rem;
  letter-spacing: 0.2px;
  :hover {
    cursor: pointer;
  }
`;

export const Summary = styled.p`
    font-weight: 400;
    line-height: 18px;
    @media ${breakpoint.onlyScreen.mobileL} {
      line-height: 20px;
    }
`;

export const PersonaliseLink = styled.a`
  color: ${color.purple};
  text-decoration: none;
  font-weight: 500;
  margin-left: 10px;
  :hover {
    text-decoration: underline;
  }
`;
