@use "helpers";

#prd-cor {
    display: block;
    width: 100%;
    margin-bottom: 30px;

    h4 {
        display: block;
        margin: 0px;
        margin-bottom: 10px;
        color: helpers.$highlight;
        font: normal 15px helpers.$fontMedium;
        line-height: 18px;
    }

    .box-cores{
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;

        .cor-container {
            width: 80px;

            .cor-titulo {
                text-align: center;
                font-size: 12px;
                text-wrap: nowrap;
                overflow: hidden;
            }
        }

        label, span {
            position: relative;
            overflow: hidden;
            display: block;
            cursor: pointer;
            width: 80px;
            height: 80px;
            margin: 0px;
            border: 1px solid helpers.$borders;

            img{
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            &.active {
                border: 2px solid helpers.$highlight;
                box-shadow: 0px 0px 1px helpers.$highlight;
            }
        }

        .iconCor {
            cursor: default;
            opacity: 0.6;

            &:before {
                content: "X";
                display: block;
                font-size: 24px;
                font-weight: bold;
                height: 100%;
                left: 1px;
                line-height: 1.2;
                position: absolute;
                text-align: center;
                top: 0px;
                width: 100%;
            }
        }

        input {
            position: absolute;
            overflow: hidden;
            height: 0;
            width: 0;
            visibility: hidden;
        }
    }
}

.box-select{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;

    #prd-tam {
        display: block;
        width: 100%;

        h4 {
            display: block;
            margin: 0px;
            margin-bottom: 10px;
            color: helpers.$highlight;
            font: normal 15px helpers.$fontMedium;
            line-height: 18px;
        }

        .prd-tam {
            display: block;
            width: 100%;

            .container-tam{
                display: flex;
                flex-wrap: wrap;
                align-items: flex-start;
                justify-content: flex-start;
                width: 100%;
                gap: 8px;

                .item{
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 80px;
                    height: 80px;
                    border: 1px solid #EEEEEE;
                    background-color: #F5F5F5;

                    label{
                        cursor: pointer;
                        position: absolute;
                        color: helpers.$textoDark;
                        font: normal 12px helpers.$fontRegular;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        width: 100%;
                        height: 100%;
                        top: 0px;
                        left: 0px;
                        gap: 6px;

                        span{
                            display: block;
                            margin: 0px;
                            line-height: 14px;
                            letter-spacing: 0.04em;
                            text-align: center;
                            text-decoration: none;
                        }
                    }

                    input{
                        display: none;
                    }

                    &.bloqueado{
                        cursor: not-allowed;
                        opacity: 0.5;
                        border-color: rgba(helpers.$error, 0.3);
                        background-color: rgba(helpers.$error, 0.2);
                    }

                    &.ativo{
                        border-color: helpers.$highlight;
                        background-color: helpers.$highlight;
                        
                        label{
                            color: helpers.$textoLight;
                            
                            svg {
                                path {
                                    fill: helpers.$textoLight;
                                }
                            }

                            span{
                                color: helpers.$textoLight;
                            }
                        }
                    }
                }
            }

            .selecione{
                display: block;
                margin: 0px;
                color: helpers.$textoDark;
                font: normal 11px helpers.$fontRegular;
            }
        }

        span {
            display: block;
            color: helpers.$textoDark;
            font-size: 12px;
            font-family: helpers.$fontRegular;
            float: right;
            margin-bottom: 10px;
            margin-top: -20px;
            text-decoration: underline;
        }
    }
}

.box-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    background-color: #F0F0F0;

    #prd-qtd{
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 188px);
        padding: 0px 14px;

        h4 {
            display: block;
            margin: 0px;
            color: helpers.$textoDark;
            font: normal 15px helpers.$fontRegular;
            line-height: 18px;

            @media(max-width:575px){
                display: none;
            }
        }

        .box-quantidade{
            display: flex;
            align-items: center;
            justify-content: center;
            width: calc(100% - 89px);

            @media(max-width:575px){
                width: 100%;
            }

            .input-control{
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 32px;
                gap: 4px;

                .set-quantidade{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 18px;
                    opacity: 0.2;
                    @include helpers.transicao(0.4s ease-in-out);

                    &:hover,&:focus{
                        opacity: 1;
                    }
                }
            }

            input {
                display: block;
                width: calc(100% - 32px);
                padding: 10px 5px;
                color: helpers.$textoDark;
                font: normal 15px helpers.$fontRegular;
                line-height: 18px;
                text-align: center;
                outline: 0px;
                border: none;
                background-color: transparent;
                box-shadow: none;

                &:hover,&:focus{
                    outline: 0px;
                }
            }
            input::-webkit-inner-spin-button { 
                -webkit-appearance: none;

            }
            input { 
                -moz-appearance: textfield;
                appearance: textfield;
            }
        }
    }

    #prd-comp {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 188px;

        button{
            display: block;
            outline: 0px;
            width: 100%;
            padding: 15px 10px;
            color: helpers.$textoLight;
            font: normal 16px helpers.$fontBold;
            line-height: 19px;
            text-align: center;
            border: none;
            border-radius: 0px;
            background-color: helpers.$highlight;
            @include helpers.transicao(0.4s ease-in-out);

            &:hover,&:focus {
                background-color: helpers.$success;
            }
        }
    }
}

.safe-message{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;

    span {
        display: block;
        margin: 0px;
        color: #09B857;
        font: normal 12px helpers.$fontMedium;
        line-height: 14px;
    }
}

#prd-aviseme {
    h4 {
        border-top: 1px solid helpers.$dark;
        color: helpers.$textoDark;
        font: 800 16px / 32px helpers.$fontRegular;
        padding: 12px 0px 0px;
    }

    input { 
        font: 800 14px / 32px helpers.$fontRegular;
        height: 32px;
        width: 100%;
        text-indent: 8px;
        text-align: center;
        box-sizing: content-box;
        border: solid 1px helpers.$dark;
    }
}

@media screen and (max-width: 992px) {
    #zoom-container {
        display: none !important;
    }
}
