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

import { Arrows } from 'features/ArrowLoader/Icon'
import { T9n } from 'features/T9n'
import { ButtonSolid } from 'features/Common'

import { Modal as BaseModal } from '../Modal'
import { ModalWindow } from '../Modal/styled'
import { isMobileDevice } from '../../config'

export const ScModalContainer = styled(BaseModal)`
  background-color: rgba(0, 0, 0, 0.7);
  
  ${ModalWindow} {
    width: 577px;
    height: 367px;
    border-radius: 5px;
    background-color: #333333;
    padding: 50px 0;

    ${isMobileDevice
    ? css`
     padding: 20px 0;
     width: 332px;
     height: 210px;
         `
    : ''};
  }
`

export const ScBody = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
`

export const ArrowLoader = styled(Arrows)`
  width: 101px;
  height: 94px;

  @media (max-width: 850px) {
    width: 48px;
    height: 45px;
  }
`

export const Title = styled(T9n)`
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  margin-top: 37px;

  @media (max-width: 850px) {
    font-size: 19px;
    line-height: 26px;
    margin-top: 9px;
  }
`

export const SubTitle = styled(T9n)`
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  margin-top: 11px;

  @media (max-width: 850px) {
    font-size: 14px;
    line-height: 28px;
    margin-top: 9px;
  }
`

export const ScButton = styled(ButtonSolid)`
  color: white;
  width: 134px;
  height: 50px;
  margin-top: 37px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 20px;
  line-height: 50px;

  ${isMobileDevice
    ? css`
      margin-top: 9px;
      border-radius: 2px;
      width: 156px;
      height: 44px;
      font-weight: 600;
      font-size: 15px;
      line-height: 22px;
      letter-spacing: -0.408px;
       `
    : ''};
`
