import styled from 'styled-components';

export const PlanFormContainer = styled.div`
  width: 100vw;
  max-width: 100vw;
  min-height: calc(100vh - 250px);
  padding-bottom: 75px;
  background-color: ${props => props.theme.colors.sky100};
  display: inherit;

  @media print{
    display: none;
  }
`;

export const PlanFormContainerInfoBar = styled.div`
  width: 100%;
  padding: 0px 8px;
  margin-top: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  ${({ theme }) => `
    ${theme.media.desktop} {
      padding: 15px 25px 0px;
      margin-top: 32px;
      margin-bottom: 66px
    }
  `}
`;

export const PlanFormQueryContainer = styled.div`
  background-color: ${props => props.theme.colors.white};
  border: 1px solid #bbdde6;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  width: 100%;
  max-width: 1200px;
  padding: 32px 19px;
  position: relative;
  display: flex;
  z-index: 5;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: auto;

  ${({ theme }) => `
    ${theme.media.desktop} {
      padding: 96px 88px;
      width: calc(100vw - 500px);
    }
  `}
`;


export const ResponseContainer = styled.div<{ center: boolean }>`
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: ${props => (props.center ? 'center' : 'space-between')};
`;

export const QueryButtonContainer = styled.div`
  display: flex;
  justify-content: center;
  margin-top: auto;
`;

export const ButtonContainerSmall = styled.div`
  width: 100%;
  display: flex;
  margin-top: auto;
  justify-content: space-between;

  ${({ theme }) => `
    ${theme.media.desktop} {
      display: none;
    }
  `}
`;

export const AddressContainer = styled.div`
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
`;

export const UnorderedListContainer = styled.div<{ half?: boolean }>`
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: ${props => (props.half ? 'space-between' : 'center')};
`;


interface iListItemContainerProps {
    clickCategory?: string;
    clickAction?: string;
    clickLabel?: string;
    half?: boolean;
}

export const ListItemContainer = styled.a.attrs((props: iListItemContainerProps) => ({
    'data-click-category': props.clickCategory,
    'data-click-action': props.clickAction,
    'data-click-label': props.clickLabel
})) <iListItemContainerProps>`
  width: 100%;
  background-color: green;
  padding: 16px;
  margin-bottom: 16px;
  max-width: 336px;
  max-height: ${props => (props.half ? 'auto' : '91px')};
  width: ${props => (props.half ? '46%' : '336px')};
  background: ${props => props.theme.colors.white};
  border: 1px solid #ccd5db;
  box-sizing: border-box;
  box-shadow: 0px 2px 8px 2px rgba(0, 43, 73, 0.05);
  border-radius: 8px;

  &:hover {
    cursor: pointer;
  }
`;

export const LinkIconContainer = styled.div`
  width: 100%;
  display: flex;
  margin-bottom: 11px;
  justify-content: flex-end;
  color: ${props => props.theme.colors.navy100};
`;

export const SelectContainer = styled.div`
  width: 100%;
`;