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

import { isMobileDevice } from 'config/userAgent'

export const Wrapper = styled.div`
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  min-width: 60px;
  height: 32px;
  
  ::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: rotate(45deg) translateY(50%);
    background-color: #000;
  }
`

export const Time = styled.span`
  padding: 0 6px;
  color: #CC0000;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;

  ${isMobileDevice
    ? css`
      color: #FFFFFF;
    `
    : ''}
`
