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

body,html{
    background-color: map.get(helpers.$palletMinhaConta, pageBackground);
}

.no-margin{
    margin: 0px !important;
}

.aviso-warning{
    display: block;
    padding: 10px;
    margin: 0px;
    margin-bottom: 10px;
    background-color: helpers.$medium;
    border: solid 1px helpers.$borders;
    color: helpers.$textoDark;
    font-size: 13px;
    font-family: helpers.$fontRegular;
    text-transform: uppercase;

    &.aviso-center{
        text-align: center;
    }
}

.msg-form{
    margin-bottom: 15px;

    &.hidden{
        margin-bottom: 0px;
    }
}

.btn-mc{
    display: block;
    outline: 0px;
    width: 100%;
    max-width: 150px;
    padding: 10px;
    color: map.get(helpers.$palletMinhaConta, textDark);
    font: normal 15px helpers.$fontRegular;
    text-align: center;
    box-shadow: none;
    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
    background-color: map.get(helpers.$palletMinhaConta, light);
    @include helpers.transicao(0.4s ease-in-out);

    &:hover,&:focus{
        color: map.get(helpers.$palletMinhaConta, textLight);
        border-color: map.get(helpers.$palletMinhaConta, highlight);
        background-color: map.get(helpers.$palletMinhaConta, highlight);
    }

    &.btn-mc-invert{
        color: map.get(helpers.$palletMinhaConta, textLight);
        border-color: map.get(helpers.$palletMinhaConta, highlight);
        background-color: map.get(helpers.$palletMinhaConta, highlight);

        &:hover,&:focus{
            border-color: map.get(helpers.$palletMinhaConta, success);
            background-color: map.get(helpers.$palletMinhaConta, success);
        }
    }
}

.frm-field{
    display: block;
    outline: 0px;
    width: 100%;
    height: auto;
    padding: 10px;
    color: map.get(helpers.$palletMinhaConta, textDark);
    font: normal 15px helpers.$fontRegular;
    border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
    border: solid 1px map.get(helpers.$palletMinhaConta, borders);
    background-color: map.get(helpers.$palletMinhaConta, light);
    box-shadow: none;

    &[disabled=""]{
        background-color: map.get(helpers.$palletMinhaConta, borders);
    }
}

.form-mc{
    display: block;
    width: 100%;

    .item{
        display: flex;
        clear: both;
        width: 100%;
        flex-wrap: wrap;
        margin-bottom: 10px;

        label{
            display: block;
            width: 100%;
            margin: 0px;
            margin-bottom: 5px;
            color: map.get(helpers.$palletMinhaConta, textDark);
            font: normal 13px helpers.$fontRegular;
        }

        .frm-field{
            &.ddd{
                width: 30%;
            }
            &.fone{
                width: 70%;
            }
        }
    }
}

.input-error, .error_msg{
    display: block;
    margin: 0px;
    color: map.get(helpers.$palletMinhaConta, error);
    font: normal 13px helpers.$fontRegular;
}

