import styled, { css } from 'styled-components/native'

export const WrapHeader = styled.View`
  position: relative;
  z-index: 1;
`

export const TopActions = styled.TouchableOpacity`
	height: 60px;
	justify-content: center;
  padding-horizontal: 30px;
  width: 100px;
`;

export const TopHeader = styled.View`
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  height: 60px;
  min-height: 60px;
`

export const ProductHeader = styled.ImageBackground`
  flex-direction: row;
  width: 100%;
  position: relative;
  resize-mode: contain;
  min-height: 200px;
  z-index: 0;
`

export const WrapContent = styled.View`
  padding: 26px 40px;
  position: relative;
  bottom: 20px;
  background-color: white;
  z-index: 100;
`

export const ProductTitle = styled.View`
  justify-content: flex-start;
  padding-bottom: 7px;
`

export const ProductDescription = styled.View``

export const ProductEditions = styled.View`
  padding-vertical: 0;
`

export const SectionTitle = styled.View`
  padding: 15px 0px;
`

export const WrapperIngredients = styled.View`
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
`

export const WrapperSubOption = styled.View`
`

export const ProductComment = styled.View`
  padding-bottom: ${(props: any) => props.pb || 60}px;
`

export const ProductActions = styled.View`
  position: absolute;
  bottom: 0px;
  padding-top: ${(props: any) => props.ios ? '20px' : '0'};
  padding-horizontal: 20px;
  padding-vertical: 20px;
  flex-direction: ${(props: any) => props.isColumn ? 'column' : 'row'};
  background-color: #FFF;
  width: ${(props: any) => props.width ? `${props.width + 60}px` : '100%'};
  z-index: 1000;
  border-top-width: 1px;
  justify-content: space-between;
  border-top-color: ${(props: any) => props.theme.colors.border};
`
export const ExtraOptionWrap = styled.ScrollView`
`;

export const WeightUnitSwitch = styled.View`
  margin-left: 10px;
`
export const WeightUnitItem = styled.View`
  padding: 1px 5px;
  border-radius: 4px;
  
  ${({ active }: any) => active && css`
    background-color: ${(props: any) => props.theme.colors.primary}20;
  `}
`
export const ProductSummary = styled.View`
  padding: 26px ${(props: any) => props.ph}px 0;
  position: relative;
  background-color: white;
  z-index: 100;
`
