body {
    background-color: white;
}

.conteudo {
    display: grid;
    grid-template-columns: 1fr;
    margin: 8px;
    grid-gap: 8px;
}

.produto {
    display: grid;
    grid-template-columns:   10px 1fr 3fr 1fr;
    column-gap: 0.8%;
    justify-self: center;
    border: 1px solid gray;
    padding: 0.8%;
    width: 98.4%;
    transition: height 2s linear 1s;
}

.produto > .nome {
    display: grid;
    grid-template-columns: 5fr 1fr;
}

.produto > div {
    align-self: center;
}

.produto:last-child {
    margin-bottom: 0px;
}

.produto img {
    width: 50px;
    height: 100%;
    max-height: 77px;
    min-height: 50px;
    object-fit: cover;
}

.produto > .botoes {
    justify-self: end;
    text-align: center;
    text-decoration: none;
}

.produto > .sub-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
}

.subtotal {
    margin-top: 4px;
    border: 1px solid;
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding: 4px 0;
}

.adicionar {
    color: white;
    background-color: #4CAF50;
    border: none;
    padding: 4px 19px;
    margin-left: 4px;
    height: 100%;
}

.botoes > .personalizar > span {
    color: white;
    font-size: 12pt ;
}

.botoes > .excluir > span {
    color: white;
    font-size: 12pt ;
}

.botoes > .personalizar{
    background-color:  #007bff;
    border: none;
    padding: 4px 19px;
    margin-left: 4px;
}

.botoes > .excluir{
    background-color:  #dc3545;
    border: none;
    padding: 4px 19px;
    margin-left: 4px;
    width: 100%;
}

.total {
    display: flow-root;
}

#total {
    font-size: 16pt;
}

.total > * {
    float: right;
}

.total > a {
    background-color: #4CAF50;
    padding: 14px;
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
}

hr {
    background-color: lightslategray;
    width: 100%;
    height: 1px;
}

@media only screen and (max-width: 600px) {
    .produto {
        column-gap: 2%;
        justify-self: center;
        border: 1px solid gray;
        padding: 2%;
        width: 96%;
    }

    .produto > .botoes {
        display: grid;
    }

    .botoes > .excluir{
        width: auto;
    }
}