/* resets */
.container-sacola {
    ul,
    ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    ul li {
        box-sizing: border-box;
    }
    img {
        width: 100%;
    }
    button{
        border: none;
    }
    .btn-link {
        cursor: pointer;
    }

}
    @keyframes piscar-anim {
        0% { opacity: 1; }
        50% { opacity: 0; }
        100% { opacity: 1; }
    }



.menu-topo.sacola {
    position: relative;

    button {
        border:0;
        background-color: transparent;
        color: black;
    }
    button:hover{
        color: red;
    }
    .qtd-sacolas {
        position: absolute;
        background-color: red;
        color: white;
        width: 15px;
        line-height: 15px;
        text-align: center;
        font-size: 11px;
        font-weight: bold;
        border-radius: 50%;
        top: -7px;
        left: -5px;
    }
}



.container-sacola-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
}
.container-sacola-body.on {
    display: block;
}
.container-sacola {
    position: fixed;
    min-width: 700px;
    max-width: 700px;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: -4px 0px 10px 0 #1c1a1a;
    transition: all ease 0.2s;
    transform: translateX(calc(100% + 60px));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: #f9f9f9;
}
.container-sacola.on {
    transform: none;
}

.sacola-header {
    .cont-fechar {
        position: absolute;
        top: 0;
        left: 0;
        padding: 20px;
        font-size: 2em;
        color: white;
        transform: translateX(-100%);
    }
}

.sacola-body {
    height: 90%;
    overflow-y: scroll;
    padding: 0 2em;
}



.cont-sacola-itens {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}
.cont-sacola-itens li:first-child {
    border-top: 1px solid #f2f2f2;
    padding-top: 10px;
}
.cont-sacola-itens li {
    position: relative;
    display: flex;
    margin-bottom: 20px;
    margin-right: 10px;

    .btn-remover {
        position: absolute;
        right: 0;
        top: 0;
    }
    .titulo {
        overflow: hidden;
        line-height: 20px;
        max-height: 40px;
        padding-right: 15px;
    }
    .foto {
        width: 80px;
        margin-right: 10px;
    }
    .estampa > div {
        width: 20px;
        height: 20px;
        box-shadow: rgb(221 221 221) 0px 0px 0px 1px;
        margin-right: 5px;
    }
    .estampa {
        display: flex;
    }
    .grade {
        height: 20px;
        display: flex;
        box-shadow: rgb(221 221 221) 0px 0px 0px 1px;
        min-width: 20px;
        justify-content: center;
        margin-right: 10px;
        align-items: center;
        padding: 0 3px;
    }
}



.cont-sacola-totais {
    line-height: 40px;
}
.cont-sacola-totais ul {
    display: flex;
    justify-content: space-around;
}


li.li-loja {
    display: flex;
    flex-direction: row;
    border: 1px solid #f2f2f2;
    margin-bottom: 1em;
    background-color: white;
    border-radius: 10px;
}

li.li-loja .logo {
    width: 60px;
    height: 60px;
    background-size: 67px;
    background-position: -3px;
    margin: 10px;
}

.coluna-2 {
    width: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    .titulo-loja {
        font-weight: bold;
        line-height: 40px;
        text-overflow: ellipsis;
        text-wrap-mode: nowrap;
        overflow: hidden;
        padding-right: 5px;
    }
    .codref {
        font-size: 10px;
        font-weight: bold;
        line-height: 10px;
    }

    .cont-comprar {
        display: flex;
        box-shadow: rgb(221 221 221) 0px 0px 0px 1px;
        margin-right: 10px;
    }
    .cont-comprar input {
        border: none;
        padding: 0;
        width: 100%;
        text-align: center;
        width: 30px;
        font-size: 12px;
    }
    .cont-comprar[data-mensagem-erro]::after {
        content: attr(data-mensagem-erro);
        position: absolute;
        background-color: tomato;
        color: white;
        transform: translateY(calc(-100% - 10px));
        padding: 0 5px;
    }
}




.cont-modal-sacola {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.4);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cont-modal-sacola > div {
    background-color: white;
    box-shadow: 0 0 5px 0 #d7d7d7;
    border-radius: 3px;
    padding: 10px;
}

.cont-modal-sacola .titulo {
    font-weight: bold;
}



/* frete */
.container-fretes {
    padding: 0 10px 5px 0;

    .cotacao.carregando .linha {
        background-color: #f1f1f1;
        height: 17px;
        animation: piscar-anim 2s linear infinite;
    }
    .cotacao.carregando {
        margin-bottom: 3px;
    }

    .cotacao .linha {
        display: flex;
        justify-content: space-between;
    }

}




@media screen and (max-width: 750px) {
    .container-sacola {
        width: 85%;
        min-width: unset;
    }
}