@import "helpers";

.prd-guia{
    margin-bottom: 40px;
}

.box-select{
    display: flex;
    width: 100%;
    margin-bottom: 30px;
    align-items: flex-start;
    justify-content: center;
    
    @media(max-width:575px){
        flex-direction: column;
        align-items: center;
    }

    #prd-cor {
        display: block;
        width: 50%;
        
        @media(max-width:575px){
            width: 100%;
            margin-bottom: 30px;
        }

        h4 {
            display: block;
            margin: 0px;
            margin-bottom: 12px;
            color: #5A5A5A;
            font: normal 12px $fontRegular;
            line-height: 17px;
        }

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

            label, span {
                position: relative;
                overflow: hidden;
                display: block;
                cursor: pointer;
                width: 34px;
                height: 34px;
                margin: 0px;
                border: 2px solid #E5E5E5;

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

            .iconCor {
                cursor: default;
                opacity: 0.6;

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

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

    #prd-tam {
        display: block;
        width: 50%;
        
        @media(max-width:575px){
            width: 100%;
        }

        h4 {
            display: block;
            margin: 0px;
            margin-bottom: 12px;
            color: #5A5A5A;
            font: normal 12px $fontRegular;
            line-height: 17px;
        }

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

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

                .item{
                    position: relative;
                    display: block;
                    width: 35px;
                    height: 35px;
                    background-color: $light;

                    label{
                        position: absolute;
                        cursor: pointer;
                        display: flex;
                        width: 100%;
                        height: 100%;
                        left: 0px;
                        top: 0px;
                        color: $textoDark;
                        font: normal 15px $fontRegular;
                        border: solid 1px #E5E5E5;
                        border-radius: 100%;
                        align-items: center;
                        justify-content: center;
                    }

                    input{
                        display: none;
                    }

                    &.bloqueado{
                        opacity: 0.5;
                        background-color: $medium;

                        &:before{
                            position: absolute;
                            z-index: 50;
                            display: block;
                            content: "";
                            width: 1px;
                            height: 42px;
                            top: 50%;
                            left: 50%;
                            margin-top: -21px;
                            background-color: $error;
                            -webkit-transform: rotate(45deg);
                            -moz-transform: rotate(45deg);
                            -o-transform: rotate(45deg);
                        }
                    }

                    &.ativo{
                        label{
                            border: 2px solid $highlight;
                            box-shadow: 0px 0px 1px $highlight;
                        }
                    }
                }
            }

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

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

.box-actions{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    
    @media(max-width:575px){
        flex-direction: column;
        align-items: flex-start;
    }

    #prd-qtd{
        display: block;
        width: 100%;
        max-width: 120px;
        margin-bottom: 7px;

        @media(max-width:575px){
            margin-bottom: 30px;
        }
        
        h4 {
            display: block;
            margin: 0px;
            margin-bottom: 12px;
            color: #5A5A5A;
            font: normal 12px $fontRegular;
            line-height: 17px;
        }

        .box-quantidade{
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;

            .set-quantidade{
                display: flex;
                width: 20px;
                height: 20px;
                align-items: center;
                justify-content: center;

                &:before{
                    @include sprite();
                    display: block;
                    content: "";
                    width: 14px;
                    height: 14px;
                }

                &.set-menos{
                    &:before{
                        background-position: -386px -40px;
                    }
                }
                &.set-mais{
                    &:before{
                        background-position: -412px -40px;
                    }
                }
            }

            input {
                display: block;
                width: calc(100% - 40px);
                padding: 10px 5px;
                color: $textoDark;
                font: normal 15px $fontRegular;
                line-height: 23px;
                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;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        
        @media(max-width:575px){
            width: 100%;
            padding-left: 0px;
        }
       .btn-whatsapp{
         display: flex;
         flex-direction: row;
         justify-content: center;
         align-items: center;
         gap: 10px;
         cursor: pointer;
         background-color: #35A02B;
       }
       button{
        background-color: $highlight;
       }
        button, .btn-whatsapp{
            outline: 0px;
            width: 100%;
            padding: 20px 10px;
            margin-right: 15px;
            color: $textoLight;
            font: normal 15px $fontRegular;
            line-height: 18px;
            text-align: center;
            border: none;
            border-radius: 0px;
            
            @include transicao(0.4s ease-in-out);

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

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

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

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