main {
    padding: 10px;
    width: calc(100% - 20px);
}

ul {
    width: 100%;
}

form.cart ul {
    margin: 0;
}

form.cart li {
    list-style-type: none;
    padding: 10px;
}

form.cart li:nth-child(odd) {
    background-color: #efefef;
}
form.cart label.quantity {
    margin: 0;
    
}
form.cart input.quantity {
    display: block;
    margin-top: 5px;
    padding: 5px;
    width: 50px;
    font-size: 1.25rem;
    text-align: center;
    
}

div.delivery-box {
    border: 1px solid #777777;
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


div.delivery {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

div.delivery label {
    margin: 0;
    text-align: left;
    flex: auto;
    padding-top: 7px;
}
div.delivery select,
div.delivery input,
div.delivery textarea {
    padding: 5px;
    font-size: 1.25rem;
    max-width: 360px;
    flex: 0 1 auto;
    width: 100%;
}

div.total { 
    padding: 10px;
    border-top: 1px solid #1e87ff;
    text-align: right;
    font-size: 1.25rem;
    display: flex;
    justify-content: end;
    flex-direction: column;
}
span.label, span.amount {
    display: block;
}
span.amount {
    flex: auto;
}

button.action, button.action-default {
    padding: 10px 35px 10px 35px;
    font-size: 1.5rem;
    border: none;
    outline: none;
    cursor: pointer;
}

button.action-default {
    font-weight: 500;
    color: #000000;
    background-color: #ffd43a;
}

button.action-default:hover {
    background-color: #ffca0b;
}

button.action {
    color: #ffffff;
    background-color: #196ed1;
}

button.action:hover {
    background-color: #1356A2;
}

div.item {
    display:flex;
    gap: 20px;
    flex-direction: column;
    justify-content: space-between;
}
div.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
div.price-delete div.price {
    text-align: right;
    font-size: 1.5rem;
}

div.price-delete div.delete {
    margin-top: 10px;
    text-align: right;
    font-size: 1.1rem;
    color: #196ed1;
    text-decoration: underline;
    cursor: pointer;
}


@media only screen and (min-width: 480px) {
    main {
        padding: 20px;
        width: calc(100% - 40px);
    }
    div.delivery-box {
        padding: 20px;
        gap: 20px;
    }
    div.delivery {
        flex-direction: row;
        gap: 20px;
    }
    div.delivery label {
        text-align: right;
        flex: 0 0 90px;
    }
    div.total { 
        font-size: 1.5rem;
        flex-direction: row;
    }
    span.amount {
        flex: 0 0 150px;
    }
    div.item {
        flex-direction: row;
    }
}

@media only screen and (min-width: 600px) {
    div.delivery select,
    div.delivery input,
    div.delivery textarea {
        width: 350px;
    }
}