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

import { isMobileDevice } from 'config/userAgent'
import { devices } from 'config/devices'

export const PriceWrapper = styled.div`
  display: flex;
  align-items: flex-start;

  @media ${devices.tablet} {
    justify-content: center;
   }
  ${isMobileDevice
    ? css`
      min-width: 80px;
    `
    : ''};
`

export const PriceAmount = styled.span`
  font-style: normal;
  font-weight: 600;
  font-size: 48px;
  line-height: 40px;
  color: ${({ theme: { colors } }) => colors.white};

  @media ${devices.tablet} {
    font-size: 36px;
  }
`

export const PriceDetails = styled.span`
  margin-left: 5px;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  color: ${({ theme: { colors } }) => colors.white};
  text-transform: uppercase;

  @media ${devices.tablet} {
    font-size: 11px;
  }
`

export const Currency = styled.span`
  text-transform: uppercase;
  margin-right: 4px;
`

export const Period = styled.span`
  text-transform: uppercase;
`

export const Prefix = styled.span`
  padding-top: 5px;
  text-transform: lowercase;
  line-height: 40px;
  font-size: 12px;
  font-weight: normal;
  margin-right: 5px;
`
