import styled from 'styled-components/native';

export const ChContainer = styled.View`
  margin-bottom: 60px;
`

export const ChSection = styled.View``

export const ChHeader = styled.View`
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  margin: 0px;
`

export const ChTotal = styled.View`
  background-color: ${(props: any) => props.theme.colors.inputDisabled};
  padding: 10px 20px;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
`

export const ChTotalWrap = styled.View`
  display: flex;
  flex-direction: row;
  align-items: center;
`

export const ChAddress = styled.View`
  width: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  border-bottom-color: ${(props: any) => props.theme.colors.inputDisabled};
`

export const ChMoment = styled(ChAddress)`
  padding: 0 0 20px;
`

export const CHMomentWrapper = styled.TouchableOpacity`
  background-color: ${(props: any) => props.theme.colors.inputDisabled};
  border-radius: 10px;
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: center;
  flex-direction: row;
`

export const ChUserDetails = styled.View`
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  padding: 0 0 20px;
  border-bottom-width: 1px;
  border-bottom-color: ${(props: any) => props.theme.colors.inputDisabled};
`
export const TextDetails = styled.Text`
  align-items: flex-start;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
`
export const ChBusinessDetails = styled(ChUserDetails)`
`

export const ChPaymethods = styled.View`
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
  border-bottom-width: 1px;
  border-bottom-color: ${(props: any) => props.theme.colors.inputDisabled};
`

export const ChDriverTips = styled(ChPaymethods)``

export const ChCart = styled(ChPaymethods)``

export const ChPlaceOrderBtn = styled.View`
  width: 100%;
  display: flex;
  justify-content: center;
`

export const ChErrors = styled.View`
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
`

export const DeliveryOptionsContainer = styled.View`
  flex: 1;
  margin-top: 10px;
`

export const DeliveryOptionItem = styled.View`
  padding: 15px;
  justify-content: ${(props : any) => props.center ? 'center' : 'space-between'};
  align-items: center;
  flex-direction: row;
  background-color: ${(props : any) => props?.backgroundColor ?? '#fff'};
`;