#con-content {
    margin:0px;
    padding-top: 65px;
    padding-bottom: 65px;

    @media(max-width:1199px){
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .page-title{
        display: block;
        margin: 0px;
        margin-bottom: 70px;
        color: map.get(helpers.$palletMinhaConta, textDark);
        font: normal 22px helpers.$fontMedium;
        text-align: center;

        @media(max-width:1199px){
            margin-bottom: 30px;
        }
    }

    .content-general{
        position: relative;
        overflow: hidden;
        display: flex;
        width: 100%;
        max-width: 1580px;
        margin: 0 auto;
        align-items: stretch;
        justify-content: center;
        background-color: map.get(helpers.$palletMinhaConta, light);
        border-radius: map.get(helpers.$palletMinhaConta, borderRadius);
        border: solid 1px map.get(helpers.$palletMinhaConta, borders);

        .btn-menu{
            position: absolute;
            z-index: 2;
            display: none;
            outline: 0px;
            width: 35px;
            height: 35px;
            top: 0px;
            left: 0px;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            background-color: map.get(helpers.$palletMinhaConta, highlight);

            @media(max-width:1199px){
                display: flex;
            }

            &:before{
                display: block;
                content: "";
                width: 24px;
                height: 20px;
                background-image: url(../img/minha-conta/icon9.svg);
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
            }
        }

        .menu {
            display: block;
            overflow-y: auto;
            width: 100%;
            max-width: 305px;
            border-right: solid 1px map.get(helpers.$palletMinhaConta, borders);

            @media(max-width:1199px){
                position: absolute;
                z-index: 3;
                top: 0px;
                left: 0px;
                height: 100%;
                transform: translateX(-100%);
                background-color: #FFFFFF;
                -webkit-box-shadow: 10px 0px 28px -10px rgba(0,0,0,0.2);
                -moz-box-shadow: 10px 0px 28px -10px rgba(0,0,0,0.2);
                box-shadow: 10px 0px 28px -10px rgba(0,0,0,0.2);
                visibility: hidden;
                pointer-events: none;
                opacity: 0;
                transition: visibility 0s 0.3s, opacity 0.3s linear, transform 0.3s linear;
            }

            .btn-fechar{
                display: none;
                outline: 0px;
                padding: 20px 0px;
                text-indent: 40px;
                color: map.get(helpers.$palletMinhaConta, textDark);
                font: normal 13px helpers.$fontMedium;
                text-decoration: underline;

                @media(max-width:1199px){
                    display: block;
                }

                &:before{
                    display: inline-block;
                    content: "";
                    width: 22px;
                    height: 14px;
                    margin-right: 10px;
                    vertical-align: middle;
                    background-image: url(../img/minha-conta/icon8.svg);
                    background-position: center;
                    background-size: contain;
                    background-repeat: no-repeat;
                }
            }

            .usuario{
                display: -webkit-box;
                outline: 0px;
                width: 100%;
                color: map.get(helpers.$palletMinhaConta, textDark);
                font: normal 15px helpers.$fontRegular;
                padding: 0px 40px;
                margin: 20px 0px;
                width: 100%;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;  
                overflow: hidden;
            }

            .opcao{
                display: block;
                outline: 0px;
                padding: 20px 0px;
                color: map.get(helpers.$palletMinhaConta, textMedium);
                font: normal 15px helpers.$fontRegular;
                text-indent: 40px;
                border-bottom: solid 1px map.get(helpers.$palletMinhaConta, borders);
                @include helpers.transicao(0.4s ease-in-out);

                &.logout{
                    color: map.get(helpers.$palletMinhaConta, error);
                }

                &:first-of-type{
                    border-top: solid 1px map.get(helpers.$palletMinhaConta, borders);
                }

                &:last-of-type{
                    border-bottom-width: 0px;
                }

                &:hover,&:focus{
                    color: map.get(helpers.$palletMinhaConta, textLight);
                    font-family: helpers.$fontMedium;
                    border-color: map.get(helpers.$palletMinhaConta, highlight);
                    background-color: map.get(helpers.$palletMinhaConta, highlight);
                }
            }

            &.ativo{
                transform: translateX(0);
                visibility: visible;
                pointer-events: initial;
                opacity: 1;
                transition: opacity 0.3s linear, transform 0.3s linear;
            }
        }

        .conteudo-conta {
            position: relative;
            display: block;
            width: 100%;
            padding: 60px;
            max-width: calc(100% - 305px);

            @media(max-width:1199px){
                z-index: 1;
                max-width: 100%;
                padding-top: 60px !important;
            }

            @media(max-width:991px){
                padding: 30px 15px;
            }

            .titulo{
                display: block;
                margin: 0px;
                margin-bottom: 30px;
                color: map.get(helpers.$palletMinhaConta, textDark);
                font: normal 22px helpers.$fontMedium;

                @media(max-width:1199px){
                    text-align: center;
                }
            }

            .subtitulo{
                display: block;
                margin: 0px;
                margin-bottom: 25px;
                color: map.get(helpers.$palletMinhaConta, textMedium);
                font: normal 13px helpers.$fontRegular;

                @media(max-width:1199px){
                    text-align: center;
                }
            }
        }
    }
}