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

import { isMobileDevice } from 'config/userAgent'

import { ButtonOutline as ButtonOutlineBase } from 'features/Common/Button'

export const ButtonOutline = styled(ButtonOutlineBase)`
  width: 100%;
  height: 50px;
  margin-top: 15px;
  border-radius: 5px;
  font-weight: normal;
  font-size: 20px;
  ${isMobileDevice
    ? css`
        display: block;
        height: 44px;
        margin-top: 12px;
        font-weight: 600;
        font-size: 17px;
        border-radius: 10px;
      `
    : ''};
`

export const CheckboxWrapper = styled.div`
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  margin-bottom: 24px;
  > * {
      &:first-child {
         margin-bottom: 20px;
      }
    }
`

export const Label = styled.span`
  width: 100%;
  font-weight: normal;
  font-size: 14px;
  line-height: 21px;
`

export const Link = styled.a`
  color: ${({ theme }) => theme.colors.white};
  text-decoration: underline;
  margin-left: 6px;

  :hover {
    font-weight: 700;
  }
`
