import styled, { css } from 'styled-components'
import {
  BGColor,
  DarkSilver,
  PColor,
  SECBGColor
} from '../../../assets/colors'

export const FooterComponent = styled.footer`
    position: fixed;
    bottom: 0;
    height: 60px;
    display: flex;
    left: 0;
    margin: auto;
    right: 0;
    width: 100%;
    box-shadow: 0px 1px 3px rgb(0 0 0 / 24%);
    z-index: 9999;
    justify-content: space-between;
    display: none;
    grid-area: foot;
    background-color: ${BGColor};
    @media (max-width: 960px){
        display: flex;
    }
`
export const Button = styled.button`
    color: ${PColor};
`
export const ContentFooter = styled.footer`
    display: flex;
    max-width: 1000px !important;
    margin: auto;
    flex-wrap: wrap;
    box-shadow: inset 0 -1px 0 #dcdcdc;
    @media (min-width: 992px) {
    }
`
export const Text = styled.span` 
    font-size: 13px;
    text-align: center;
    margin: 5px 0px;
    font-family: PFont-Light;
    word-break: break-word;
`
export const Anchor = styled.a`
    &.active {
        border-top: 2px solid ${PColor};
        & > svg {
            fill: red !important;
        }
    }
  padding: 0px 10px;
  width: 24%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-gray-light);
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 0.875rem;
`

// HEADER
export const AdicionalComponent = styled.div`
position: relative;
    @media only screen and (min-width: 960px){
    }
`
export const Time = styled.time`
    font-family: PFont-Regular;
    color: ${PColor};
    text-align: center;
    @media only screen and (min-width: 960px){
    }
`
export const Timer = styled.div`
    width: 300px;
    min-width: 300px;
    position: relative;
    @media only screen and (min-width: 960px){
    }
`
export const UseSize = styled.div`
    position: absolute;
    right: 0;
    bottom: -45px;
    width: 60px;
    max-width: 60px;
    background-color: ${({ theme }) => { return theme.InvColor }};
    border-radius: 50%;
    height: 60px;
    align-items: center;
    display: grid;
    box-shadow: 0px 0px 6px 0px #16101026;
    justify-content: center;
    align-content: center;
    @media only screen and (max-width: 960px){
        display: none;
    }
`

// options
export const ButtonOption = styled.button`
    margin: 10px;
    position: relative;
    cursor: pointer;
    /* z-index: 999; */
    background-color:  transparent;
    ${props => {
    return props.space && css`
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        & > span {
            font-family: PFont-Light;
            font-size: 14px;
            color: ${({ theme }) => { return `${theme.PColor}` }};
        }
    `}}
    @media only screen and (min-width: 960px){
    }
`
export const FloatingBox = styled.div`
    position: absolute;
    grid-gap: 0 10px;
    display: grid;
    transition: all 200ms ease-in-out;
    background-color: ${BGColor};
    padding: 10px;
    z-index: 99999;
  ${({ show }) => {
    return show
      ? css`
                  visibility: visible;
                  transform: translateY(0);
                  `
      : css`

                visibility: hidden;
                  transform: translateY(-50px);
              `}}
    @media only screen and (min-width: 960px){
    }
`
export const FloatingBoxTwo = styled(FloatingBox)`
    margin: 0 0 0 30px;
    /* left: -220px; */
    max-width: 250px;
    min-width: 250px;
    width: 250px;
    top: 28px;
    overflow: hidden;
    box-shadow: -1px 2px 8px 2px #dcdcdc;
`
export const Overline = styled.div`
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: transparent;
    ${props => { return props.show ? css`display: block` : css`display: none;` }};
    @media only screen and (min-width: 960px){
    }
`

export const Main = styled.main`
    display: grid;
    width: 100%;
    overflow: hidden;
    height: 100vh;
    grid-template-rows: 75px 2fr;
    grid-template-columns: 210px 1fr;
    grid-template-areas:
    'aside head head head'
    'aside main main right'
    'aside main main right';
    text-align: center;
    grid-gap: 0.25rem;

    @media (min-width: 960px) {
        ${props => {
    return !props.aside && css`
                display: flex;
                flex-direction: column;
                height: 100%;
        `}};
    }
`


export const CtnItemOps = styled.div`
  display: flex;
  width: fit-content;
  place-content: center;
  place-items: center;
`
export const HeaderWrapperButton = styled.div`
    display: flex;
    flex-direction: row;
    grid-column-gap: 12px;
    column-gap: 12px;
    align-items: center;
    width: max-content;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 12px;
    border-radius: 200px;
    box-shadow: var(--box-shadow-sm);
    transition: background-color .3s ease-in-out;
    border: 0;
    background-color: var(--color-background-gray-light);
    cursor: pointer;
    margin-left: 30px;
    &:hover {
      background-color: ${SECBGColor};
    }
    .info-sales {
    margin: 0 0 0 6px;
    color: ${DarkSilver};
    transition: background-color .3s ease-in-out;
    white-space: nowrap;
    text-align: left;
    }
    span {
    font-size: .75rem;
    line-height: 1rem;
    display: block;
    }
`
export const HeaderC = styled.header`
    display: flex;
    height: auto;
    grid-area: head;
    background-color: ${({ scrollNav }) => { return (scrollNav ? 'none' : 'transparent') }};
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 1.2em;
    display: flex;
    height: 80px;
    z-index: 990;
    justify-content: space-between;
    box-shadow: inset 0 -1px 0 #dcdcdc;
    @media (max-width: 992px) {
      padding: 0 0.2em;
    }
    `
