@use "sass:map";
@use "helpers";

.conteudo-conta{
    .enderecos{
        display: block;
        width: 100%;
        margin-bottom: 20px;

        .endereco{
            display: flex;
            outline: 0px;
            width: 100%;
            padding: 30px;
            align-items: center;
            justify-content: space-between;
            border: solid 1px transparent;
            box-shadow: none;
            @include helpers.transicao(0.4s ease-in-out);
            
            @media(max-width:991px){
                padding: 15px;
                margin-bottom: 15px;
                border-color: map.get(helpers.$palletMinhaConta, borders);
            }
            
            @media(max-width:767px){
                align-items: flex-start;
            }
            
            @media(max-width:575px){
                padding: 10px;
            }

            .box-dados{
                display: flex;
                width: calc(100% - 43px);
                padding-right: 10px;
                align-items: center;
                justify-content: flex-start;
                
                @media(max-width:767px){
                    flex-direction: column;
                    align-items: flex-start;
                }

                .item{
                    display: block;
                    margin-right: 40px;
                    
                    @media(max-width:767px){
                        margin-right: 0px;
                        margin-bottom: 10px;
                    }

                    .i-titulo{
                        display: block;
                        margin: 0px;
                        margin-bottom: 5px;
                        color: map.get(helpers.$palletMinhaConta, textMedium);
                        font: normal 14px helpers.$fontMedium;
                    }

                    .i-dado{
                        display: block;
                        margin: 0px;
                        color: map.get(helpers.$palletMinhaConta, textDark);
                        font: normal 15px helpers.$fontRegular;
                    }
                }

                .i-tag{
                    display: block;
                    padding: 5px 10px;
                    color: map.get(helpers.$palletMinhaConta, textMedium);
                    font: normal 14px helpers.$fontMedium;
                    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
                    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
                    background-color: map.get(helpers.$palletMinhaConta, medium);

                    &.tag-principal{
                        color: map.get(helpers.$palletMinhaConta, success);
                        border: solid 1px map.get(helpers.$palletMinhaConta, success);
                        background-color: rgba(map.get(helpers.$palletMinhaConta, success), 0.1);
                    }
                }
            }

            .box-opcoes{
                display: flex;
                width: 100%;
                max-width: 43px;
                align-items: center;
                justify-content: flex-end;

                .btn-editar{
                    display: flex;
                    outline: 0px;
                    width: 43px;
                    height: 43px;
                    box-shadow: none;
                    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
                    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
                    background-color: map.get(helpers.$palletMinhaConta, light);
                    align-items: center;
                    justify-content: center;

                    &:before{
                        display: block;
                        content: "";
                        width: 22px;
                        height: 22px;
                        margin-right: -4px;
                        margin-top: -2px;
                        background-image: url(../img/minha-conta/icon11.svg);
                        background-size: contain;
                        background-position: center;
                        background-repeat: no-repeat;
                    }
                }
            }
            
            &:hover,&:focus{
                border-color: map.get(helpers.$palletMinhaConta, borders);
            }
        }
    }

    .btn-novo{
        max-width: 235px;
    }
}

/*
.titulo-conteudo{
    &:before{
        background-position: -204px -455px;
    }
}

.enderecos {
    position: relative;
    padding: 10px;
    background-color: $light;
    border: solid 1px $borders;
    margin-bottom: 35px;
    text-align: center;

    @media(min-width:415px){
        padding: 15px;
    }

    .texto{
        display: block;
        margin-top: 10px;
        margin-bottom: 30px;
        color: $textoDark;
        font-size: 12px;
        font-family: $fontRegular;
        text-align: center;
    }

    .endereco {
        position: relative;
        display: inline-block;
        width: 100%;
        height: auto;
        max-width: 280px;
        min-height: 200px;
        border: 1px solid $dark;
        padding: 10px;
        margin: 0px;
        margin-bottom: 15px;
        vertical-align: top;
        color: $textoMedium;
        font-size: 12px;
        font-family: $fontRegular;
        background-color: $light;

        @media(min-width:415px){
            margin-bottom: 0px;
            margin: 3px;
        }

        &:before{
            @include sprite();
            display: block;
            content: "";
            width: 15px;
            height: 20px;
            margin: 0 auto;
            background-position: -151px -406px;
        }

        .btn-editar {
            background-color: $dark;
            border: solid 1px $dark;
            color: $textoLight;
            cursor: pointer;
            display: inline-block;
            margin: 6px 0px;
            padding: 5px 10px;
            font-size: 12px;
            text-align: center;
            max-width: 230px;
            width: 100%;
            height: auto;
            @include transicao(0.3s ease-in-out);

            &:hover {
                color: $textoLight;
                border-color: $success;
                background-color: $success;
            }
        }

        &.novo{
            padding: 0px;

            &:before{
                display: none;
            }

            .btn-novo {
                position: absolute;
                cursor: pointer;
                display: block;
                width: 100%;
                height: 100%;
                top: 0px;
                left: 0px;
                padding-top: 70px;
                color: $textoDark;
                font-size: 12px;
                font-family: $fontRegular;
                text-transform: uppercase;
                text-align: center;
                @include transicao(0.3s ease-in-out);

                &:before{
                    @include sprite();
                    display: block;
                    content: "";
                    width: 20px;
                    height: 20px;
                    margin: 0 auto;
                    margin-bottom: 15px;
                    background-position: -257px -409px;
                }

                &:hover {
                    -webkit-box-shadow: 10px 10px 17px -13px rgba(0,0,0,0.75);
                    -moz-box-shadow: 10px 10px 17px -13px rgba(0,0,0,0.75);
                    box-shadow: 10px 10px 17px -13px rgba(0,0,0,0.75);
                }
            }
        }
    }
}*/
